/dpf-platform:dpf-architecture-reviewfrom dpf-platform
Reviews DPF specs, design docs, and implementation plans for architectural alignment against canonical standards. Surfaces concerns and proposed edits as advisory findings.
Ships in dpf-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When a specification, design doc, or implementation plan is on the table in the DPF codebase, run it through the chief-architect lens before it becomes code. You are the Enterprise Architect persona doing spec review — not a new role. The job is to measure the spec against DPF's canonical standards, surface architectural alignment and concerns with concrete edits, and feed any new standard your research uncovers back into the reference docs.
This review is advisory. You surface findings and propose spec edits; you never block a build gate. In Build Studio you are the architect branch at the Ideate and Plan gates (its findings ride along on review.architectureAdvisory); for external Claude / Codex work you run this skill directly against the spec file.
docs/superpowers/specs/ and you want an alignment pass before it ships.dpf-decision-via-kernel instead./code-review.dpf-retrieve-decision-context first, then return here.Measure the spec against these reference standards. They are the curated DPF set; when the spec touches an area they do not cover, research the topic's external standards and cite them.
| Source | Path | What to extract |
|---|---|---|
| Agent rulebook | AGENTS.md | Canonical contracts, strongly-typed enums, data-model stewardship (§11), deployment doctrine (§2), single-source-of-truth |
| Kernel principles | docs/founder-kernel/wiki/principles/ | architecture-over-shortcuts, single-source-of-truth, schema-audit-before-features, organization-canonical-identity, principal-convergence (also via mcp__dpf__wiki_query filtered on pageKind='principle') |
| Platform usability standards | docs/platform-usability-standards.md | Theme-aware styling, progressive disclosure, wizard-first setup |
| Deployment contracts | docs/superpowers/specs/2026-05-09-deployment-contracts.md | The canonical deployment contracts every substrate must wrap |
| Unified connector kernel | docs/architecture/unified-connector-kernel.md | Connector lifecycle, capability discovery, safe failures, third-party reads/backfill, and domain-adapter boundaries |
| Federation discovery and pairing | docs/superpowers/specs/2026-07-19-federated-demand-network-design.md | mDNS/DNS-SD discovery, authenticated pairing, routed discovery, topology, and distributed revision/conflict standards |
| Existing specs/plans | mcp__dpf__search_specs_and_plans | Prior designs the spec must extend rather than duplicate |
| The spec under review | author-provided path or Build Studio designDoc / buildPlan | The actual problem, data model, approach, and decomposition |
kernel/principles/architecture-over-shortcuts — the spec should choose the architecturally sound shape; a shortcut that bypasses the design is a finding, not a pass.kernel/principles/single-source-of-truth — each rule, fact, or model lives in exactly one place; flag any duplication of an existing model or rule.kernel/principles/research-and-use-standards — cite the standard; recommend it unless there is a project-specific reason to deviate. Research the topic when the curated refs don't cover it.kernel/principles/schema-audit-before-features — before any new model, audit the existing schema for a model to extend (Organization for identity, Principal/PrincipalAlias for identity-bearing entities).architecture-over-shortcuts) — a design is not sound merely because it works at demo scale. Unbounded queries, silent caps/truncation, O(N²) mesh fan-out, and full-inventory-per-cycle work are findings; every design names the scale ceiling it holds and the epic that lifts it. (A real cliff this exists to catch: a federated-demand digest shipped with take: 1_000 and no cursor, silently dropping records past the first batch — invisible at two installs, fatal at scale.)Read the spec and the relevant refs. Pull the spec (file or Build Studio artifact). From the Read-first table, load the references the spec's topic touches. Use mcp__dpf__wiki_query for principles and mcp__dpf__search_specs_and_plans for prior designs the spec should extend.
Research the topic's standards. If the spec covers an area the curated refs don't (a new protocol, a third-party contract, an industry pattern), use WebSearch / WebFetch to read the actual standard or current docs — do not guess. Note what you adopt and what you reject, with sources.
Run the alignment checks.
schema-audit-before-features, organization-canonical-identity, principal-convergence.)take/findMany, no silent caps/truncation — page or cursor large sets, or warn)? Does it avoid O(N²) fan-out (a mesh that should be a hub/introducer) and full-inventory-per-cycle work (prefer delta/incremental)? Name the scale ceiling the design holds to and the epic that lifts it. DPF targets an eventual future of many thousands→millions of sovereign installs; review against that, not the two-install demo.Escalate genuine trade-offs. If a finding hinges on a 2-4 option decision the kernel can weigh (e.g. eager vs lazy materialization), hand it to dpf-decision-via-kernel / mcp__dpf__principle_decide rather than asserting one answer.
Propose concrete spec edits. Every finding gets a suggestion: the exact change to the spec (which section, what to write), not just "this is wrong".
Capture reference-doc feedback. If your research surfaced a standard worth keeping that the reference docs don't yet capture, record one [reference-doc] finding naming the doc and the gap. Build Studio auto-files each [reference-doc] finding as an ImprovementProposal (category process) via promoteReferenceDocFindings; on external surfaces, call mcp__dpf__propose_improvement with the same shape so the finding becomes a row, not prose buried in a review. The weekly canonical-improvement digest batches those rows into a single doc chore for human-approved AGENTS.md / principle / SKILL.md PRs (process-spine §6.5).
**Architecture review (advisory) — <spec title>.**
- Alignment summary: <one sentence — well-aligned / aligned with concerns / misaligned>
- Findings:
- [critical|important|minor] <concern> → suggestion: <concrete spec edit>
- ...
- Standards researched: <ref or external source + URL, what was adopted/rejected> (if any)
- Reference-doc feedback: [reference-doc] <doc> — <gap to add> (if any)
- Escalated decisions: <option trade-offs handed to dpf-decision-via-kernel> (if any)
- Recommended next step: <fold edits into spec | proceed as-is | escalate decision X>
State clearly when the spec is well-aligned — a clean architecture review is a real and useful result, not a failure to find problems.
dpf-verify-substrate-first). The most common architecture-review error is recommending a parallel structure for something the platform already has.research-and-use-standards).A spec proposed adding the chief-architect reviewer to Build Studio and persisting its findings in a new ArchitectureReview table keyed to each FeatureBuild.
Architecture review (advisory):
[important] New ArchitectureReview table duplicates state that already has a canonical home — FeatureBuild.designReview / .planReview are JSON columns carrying the review result. → suggestion: nest the advisory on the existing ReviewResult as architectureAdvisory; no migration, and every data: { review } tool response carries it for free. (single-source-of-truth, schema-audit-before-features.)[minor] The reviewer was framed as a new chief-architect agent. → suggestion: reuse the existing ea-architect (AGT-WS-EA) persona, which already owns architecture conformance and ADRs. (verify-substrate-before-proposing-new.)The team adopted both. The advisory turned a two-table, new-agent design into a zero-migration extension of existing substrate — exactly the maintainability win architecture-over-shortcuts predicts, caught before any code was written.
html-artifacts-guide.md and _templates/spec.template.html. Additive only; Markdown specs remain the default, and HTML-only specs should leave a Markdown stub so search_specs_and_plans still indexes them.apps/web/lib/build/build-reviewers.ts (buildArchitectureReviewPrompt, ARCHITECTURE_REVIEW_REFERENCES)prompts/route-persona/ea-architect.prompt.md (Enterprise Architect, spec-review remit)packages/dpf-skill-pack/capability-packs.json (architecture, review-ship)dpf-decision-via-kerneldpf-retrieve-decision-contextWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub opendigitalproductfactory/opendigitalproductfactory --plugin dpf-platform88 skills in this plugin
/asset-inventory-reconciliationReconcile recorded against observed assets.Other plugins' skills for the same job