Install
$ agentstack add skill-stevederico-skills-arch-docs ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
arch-docs
You provide text-based architecture explanations and deep dives. Unlike arch-diagram (which generates visual HTML), you explain how things work and why they're built that way. Output is in-conversation markdown with file:line references.
Workflow
Step 1: Determine Scope
Parse the user's request to determine what they need:
| Input | Action | |-------|--------| | /arch-docs (no args) | Full system overview | | /arch-docs | Deep dive into that subsystem | | /arch-docs "question" | Answer the specific question |
Discover subsystems by reading the project's docs/ARCHITECTURE.md, CLAUDE.md, or scanning the directory structure for top-level modules.
Step 2: Gather Context
- Check for existing docs:
- Read
docs/ARCHITECTURE.mdif it exists (canonical reference) - Read
docs/DECISIONS.mdif it exists (the "why" behind decisions) - Read
CLAUDE.mdfor project-specific conventions
- For subsystem deep dives, read the relevant source files:
- Use Glob to find related files
- Use Grep to trace function calls and data flow
- Read key files to understand implementation
- Build a mental model:
- Identify entry points
- Trace data flow through the system
- Note key classes/functions and their responsibilities
- Identify cross-cutting concerns (auth, logging, errors)
Step 3: Generate Explanation
Structure your response based on scope:
Full system overview:
## The Big Picture
[1-2 paragraph summary of what the system does]
## Architecture Diagram (ASCII)
[Simple box diagram showing major components]
## Key Components
[Table of components with one-line descriptions]
## Data Flow
[How a typical request flows through the system]
## Quick Reference
[Ports, key files, common commands]
Subsystem deep dive:
## [Subsystem Name] — What It Does
[1 paragraph summary]
## How It Works
[Step-by-step walkthrough with file:line references]
## Key Files
[Table: file path | responsibility]
## Data Flow
[Trace a request/action through the subsystem]
## Why It's Built This Way
[Architectural decisions and tradeoffs]
## Common Tasks
[How to modify/debug this subsystem]
Specific question:
## [Restate question as heading]
[Direct answer with file:line references]
[Code snippets if helpful]
[Related context they might need]
Step 4: Include References
Always include concrete references:
file.js:123— line numbers for key code- Link related subsystems: "See also:
/arch-docs" - Mention relevant decisions from
docs/DECISIONS.md
Step 5: Offer Follow-ups
End with suggested next steps:
---
**Related deep dives:**
- `/arch-docs `
- `/arch-diagram` for visual representation
Output Guidelines
- Be concrete — Always reference actual files and line numbers
- Trace data flows — Show how data moves through the system
- Explain the "why" — Don't just describe, explain decisions
- Use ASCII diagrams — Simple boxes and arrows for flows
- Keep it scannable — Use tables, headers, bullet points
- Stay current — Read actual code, don't rely on outdated docs
Example Outputs
/arch-docs (full overview)
## The Big Picture
TaskFlow is a project management app with a React frontend and Hono API backend...
## Architecture
┌──────────────┐ ┌─────────────────────────┐
│ React App │────▶│ Hono API (:8000) │
│ (Vite) │ │ ┌───────┐ ┌───────┐ │
└──────────────┘ │ │ Auth │ │ Tasks │ │
│ │ │ │ │ │
│ └───────┘ └───────┘ │
│ │ │
│ ┌────▼────┐ │
│ │ SQLite │ │
│ └─────────┘ │
└─────────────────────────┘
## Key Components
| Component | Path | Purpose |
|-----------|------|---------|
| API Server | backend/server.js | Routes, middleware, auth |
| Task Service | backend/services/tasks.js | CRUD operations |
| Database | backend/db/ | SQLite schema and queries |
| Frontend | src/components/ | React views and forms |
/arch-docs auth
## Auth — What It Does
Handles user registration, login, and session management via JWT tokens...
## How It Works
1. **Registration** (`backend/routes/auth.js:15`)
- Validates email/password
- Hashes password with bcrypt
- Stores user in SQLite
2. **Login** (`backend/routes/auth.js:45`)
- Verifies credentials
- Issues JWT with 24h expiry
- Returns token in response body
3. **Protected routes** (`backend/middleware/auth.js:8`)
- Extracts Bearer token from Authorization header
- Verifies JWT signature
- Attaches user to request context
/arch-docs "how does the task assignment work?"
## How Does Task Assignment Work?
Tasks are assigned via `PATCH /api/tasks/:id` (`backend/routes/tasks.js:67`).
The assignment flow:
1. Client sends `{ assigneeId: "user-123" }`
2. Route handler validates assignee exists (`services/users.js:23`)
3. Updates task record in SQLite (`services/tasks.js:45`)
4. Returns updated task with assignee details
The frontend reflects this in `TaskCard.jsx:34` which shows
the assignee avatar when `task.assigneeId` is set.
Maintaining Architecture Docs
When you make significant changes to the codebase:
- Update
docs/ARCHITECTURE.mdwith structural changes - Update
docs/DECISIONS.mdwith new architectural decisions - These become the canonical reference for future
/arch-docscalls
Related Skills
- frontend: For understanding React component architecture
- backend: For understanding API and database architecture
- security: For understanding security architecture decisions
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: stevederico
- Source: stevederico/skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.