agentleFS
DataArtDataArt/artisyn-log-hub/.claude/skills/architect-assistant/SKILL.md

architect-assistant

Skill12 starsChanged 8 days agoMITView on GitHub

Run an architectural assistant. Use this skill only when the user asks for it explicitly.

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
  1. Very specific:

    All artifacts go under docs/architect-research-results/<generated-name>/:

    line 14
  2. Distinctive:

    Create the directory if it does not exist.

    line 31
  3. Distinctive:

    Every sub-agent's brief must enforce the following budget:

    line 36
  4. Distinctive:

    Do not implement code. This skill produces documents only.

    line 66
  5. Very specific:

    Use subagent_type: general-purpose.

    line 70
  6. Very specific:

    Use subagent_type: general-purpose.

    line 96

≈ “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.

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

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>.md per 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 (PowerShell Get-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

  1. Decompose. Parse $ARGUMENTS and extract the list of technologies and constraints. Generate <generated-name> per the rules above and create docs/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.
  2. Research in parallel. For each technology, spawn a Research sub-agent (definition below), passing it the full folder path. Run them concurrently — emit all Agent tool calls in a single message.
  3. Assemble. Once all research files exist, spawn one Assembly sub-agent (definition below) to produce the unified <tech_stack>.md.
  4. Review. Spawn one Review sub-agent (definition below) against the unified doc.
  5. Apply review. Spawn one Apply-Review sub-agent (definition below) to produce the final index.md from <tech_stack>.md + REVIEW.md.
  6. Report. Summarize for the user in ≤5 bullets: what was researched, where files landed, top-3 cuts applied. Point the user at index.md first.

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 / WebFetch against 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:

  1. Overview — what version to pick and what "modern" means here (one short paragraph).
  2. Project setup — minimal scaffold + the 2–3 config knobs that matter.
  3. Modern patterns — code examples a junior could copy.
  4. What to skip — explicit list of enterprise patterns that are wrong-sized for a small app.
  5. 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 *.md file in docs/architect-research-results/<generated-name>/ except <stack>.md and REVIEW.md.

Output: docs/architect-research-results/<generated-name>/<tech_stack>.md.

Structure:

  1. Summary — one paragraph stating the chosen stack and the security/architecture posture.
  2. Requirements — restate the user's constraints verbatim from $ARGUMENTS.
  3. Chosen tech stack — a table: Concern | Choice | Why.
  4. High-level architecture — an ASCII diagram showing process boundaries and data flow.
  5. Project layout — a representative directory tree.
  6. Security baseline — non-negotiables only. No defensive theater.
  7. Cross-cutting flows — one numbered walk-through per user-visible capability.
  8. What we are explicitly NOT doing — a bulleted list of patterns we rejected and why.
  9. Open questions for the user — gaps in the requirements that the per-tech docs could not fill.
  10. 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>.md and 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:

  1. Verdict — one sentence: ship / trim then ship / rework.
  2. 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.
  3. 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.
  4. Requirement fit — does each capability the user asked for have an end-to-end flow? Call out gaps.
  5. Missing essentials — small but load-bearing pieces the proposal hand-waves (dev workflow scripts, tsconfig content, build output paths, naming inconsistencies across docs).
  6. Concrete diff suggestions — numbered, copy-pasteable edits keyed to section numbers in the unified doc.
  7. 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:

  1. Read both inputs end-to-end before editing.
  2. Apply every item in REVIEW's "Overengineering — remove" — delete the corresponding content from the proposal.
  3. Apply every item in REVIEW's "Concrete diff suggestions" verbatim.
  4. Add every item in REVIEW's "Missing essentials" — these are gaps, not opinions.
  5. Resolve any contradictions the edits introduce (e.g. one section referencing a name another section just removed).
  6. 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>.md or REVIEW.md — they are the audit trail.

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.