agentleFS
NashEQifyNashEQify/forge/skills/sectional_deep_review/SKILL.md

sectional-deep-review

Skill2 starsChanged 6 days agoMITView on GitHub

Deep review for a large foundation spec (>1000 lines, many subsections) by splitting it into pattern groups + a final full-spec composition pass. Triggers when reviewing a large foundation spec that needs pattern-group splitting (review execute, type=sectional); NOT for a small spec (use spec_board).

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read and follow framework/work-principle.md before taking up work.

    line 18
  2. Distinctive:

    Never reviewed OR significantly changed.

    line 31
  3. Distinctive:

    Spec structure: read it completely. Inventory subsections (number, title, lines).

    line 46
  4. Very specific:

    Before initiating a software review intended to satisfy a mandatory result, readiness or completion boundary, load …

    line 62
  5. Distinctive:

    After all sectional fixes.

    line 105
  6. Very specific:

    Not for small specs (<300 lines) — use spec_board directly for those.

    line 152
  7. Very specific:

    No cross-spec check — use architecture_coherence_review.

    line 154
  8. Distinctive:

    No standalone fixes — fixes by MCA, under Buddy's coordination.

    line 155
  9. Distinctive:

    All pattern groups individually reviewed and fixed.

    line 168
  10. Distinctive:

    Abort: not foreseen — escalate to the user instead of aborting.

    line 181
  11. Very specific:

    No code review → code_review_board.

    line 188
  12. Very specific:

    No cross-spec review → architecture_coherence_review.

    line 189
  13. Distinctive:

    NOT: all groups in one pass. INSTEAD group by group, SAVE in between.

    line 196
  14. Distinctive:

    Does not fit in one session.

    line 268
  15. Distinctive:

    No uncommitted WIP on the relevant files.

    line 286

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Read and follow framework/work-principle.md before taking up work. Resolve this reference against the framework root; retain the consumer CWD.

Skill: sectional-deep-review

Buddy checklist + operational detail for deep review of large foundation specs. Board runs themselves follow spec_board/SKILL.md.

When to call

  • Spec > 1000 lines with > 5 subsections.
  • Foundation character (consumed by many others).
  • Never reviewed OR significantly changed.
  • Cross-spec interfaces as the primary risk.
  • A single board pass would spread reviewers thin.

Sequence

PHASE 0 — PREP (structure → cross-ref → groups → order → briefs)
PHASE 1 — SECTIONAL REVIEWS (N groups, fixed individually)
PHASE 2 — FULL REVIEW (Deep Board + discourse on the complete post-fix spec)
PHASE 3 — CONVERGENCE + DONE

Phase 0 — PREP (Buddy)

  1. Spec structure: read it completely. Inventory subsections (number, title, lines). Identify internal dependencies.
  2. Cross-reference map: per subsection: consumers (SPEC-MAP), neighbour refs (grep), code impl (src/), consumer assumptions. Targeted first, then complete.
  3. Pattern groups: 3-5 groups by functional cohesion, shared consumers, internal coupling. 3-8 sections each, ~300-700 lines. Max 800 per group. Per group: sections + core risk + board mode + reference brief.
  4. Order: dependency order. Critical groups first. Max 1 Deep.
  5. Reference briefs: per group: neighbour passages, code files, consumer expectations.

Mandatory consuming owner

Before initiating a software review intended to satisfy a mandatory result, readiness or completion boundary, load skills/_protocols/evidence-pointer-schema.md §9. Resolve one exact owner and capture before dispatch. Declare code subject state/output exclusions before enumeration and check that they omit no required reviewed inputs. Use persisted-success capture stdout for producer metadata and pass each assigned slot, scope/focus and history neutrally. Preserve complete returns verbatim with actual actors, paths and raw-byte digests before consumption. A canonical verdict path is only a locator; retain prior payloads before replacing it. Buddy's explicit current decision selects the current reports of the final applicable review and names any history; it answers each adoption diagnostic. Adopt it through §9, then check the applicable policy before any mandatory result/readiness write or completion. Current negative evidence supports repair; it grants no success permission. Identity does not replace substantive coverage, source interpretation, severity/risk rules or authorization.

