[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AVRKEPSXXND2M89A30VXKT":3,"skill-same:01M7AVRKEPSXXND2M89A30VXKT":53},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7AVRKEPSXXND2M89A30VXKT","package-installer",null,"bonc-ai\u002Fcogseed","bonc-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F313335383?v=4","01M7AV826PEZKTFGW9MCPBERA7","东方国信 BONC","01M7AV827DEZPMD30Y94T1ZFKQ",19,"MIT","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fsystem\u002Fskills\u002Fpackage-installer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: package-installer\ndescription_zh: 安装用户给出的 GitHub 仓库或本地 git 目录作为 CogSeed 外部包，并接入其中的技能或命令行工具；适合\"安装这个 GitHub 项目\"\"把 \u002Fpath\u002Fto\u002Frepo 接入 CogSeed 外部包\"\"更新或移除已安装的外部包\"；触发词：外部包、安装包、GitHub 项目、本地 repo、更新包、移除包、package installer\ndescription_en: Install a user-supplied GitHub repository or local git directory as an CogSeed external package and wire up its skills or CLI tools; For: \"install this GitHub project\", \"connect \u002Fpath\u002Fto\u002Frepo as an CogSeed external package\", \"update or remove an installed external package\"; Triggers: external package, install package, GitHub project, local repo, update package, remove package, package installer\ncategory: \"general\"\n---\n\n# Package Installer\n\nInstall third-party open-source projects (a GitHub URL or a local git\ndirectory the user provides) as external packages. The project is cloned\nverbatim into the per-user packages directory — never edit, normalize, or\nreorganize its files.\n\nRun the CogSeed CLI command below through the command execution tool; CogSeed\nhandles this runner form directly on Windows:\n\n```text\n\"$COGSEED_NODE\" \"$COGSEED_PC_DIR\u002Fbin\u002Fcogseed-pkg.cjs\" \u003Ccommand> [args]\n```\n\nCommands: `install \u003Cgit-url> [--name \u003Cname>] [--consent-deps]`,\n`consent-deps \u003Cname>`, `update \u003Cname>`, `remove \u003Cname>`, `list`,\n`info \u003Cname>`.\nEvery command prints a JSON result; non-zero exit prints `{ok:false,error}`.\n\n## Install flow\n\n1. Run `install \u003Cgit-url>`. Use `--name \u003Cname>` when the user, marketplace\n   prompt, or install request explicitly gives a package name, or when the repo\n   basename is not a valid package name (the error message will say so).\n   Never pass `--consent-deps` on the first attempt — dependency installs need\n   the user's explicit approval first.\n2. Read the JSON result:\n   - `deps_pending_consent` non-empty → the package is installed but its\n     dependencies are not. Show the user the exact commands listed there\n     and ask for approval; after they agree, run `consent-deps \u003Cname>`.\n     If they decline, leave it as is — skills that need no deps still work.\n   - `error` mentioning \"not installable\" → tell the user the project has\n     neither skills (SKILL.md) nor CLI entry points and is not supported\n     (agent-driven-only projects cannot be installed).\n3. Report what was installed, from the result fields:\n   - `skill_roots` non-empty → its skills become available in new turns.\n   - `shims` non-empty → those commands are directly callable from the host\n     shell\u002FPATH in the next turn (e.g. `hyperframes --help`). On Windows the\n     installer creates `.cmd` shims for CLI entries.\n\n## Author a usage skill for CLI-only installs\n\nWhen the install result is `kind: \"cli\"` (empty `skill_roots`, non-empty\n`bin_entries`), author a companion usage skill so future turns get curated\ninstructions instead of a bare command list. Do this automatically right after\na successful CLI install — the user already approved installing it. Skip for\n`kind: \"skill\"` and `kind: \"both\"` (they already ship their own SKILL.md).\n\n1. Probe usage: run the package's main binary with `--help` (and one level of\n   subcommand help if cheap). Cap output; if `--help` blocks or is empty, keep\n   the skill minimal and point the reader at `\u003Cbin> --help`.\n2. Write the skill via stdin (the file lands outside the package tree):\n\n   ```bash\n   \"$COGSEED_NODE\" \"$COGSEED_PC_DIR\u002Fbin\u002Fcogseed-pkg.cjs\" skill-write \u003Cname> \u003C\u003C'SKILL'\n   ---\n   name: \u003Chuman name>\n   description: \u003Cone line: what it does + when to use it>\n   ---\n\n   # \u003Cname>\n\n   When to use, the common commands (from --help, with real examples), and any\n   gotchas (e.g. a one-time setup command). End with an \"External dependencies\"\n   line naming the package's binaries.\n   SKILL\n   ```\n\n   Frontmatter is ONLY `name` + `description`; everything else is body prose.\n3. Re-running `skill-write \u003Cname>` overwrites the companion (use it to fix or\n   refresh after an `update`).\n\n## Updates and removal\n\n- `update \u003Cname>` pulls the latest version. Dependency installs re-run\n  automatically only if the user already consented during install.\n- `remove \u003Cname>` deletes the package and its shims.\n- `list` shows installed packages with kind, enabled state, and commit.\n\n## Rules\n\n- Ask before installing anything the user did not explicitly request.\n- Do not start OAuth\u002Flogin flows that require the user to paste a verification\n  code back into chat later (for example `gcloud auth login --no-launch-browser`).\n  Chat messages are not stdin for background processes. Use `interactive_cli_start`\n  for commands that genuinely need live user input, use an auth flow with a\n  browser callback that completes on its own, or stop and tell the user the\n  one-time terminal\u002Fapp authorization step.\n- Never run `npm install` \u002F `pip install` yourself inside a package — the\n  CLI owns dependency installs and the consent record.\n- Do not modify files under the packages directory; treat it as read-only.\n- Public GitHub repos install without git (the CLI downloads a tarball when git\n  is absent). Git is only needed for private repos and non-GitHub git URLs; if\n  the CLI reports git is required for such a source, relay that to the user.\n","# Package Installer\n\nInstall third-party open-source projects (a GitHub URL or a local git\ndirectory the user provides) as external packages. The project is cloned\nverbatim into the per-user packages directory — never edit, normalize, or\nreorganize its files.\n\nRun the CogSeed CLI command below through the command execution tool; CogSeed\nhandles this runner form directly on Windows:\n\n```text\n\"$COGSEED_NODE\" \"$COGSEED_PC_DIR\u002Fbin\u002Fcogseed-pkg.cjs\" \u003Ccommand> [args]\n```\n\nCommands: `install \u003Cgit-url> [--name \u003Cname>] [--consent-deps]`,\n`consent-deps \u003Cname>`, `update \u003Cname>`, `remove \u003Cname>`, `list`,\n`info \u003Cname>`.\nEvery command prints a JSON result; non-zero exit prints `{ok:false,error}`.\n\n## Install flow\n\n1. Run `install \u003Cgit-url>`. Use `--name \u003Cname>` when the user, marketplace\n   prompt, or install request explicitly gives a package name, or when the repo\n   basename is not a valid package name (the error message will say so).\n   Never pass `--consent-deps` on the first attempt — dependency installs need\n   the user's explicit approval first.\n2. Read the JSON result:\n   - `deps_pending_consent` non-empty → the package is installed but its\n     dependencies are not. Show the user the exact commands listed there\n     and ask for approval; after they agree, run `consent-deps \u003Cname>`.\n     If they decline, leave it as is — skills that need no deps still work.\n   - `error` mentioning \"not installable\" → tell the user the project has\n     neither skills (SKILL.md) nor CLI entry points and is not supported\n     (agent-driven-only projects cannot be installed).\n3. Report what was installed, from the result fields:\n   - `skill_roots` non-empty → its skills become available in new turns.\n   - `shims` non-empty → those commands are directly callable from the host\n     shell\u002FPATH in the next turn (e.g. `hyperframes --help`). On Windows the\n     installer creates `.cmd` shims for CLI entries.\n\n## Author a usage skill for CLI-only installs\n\nWhen the install result is `kind: \"cli\"` (empty `skill_roots`, non-empty\n`bin_entries`), author a companion usage skill so future turns get curated\ninstructions instead of a bare command list. Do this automatically right after\na successful CLI install — the user already approved installing it. Skip for\n`kind: \"skill\"` and `kind: \"both\"` (they already ship their own SKILL.md).\n\n1. Probe usage: run the package's main binary with `--help` (and one level of\n   subcommand help if cheap). Cap output; if `--help` blocks or is empty, keep\n   the skill minimal and point the reader at `\u003Cbin> --help`.\n2. Write the skill via stdin (the file lands outside the package tree):\n\n   ```bash\n   \"$COGSEED_NODE\" \"$COGSEED_PC_DIR\u002Fbin\u002Fcogseed-pkg.cjs\" skill-write \u003Cname> \u003C\u003C'SKILL'\n   ---\n   name: \u003Chuman name>\n   description: \u003Cone line: what it does + when to use it>\n   ---\n\n   # \u003Cname>\n\n   When to use, the common commands (from --help, with real examples), and any\n   gotchas (e.g. a one-time setup command). End with an \"External dependencies\"\n   line naming the package's binaries.\n   SKILL\n   ```\n\n   Frontmatter is ONLY `name` + `description`; everything else is body prose.\n3. Re-running `skill-write \u003Cname>` overwrites the companion (use it to fix or\n   refresh after an `update`).\n\n## Updates and removal\n\n- `update \u003Cname>` pulls the latest version. Dependency installs re-run\n  automatically only if the user already consented during install.\n- `remove \u003Cname>` deletes the package and its shims.\n- `list` shows installed packages with kind, enabled state, and commit.\n\n## Rules\n\n- Ask before installing anything the user did not explicitly request.\n- Do not start OAuth\u002Flogin flows that require the user to paste a verification\n  code back into chat later (for example `gcloud auth login --no-launch-browser`).\n  Chat messages are not stdin for background processes. Use `interactive_cli_start`\n  for commands that genuinely need live user input, use an auth flow with a\n  browser callback that completes on its own, or stop and tell the user the\n  one-time terminal\u002Fapp authorization step.\n- Never run `npm install` \u002F `pip install` yourself inside a package — the\n  CLI owns dependency installs and the consent record.\n- Do not modify files under the packages directory; treat it as read-only.\n- Public GitHub repos install without git (the CLI downloads a tarball when git\n  is absent). Git is only needed for private repos and non-GitHub git URLs; if\n  the CLI reports git is required for such a source, relay that to the user.\n",{},"main","6afb98b7a438d4b993ba23f3af1494c862d80378","resources\u002Fbuiltin\u002Fsystem\u002Fskills\u002Fpackage-installer",10,"https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed","https:\u002F\u002Fcogseed.ai","https:\u002F\u002Fgithub.com\u002Fbonc-ai","https:\u002F\u002Fwww.bonc.com.cn\u002F","北京东方国信科技股份有限公司开源组织 · Enterprise open source by BONC","2026-11-13 21:46:31",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add bonc-ai\u002Fcogseed --skill package-installer",{"tool":39,"command":40},"bunx","bunx skills add bonc-ai\u002Fcogseed --skill package-installer",{"tool":42,"command":43},"pnpm","pnpm dlx skills add bonc-ai\u002Fcogseed --skill package-installer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fsystem\u002Fskills\u002Fpackage-installer\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"_meta.json","REFERENCE","参考文档",64,"https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fsystem\u002Fskills\u002Fpackage-installer\u002F_meta.json",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7AVTAEJDDZ3YFV85AK28FWN","sample-supply-chain","供应链样本：安装钩子 + 拼写伪装 + 源覆盖。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-supply-chain-skill\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7AVT84YQ5GZDMB9PRTEBV8V","sample-prose-only","纯散文安全守则样本：禁止某行为的说明不等于该行为。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-prose-only-skill\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7AVT59NWX4M2EZJKRXMEPGB","sample-obfuscated","混淆载荷样本：解码与执行共现。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-obfuscated-skill\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7AVT246DRNSJ5D9JQRK4QKP","sample-hidden-content","隐藏内容载荷样本：用于回归「不可见字符不做上下文降权」这一不变量。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-hidden-content-skill\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7AVSYR91DFC262VQ23BAZA1","sample-evasion","反规避样本：危险内容只以「不可见字符切断」与「编码后」两种形式出现。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-evasion-skill\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M7AVSVMGH458JZC3Q454QWTK","sample-agentic","代理运行时风险样本：配置篡改 + 隐蔽指令。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-agentic-skill\u002FSKILL.md",[],[]]