name: requirement-lifecycle-manager
Act as the project-manager layer for requirements. Keep documents, lifecycle state, and Git branches aligned without imposing detailed commit conventions.
Always read:
docs/文档中心.mddocs/governance/文档分类.mddocs/governance/元数据规范.mddocs/governance/生命周期流程.mdWhen explaining or operating the team workflow, also read 开发协作说明.md in this skill directory.
When a feature_id is known, read docs/initiatives/<feature_id>/专题索引.md and every existing document it references.
Before any Git action, inspect the current branch, worktree, remotes, and divergence from origin/master. Do not treat a locally-ahead master as the stable baseline.
Inspect stages in this order:
需求录入.md需求文档.md概要设计.md详细设计.md开发进度.md测试计划.md测试结果.md专题索引.mdAllow a stage to be skipped only when the initiative index records the reason, risk, replacement record, and follow-up requirement.
Use one shared feature branch per requirement:
docs/FEAT-YYYYMM-NNN-short-name
-> master
-> feature/FEAT-YYYYMM-NNN-short-name
-> master
-> docs/FEAT-YYYYMM-NNN-short-name-closeout
-> master
master: never commit directly to it.docs/<feature_id>.master before development.feature/<feature_id> only after ready_for_development passes, from the recorded origin/master commit.master into it when synchronization is needed.origin/master into the feature branch and rerun required verification.feature/<feature_id> to master through a reviewed PR using a merge commit; do not squash or rebase.docs/<feature_id>-closeout to record the merge SHA, final status, test conclusion, and remaining issues. Then the remote feature branch may be deleted with explicit authorization.Feature branches must not merge into each other. Record cross-feature dependencies by feature_id; normally wait for the dependency to reach master. For necessary parallel verification, use a disposable integration/<feature-a>-<feature-b> branch that never merges directly to master.
Treat ready_for_development as a hard gate. Require:
origin/master;If the gate fails, do not create or push the feature branch. Report the missing prerequisites and offer to complete them, formally record a permitted skip, or keep the work exploratory.
Treat ready_for_merge as a hard gate. Require:
origin/master merged into the feature branch with no unresolved conflict;测试结果.md records passes, failures, residual risks, and conclusion;AiPlatformArchitectureTest passed;Do not use commit style, commit count, or history tidiness as merge gates.
feature_id when a change becomes an independent requirement.paused for resumable work and keep its remote feature branch. On resume, synchronize master and revalidate documents and gates.cancelled for abandoned work. Never merge incomplete code to master; normally delete its feature branch after preserving any explicitly required record.hotfix/<short-name> from master with a lightweight gate: incident description, fix scope, and verification result. Merge through PR, then backfill or link the appropriate feature_id records.Read-only inspection and gate evaluation need no extra confirmation. Generating names and commands is also safe.
Require explicit user authorization before creating a branch, committing, pushing, creating or merging a PR, deleting a branch, or otherwise changing remote state. Never automatically merge master, force-push, or delete a remote branch. A general instruction to advance the lifecycle authorizes ordinary safe steps, but obtain confirmation again for push, PR merge, and remote branch deletion.
When asked what to do next:
feature_id and initiative.Use this response shape:
当前阶段:...
当前分支:...
已有文档:...
Gate 状态:...
缺口:...
下一步:...
建议动作:...
警示:...
Use templates under docs/templates/. Keep Chinese human-readable filenames; keep identifiers and lifecycle state in Front Matter. Fill doc_id, feature_id, type, title, status, owner, created_at, updated_at, related documents, and affected modules, then update 专题索引.md.
Never silently skip a document or Git gate.