architecture-builder
Skill5 starsChanged 8 days agoMITView on GitHub
On an app-dev-team project, use to produce docs/20-architecture.md and docs/21-engineering-principles.md during /app-init. The single source of the architecture's section list. Used by cto, and by tech-lead on utility tier.
In this repository25 other files it gives its agents.
- accessibility-gateSkill
- agent-isolationSkill
- board-doctorSkill
- brownfield-onboardingSkill
- business-modelSkill
- content-designSkill
- context-preflightSkill
- database-migrationSkill
- defect-huntingSkill
- dependency-policySkill
- design-systemSkill
- house-conventionsSkill
- ic-workflowSkill
- intent-traceSkill
- localisationSkill
- mutation-testingSkill
- parallel-orchestratorSkill
- performance-reviewSkill
- prd-builderSkill
- requirements-intakeSkill
- role-activationSkill
- runtime-gateSkill
- spec-criticSkill
- sprint-plannerSkill
- team-protocolSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Write the stack sections the roster's product type actually has.
- Very specific: line 54
Before handing off, run node "${CLAUDE_PLUGIN_ROOT}/scripts/requirements-conflict-scan.mjs" .
- Distinctive: line 60
Every PR ships tests for the layers its diff changes
- Very specific: line 61
No force-unwraps (iOS) / no !!
- Distinctive: line 62
Every screen has accessibility labels.
- Distinctive: line 63
No new third-party dep over 200KB without a written exception
- Distinctive: line 69
Every decision in §2 and §3 has one paragraph of "why" tied to the PRD.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 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.
Files
Architecture builder
Produce docs/20-architecture.md and docs/21-engineering-principles.md from docs/00-vision.md +
docs/10-prd.md. This is the only copy of the section list — cto.md and tech-lead.md point
here. Other roles cite sections by number (§4, §7, §8), so keep the numbers.
docs/20-architecture.md sections
Write the stack sections the roster's product type actually has. The list is a floor for mobile, not a template to fill in with N/A.
- Platform decision — iOS, Android, both, web, service. State the order if parallel isn't possible. Justify in one paragraph.
- Client stack — one subsection per client platform, one line per item, then one "why"
paragraph tied to the PRD:
- iOS — Swift version (latest stable); minimum iOS target resolved to a concrete number
per
stack-defaults.md§Resolving the iOS min target; UI: SwiftUI (UIKit only for a gap the PRD forces); state:@Observable+@MainActoron ViewModels only (no Combine /@Published/ObservableObject); networking: URLSession + async/await; persistence: SwiftData (content) or GRDB+SQLite/FTS5 (camera/media); DI: protocol + initializer injection; testing: Swift Testing for unit/domain, XCUITest for UI automation (runtime-gateruns it), the snapshot lib, and the domain package's coverage floor. - Android — Kotlin version; minSdk/targetSdk from the PRD's users; UI: Jetpack Compose; MVVM or MVI, picked once; Retrofit + OkHttp + kotlinx.serialization; Room + DataStore; DI: Hilt (flagship) or Koin (utility); Coroutines + Flow; JUnit, Turbine, MockK, Paparazzi.
- Web — framework and rendering model, hosting target, Node version, browser support
matrix, security-header and cookie posture (
web-conventions.mdis the default).
- iOS — Swift version (latest stable); minimum iOS target resolved to a concrete number
per
- Service or library stack — a
backend-service: runtime, datastore, hosting; alibrary: target platforms and the public API surface.nonewhen the product has neither. - Shared concerns — auth, analytics, crash reporting, feature flags, remote config, push — and the kill switch / forced update decision: how a shipped build can be disabled or forced to upgrade (remote-config flag, minimum-version check, or a written "none, because …"). Push, when in scope: provider (APNs / FCM / a vendor), where device tokens are stored and expired, the permission prompt's moment (after the user sees the value, never at first launch), and the notification categories; the APNs key and FCM project are founder setup rows.
- Backend interface — the APIs the apps need. Backend in scope → sketch the service shape; not → list the external services integrated against.
- Repository layout — top-level folders (
/ios,/android,/web,/backend,/docs) and, inside each app, the v1 structure fromstack-defaults.md§v1 structure: one app module plus a pure domain package, folders per feature. Name the split triggers; do not pre-build the target module layout. - CI / release — branch model, build pipeline, signing, distribution channel, and the store
platform requirements this release must meet (Play's minimum
targetSdk, App Store's minimum Xcode/SDK), each with the date last checked.release-managerblocks on a stale one. - Non-functional budgets — cold start, memory, payload size, accessibility floor (WCAG 2.1 AA); Core Web Vitals for web.
- Risks — top 3 technical risks, each with its mitigation.
Before handing off, run node "${CLAUDE_PLUGIN_ROOT}/scripts/requirements-conflict-scan.mjs" . —
exit 1 is a number in the architecture contradicting the PRD; resolve it with the PRD's owner.
docs/21-engineering-principles.md
A short, opinionated rulebook the pod is held to. Examples to include or adapt:
- Every PR ships tests for the layers its diff changes
- No force-unwraps (iOS) / no
!!(Android) - Every screen has accessibility labels; snapshot tests for the screens the impl spec names
- No new third-party dep over 200KB without a written exception
- Strings are localized from day one
- Logs go through the named logger; no
print/Log.din shipped code
Quality bar
Every decision in §2 and §3 has one paragraph of "why" tied to the PRD. If you can't write the "why", reconsider the choice.
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
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.

