Back to list
aiskillstore

software-architecture

by aiskillstore

Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified.

102🍴 3📅 Jan 23, 2026

SKILL.md


name: software-architecture description: Document software architecture using ARCHITECTURE.md and docs/*.md files with Mermaid diagrams. Use proactively when ARCHITECTURE.md exists in project root, or invoke to create initial architecture documentation. Covers system design, data flows, component relationships, and code organization with references to key entry points and abstractions.

Software Architecture Documentation

Document system architecture using a root ARCHITECTURE.md with detailed component docs in docs/*.md.

Structure

project/
├── ARCHITECTURE.md      # High-level system overview
└── docs/
    ├── <component>.md   # Detailed component documentation
    └── ...

Proactive Usage

When ARCHITECTURE.md exists in project root:

  1. Before major changes: Read ARCHITECTURE.md to understand system structure
  2. After structural changes: Update diagrams and entry points
  3. When adding components: Create new docs/*.md file and link from ARCHITECTURE.md
  4. During refactoring: Update affected diagrams and file references

Creating Architecture Documentation

Initial Setup Workflow

  1. Analyze codebase structure

    • Identify entry points (main, CLI, API handlers)
    • Map major components and their responsibilities
    • Trace key data flows
  2. Create ARCHITECTURE.md

    • Write system overview (1-2 paragraphs)
    • Add C4 Context diagram showing system boundaries
    • Document entry points table
    • List key abstractions
    • Add testing overview
    • Link to detail docs (create docs/ section even if empty initially)
  3. Create detail docs for major components

    • One file per logical component in docs/
    • Name files to match component names (flexible convention)
    • Include component-level diagrams

See references/document-templates.md for complete templates.

ARCHITECTURE.md Sections

Required Sections

SectionContent
Overview1-2 paragraphs on system purpose
System DiagramC4 Context or Container diagram
Key Entry PointsTable of primary files with descriptions
Key AbstractionsTable of important classes/interfaces/functions
TestingOverview of test strategy and key test locations
Detail DocsLinks to docs/*.md files

Optional Sections

SectionInclude When
Data FlowComplex pipelines or transformations
Code OrganizationNon-obvious directory structure
ConfigurationSignificant config or environment setup

Detail Documents (docs/*.md)

Create a detail doc when a component:

  • Has 3+ key files or abstractions
  • Contains complex internal logic
  • Interacts with multiple other components
  • Needs sequence diagrams to explain flows

Naming Convention

Flexible. Match the component's identity:

  • docs/auth.md for authentication component
  • docs/data-pipeline.md for data pipeline
  • docs/cli.md for CLI handling

Required Content

SectionContent
PurposeWhat this component does
Key FilesTable of important files
Key AbstractionsClasses, interfaces, functions

Optional Content

SectionInclude When
Architecture DiagramMultiple internal subcomponents
Sequence DiagramMulti-step interactions
DependenciesNon-obvious dependencies
TestingComponent-specific test patterns
ConfigurationComponent-specific config

Diagram Selection

Diagram TypeUse For
C4 ContextARCHITECTURE.md - system boundaries and external actors
C4 ContainerARCHITECTURE.md - deployable units (services, databases)
C4 Componentdocs/*.md - internal structure of a component
FlowchartControl flow, pipelines, decision logic
SequenceRequest flows, API interactions, multi-step processes
ER DiagramData models, entity relationships
Class DiagramObject hierarchies, interface implementations

Start minimal (3-5 nodes). Add detail only when it improves clarity.

See references/mermaid-patterns.md for diagram templates.

Entry Points and Abstractions

Entry Points Table

Document files that serve as starting points for understanding the codebase:

| File | Description |
|------|-------------|
| `src/main.py` | Application entry point |
| `src/core/engine.py` | Core processing engine |
| `tests/conftest.py` | Test fixtures and setup |

Include:

  • Application entry points (main, CLI, handlers)
  • Core domain logic locations
  • Configuration files
  • Test setup and fixtures

Key Abstractions Table

Document important classes, interfaces, and functions:

| Abstraction | Location | Purpose |
|-------------|----------|---------|
| `Engine` | `src/core/engine.py` | Orchestrates processing |
| `Handler` | `src/api/base.py` | Request handling interface |

Focus on:

  • Base classes and interfaces
  • Core domain objects
  • Public API surfaces
  • Extension points

Maintaining Documentation

When to Update

TriggerAction
New component addedCreate docs/<component>.md, add link to ARCHITECTURE.md
Entry point changedUpdate entry points table
Major refactoringUpdate affected diagrams and file references
New external dependencyUpdate C4 Context diagram
Component removedRemove or archive corresponding detail doc

Update Checklist

After structural changes:

  1. Verify entry points table is accurate
  2. Check diagram nodes match actual components
  3. Confirm file paths in tables are valid
  4. Update any affected detail docs

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

+5
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon