architecture-builder
Skill4 starsChanged 4 months agoMITView on GitHub
Use to produce the technical architecture doc and engineering principles for a mobile app. Used primarily by the CTO agent. Triggers on "design the architecture", "pick the stack", or as part of /app-plan.
In this repository31 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
- git-pr-strategySkill
- growth-analysisSkill
- house-conventionsSkill
- ic-workflowSkill
- intent-traceSkill
- interaction-motionSkill
- localisationSkill
- mutation-testingSkill
- parallel-orchestratorSkill
- performance-reviewSkill
- policy-checkerSkill
- prd-builderSkill
- process-tieringSkill
- requirements-intakeSkill
- role-activationSkill
- runtime-gateSkill
- spec-criticSkill
- sprint-plannerSkill
- support-miningSkill
- team-protocolSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 58
Every PR ships with tests
- Very specific: line 59
No force-unwraps (iOS) / no !!
- Distinctive: line 60
Every screen has accessibility labels and a snapshot test
- Distinctive: line 61
No new third-party dep over 200KB without written exception
- Distinctive: line 68
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 213,895 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.
docs/20-architecture.md sections
- Platform decision — iOS / Android / both, with order if sequential.
- iOS stack —
- Swift version (latest stable)
- Minimum iOS target — resolve
knowledge/stack-defaults.md's relative rule (flagship = latest major minus one) to a concrete number here, and record how you resolved it - UI: SwiftUI by default; UIKit only if PRD demands something SwiftUI struggles with
- State:
@Observable+@MainActoron ViewModels only (Combine /@Published/ObservableObjectare forbidden —knowledge/ios-conventions.md) - Networking: URLSession + async/await, or a named lib
- Persistence: SwiftData (content apps) or GRDB+SQLite/FTS5 (camera/media) — pick by PRD complexity
- DI: lightweight — protocol + initializer injection
- Testing: Swift Testing (
@Test/@Suite) for unit and domain tests, not XCTest. UI automation stays XCUITest — it is XCTest-based, has no Swift Testing equivalent, andruntime-gateruns it, so a blanket "never XCTest" would ban the suite the release gate expects. Name the snapshot lib. State the coverage floor for the pure-Swift domain engine package (knowledge/stack-defaults.md)
- Android stack —
- Kotlin version
- minSdk / targetSdk (set based on PRD users)
- UI: Jetpack Compose
- Architecture: MVVM or MVI, picked once
- Networking: Retrofit + OkHttp + Kotlinx Serialization (or named alternative)
- Persistence: Room (or named alternative)
- DI: Hilt (flagship) or Koin (utility tier)
- Async: Coroutines + Flow
- Testing: JUnit, Turbine, MockK, Paparazzi (screenshot), Compose UI test
- Shared concerns — auth, analytics, crash reporting, feature flags, remote config, push.
- Backend interface — sketch the APIs the apps need. If backend is in scope, name the service shape.
Repository layout —
/ ├── ios/ # Xcode project / SwiftPM workspace ├── android/ # Gradle multi-module ├── backend/ # if in scope ├── docs/ # all team docs └── specs/ # ticket-level specs if any- CI / release — branch model, build pipeline, signing, distribution channel (TestFlight, Play internal track).
- Non-functional budgets — cold start, memory, payload size, accessibility floor (WCAG 2.1 AA).
- Risks — top 3 with mitigations.
docs/21-engineering-principles.md
A short rulebook. Examples to include or adapt:
- Every PR ships with tests
- No force-unwraps (iOS) / no
!!(Android) - Every screen has accessibility labels and a snapshot test
- No new third-party dep over 200KB without written exception
- Strings are localized from day one
- Logs go through the named logger; no
print/Log.din shipped code - Public API for a module is documented in a
README.mdat the module root
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.

