ワンクリックで
cupdate-arch
Update .correctless/ARCHITECTURE.md after features land. Use after /cdocs or when the codebase structure has changed.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Update .correctless/ARCHITECTURE.md after features land. Use after /cdocs or when the codebase structure has changed.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | cupdate-arch |
| description | Update .correctless/ARCHITECTURE.md after features land. Use after /cdocs or when the codebase structure has changed. |
| allowed-tools | Read, Grep, Glob, Bash(git*), Edit, Write(.correctless/ARCHITECTURE.md), Write(docs/architecture/*), Write(.claude/rules/*.md) |
| interaction_mode | hybrid |
Shared constraints apply. Before executing, read
_shared/constraints.mdfrom the parent of this skill's base directory. All constraints there apply to this skill.
This skill requires effective intensity high or above. Compute effective intensity using the procedure in the shared constraints (_shared/constraints.md).
Intensity threshold: /cupdate-arch requires high minimum intensity to activate.
--force to override the intensity gate, or set workflow.intensity to high or above in .correctless/config/workflow-config.json--force, proceed normally — skip the gate entirely, no gate output.You are the architecture documentation agent. Your job is to keep .correctless/ARCHITECTURE.md current after features land.
Architecture updates take 5-10 minutes. The user must see progress throughout.
Before starting, create a task list:
Between each step, print a 1-line status: "Scanned codebase — found {N} undocumented abstractions. Drafting entries..." Mark each task complete as it finishes.
.correctless/ARCHITECTURE.md..correctless/specs/..correctless/verification/.Complementarity note: /cverify detects feature-scoped staleness. /cdocs updates entries for the current feature. This skill validates ALL entries, not just those affected by a single feature.
Before scanning for undocumented entries, validate that existing .correctless/ARCHITECTURE.md entries are still accurate. For each ABS-xxx, PAT-xxx, TB-xxx, ENV-xxx entry:
Enforced at field exists. When an Enforced at or Test field is empty, skip that entry's path validation.Test field exists, and grep it for the entry ID.Enforced at paths include all files that actually reference the abstraction as producers or consumers.Read .correctless/meta/drift-debt.json and surface open drift-debt items as candidates for entry updates or new entries. Open drift-debt items are presented alongside the validation findings. Dormant when drift-debt.json is absent or empty (PAT-019).
Entries with broken paths or missing test references are presented to the human one at a time with options:
1. Fix (recommended) — update the entry to reflect current paths
2. Delete — remove the entry (it's no longer relevant)
3. Skip — investigate later
Or type your own: ___
Compare the codebase against .correctless/ARCHITECTURE.md:
For each candidate, draft the structured entry:
Trust Boundary:
### TB-xxx: {name}
- **Crosses**: {what boundary}
- **Identity assertion**: {how identity is established}
- **Data sensitivity change**: {from → to}
- **Invariant**: {what must hold}
- **Violated when**: {condition}
Abstraction:
### ABS-xxx: {name}
- **What**: {description}
- **Invariant**: {what must hold}
- **Enforced at**: {file path}
- **Violated when**: {condition}
- **Test**: {how to check}
Pattern:
### PAT-xxx: {name}
- **Pattern**: {name}
- **Rule**: {convention}
- **Violated when**: {condition}
- **Test**: {how to check}
Present each entry to the human one at a time. Don't batch — each entry deserves individual consideration.
If .correctless/ARCHITECTURE.md exceeds ~5000 words after updates, suggest fragmentation:
docs/architecture/{section}.mdWhen running in autonomous mode (mode: autonomous in prompt context), use these defaults instead of pausing for human input.
When dispatched by /cauto, return autonomous decisions in the AUTONOMOUS_DECISIONS_START/AUTONOMOUS_DECISIONS_END format provided in the task prompt.
escalate: always. Default if deferred: skip — flag for human review. Rationale: architecture doc changes affect all future features and shape agent behavior across the project./cupdate-arch. It scans the codebase fresh each time. Partially written entries can be reviewed and corrected.Post-merge bug analysis. Use when a bug escapes to production. Traces which phase missed it and strengthens the workflow.
Fully-autonomous issue-resolution pipeline. Selects one open GitHub issue, branches off the fresh default branch, delegates root-cause + TDD fix to /cdebug (autonomous mode), verifies, runs the full regression suite, and — only if everything is green and CI-clean — opens a PR that closes the issue. Fail-closed: any inability to produce a verified fix aborts with an issue comment and no PR, preserving evidence. The issue→PR sibling of /cauto.
Update project documentation after a feature lands. Updates README, .correctless/AGENT_CONTEXT.md, .correctless/ARCHITECTURE.md, and feature docs. Run before merging.
Enforced TDD workflow. Write failing tests from spec rules, then implement. Use after /creview approves a spec.
Compare current model+HARNESS_VERSION pipeline metrics against stored baselines and produce a per-feature regression report. Use after Anthropic ships a model upgrade or when /cspec/cstatus surfaces a harness version_bumped advisory. Read-only on the fingerprint store; writes only the baseline file.
Show current Correctless workflow state, available commands, and suggested next steps. Run anytime to see where you are.