Summary
- archive
vendor/skills/skills/trylle-cliduring the Rust build and embed the complete skill directory in the CLI binary - record the bundled skill frontmatter version and vendored submodule Git revision as build metadata
- make
try skill installan offline install of the bundled snapshot - make
try skill updatedownload the fulltrylle/skillsZIP and atomically replace the installed directory - report bundled and discovered installed skill versions from both
try versionandtry about - auto-provision the bundled skill globally for
try agentwhen no repo-local or global installation exists - add
try agent --no-skillandtry agent --latest-skill - initialize the skills submodule for release binary builds and crates.io publishing
Implementation details
- installed versions are read from
metadata.versioninSKILL.mdfrontmatter - discovery checks repo-local paths before known shared and agent-specific global paths
- ZIP extraction rejects unsafe paths and symlinks, enforces a 50 MiB download limit, validates the staged skill, and preserves the previous installation until replacement succeeds
- explicit latest updates replace the first installation the selected agent would discover; when none exists, they install globally
try agentcontinues to rely on native filesystem skill discovery and does not inject skill text into prompts
Validation
cargo fmt --all -- --checkcargo test— 307 passed, 1 ignoredcargo package --allow-dirty— package and verification build succeededgit diff --check
Notes
- The configured archive URL is
https://trylle.com/trylle/skills/archive/main.zip. A direct probe currently returns HTTP 404, so explicit latest updates will surface that response until the archive route is available. - Strict all-target Clippy on Rust 1.97 still reports existing lints in unrelated diff-rendering and VCS code; none of the reported findings are in the new skill implementation.
Activity
6❗️ Caution
Review the following alerts detected in dependencies.According to your organization's policies, you must resolve all "Block" alerts before proceeding. It's recommended to resolve "Warn" alerts too.
Learn more about Socket for GitHub.
| Action | Severity | Alert (click for details) |
|---|---|---|
| Warn |
hyper-util@0.1.20 - Obfuscated codeNote: Obfuscated files are intentionally packed to hide their behavior. This could be a sign of malware Source: Manifest File ℹ️ Read more on: This package | This alert | What is known malware?
| |
| Warn |
zune-jpeg@0.5.15 - Obfuscated codeNote: Obfuscated files are intentionally packed to hide their behavior. This could be a sign of malware Source: Manifest File ℹ️ Read more on: This package | This alert | What is known malware?
| |
| Warn |
writeable@0.6.3 - Obfuscated codeNote: Obfuscated files are intentionally packed to hide their behavior. This could be a sign of malware Source: Manifest File ℹ️ Read more on: This package | This alert | What is known malware?
| |
| Warn |
tokio@1.53.1 - Obfuscated codeNote: Obfuscated files are intentionally packed to hide their behavior. This could be a sign of malware Source: Manifest File ℹ️ Read more on: This package | This alert | What is known malware?
| |
| Warn |
zerocopy@0.8.55 - Obfuscated codeNote: Obfuscated files are intentionally packed to hide their behavior. This could be a sign of malware Source: Manifest File ℹ️ Read more on: This package | This alert | What is known malware?
|
What changed
build.rsnow archives the vendoredvendor/skills/skills/trylle-clisubmodule into a tar embedded in the binary viainclude_bytes!, and records the skill's frontmatter version + submodule git revision as build-time env vars (build.rs,src/version.rs).try skill installbecomes a fully offline install of that bundled snapshot;try skill updatenow downloads the fulltrylle/skillsrepo ZIP (previously a single rawSKILL.mdfile) and extracts, validates, and atomically swaps in the whole skill directory (src/command/skill.rs).- Installed/bundled skill versions are now surfaced through
try aboutandtry version --json(src/trylle/mod.rs). try agentno longer injects skill text into the prompt. It now auto-provisions the bundled skill globally when no repo-local/global installation is discovered, with new--no-skill/--latest-skillflags (src/main.rs,src/config/cli.rs)..github/workflows/publish-packages.yamladdssubmodules: recursiveto the two build/publish jobs sovendor/skillsis present whenbuild.rsruns.
Risk areas
-
Build now hard-requires the skill submodule.
bundle_skill()inbuild.rspanics ifvendor/skills/skills/trylle-cli/SKILL.mdis missing. Previously the skill was fetched at runtime, so a plaincargo build/cargo testnever needed the submodule. Only the two jobs inpublish-packages.yamlgotsubmodules: recursive; the only check that actually ran on this PR is "Socket Security" (pertry pr status 12), so it's worth confirming there's a PR-triggered CI job that builds/tests with the submodule checked out — otherwise contributors and CI on plainmasterpushes could start hitting an unfamiliar build.rs panic. -
try agentskill provisioning is no longer configurable via saved config. The old callcommand::skill::ensure_installed(config.provider, config.skill_install)respected a persistedSkillInstall::Noneopt-out. The newensure_for_agent(agent, latest)(src/command/skill.rs) always provisions when nothing is discovered, and the only way to skip it is passing--no-skillon that specific invocation. This looks intentional — it's covered byagent_autoprovisions_bundled_skill_globally_and_no_skill_disables_it— but it's a real behavior change for anyone who previously configured skill install as disabled: they'll now get a skill silently written to their global agent directory next time they runtry agentwithout--no-skill. Worth calling out explicitly for users upgrading, since the README only documents the new flags, not that the old persisted opt-out no longer applies to this path. -
No cap on decompressed size for the "latest" archive.
download_latest_archive/extract_latest_skillcap the compressed download at 50 MiB but write every extracted entry straight to disk with no limit on total decompressed bytes. The archive URL is overridable viaTRYLLE_SKILL_ARCHIVE_URL/TRYLLE_SKILL_URL, so a compromised or redirected host could still serve a small, highly-compressed zip bomb. Low severity given the default source is Trylle's own repo archive, and the zip-slip/symlink handling elsewhere in the same function is already careful — but the decompressed-size guard is the one check missing from that defense.
Suggested follow-ups
- Verify (or add) a PR-triggered CI job that runs
cargo build/cargo testwithsubmodules: recursive, since this PR's only automated check was Socket Security. - Document the
try agentprovisioning behavior change (no more persistent opt-out;--no-skillis per-invocation only) for users upgrading from the previous config-driven behavior. - Consider tracking bytes written during
extract_latest_skilland aborting past a sane ceiling, mirroring the existing compressed-size guard. - Minor/non-blocking:
SkillInstallationandInstalledSkillinsrc/command/skill.rshave identical shape (path,version) — could likely be unified.
Nice test coverage on the new install/update/auto-provision paths (tests/agent_skill_commands.rs, tests/about_cli.rs), and the zip extraction already guards against zip-slip and symlinks via enclosed_name()/normal_components()/unix-mode checks.
a3f08b9 into master3mo ago
Socket Security: Dependency Overview
Review the following changes in direct dependencies. Learn more about socket.dev
Security