Preserve the parent review owner's exact identity through group/full/convergence handoffs; nested board calls must not create competing captures. Each relevant fix requires retry and fresh capture before its existing applicable verification. Earlier group reports remain attributed history after later fixes. Completion consumes the complete-spec final/convergence attempt, never accumulated old group approvals. Its explicit decision must pass spec_success before forward task writes.

Phase 1 — SECTIONAL REVIEWS

Each group = its own board run. Fixed individually.

Per group:

  1. Agents receive: relevant sections + reference brief + dispatch template (GAP-03).
  2. Board mode:
    • LOAD-BEARING / ARCH-marked → Deep.
    • >500 lines → Deep.
    • Known cross-spec risks → Deep.
    • Otherwise → Standard (escalates on ≥1C / ≥3H).
  3. Board run per spec_board/SKILL.md (team selection, assembly, dispatch).
  4. Chief consolidates. Deep: + discourse → Chief-2.
  5. SAVE (NON-NEGOTIABLE).
  6. NEEDS-WORK → fix (MCA, only sections of this group) → spec_version bump → SAVE.

Phase 2 — FULL REVIEW

After all sectional fixes. Complete updated spec.

  1. Reference: full neighbour specs + code interfaces + consumer specs.
  2. Focus: cross-pattern composition, gaps between groups, systemic issues.
  3. Context-isolated — agents do NOT know the sectional findings.
  4. Foundation flag → chief gets the DR scorecard.
  5. Board run per spec_board/SKILL.md (Deep + discourse).
  6. SAVE → fix on NEEDS-WORK.

Phase 3 — CONVERGENCE

Standard Deep Convergence (spec_board/SKILL.md): Pass 2+: 4 agents (Adv + Adv2 + Impl + Impact), context-isolated. Final: 2 agents (Adv + Impl). 0C + 0H → board_result = APPROVED after current spec_success qualification.

Post-pass (NON-NEGOTIABLE)

  • SAVE after EVERY group and after the full review.
  • Sectional fixes committed individually.
  • Bump spec_version on every fix.
  • Content preservation: → _protocols/content-preservation.md.

Contract

INPUT

  • Required: spec > 1000 lines with > 5 subsections.
  • Required: foundation character (consumed by many others).
  • Required: SPEC-MAP read (cross-reference map derivable).
  • Optional: previous board results — for delta judgment.
  • Context: spec_board/SKILL.md (board runs follow its mechanics), _protocols/content-preservation.md, dispatch-template.md.

OUTPUT

DELIVERS:

  • Sectional findings: per pattern group: board verdict + findings + fixes (committed individually).
  • Full-spec verdict: Deep Board + discourse on the entire post-fix spec.
  • Convergence result: 0C+0H after every pass (Deep Convergence).
  • SAVE after every group: persisted review files.

DOES NOT DELIVER:

  • Not for small specs (<300 lines) — use spec_board directly for those.
  • No cross-spec check — use architecture_coherence_review.
  • No standalone fixes — fixes by MCA, under Buddy's coordination.

ENABLES:

  • Review: deep review for foundation specs that are too large for a single board pass.
  • Build specify: bring a foundation spec to board-ready level.
  • Convergence: structured progress across groups + a full-spec pass.

DONE

  • Final applicable full-spec/convergence decision adopted and spec_success checked before review-derived forward writes, via task_status_update with the exact owner.
  • All pattern groups individually reviewed and fixed.
  • Full-spec Deep Board + discourse on the entire post-fix spec executed.
  • Convergence: 0C+0H after Deep Convergence (Pass 2+: 4→2 agents).
  • SAVE after every group and after the full review.
  • spec_version bumped on every fix.

