governance-kit-feature-cli
Use when modifying, reviewing, or testing Agentic Doc Governance Kit feature lifecycle CLI behavior, especially `feature add`, `feature status`, backlog updates, owner docs, dry-run JSON, validation, rollback, closeout enforcement, and checker integration. Use this whenever the user asks to change feature commands or feature lifecycle automation in this kit.
- License 许可
- MIT
- 最近更新
- 2026-07-21
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- governance-kit-feature-cli
- description
- Use when modifying, reviewing, or testing Agentic Doc Governance Kit feature lifecycle CLI behavior, especially `feature add`, `feature status`, backlog updates, owner docs, dry-run JSON, validation, rollback, closeout enforcement, and checker integration. Use this whenever the user asks to change feature commands or feature lifecycle automation in this kit.
03 SKILL.md 正文
Governance Kit Feature CLI
Use this skill when changing the feature lifecycle CLI so command behavior, generated docs, and checker expectations stay aligned.
Scope
- Modify or review
bin/agentic-doc-governance.mjs - Modify or review
scripts/lib/cli-feature.mjs - Modify or review feature lifecycle helpers and tests
- Maintain backlog and owner-doc synchronization
- Preserve dry-run, JSON, validation, and rollback behavior
- Keep docs and README command examples accurate
- Run focused and full verification
This skill is for the kit's feature lifecycle CLI, not for implementing product features inside a target repo.
Default workflow
- Inspect the existing command behavior before editing:
node bin/agentic-doc-governance.mjs --help
node bin/agentic-doc-governance.mjs feature add --help
- Read the implementation and tests:
bin/agentic-doc-governance.mjsscripts/lib/cli-feature.mjsscripts/lib/feature-lifecycle.mjstest/cli-and-checkers.test.mjs
- For
feature addchanges, preserve or update tests for:- duplicate feature IDs
- invalid priorities
- terminal creation statuses
- unknown repo-local skills
- escaped pipe characters in backlog cells
- configured feature root and backlog path
- rollback when multi-file writes fail
- For
feature statuschanges, preserve or update tests for:- owner doc metadata update
- active backlog row update
- dry-run JSON without writes
- closeout validation for
SHIPPED - notes appended to status history
- For argument parsing changes, preserve strict unknown-option and missing-value failures.
- Update README CLI usage and AI Agent User Guide examples when command syntax changes.
- Run focused checks first:
node --test test/cli-and-checkers.test.mjs
node scripts/docs-integrity-check.mjs --check-generated
node scripts/skills-integrity-check.mjs
- Run the full suite:
npm test
- If package behavior or installed-target behavior changed, run a target repo smoke test and
npm run release-check.
Output format
Report:
- command behavior changed
- files changed
- validations preserved or added
- docs/examples updated
- focused test result
- full test result
- target repo smoke or release-check result, if needed
- residual risks
04 同仓库更多 Skills
implementation-surface
Use when implementing or reviewing project-specific application code after feature lifecycle handoff.
governance-kit-operator
Use when installing, refreshing, or operating Agentic Doc Governance Kit in a target repo, including init dry-runs, generated governance files, feature lifecycle CLI usage, checks, and final user reports. Use this whenever the user asks an AI agent to set up this kit, apply it to another project, initialize governance docs, create governed feature work, or explain the operational workflow.
feature-readiness
Use when deciding whether a planned feature can move into implementation, including blocker analysis and artifact decisions.
feature-lifecycle
Use when adding, planning, updating, verifying, closing out, archiving, or relocating a project feature under the repo's documentation governance model.
feature-lifecycle
Example lifecycle skill.
governance-kit-target-smoke
Use when validating that Agentic Doc Governance Kit initializes correctly into a target repository, including init dry-runs, generated file presence, installed skills, docs checks, skills checks, and optional feature lifecycle CLI smoke tests. Use this whenever the user asks to test install output, verify init behavior, or confirm generated templates work in a target repo.