architecture
Multi-agent architectural analysis following the Holographic Development Chain. Use when user asks to design architecture, plan implementation, analyze system structure, or says "архитектура", "план", "спроектируй", "как лучше сделать".
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-11
- Stars
- ★ 7
- Forks
- 8
01 前言 Front Matter
- name
- architecture
- description
- Multi-agent architectural analysis following the Holographic Development Chain. Use when user asks to design architecture, plan implementation, analyze system structure, or says "архитектура", "план", "спроектируй", "как лучше сделать".
- argument-hint
- <system or feature description>
03 SKILL.md 正文
Holographic Architecture Analysis
When to use
- Designing the architecture for a new system or feature ("архитектура", "план", "спроектируй").
- Analysing an existing codebase structure for patterns, antipatterns, and dependency issues.
- Making a cross-cutting architectural decision that spans multiple modules or services.
Task: $ARGUMENTS
Phase 0: Load Architecture Rules
BEFORE any analysis, read the rules database:
~/.claude/skills/architecture-rules/references/checklist.md— pre-implementation checklist~/.claude/skills/architecture-rules/references/patterns.md— pattern selection guide~/.claude/skills/architecture-rules/references/antipatterns.md— what to detect and avoid~/.claude/skills/architecture-rules/references/stack-compat.md— technology compatibility~/.claude/skills/architecture-rules/references/duplication.md— duplication thresholds
Apply these rules throughout ALL subsequent phases.
Phase 1: Base Agents (Parallel)
Launch 3 agents simultaneously:
Agent 1: Architect
Analyze structure, dependencies, patterns. If codebase exists — use Explore agent to map:
- Directory structure and module boundaries
- Data flow and control flow
- Existing patterns and conventions
- Integration points and APIs
- Return list of 5-10 key files to read
Agent 2: Critic
Search for problems, vulnerabilities, anti-patterns:
- OWASP top 10 relevant issues
- Performance bottlenecks
- Scalability concerns
- Technical debt indicators
- Over-engineering or missing abstractions
- Return specific file:line references
Agent 3: Validator
Verify facts and check for hallucinations:
- Do the proposed technologies actually work together?
- Are version compatibilities correct?
- Do the APIs referenced actually exist?
- Cross-check with official documentation
- Return verified facts vs unverified assumptions
Phase 2: Arbitration
After all 3 agents return:
- Read all key files identified by Architect
- Compare findings — where do agents agree/disagree?
- Resolve conflicts — pick best path with reasoning
- Rate confidence: X% for the chosen approach
Present as:
## Arbitration Result
### Agents Agree On:
- [Point] — all 3 confirm
### Disagreements:
- [Point] — Architect says X, Critic says Y
- Resolution: [chosen path + why]
### Confidence: X%
Phase 3: Design Options (2-3 Parallel Agents)
Launch architecture design agents with different philosophies:
Option A: Minimal Changes
Smallest possible change, maximum reuse of existing code
Option B: Clean Architecture
Optimal maintainability, elegant abstractions, proper separation
Option C: Pragmatic Balance
Speed + quality trade-off, ship fast but don't accumulate debt
Phase 4: Present & Recommend
For each option show:
- Component diagram (text-based)
- Files to create/modify
- Data flow
- Implementation phases (ordered steps)
- Estimated complexity
- Trade-offs
Your recommendation with reasoning and confidence %.
Phase 5: Implementation Blueprint
After user picks an option:
- Detailed file-by-file changes
- Build sequence (what first, what depends on what)
- Test strategy
- Checkpoint plan (when to verify)
Rules
- Architecture FIRST, code SECOND
- Find root cause, not symptoms
- Simple > clever
- 3 repeating lines > premature abstraction
- Dead code = delete, don't comment
- Each logic in separate file — defragmentation
- Checkpoints after each phase
04 同仓库更多 Skills
wave-audit
3-wave parallel audit — Wave 1 discovery (4 agents), Wave 2 verification (4 agents), Wave 3 cross-optimization (1 synthesizer). Each wave runs agents in parallel. Combines security review, runtime analysis, quality check, and constructor pattern into one unified workflow with evidence grading and Go/No-Go verdict.
vm-provision
End-to-end VPS provisioning — select provider → plan → provision → harden → verify (ssh-check + firewall-diff hard-gate) → handoff. 6 phases, ≥6 AskUserQuestion calls, defensive-only. Stops if either verification primitive fails.
visual-explainer
Generate beautiful, self-contained HTML pages that visually explain systems, code changes, plans, and data. Use when the user asks for a diagram, architecture overview, diff review, plan review, project recap, comparison table, or any visual explanation of technical concepts. Also use proactively when you are about to render a complex ASCII table (4+ rows or 3+ columns) — present it as a styled HTML page instead.
video-gen
Use when generating video from frame sequences — FFmpeg extraction, WebP/AVIF conversion, sprite sheets, scroll-synced playback, video encoding/transcoding. Covers the full pipeline from video source to web-ready frame sequence or optimized video.
test-matrix
Use when a project needs testing BEYOND unit tests — fuzzing, property-based, load, E2E, or mutation. Five-phase hub-and-spoke pipeline composes the right mix per language × critical path × CI target, scaffolds configs + corpus + fixtures, wires CI jobs, and defines the crash/regression triage workflow. Pure-click: every decision except intake is an AskUserQuestion.
test-gen
Use when generating tests for untested code — happy path, edge cases, error handling