modules/home/programs/cli-agents/shared/skills/workflows/architect/SKILL.md
Full technical architect toolkit for pre-implementation due diligence. Covers prior art research, codebase impact analysis, design doc / RFC generation, acceptance criteria, and dependency mapping. Use when the user wants to do technical planning, architecture review, impact analysis, or due diligence before building. Triggers on /architect, "what's the impact of", "write an RFC", "design doc for", "what exists for this", "prior art", "acceptance criteria", "what would this affect".
npx skillsauth add not-matthias/dotfiles-nix architectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Technical architect toolkit that performs the due diligence an experienced architect/PM would do before committing to an implementation.
A standalone architecture document saved to .agents/docs/ containing:
The input can be:
If the input is vague, ask 2-3 clarifying questions using AskUserQuestion with concrete suggestions. Don't over-ask — this skill is about analysis, not discovery (that's /brainstorm's job).
Search for existing solutions before designing a new one.
Default (quick survey):
gh search repos and gh search code)Go deeper when:
Output format:
## Prior Art
| Solution | Type | Maturity | Notes |
|----------|------|----------|-------|
| [name](link) | library/tool/pattern | active/maintained/abandoned | key tradeoff |
**Recommendation:** Use X / Build custom because Y / Adapt Z
For changes to existing codebases, map the blast radius by actually reading the code.
Output format:
## Impact Analysis
### Directly Affected
- `path/to/file.rs:42` — Function X needs to change because...
- `path/to/schema.sql` — New column needed for...
### Indirectly Affected
- `path/to/consumer.rs` — Calls the modified function, may need updating
- `tests/test_feature.rs` — Tests will break, need updating
### Data / Migration Impact
- Database migration required: yes/no
- Config changes: yes/no
- API breaking change: yes/no
For greenfield projects or non-code topics, do a conceptual impact analysis instead (what systems, teams, or processes would be affected).
Write a concise design document. This is for review — it should be clear enough that someone who wasn't in the brainstorm can understand and critique it.
## Design
### Problem Statement
One paragraph: what problem are we solving and why now.
### Proposed Solution
Description of the chosen approach. Include diagrams (mermaid) when they clarify architecture or data flow.
### Alternatives Considered
| Alternative | Why Not |
|-------------|---------|
| Approach A | Tradeoff reason |
| Approach B | Tradeoff reason |
### Key Design Decisions
- **Decision 1**: Chose X over Y because Z
- **Decision 2**: ...
(Only non-obvious decisions. Skip self-evident choices.)
Define concrete, testable "done when" statements.
## Acceptance Criteria
- [ ] Users can [specific action] and see [specific result]
- [ ] Performance: [specific metric] under [specific conditions]
- [ ] Error case: When [condition], the system [behavior]
- [ ] Existing [feature/test] still works unchanged
Guidelines:
Identify what blocks what and what order things should happen in.
## Dependencies & Sequencing
### Critical Path
1. [First thing that must happen] — blocks everything else
2. [Next thing] — depends on #1
3. ...
### Spikes / Unknowns
- [ ] **Spike: [question]** — Need to verify [assumption] before committing to [decision]. Estimated effort: [small/medium].
### External Dependencies
- [Team/service/API] — Need [what] from them by [when/before what]
Assemble all sections into a single document and save to .agents/docs/YYYY-MM-DD-architect-<slug>.md.
Tell the user where the file was saved and give a 2-3 sentence summary.
path/to/file.rs:line format so the reader can jump there.documentation
Save notes, journal entries, and research to the personal-notes Obsidian vault (personal-vault-v2). Use when the user asks to 'save note', 'save to notes', 'write to personal notes', 'save to daily notes', 'note this down', or wants to persist findings/analysis to their personal vault.
documentation
Use whenever the user asks to address, fix, resolve, review, or respond to pull-request comments or review feedback.
development
Apply Not Matthias's Rust-first personal coding style. Use whenever the user explicitly asks to apply or review their code style, make Rust match their preferences, perform a style pass, or simplify/refactor according to their conventions. Inspect only task-touched code, honor local project conventions first, and make only safe opt-out style edits.
development
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.