← ClaudeAtlas

forge-alignlisted

This skill should be used to find and fix code-consistency drift between similar features in a Context Forge project — phrases like "forge-align", "check code consistency", "these features are written differently", "the CRUD features are inconsistent", "unify the patterns", or "why does every feature look different". It maps feature families via the forge-aligner agent, reports divergences against the exemplar, registers missing patterns in patterns.md, and turns approved alignments into refactor units built with the normal discipline.
yerros/context-forge · ★ 0 · AI & Automation · score 75
Install: claude install-skill yerros/context-forge
# forge-align Fix the classic vibe-coding failure: five CRUD features, five dialects. Detection is delegated; judgment and the fix pipeline live here. The prevention side (specs that point at exemplars) lives in `forge-spec`/`forge-build`; this skill is the detection-and-repair side. ## Argument Text after the command scopes the check (e.g. `/forge-align the CRUD features` or `/forge-align src/features`). No argument → whole-codebase family discovery. ## Steps ### 1. Detect (delegated) Spawn the `forge-aligner` agent (sonnet-pinned, read-only) with the scope. It discovers feature families, compares siblings against the registered pattern (or the dominant member), and returns divergences by severity plus proposed patterns.md entries. Its reading stays out of this session. ### 2. Judge with the user Present the drift report. For each family, decide together: which pattern is canonical (the aligner's recommendation is a default, not a verdict — the user may prefer the minority version), which divergences are worth fixing, and which are accepted as-is (record a one-line lesson for accepted ones so they stop being flagged). ### 3. Register the patterns Write the approved entries into `context/patterns.md` (create from `${CLAUDE_PLUGIN_ROOT}/skills/forge-init/templates/context/patterns.md` if absent): pattern name, exemplar path, must-match bullets. Keep it within ~2 KB — pointers, not essays. This is the prevention half: from now on `forge-architect` writes specs that re