arch-discover

Inspects a repository to discover undocumented architectural decisions and proposes candidate ADRs and standards.

Updated May 8, 2026
One-click install
npx skills add https://github.com/juanca202/sdd-devkit --skill arch-discover-juanca202
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: arch-discover
Source: https://github.com/juanca202/sdd-devkit/tree/main/skills/arch-discover
Command: npx skills add https://github.com/juanca202/sdd-devkit --skill arch-discover-juanca202

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Existing codebases accumulate implicit architectural decisions and living conventions that were never formally documented, making onboarding and governance difficult. This Skill analyzes a repository's structure, dependencies, and source code to surface those hidden decisions and turn them into documented ADRs and domain standards. ## Core Features & Use Cases - Architecture Discovery: Scans folder structure, dependency manifests (package.json, pyproject.toml, pom.xml, Cargo.toml, go.mod, and more), and source code patterns to infer technology choices, layering, and design patterns. - Candidate Classification: Distinguishes historical decisions (ADR-only) from living verifiable rules (requirements grouped into one of nine canonical functional domain standards such as testing, API, security, or persistence), and skips anything already documented. - Prioritized Presentation & Creation: Presents a prioritized candidate list (high/medium/low) for user approval, then delegates approved items to the arch-manage skill to create ADRs, standard requirements, and compliance criteria in the chosen architecture root. - Use Case: You join a legacy project with no architecture docs. Run the discovery to get a prioritized list like "layered architecture", "PHPUnit + Playwright testing", and "Prisma as ORM", approve the relevant ones, and have the ADRs and standards written into docs/adr/ and docs/standards/. ## Quick Start Analyze this repository and discover which architectural decisions and coding conventions deserve to be documented as ADRs and standards.

Frequently Asked Questions about arch-discover

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I discover undocumented architecture decisions in a repository?▼

Run architecture discovery to scan folder structure, dependency manifests, and source code for implicit decisions and conventions. It produces a prioritized candidate list of ADRs and standard requirements, and creates the approved documents via the arch-manage skill.

What is the difference between an ADR and a standard requirement?▼

An ADR records a historical decision explaining why something was chosen. A standard requirement is a living, verifiable rule written in RFC 2119 language (MUST/SHOULD/MAY) and grouped into a broad domain standard like Testing Standards or API Standards.

Does architecture discovery work with monorepos and git submodules?▼

Yes, it detects nested repositories via git submodule status and .gitmodules, then asks which architecture root to discover. Each run covers exactly one root, so the main repo and submodules are analyzed in separate runs.

Which languages and dependency manifests are supported for analysis?▼

It reads manifests for Node/JS/TS (package.json, tsconfig.json), Python (pyproject.toml, requirements.txt), JVM (pom.xml, build.gradle), .NET (csproj, sln), Rust (Cargo.toml), and Go (go.mod), plus source code pattern searches.

Will it propose documents that already exist in the project?▼

No. Before proposing candidates it reads the existing docs/adr and docs/standards of the target architecture root and omits any finding already covered, reporting how many were skipped as already documented.