T09 · Insecure Skill Coding Practices
- Location
scripts/check-and-init-artifacts.mjs:75- Finding
Shell Command Injection Through User-Controlled Project Paths
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a coherent local long-form writing toolkit, but it should be reviewed before installation because some shipped shell workflows create avoidable command-execution and supply-chain risk.
Install only if you trust the publisher and your environment. Prefer pinned versions and a lockfile, use simple trusted book-root paths, avoid running the publishing script with untrusted environment variables, and understand that the skill will keep local project and WorkBuddy recovery memory for future sessions.
scripts/check-and-init-artifacts.mjs:75Shell Command Injection Through User-Controlled Project Paths
scripts/publish-clawhub.mjs:43Shell Command Injection Through ClawHub Publishing Environment Variables
SKILL.md:25Mutable and Unlocked Third-Party Installation Chain
Referenced artifact was not completely inspected
> **适配目标**:[OpenClaw](https://docs.openclaw.ai/tools/creating-skills) 技能模型:`SKILL.md` + `metadata.openclaw`(`name` 蛇形命名、`skillKey` 用于 `openclaw.json` 中 `skills.
Referenced artifact was not completely inspected
> **适配目标**:[OpenClaw](https://docs.openclaw.ai/tools/creating-skills) 技能模型:`SKILL.md` + `metadata.openclaw`(`name` 蛇形命名、`skillKey` 用于 `openclaw.json` 中 `skills.
Referenced artifact was not completely inspected
.codebuddy-plugin/`),仍保留完整 `references/`、`scripts/`、`scene-packs/`、`assets/` 与 `package.json`,便于在 Gateway 内用 **shell/exec** 调用同一套 Node 工具链。
Referenced artifact was not completely inspected
.codebuddy-plugin/`),仍保留完整 `references/`、`scripts/`、`scene-packs/`、`assets/` 与 `package.json`,便于在 Gateway 内用 **shell/exec** 调用同一套 Node 工具链。
Referenced artifact was not completely inspected
.codebuddy-plugin/`),仍保留完整 `references/`、`scripts/`、`scene-packs/`、`assets/` 与 `package.json`,便于在 Gateway 内用 **shell/exec** 调用同一套 Node 工具链。
Referenced artifact was not completely inspected
**认知资产与商业口径(与主仓一致)**:价值表述统一为「可进化、可分发、可增值」;能力分层统一为「场景包 + 乐包 + 离线/在线会员」。机读见根目录 `fbs-runtime-hints.json` → `cognitiveAsset`;首响 JSON 见 `firstResponseContext.cogniti
Referenced artifact was not completely inspected
cognitiveAsset`;首响 JSON 见 `firstResponseContext.cognitiveAssetSnapshot`。详细说明见 [`references/05-ops/cognitive-asset-threeization.md`](./references/05-ops/cognitiv
Referenced artifact was not completely inspected
node scripts/intake-router.mjs --book-root "<bookRoot>" --intent auto --json --enforce-required
Referenced artifact was not completely inspected
node scripts/fbs-cli-bridge.mjs exit -- --book-root "<bookRoot>" --json
Referenced artifact was not completely inspected
node scripts/fbs-cli-bridge.mjs exit -- --book-root "<bookRoot>" --json
Referenced artifact was not completely inspected
推进阶段前读 `.fbs/esm-state.md`;S3.5 扩写须先有用户确认的 `.fbs/expansion-plan.md`,扩写字数以 `node scripts/expansion-word-verify.mjs` 或 `expansion-gate.mjs` 实测为准(禁止纯模型估算)。
Referenced artifact was not completely inspected
户确认的 `.fbs/expansion-plan.md`,扩写字数以 `node scripts/expansion-word-verify.mjs` 或 `expansion-gate.mjs` 实测为准(禁止纯模型估算)。
Referenced artifact was not completely inspected
推进 S0→S1 前可运行 `node scripts/s0-exit-gate.mjs --book-root "<bookRoot>" --json --confirm-advance` 做强制门禁检查。
Referenced artifact was not completely inspected
5. **写作约束**:串行优先;每轮默认最多改 **2** 个文件;详见 [`references/05-ops/agent-task-strategy.md`](./references/05-ops/agent-task-strategy.md)。
Referenced artifact was not completely inspected
扩写/精修前先做源文件备份:`node scripts/source-write-backup.mjs --book-root "<bookRoot>" --scope expansion --json`(`expansion-gate` 默认已自动备份)。
Referenced artifact was not completely inspected
进入 S3.7 精修时优先执行 `node scripts/polish-gate.mjs --book-root "<bookRoot>"`(先备份再质检),避免绕过门禁直接改稿。
Referenced artifact was not completely inspected
交付收口前执行 `node scripts/release-governor.mjs --book-root "<bookRoot>"`,自动保持唯一终稿并归档旧版本。
Referenced artifact was not completely inspected
对外交付前执行 `node scripts/material-marker-governor.mjs --book-root "<bookRoot>" --fix`,清理 `待核实-MAT` 与 `[DISCARDED-*]` 标注。
Referenced artifact was not completely inspected
全稿/终稿/终审稿发布前必须执行 `node scripts/final-manuscript-clean-gate.mjs --book-root "<bookRoot>"`,若检测到过程标注则不得交付。
Referenced artifact was not completely inspected
完整表见仓库根目录随包分发的 **WorkBuddy 版 `SKILL.md` 镜像**或 [`references/01-core/intake-and-routing.md`](./references/01-core/intake-and-routing.md)。
Referenced artifact was not completely inspected
完整表见仓库根目录随包分发的 **WorkBuddy 版 `SKILL.md` 镜像**或 [`references/01-core/intake-and-routing.md`](./references/01-core/intake-and-routing.md)。
Referenced artifact was not completely inspected
| 初始化书房 | `node scripts/init-fbs-multiagent-artifacts.mjs --book-root "<bookRoot>"` |
Referenced artifact was not completely inspected
| 环境预检 | `node scripts/env-preflight.mjs`(参数见脚本 `--help`;含 `glob`/`iconv-lite` 依赖检查) |
Referenced artifact was not completely inspected
| 章节合并 / 健康快照 / 一致性审计 | `merge-chapters.mjs`、`book-health-snapshot.mjs`、`consistency-audit.mjs` 等(`--book-root` / `--skill-root` 指向对应根) |
Referenced artifact was not completely inspected
| 章节合并 / 健康快照 / 一致性审计 | `merge-chapters.mjs`、`book-health-snapshot.mjs`、`consistency-audit.mjs` 等(`--book-root` / `--skill-root` 指向对应根) |
Detected: suspicious.dangerous_exec