원클릭으로
phase-audit
Verify all phase completion artifacts exist and are valid before marking a phase COMPLETE
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Verify all phase completion artifacts exist and are valid before marking a phase COMPLETE
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | phase-audit |
| description | Verify all phase completion artifacts exist and are valid before marking a phase COMPLETE |
| user-invocable | true |
Verify that all phase completion artifacts exist and are valid before allowing the phase to be marked COMPLETE.
Phase completion artifacts include:
This is an enforcement mechanism, not a suggestion. There is exactly one place where phase completion can be blocked: this audit.
| Input | Required | Description |
|---|---|---|
phase_number | Yes | The phase number being marked complete (e.g., "1", "2a") |
phase_description | Yes | Brief description of what the phase accomplished |
changes_made | Yes | List of infrastructure, schema, or component changes made |
Before invoking this skill:
docs/glossary/markdown-glossary.md) is treated as authoritative and must not be bypassed or partially appliedRead docs/glossary/markdown-glossary.md in full.
Extract all entries that have an Update Triggers section.
Build a mapping:
{file_path} -> [list of triggers]
For each file in the mapping, evaluate whether any of its triggers match the changes_made input.
A trigger matches if:
Phase completion ALWAYS triggers:
implementation-plan.md (must be updated to mark phase done)README.md (if capabilities or getting-started changed)Build a list: files_requiring_update
For each file in files_requiring_update:
Record for each file:
status: UPDATED | MISSING_UPDATE | FILE_NOT_FOUNDevidence: What was found or not foundThis file requires special verification:
[x], COMPLETE, Done)in progress or unmarkedIf implementation-plan.md does not reflect phase completion: status = MISSING_UPDATE
For the completed phase, verify that an Architecture Decision Record exists.
Check for ADR existence
docs/decisions/ for at least one ADR that references this phaseadr-NNN-<short-slug>.mdValidate ADR structure
docs/decisions/adr-template.mdStatus: AcceptedValidate ADR content
Record ADR status
CREATED_AND_VALID: ADR exists, follows template, content is accurateMISSING: No ADR exists for this phaseINVALID_FORMAT: ADR exists but does not follow templateINCOMPLETE_CONTENT: ADR exists but decisions/constraints are not grounded in codeFor the phase under audit:
Identify the expected validation script(s)
scripts/validate_*.py for a script corresponding to the phaseVerify the script(s) exist
Verify the script(s) have been executed successfully
Record validation status:
VALIDATED: Script exists and was executed successfullyNOT_EXECUTED: Script exists but was not runSCRIPT_MISSING: No validation script found for behavioral phaseEXEMPT: Phase is non-behavioral (documentation-only)A phase audit MUST return FAIL if validation scripts were not executed.
Produce a structured report in the following format:
## Phase Audit Report
**Phase:** {phase_number}
**Description:** {phase_description}
**Audit Time:** {timestamp}
### Changes Declared
{bulleted list of changes_made}
### Files Requiring Update
{bulleted list of files_requiring_update with trigger reason}
### Documentation Audit Results
| File | Status | Evidence |
|------|--------|----------|
| ... | UPDATED / MISSING_UPDATE / FILE_NOT_FOUND | ... |
### ADR Audit Results
| Check | Status | Evidence |
|-------|--------|----------|
| ADR Exists | YES / NO | {filename or "not found"} |
| Follows Template | YES / NO | {missing sections if any} |
| Content Valid | YES / NO | {ungrounded claims if any} |
| **ADR Status** | {CREATED_AND_VALID / MISSING / INVALID_FORMAT / INCOMPLETE_CONTENT} | |
### Validation Audit Results
| Check | Status | Evidence |
|-------|--------|----------|
| Script Exists | YES / NO | {script path or "not found"} |
| Script Executed | YES / NO | {execution evidence} |
| **Validation Status** | {VALIDATED / NOT_EXECUTED / SCRIPT_MISSING / EXEMPT} | |
### Verdict
**{PASS | FAIL}**
{If FAIL: list specific remediation actions required}
PASS if and only if:
files_requiring_update have status = UPDATEDCREATED_AND_VALIDVALIDATED or EXEMPTFAIL if ANY of the following:
status = MISSING_UPDATE or status = FILE_NOT_FOUNDMISSING, INVALID_FORMAT, or INCOMPLETE_CONTENTNOT_EXECUTED or SCRIPT_MISSINGIf verdict is PASS, create an audit file at docs/audits/phase-NN-audit.md containing:
# Phase NN Audit Report
| Field | Value |
|-------|-------|
| Phase | NN |
| Description | {phase_description} |
| Git SHA | {current_commit_sha} |
| Date | {YYYY-MM-DD} |
| Verdict | **PASS** |
## Validation Scripts
| Script | Result |
|--------|--------|
| `scripts/validate_xxx.py` | N/N passed |
## ADR
| Field | Value |
|-------|-------|
| Path | `docs/decisions/adr-NNN-xxx.md` |
| Status | Accepted |
## Documentation Updates
| File | Trigger | Updated |
|------|---------|---------|
| ... | ... | Yes |
## Auditor
Claude (automated phase audit)
This file is required. CI will fail if a phase is marked COMPLETE without a corresponding audit file.
All of the following must be true:
implementation-plan.md reflects the phase as completedocs/decisions/docs/decisions/adr-template.mddocs/audits/phase-NN-audit.mdAny of the following:
implementation-plan.md does not mark the phase completeThe skill MUST output:
VERDICT: PASS or VERDICT: FAILdocs/audits/phase-NN-audit.mddocs/glossary/markdown-glossary.md) is the sole source of truth for documentation update requirements.docs/decisions/adr-template.md) is the sole source of truth for ADR structure.This skill is bound to CLAUDE.md as a mandatory pre-completion check.
Claude must refuse to mark a phase complete if this audit returns FAIL.
When a phase audit passes:
A PASS verdict is an explicit grant of execution authority. Claude should complete all phase work—including documentation updates, ADR creation, and implementation-plan marking—without waiting for additional confirmation.