From correctless
Updates .correctless/ARCHITECTURE.md after features land or structure changes by scanning for undocumented trust boundaries, abstractions, patterns.
npx claudepluginhub joshft/correctless --plugin correctlessThis skill is limited to using the following tools:
This skill requires effective intensity `high` or above. Compute effective intensity as `max(project_intensity, feature_intensity)` using the ordering `standard < high < critical`.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
This skill requires effective intensity high or above. Compute effective intensity as max(project_intensity, feature_intensity) using the ordering standard < high < critical.
workflow.intensity from .correctless/config/workflow-config.json (project_intensity). If absent, default to standard..correctless/hooks/workflow-advance.sh status and read the Intensity: line (feature_intensity). If absent, use project_intensity alone.max(project_intensity, feature_intensity).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/.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}.md/cupdate-arch. It scans the codebase fresh each time. Partially written entries can be reviewed and corrected.