skills/create-arch-docs/SKILL.md
Generate architecture documentation with C4 diagrams, ADRs, and system context maps from codebase analysis
npx skillsauth add stevefeldman/agents-skills create-arch-docsInstall 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.
Generate architecture documentation by analyzing the codebase, then producing C4 diagrams, Architecture Decision Records, and system context documentation.
Before documenting anything, read the codebase to understand the architecture:
CLAUDE.md, README.md, and any existing architecture docs.Create a high-level system context diagram and description:
mermaid skill to generate a C4 Context diagram.Document the major deployable units:
mermaid skill to generate a C4 Container diagram.Document internal structure of key containers:
mermaid skill to generate component-level diagrams.Create ADRs for significant architectural decisions found in the codebase:
docs/adr/ with sequential numbering (e.g., 0001-use-postgresql.md).Document how the system handles:
Produce the following files:
docs/architecture/README.md — Overview and index linking to all architecture docs.docs/architecture/system-context.md — System context with C4 Level 1 diagram.docs/architecture/containers.md — Container architecture with C4 Level 2 diagram.docs/architecture/components.md — Component details with C4 Level 3 diagrams.docs/architecture/data-architecture.md — Data models, flows, and storage.docs/architecture/quality-attributes.md — Cross-cutting concerns.docs/adr/0001-*.md (one per decision) — Architecture Decision Records.All diagrams should use Mermaid syntax for version-control-friendly, renderable documentation.
development
Use when reviewing Dependabot alerts, npm audit findings, govulncheck output, or CVE reports on a JavaScript/Node.js or Go project — especially when triaging multiple alerts across direct and transitive dependencies to assess real-world risk and produce a remediation plan.
development
Use when a code review finding needs proof — write a focused test in JavaScript or Go that either confirms the issue is real or exposes it as over-engineering hyperbole. Trigger after code-review or code-review-skill findings are presented and evidence is requested.
development
Produce data-driven software delivery estimates by analyzing historical JIRA tickets, git activity, and engineer track records, then matching the new work against the most similar past tickets. Use this skill whenever the user asks "how long will this take", wants to estimate a piece of work, scope an epic, plan a sprint, or estimate delivery for JIRA stories or a Figma design. Also use whenever the user wants developer-to-work assignment recommendations based on history, wants to optimize an estimate by adding or reallocating engineers, or asks "what's the fastest way to ship this" or "who should work on this". Especially trigger when the user provides JIRA ticket IDs, JIRA story links, or Figma designs together with any indication of a team that will execute the work.
tools
Use when auditing an existing test suite for quality and coverage gaps, evaluating Playwright migration readiness, scoring automation against a world-class e-commerce standard, or guiding the creation of new tests. Applicable to Selenium, WebdriverIO, and Playwright suites.