skills/architect-inspect/SKILL.md
Inspect a top-level file for a component or feature, then analyze and describe the current architecture around it (boundaries, dependencies, data flow, and risks). Use this when the user says 'inspect this architecture', 'analyze this component architecture', 'explain how this feature is structured', or 'how does this module fit into the system'.
npx skillsauth add ryan-mahoney/ryan-llm-skills architect-inspectInstall 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.
Analyze the existing architecture for a feature starting from one top-level file. This skill maps how the file is used, what it depends on, where responsibilities live, and what architectural seams or risks are present today.
$1 - Required. Path to the top-level file for the component/feature (example: src/features/billing/routes.ts).$2 - Optional. Output markdown path. If omitted, return analysis in the response only.$1 exists and is a file.entry_file="$1"
output_path="${2:-}"
feature_root="$(dirname "$entry_file")"
entry_stem="$(basename "${entry_file%.*}")"
AGENTS.md if present for project architecture and conventions.Determine what the file is in the system:
Collect quick evidence (exports, imports, framework signatures, route declarations).
Find where this entry file is imported, referenced, or wired.
rg -n "$entry_stem" .
Record key callers and classify each as upstream trigger, router/wiring, or peer module.
Inspect imports/dependencies from the entry file and immediate feature neighbors.
rg -n "from |require\\(" "$entry_file"
rg -n "from |require\\(" "$feature_root"
Classify dependencies:
Build a high-level path:
Keep this architectural (layer and flow), not a line-by-line code walkthrough.
Pattern reference: Architecture-fit framing aligns with skills/architect-initial/SKILL.md.
Identify:
Use concrete file evidence for each claim.
Pattern reference: Responsibility-boundary checks align with skills/controller-refactor-plan/SKILL.md.
Return markdown with these sections:
# Architecture Inspection: <entry file>
## Summary
- What this feature/component does and its architectural role.
## Entry Points and Callers
- Ranked list of upstream files/modules and why they matter.
## Dependency Map
- Internal dependencies
- External dependencies
- Coupling notes
## Data and Control Flow
- End-to-end flow from trigger to outcome.
## Boundaries and Responsibilities
- What is well-separated
- Where responsibilities are mixed
## Risks and Hotspots
- Concrete risks with evidence and impact.
## Key Files to Read Next
- 3-8 files ranked for fastest architecture understanding.
If $2 is provided, write the same output to that path (create parent directory as needed) and also summarize in the response.
Pattern reference: Sectioned evidence-driven reporting should mirror skills/specops-analysis/SKILL.md.
testing
This skill should be used when the user asks to "run the spec", "implement the spec", or "execute the spec". Implements every step in a SpecOps implementation spec by delegating each step (or logical group of adjacent steps) to a sequential subagent, conventional-committing each one independently, and — when `roborev` is on the path — running `roborev check` on every commit and `roborev fix` (with spec context, so the fix cannot silently drift the implementation away from the spec) on any commit that fails.
development
Exhaustively audit a top-level UI implementation component against an HTML prototype and produce a grouped markdown checklist of corrections. Use when a user asks for UI parity review, visual QA, design implementation audit, pixel-level drift detection, or behavior/style mismatch analysis between prototype HTML and shipped component code.
development
Audit a SpecOps implementation spec against its source analysis spec to find requirements, policies, contracts, edge cases, error modes, invariants, defaults, side effects, or implementation steps that the implementation has dropped, weakened, contradicted, or silently changed — then patch the implementation spec to restore them. Use this skill whenever the user mentions auditing, comparing, conforming, reconciling, or checking an implementation spec against an analysis spec, finding gaps between two specs, ensuring an implementation spec preserves analysis behavior, or verifying spec derivation or traceability. Also trigger when the user describes "did the implementation spec lose anything from the analysis," "does the implementation match the analysis," "verify the implementation spec covers everything," or asks to confirm one spec is faithful to another. Run this before generating code from an implementation spec and after either spec is edited.
development
Audit a set of SpecOps analysis specs for cross-spec coherence — establish a dependency-ordered implementation sequence, then verify pairwise integration contracts at module boundaries plus three cross-cutting consistency dimensions (shared data models, side-effect ownership, terminology) — and patch the affected specs to resolve gaps. Use this skill whenever the user mentions cross-spec consistency, integration gaps between specs, conflicts between specs, duplicate work across specs, implementation order, dependency order for migration, building an implementation-order checklist, ensuring specs interoperate, terminology drift across specs, or shared data model conflicts. Also trigger when the user describes "do my specs agree with each other," "what order should I implement these in," "find inconsistencies across all my specs," or asks to audit a folder of analysis specs as a set rather than individually. Run this once after generating a full set of analysis specs, before deriving implementation specs.