repo-acceptance-gate-skill
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 0
- Forks
- 0
02 资源文件 31
- 参考文档.github/workflows/ci.yml850 B
- 其他.gitignore46 B
- 参考文档CHANGELOG.md425 B
- 参考文档CONTRIBUTING.md493 B
- 参考文档docs/ORCHESTRATION.md460 B
- 参考文档docs/PR_EVIDENCE.md118 B
- 参考文档docs/PRD.md2.4 KB
- 参考文档docs/RC_REVIEW.md440 B
- 参考文档docs/RELEASE_CANDIDATE.md275 B
- 参考文档docs/TASKS.md524 B
- 参考文档fixtures/custom-policy/CUSTOM_REQUIRED.md32 B
- 参考文档fixtures/custom-policy/custom-fixtures/example.json3 B
- 参考文档fixtures/custom-policy/guides/CUSTOM_RECOMMENDED.md35 B
- 参考文档fixtures/custom-policy/malformed-policy.json43 B
- 参考文档fixtures/custom-policy/missing-policy.json166 B
- 参考文档fixtures/custom-policy/policy.json163 B
- 参考文档fixtures/docs-only/README.md12 B
- 参考文档fixtures/sparse/package.json18 B
- 许可证LICENSE1.0 KB
- 参考文档package-lock.json359 B
- 参考文档package.json1.2 KB
- 参考文档README.md3.7 KB
- 脚本scripts/package-smoke.mjs2.3 KB
- 脚本scripts/validate.sh328 B
- 参考文档SECURITY.md561 B
- 脚本src/cli.js2.8 KB
- 脚本src/evaluate.js3.0 KB
- 脚本src/policy.js1.6 KB
- 脚本src/render.js1.6 KB
- 脚本src/scan.js3.1 KB
- 脚本test/gate.test.js20.1 KB
03 SKILL.md 正文
repo-acceptance-gate-skill
Use this skill when an agent needs a deterministic release-candidate packet for a local repository before handoff, PR update, or public release review.
Inputs
- A local repository path.
- Optional
gate.policy.jsoncreated byinit-policy.
Policy requiredDocs and recommendedDocs arrays may contain custom
repository-relative file paths. fixtureDirs may likewise contain custom
repository-relative directory paths. check and explain scan every path in
the merged active policy. Every policy-list entry must be a non-empty string;
empty and whitespace-only entries are invalid.
Policy controls blockOnMissingRequiredDocs and
blockOnMissingRequiredScripts must be booleans. Set either control to false
to keep that missing-evidence category from becoming a blocker.
Count documentation only when the path is a non-empty regular file, and count
validation helpers only when they are regular .sh files in scripts/.
Malformed or unreadable package.json input is a blocking scan error, not
evidence that the repository simply has no package scripts.
Count a required package script only when its value is a non-empty string after trimming. Count a configured fixture directory only when it contains at least one regular file, including in nested directories. Evidence messages distinguish missing inputs, empty or whitespace-only inputs, and invalid input shapes.
Boundaries
- No publishing, tagging, package release, or branch-protection changes.
- No network calls by default.
- The tool inspects local files and package metadata only.
Workflow
repo-acceptance-gate check . --format markdown
repo-acceptance-gate check . --format json
repo-acceptance-gate init-policy --out gate.policy.json
repo-acceptance-gate explain fixtures/node-package --format markdown
Validate with npm test, npm run check, npm run build, and npm run smoke.