FAIL

  • Retry: NEEDS-WORK → fix within the group → spec_version bump → next pass (convergence_loop).
  • Escalate: Deep Convergence max 3 passes without 0C+0H → escalate to the user.
  • Abort: not foreseen — escalate to the user instead of aborting.

Boundary

  • For small specs (<300 lines) → spec_board Standard directly, not sectional.
  • No code review → code_review_board.
  • No cross-spec review → architecture_coherence_review.

Anti-patterns

  • NOT split sections arbitrarily. INSTEAD by semantic boundaries (subsystem, phase, component). Because: arbitrary splits tear context — reviewers lose the thread.
  • NOT all groups in one pass. INSTEAD group by group, SAVE in between. Because: 300+ lines per group saturates attention; multiple groups in a row makes it worse.
  • NOT ignore findings of one group before fixing the next group. INSTEAD fix within the group, bump spec_version, then the next group. Because: cascading findings + content preservation.
  • NOT final review without a complete tracking table of all sub-group findings. INSTEAD the consolidation-preservation cascade. Because: silent loss threatens at sectional level too.

Skill comparison (boundary detail)

Dimensionspec_boardsectional-deeparchitecture_coherence_review
Specs scope11 (large foundation)All in a contract group
Sectional splitNoYes (pattern groups)By cluster
Passes1+ (convergence)Sectional + full + convergence2
Cross-ref in agent contextNoYesYes (complete)
Typical agent count4-720-3520-40+

Cross-reference map (Phase 0 detail)

DimensionSourceQuestion
Consumed-bySPEC-MAPWhich specs consume this section?
HC / neighbour refsgrep + readWhich places reference this pattern?
Code implsrc/Does code exist? Gaps?
Consumer specsSPEC-MAP + readWhat assumptions do consumers make?

Agent dispatch (overall)

PhaseModeTeamDiscourse
Sectional (standard)Standard4 + specialistsBuddy decision
Sectional (deep)Deep7 + specialistsALWAYS
Full reviewDeep7 + specialistsALWAYS
Convergence 2+Deep4ALWAYS
VerificationDeep2No

Specialists per group (IN ADDITION to the base team):

Group contentAgent
API, schema models (e.g. Pydantic), interface schemacode-api-contract
Token budget, readabilityboard-consumer
Security, authboard-adversary-2
Cross-spec interfacesboard-impact

Typical: ~26-32 agents + discourse + convergence.

Architecture (responsibility split)

sectional-deep-review    → WHAT (scoping, grouping, cross-ref, order)
  └── spec_board         → HOW (agents, discourse, convergence)
       └── Board agents  → reviews, findings

Artifact paths

ArtifactPath
Sectional reviewdocs/reviews/board/{spec}-{group}-{role}-pass{N}.md
Sectional verdictdocs/reviews/board/{spec}-{group}-verdict-pass{N}.md
Sectional discoursedocs/reviews/board/{spec}-{group}-discourse-{role}.md
Full reviewdocs/reviews/board/{spec}-full-{role}-pass{N}.md
Full verdictdocs/reviews/board/{spec}-full-verdict-pass{N}.md

Session planning

Does not fit in one session. Realistic pacing per spec:

  • Session A: phase 0 (prep) + groups 1-2.
  • Session B: groups 3-4 + fixes.
  • Session C: full review + convergence.

Constraints

  • Dispatch neutral. No Buddy analysis in the prompt.
  • Focus points from cross-ref YES, solution hypotheses NO.
  • Full review: context-isolated (does not know the sectional findings).
  • Content preservation on fixes: → _protocols/content-preservation.md.

Pre-conditions

  • docs/specs/SPEC-MAP.md is up to date.
  • Target spec exists in docs/specs/.
  • Neighbour specs exist.
  • No uncommitted WIP on the relevant files.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.