init-project — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited init-project (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.
因本 skill 设计缺陷导致的 bug,先用 bensz-collect-bugs 记录到 ~/.bensz-skills/bugs/,不要直接改用户本地已安装源码;若有 workaround,先记 bug 再继续。只有用户明确要求公开上报时,才用本地 gh 上传到 huangwb8/bensz-bugs;不要 pull / clone 整个仓库。
为当前项目生成标准 AI 协作文档,让 Claude Code / OpenAI Codex CLI 等工具理解项目目标、工程原则、变更记录规则与协作边界。
只允许在当前工作目录及其子目录内创建或修改文件。禁止写入父目录、其它项目、系统目录或用户级配置。脚本会在写入前校验输出路径,失败时立即停止。
AGENTS.md:跨平台通用项目指令,Single Source of Truth;必生成,智能合并。CLAUDE.md:Claude Code 适配层,核心为 @./AGENTS.md;必生成,智能合并。README.md、CHANGELOG.md、.gitignore:按需生成;--overwrite 可覆盖/合并。项目变更必须维护 CHANGELOG.md。docs/、docs/plans/:完整初始化时自动补齐;计划文档固定放在 ./docs/plans/。docs/contribution.bac:默认 BAC 账本;--bac-file 可改,--disable-bac 可关。AGENTS.md 是唯一需要长期手动维护的通用指令源;CLAUDE.md 只做 Claude Code 适配,并通过 @./AGENTS.md 自动引用。init-project/templates/:AGENTS.md.template、CLAUDE.md.template、README.md.template、CHANGELOG.md.template、gitignore.yaml。init-project/config.yaml,版本号以 skill_info.version 为准;当前 BAC 配置在 bac_contribution。docs/ 与 docs/plans/。docs/ 中非 plans/ 文档过时时,生成的项目指令必须要求同步更新。CHANGELOG.md 的 [Unreleased]。默认基于 bensz-auto-contribution / bac 记录人类、AI 与工具贡献证据:
https://github.com/huangwb8/bensz-auto-contributiongit+https://github.com/huangwb8/bensz-auto-contribution.gitdocs/contribution.bacconfig.yaml:bac_contribution.min_python_version,当前为 3.10--disable-bac 显式关闭。关闭时生成的文档也必须说明当前已关闭且可重新启用。--bac-file 指定项目内其它路径时,以用户指定为准;禁止把 .bac 文件写到项目目录外。BAC 是过程记录与辅助审计材料,不替代最终署名、责任或合规判断;不得记录敏感密钥、完整私有提示词或无关个人隐私。
在目标项目根目录运行:
python3 init-project/scripts/generate.py --auto常用参数:
# 覆盖/强制更新已有文件
python3 init-project/scripts/generate.py --auto --overwrite
# 指定 BAC 文件,必须位于项目目录内
python3 init-project/scripts/generate.py --auto --bac-file docs/audit/contribution.bac
# 显式关闭默认 BAC 初始化
python3 init-project/scripts/generate.py --auto --disable-bac
# 只生成单类文档 / 跳过可选输出
python3 init-project/scripts/generate.py --auto --only-readme
python3 init-project/scripts/generate.py --auto --only-changelog
python3 init-project/scripts/generate.py --auto --skip-readme --skip-gitignore手动模式只在用户明确给出项目信息时使用:
python3 init-project/scripts/generate.py \
--project-name "my-project" \
--project-description "数据科学项目" \
--workflow "数据获取 → 分析 → 可视化"--auto 会依次完成:
docs/ 与 docs/plans/。bac 包,必要时安装,初始化或验证 .bac 文件。AGENTS.md、CLAUDE.md。README.md、CHANGELOG.md、.gitignore。项目类型识别标志:Python(pyproject.toml、requirements.txt 等)、Web(package.json 等)、Rust(Cargo.toml)、Go(go.mod)、Java(pom.xml/Gradle)、数据科学(*.ipynb、*.R、environment.yml)、文档(docs/、mkdocs.yml、docusaurus.config.js)。
当 AGENTS.md 或 CLAUDE.md 已存在时,默认智能合并而非直接覆盖:保留用户自定义的 ## 项目目标、## 核心工作流、## 变更边界 及非标准章节;更新工程原则、默认语言、平台适配、AGENTS.md 必需章节与 CLAUDE.md 的 @./AGENTS.md 引用。AGENTS.md 中历史遗留的 ## 目录结构 会被丢弃,避免回填为自定义章节;合并不符合预期时提示用户用 --overwrite。
从 templates/gitignore.yaml 读取规则;缺少 PyYAML 或配置损坏时使用默认规则兜底。安全优先,默认忽略系统文件、IDE 配置、日志、临时文件、环境变量、密钥、凭证目录和常见构建/缓存产物。已有 .gitignore 在覆盖模式下会保留用户自定义规则。
docs / docs/plans 已存在但不是目录:停止。--disable-bac 显式关闭。PyYAML 缺失:脚本继续运行,配置与 .gitignore 使用默认值。AGENTS.md 包含必需章节:项目目标、核心工作流、工程原则、默认语言、联网与搜索、贡献记录、Codex CLI 特定说明、变更记录与版本、有机更新原则。CLAUDE.md 正确通过 @./AGENTS.md 引用通用指令。docs/、docs/plans/ 已存在或无需本模式创建。--disable-bac。.gitignore 已生成/合并,且包含敏感文件忽略规则。CHANGELOG.md 已创建或变更已记录。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.