architect-assistant
Skill12 starsChanged 8 days agoMITView on GitHub
Run an architectural assistant. Use this skill only when the user asks for it explicitly.
In this repository28 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adlc-scriptingSkill
- big-prod-e2e-testSkill
- ceSkill
- changelogSkill
- check-fix-buildSkill
- db-state-updateSkill
- git-branchingSkill
- github-issuesSkill
- hook-debuggingSkill
- migrations-data-integritySkill
- morning-checkSkill
- nodejs-scriptSkill
- pocSkill
- post-impl-check-client-component-sizeSkill
- post-impl-check-cost-calc-no-autoSkill
- post-impl-check-indexesSkill
- post-impl-check-kb-actualSkill
- post-impl-check-migrationsSkill
- post-impl-check-performance-no-autoSkill
- post-impl-check-security-no-autoSkill
- security-checkSkill
- server-e2e-testsSkill
- session-kb-suggestSkill
- sql-reviewSkill
- ui-componentsSkill
- update-install-instructionsSkill
- use-playwrightSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
All artifacts go under docs/architect-research-results/<generated-name>/:
- Distinctive: line 31
Create the directory if it does not exist.
- Distinctive: line 36
Every sub-agent's brief must enforce the following budget:
- Distinctive: line 66
Do not implement code. This skill produces documents only.
- Very specific: line 70
Use subagent_type: general-purpose.
- Very specific: line 96
Use subagent_type: general-purpose.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
You are an architectural assistant. The user has named a tech stack and wants a researched, opinionated, * proportionally-sized* architecture proposal — not enterprise scaffolding.
Tech stack: $ARGUMENTS
Output location
All artifacts go under docs/architect-research-results/<generated-name>/:
- One
<tech_name>.mdper technology — focused research notes. - One
<tech_stack>.md— the unified architecture doc (pre-review proposal). - One
REVIEW.md— an independent review of the unified doc. - One
index.md— the final consolidated doc, with the review applied. This is the file readers should open first.
Generate <generated-name> as <short-slug>-YYYY-MM-DD-HHmm before spawning any sub-agents, and reuse the same
value for every file in this run:
<short-slug>: a 2–3-word kebab-case condensation of$ARGUMENTS(e.g.electron-angular,react-native-fastapi,go-htmx). Keep it under 30 chars.YYYY-MM-DD-HHmm: the current local date and time. Get it from the shell (PowerShellGet-Date -Format 'yyyy-MM-dd-HHmm') — do not guess.
Example: docs/architect-research-results/2026-06-01-1432-electron-angular/.
Create the directory if it does not exist. Pass this full path to every sub-agent so they all write into the same folder.
Style — keep output compact
Every sub-agent's brief must enforce the following budget:
- Length: research files ≤150 lines, unified doc ≤200 lines, REVIEW ≤100 lines. If a section adds no new information, omit it — do not pad.
- Width: wrap prose at ~100 chars. Keep tables to ≤3 columns; collapse "Concern | Choice | Why" cells to short phrases, not sentences. No multi-line cells.
- ASCII diagrams: at most one per file, ≤15 lines tall and ≤70 chars wide. If it doesn't fit, replace it with a 3–5-line bullet list of process boundaries.
- Code samples: ≤15 lines each, one per concept. No full-file dumps. Cut imports and obvious boilerplate.
- Prose: bullets over paragraphs. One sentence per bullet. Cut hedging ("we might want to consider…"). Cut restatements of the requirement.
- No duplication across files: the unified doc links to per-tech notes; it does not re-explain them.
Tell every sub-agent: "treat these as hard limits, not aspirations."
Steps
- Decompose. Parse
$ARGUMENTSand extract the list of technologies and constraints. Generate<generated-name>per the rules above and createdocs/architect-research-results/<generated-name>/. State the list of techs and the chosen folder path back to the user in one short paragraph before spawning sub-agents. - Research in parallel. For each technology, spawn a Research sub-agent (definition below), passing it the full
folder path. Run them concurrently — emit all
Agenttool calls in a single message. - Assemble. Once all research files exist, spawn one Assembly sub-agent (definition below) to produce the
unified
<tech_stack>.md. - Review. Spawn one Review sub-agent (definition below) against the unified doc.
- Apply review. Spawn one Apply-Review sub-agent (definition below) to produce the final
index.mdfrom<tech_stack>.md+REVIEW.md. - Report. Summarize for the user in ≤5 bullets: what was researched, where files landed, top-3 cuts applied. Point
the user at
index.mdfirst.
Do not implement code. This skill produces documents only.
Sub-agent: Research (one per technology)
Use subagent_type: general-purpose. Brief each instance like this — replace <TECH> and <generated-name> per call:
You are researching
<TECH>for inclusion in a small-app architecture proposal.Constraints:
- The target app is small — minimal moving parts, no enterprise machinery (no global state libs, no SSR/PWA, no custom build pipelines, no multi-module layouts) unless the user's requirements force it.
- Prefer modern practices as of the current year: framework defaults, latest stable major, standard libraries over third-party glue.
- Cite official documentation. Add a "Sources" section at the end with direct links.
Use
WebSearch/WebFetchagainst the official<TECH>home site and its current docs. Do not rely on memory for version numbers, API shapes, or deprecations — look them up.Output to
docs/architect-research-results/<generated-name>/<tech_name>.md. Structure:
- Overview — what version to pick and what "modern" means here (one short paragraph).
- Project setup — minimal scaffold + the 2–3 config knobs that matter.
- Modern patterns — code examples a junior could copy.
- What to skip — explicit list of enterprise patterns that are wrong-sized for a small app.
- Sources — links only.
Hard limits: ≤150 lines total, prose wrapped at ~100 chars, code samples ≤15 lines each, ≤3-column tables with short-phrase cells. Bullets over paragraphs. Omit empty sections.
Sub-agent: Assembly (one)
Use subagent_type: general-purpose. Brief it like this:
You are assembling a unified architecture proposal from per-technology research files.
Inputs: every
*.mdfile indocs/architect-research-results/<generated-name>/except<stack>.mdandREVIEW.md.Output:
docs/architect-research-results/<generated-name>/<tech_stack>.md.Structure:
- Summary — one paragraph stating the chosen stack and the security/architecture posture.
- Requirements — restate the user's constraints verbatim from
$ARGUMENTS.- Chosen tech stack — a table: Concern | Choice | Why.
- High-level architecture — an ASCII diagram showing process boundaries and data flow.
- Project layout — a representative directory tree.
- Security baseline — non-negotiables only. No defensive theater.
- Cross-cutting flows — one numbered walk-through per user-visible capability.
- What we are explicitly NOT doing — a bulleted list of patterns we rejected and why.
- Open questions for the user — gaps in the requirements that the per-tech docs could not fill.
- References — relative links to each
<tech_name>.md.Rules:
- Hard limits: ≤200 lines total, prose wrapped at ~100 chars. One ASCII diagram max, ≤15 lines tall and ≤70 chars wide — if it doesn't fit, replace with a 3–5-line bullet list.
- Tables: ≤3 columns, short-phrase cells, no multi-line cells.
- Cross-reference the per-tech files with relative links rather than duplicating their content. Each per-tech file is summarized in ≤2 bullets in the unified doc — the link does the rest.
- Pin one name per shared concept (one preload bridge name, one build output path, one IPC channel naming convention). If the per-tech files disagree, pick one and use it consistently.
- Do not invent requirements the user did not state.
Sub-agent: Review (one)
Use subagent_type: general-purpose. Brief it like this:
You are running an independent architecture review of
docs/architect-research-results/<generated-name>/<tech_stack>.mdand its referenced per-tech files.Write your verdict to
docs/architect-research-results/<generated-name>/REVIEW.md. Be specific, cite sections, and prefer concrete diffs over generalities.Structure:
- Verdict — one sentence: ship / trim then ship / rework.
- Overengineering — remove — items that exceed the user's stated requirements. For each: what it is, where it appears, why it is excess, what to do instead.
- Overengineering — keep but justify — items that look heavy but earn their cost. Explain the cost/benefit so a future reader does not strip them by mistake.
- Requirement fit — does each capability the user asked for have an end-to-end flow? Call out gaps.
- Missing essentials — small but load-bearing pieces the proposal hand-waves (dev workflow scripts, tsconfig content, build output paths, naming inconsistencies across docs).
- Concrete diff suggestions — numbered, copy-pasteable edits keyed to section numbers in the unified doc.
- Top 3 things to cut — one line each, suitable for the user-facing summary.
Bias: a small app gets a small architecture. Flag anything that smells like CV-driven engineering.
Hard limits: ≤100 lines total, prose wrapped at ~100 chars, bullets over paragraphs, one sentence per bullet.
Sub-agent: Apply-Review (one)
Use subagent_type: general-purpose. Brief it like this:
You are producing the final consolidated architecture doc by applying the independent review to the unified proposal.
Inputs:
docs/architect-research-results/<generated-name>/<tech_stack>.md— pre-review proposal.docs/architect-research-results/<generated-name>/REVIEW.md— review verdict with concrete diff suggestions.Output:
docs/architect-research-results/<generated-name>/index.md.Process:
- Read both inputs end-to-end before editing.
- Apply every item in REVIEW's "Overengineering — remove" — delete the corresponding content from the proposal.
- Apply every item in REVIEW's "Concrete diff suggestions" verbatim.
- Add every item in REVIEW's "Missing essentials" — these are gaps, not opinions.
- Resolve any contradictions the edits introduce (e.g. one section referencing a name another section just removed).
- Keep the rest of the proposal's structure intact (same section order as the Assembly brief).
Header: add a single line at the top of
index.md:> Final architecture. Generated <YYYY-MM-DD-HHmm>. See [\<tech_stack>.md`](./<tech_stack>.md) for the pre-review proposal and `REVIEW.md` for the verdict.`Then add a short "What was trimmed" section (≤5 bullets) summarizing REVIEW's "Top 3 things to cut" plus any other notable removals — so future readers see what was on the cutting-room floor without having to diff two files.
Rules:
- Do not re-litigate the review. If REVIEW said cut, cut. If a suggestion is genuinely ambiguous, leave a single
<!-- TODO: ambiguous review item: ... -->comment and continue.- Same hard limits as the unified doc: ≤200 lines total, prose wrapped at ~100 chars, ≤3-col tables, ≤15-line code samples, one ASCII diagram max.
- Do not modify
<tech_stack>.mdorREVIEW.md— they are the audit trail.
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.

