code-feeder — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited code-feeder (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
目标:生成包含用户意图和关键代码的高质量 Markdown 文档。 脚本路径:~/.claude/skills/code-feeder/scripts/ (若不存在则搜索 code_collector.py)
--append 模式提取关键片段补全。| 模式 | 标志 | 适用场景 | 关键参数 |
|---|---|---|---|
| Batch | --mode batch | 小文件/配置文件 | --files f1 f2 |
| Snippets | --mode snippets | 大文件(>500KB)/特定函数 | --target f1 --ranges [...] |
| Append | --append | 补全漏掉的文件/增量更新 | (配合 Snippets 使用) |
若未提供,询问:"收集代码的具体目的是什么?关注哪些模块?"
python {script_dir}/detect_project.py "{project_path}"根据输出忽略无关目录,聚焦核心文件。
A. 批量模式 (首选)
python {script_dir}/code_collector.py "{project_path}" \
--mode batch --files src/main.py config.json ... \
--intent "{user_intent}" --output "ctx.md"B. 片段模式 (针对大文件/特定逻辑) 支持类型: `function`, `class`, `method`, `lines`
python {script_dir}/code_collector.py "{project_path}" \
--mode snippets --target "src/heavy.js" \
--ranges '[{{"type":"function","name":"login"}}, {{"type":"lines","start":1,"end":50}}]' \
--intent "{user_intent}" --output "ctx.md"检查输出中的 "⚠️ 跳过的文件"。若文件重要,立即用追加模式提取:
python {script_dir}/code_collector.py "{project_path}" \
--mode snippets --target "skipped_file.py" \
--ranges '[{{"type":"function","name":"core_logic"}}]' \
--output "ctx.md" --appendRead 生成的文档,检查完整性与正确性:
告知用户文档路径,并确认已包含意图和核心逻辑。
lines 行号范围提取。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.