Index of every page on this site: llms.txt
All skills
soderlind avatar

/document-architecture

@ba09e3b
Run it yourself

Create, improve, or audit repository architecture and concept documentation. Use when asked to document a codebase's architecture, domain model, component boundaries, data or control flows, invariants, failure behavior, change locations, or architectural decisions; create architecture.md, system-context, component, glossary, or ADR documents; make a repository easier for developers or AI coding agents to understand; or reconcile stale architecture documentation with code.

Use this Skill: https://skilld.dev/gh/soderlind/skills/document-architecture

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencestemplates.md

≈870 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Architecture documentation templates

Use only the sections supported by the repository and the task. Replace every placeholder; do not leave invented examples in final documentation.

Architecture overview

# Architecture

## Purpose

<One paragraph describing the system's responsibility and users.>

## Scope

Included:

- <responsibility>

Not included:

- <explicit non-goal>

## Major components

| Component | Responsibility | Implementation | Depends on |
|---|---|---|---|
| `<name>` | <one clear responsibility> | `<path>` | `<interface/component>` |

## Representative flow

1. `<entry point>` receives <input>.
2. `<symbol>` validates or transforms it.
3. `<symbol>` applies domain rules.
4. `<symbol>` performs the side effect.

## Boundaries and constraints

- <dependency direction or prohibited dependency>
- <trust, transaction, process, or persistence boundary>
- <retry, idempotency, or concurrency requirement>

## Where to make changes

| Change | Primary location | Also update |
|---|---|---|
| <common change> | `<path/symbol>` | `<tests/docs/schema>` |

## Further reading

- [Domain model](domain-model.md)
- [Important flow](data-flow.md)
- [Decisions](decisions/)

Component

## <Component name>

Location: `<path>`

Responsibilities:

- <owned behavior>

Public interface:

- `<symbol>`

Depends on:

- `<abstraction or component>`

Must not depend on:

- `<forbidden layer or concrete implementation>`

State and persistence:

- <owned data and transaction boundary>

Failure behavior:

- <error classification, propagation, retry, or recovery>

Tests:

- `<test path>`

Domain model

# Domain model

## Terms

### <Term>

<Precise definition and distinction from similar terms.>

Implemented by: `<path or symbol>`

## Lifecycle

| State | Meaning | Allowed next states |
|---|---|---|
| `<state>` | <meaning> | `<state>`, `<state>` |

Invalid transitions are rejected by `<symbol>` and covered by `<test>`.

Flow

# <Flow name>

Trigger: <request, event, schedule, or command>

1. `<entry point>` receives <input>.
2. <validation/authentication step>.
3. <domain operation>.
4. <persistence or external side effect>.
5. <result, event, or response>.

## Failure behavior

| Failure | Behavior | Retry owner |
|---|---|---|
| <condition> | <return, rollback, compensate, or continue> | <caller/system/none> |

## Boundaries

- Transaction: <start/end>
- Idempotency key: <source and enforcement>
- Concurrency control: <lock/version/lease/none>
- Trust boundary: <where untrusted data becomes validated>

Invariants

# Invariants

## <Invariant name>

Rule: <statement that must always remain true>

Enforced by:

- `<schema constraint or code symbol>`
- `<validation or transaction>`

Verified by:

- `<test path>`

Changes affecting this invariant:

- `<path, component, or operation>`

Architecture decision record

Use an ADR only for a durable choice whose alternatives and rationale matter to future changes.

# ADR NNNN: <Decision title>

Status: Proposed | Accepted | Superseded by ADR-NNNN
Date: YYYY-MM-DD

## Context

<Forces, constraints, and problem.>

## Decision

<Chosen approach stated directly.>

## Alternatives considered

- <alternative and why it was not selected>

## Consequences

Positive:

- <benefit>

Negative:

- <cost, risk, or operational obligation>

## Relevant implementation

- `<path or symbol>`

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    The skill is a specialized documentation tool designed to help AI agents or developers create and audit software architecture documents. It follows a read-only inspection workflow for the source code and generates documentation based on provided templates. No security issues, data exfiltration risks, or malicious patterns were detected.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at ba09e3b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 4 months ago
version
1.0.0
Other metadata
compatibility
Any repository or language. Read-only inspection plus Markdown output; no network access required.

README badge

README badge for soderlind/skills/document-architecture