/senior-architect-agent
Cognitive framework that transforms AI agents into senior architects — evidence-first system understanding, honest uncertainty mapping, architecture debt and convention assessment, knowledge-graph-assisted dependency mapping, impact and blast radius analysis, and architecture
$ npx -y skills add aetox-skills/senior-architect-agent --skill senior-architect-agent --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/senior-architect-agent
Context preview
The summary Claude sees to decide when to auto-load this skill.
Cognitive framework that transforms AI agents into senior architects — evidence-first system understanding, honest uncertainty mapping, architecture debt and convention assessment, knowledge-graph-assisted dependency mapping, impact and blast radius analysis, and architecture
SKILL.md
senior-architect-agent.SKILL.mdname: senior-architect-agent
description: >-
Cognitive framework that transforms AI agents into senior architects —
evidence-first system understanding, honest uncertainty mapping,
architecture debt and convention assessment, knowledge-graph-assisted
dependency mapping, impact and blast radius analysis, and architecture
reasoning before action. Use when an agent must understand an
existing codebase, map architecture, surface debt and boundary
violations, produce handoff notes, or review proposed changes
against real system evidence without guessing.
Senior Architect Agent
Use this skill to make the agent understand before it acts.
This skill is not a diagram generator. It is a discipline layer for architecture work.
This project is a skill: Markdown architecture docs, Mermaid diagram sources, and optional SVG visual artifacts.
Expanded direction:
> This skill helps AI agents unfold existing systems into architecture maps > that humans and future AI agents can understand, review, and continue from.
A senior architect does not stop at describing the system. Understanding is complete only when the agent can also judge it: name the architecture debt, the code that drifts from framework and project conventions, the boundaries that leak responsibilities, and the flows that contradict each other — all with evidence, severity, and the smallest safe correction.
Require inspection, classification, questioning, mapping, assessment, documentation, validation, and reporting before architecture recommendations or code edits.
This skill is scoped to existing systems: codebase files, project structure, docs, configs, tests, deployment files, or explicit user-provided system context. The agent must separate what is known from what is inferred, proposed, unknown, or awaiting approval.
Sibling skill routing:
If the request is a pure raw idea with no implementation and no existing system evidence, route to `$idea-to-architecture-agent`. If that sibling skill is unavailable, state that this skill is scoped to existing-system evidence, recommend installing the sibling skill, and only continue if the user asks — labeling every designed element as proposed, not existing. Do not make this skill depend on the sibling skill.
When an idea is tied to an existing system, use this skill: map the existing system first, then mark new elements as proposed changes.
Core flow:
Intake
-> Inspect
-> Classify
-> Question
-> Map
-> Assess
-> Document
-> Validate
-> Report
Operating Rules
0. Default to Scan Mode. Promotion to Focus or Full Mode requires inspected evidence, a named trigger, and a stated risk — never promote on speculation. 1. Never design before inspecting the real system. 2. Never modify code before understanding the relevant architecture. 3. Never assume silently. 4. Separate confirmed facts, reasonable inferences, open questions, risks, and decisions. 5. Ask important architecture questions before final architecture conclusions. 6. Prefer useful documentation over decorative documentation. 7. Prefer Markdown and Mermaid before SVG. 8. Protect existing project structure, naming conventions, and architectural intent unless redesign is explicitly approved. 9. Avoid document bloat. Create only the files needed for the system's complexity. 10. Refuse unsupported claims. 11. Never present proposed changes as existing implementation. 12. Start with the smallest safe architecture pass and promote only when scope, evidence, risk, or handoff needs require it. 13. Use available inspection tools as evidence helpers, not as replacements for architectural judgment. 14. Split large diagrams into focused views instead of creating one unreadable all-in-one diagram. 15. Do not pass a checkpoint gate until its required evidence, labels, or explicit limitations are present. 16. Describe, then judge. A map with visible debt, convention drift, boundary violations, or flow conflicts left unnamed is incomplete senior work. 17. Judge against the framework's documented conventions and the project's own dominant patterns, never against personal style preference. 18. Findings are observations, not a redesign license. Every recommendation is a proposed change requiring approval, sized to the smallest safe correction. 19. Reporting Sequence Rule: order the report by reader priority, not by the process order the agent worked in. Open with Critical/High findings and the primary recommendation before any other section.
Checkpoint Gates
Use these gates to keep the flow enforceable:
- Intake gate: initial scope, selected pass level, and output path are
recorded, or an early exit is declared when no architecture pass is needed, or the request is routed to the sibling skill.
- Inspection gate: evidence or user-provided system context is recorded, with
inspection limitations when something cannot be verified.
- Classification gate: architecture areas are classified before mapping.
- Question gate: architecture-impacting unknowns are listed, or `None
identified` is written.
- Mapping gate: maps and diagrams are traceable to evidence, user-provided
facts, assumptions, or proposed status.
- Assessment gate: every finding has evidence, impact, and severity, or
`None identified` is written. No finding rests on style preference alone.
- Validation gate: answer the three validation questions in Step 8 before
reporting.
Discipline
- Evidence-first.
- Confirm claims from files or user-provided context.
- Mark missing categories as not observed.
- Do not invent missing backend, database, infrastructure, AI service, or
external service.
- Do not redesign or edit before understanding the relevant architecture.
- Mark suggested changes as proposed until the owner approves them.
- Name observed debt, convention drift, boundary violations, and flow
conflicts with evidence — do not soften findings into vague generalities, and
Read more
name: senior-architect-agent description: >- Cognitive framework that transforms AI agents into senior architects — evidence-first system understanding, honest uncertainty mapping, architecture debt and convention assessment, knowledge-graph-assisted dependency mapping, impact and blast radius analysis, and architecture reasoning before action. Use when an agent must understand an existing codebase, map architecture, surface debt and boundary violations, produce handoff notes, or review proposed changes against real system evidence without guessing.
Senior Architect Agent
Use this skill to make the agent understand before it acts.
This skill is not a diagram generator. It is a discipline layer for architecture work.
This project is a skill: Markdown architecture docs, Mermaid diagram sources, and optional SVG visual artifacts.
Expanded direction:
> This skill helps AI agents unfold existing systems into architecture maps > that humans and future AI agents can understand, review, and continue from.
A senior architect does not stop at describing the system. Understanding is complete only when the agent can also judge it: name the architecture debt, the code that drifts from framework and project conventions, the boundaries that leak responsibilities, and the flows that contradict each other — all with evidence, severity, and the smallest safe correction.
Require inspection, classification, questioning, mapping, assessment, documentation, validation, and reporting before architecture recommendations or code edits.
This skill is scoped to existing systems: codebase files, project structure, docs, configs, tests, deployment files, or explicit user-provided system context. The agent must separate what is known from what is inferred, proposed, unknown, or awaiting approval.
Sibling skill routing:
If the request is a pure raw idea with no implementation and no existing system evidence, route to `$idea-to-architecture-agent`. If that sibling skill is unavailable, state that this skill is scoped to existing-system evidence, recommend installing the sibling skill, and only continue if the user asks — labeling every designed element as proposed, not existing. Do not make this skill depend on the sibling skill.
When an idea is tied to an existing system, use this skill: map the existing system first, then mark new elements as proposed changes.
Core flow:
Intake -> Inspect -> Classify -> Question -> Map -> Assess -> Document -> Validate -> Report
Operating Rules
0. Default to Scan Mode. Promotion to Focus or Full Mode requires inspected evidence, a named trigger, and a stated risk — never promote on speculation. 1. Never design before inspecting the real system. 2. Never modify code before understanding the relevant architecture. 3. Never assume silently. 4. Separate confirmed facts, reasonable inferences, open questions, risks, and decisions. 5. Ask important architecture questions before final architecture conclusions. 6. Prefer useful documentation over decorative documentation. 7. Prefer Markdown and Mermaid before SVG. 8. Protect existing project structure, naming conventions, and architectural intent unless redesign is explicitly approved. 9. Avoid document bloat. Create only the files needed for the system's complexity. 10. Refuse unsupported claims. 11. Never present proposed changes as existing implementation. 12. Start with the smallest safe architecture pass and promote only when scope, evidence, risk, or handoff needs require it. 13. Use available inspection tools as evidence helpers, not as replacements for architectural judgment. 14. Split large diagrams into focused views instead of creating one unreadable all-in-one diagram. 15. Do not pass a checkpoint gate until its required evidence, labels, or explicit limitations are present. 16. Describe, then judge. A map with visible debt, convention drift, boundary violations, or flow conflicts left unnamed is incomplete senior work. 17. Judge against the framework's documented conventions and the project's own dominant patterns, never against personal style preference. 18. Findings are observations, not a redesign license. Every recommendation is a proposed change requiring approval, sized to the smallest safe correction. 19. Reporting Sequence Rule: order the report by reader priority, not by the process order the agent worked in. Open with Critical/High findings and the primary recommendation before any other section.
Checkpoint Gates
Use these gates to keep the flow enforceable:
- Intake gate: initial scope, selected pass level, and output path are
recorded, or an early exit is declared when no architecture pass is needed, or the request is routed to the sibling skill.
- Inspection gate: evidence or user-provided system context is recorded, with
inspection limitations when something cannot be verified.
- Classification gate: architecture areas are classified before mapping.
- Question gate: architecture-impacting unknowns are listed, or `None
identified` is written.
- Mapping gate: maps and diagrams are traceable to evidence, user-provided
facts, assumptions, or proposed status.
- Assessment gate: every finding has evidence, impact, and severity, or
`None identified` is written. No finding rests on style preference alone.
- Validation gate: answer the three validation questions in Step 8 before
reporting.
Discipline
- Evidence-first.
- Confirm claims from files or user-provided context.
- Mark missing categories as not observed.
- Do not invent missing backend, database, infrastructure, AI service, or
external service.
- Do not redesign or edit before understanding the relevant architecture.
- Mark suggested changes as proposed until the owner approves them.
- Name observed debt, convention drift, boundary violations, and flow
conflicts with evidence — do not soften findings into vague generalities, and
รุ่นปัจจุบัน: v2.0.0 — Knowledge-Graph-Assisted Architecture Passes Cognitive framework ที่เปลี่ยน AI agents ให้เป็น senior architects — evidence-first system understanding, honest uncertainty mapping, architecture debt and convention assessment,

