doc-architecture

doc-architecture is a skill for Claude Code from justnau1020/claude-os. It costs 30 tokens per session (265 once invoked), scanned A, original, Apache-2.0.

Architecture documentation describes a project's main parts, how they connect, and the rules they follow. This add-on updates that documentation after structural code changes.

In plain words
What is it for?
Use it after adding, changing, or removing modules, interfaces, features, or dependencies. It compares recent code changes with architecture files and makes targeted updates.
Why use it?
It helps prevent documentation from describing components, interfaces, or dependencies that no longer match the code.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it after adding, changing, or removing modules, interfaces, features, or dependencies. It compares recent code changes with architecture files and makes targeted updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/justnau1020/claude-os/doc-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add justnau1020/claude-os --skill doc-architecture
Clone the repo
git clone --depth 1 https://github.com/justnau1020/claude-os

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doc-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/justnau1020/claude-os/doc-architecture/github.svg)](https://agentmods.dev/skills/justnau1020/claude-os/doc-architecture)
Your own site
<a href="https://agentmods.dev/skills/justnau1020/claude-os/doc-architecture"><img src="https://agentmods.dev/badge/skills/justnau1020/claude-os/doc-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doc-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/justnau1020/claude-os/doc-architecture"><img src="https://agentmods.dev/badge/skills/justnau1020/claude-os/doc-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00265
Opus 5 $0.00015 $0.00133
Sonnet 5 $0.00006 $0.00053
Haiku 4.5 $0.00003 $0.00026

Measured 11d ago against content hash db7da1e1de45, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

doc-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/development/doc-architecture/SKILL.md · 48 lines

What it actually says

Update Architecture Documentation

Update the project's architecture documentation to reflect recent code changes.

Steps

1. Review recent changes

git diff HEAD~5 --stat
git log --oneline -10

2. Read current architecture doc

Read the architecture documentation in full. Common locations:

  • docs/ARCHITECTURE.md
  • docs/architecture/
  • ARCHITECTURE.md

3. Identify gaps

Compare the code changes against the architecture doc:

  • Are new modules documented?
  • Are changed interfaces reflected?
  • Are removed features cleaned up?
  • Are new invariants captured?
  • Are new dependencies mentioned?

4. Update the doc

Make targeted updates to the architecture documentation:

  • Add sections for new components
  • Update descriptions for changed components
  • Remove references to deleted components
  • Keep the existing structure and tone

5. Verify accuracy

Cross-reference updated doc against actual code to ensure accuracy. The architecture doc is the source of truth -- it must be correct.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 48 lines · 30 tokens per session scan A db7da1e1de45

Subscribe to this mod's changes

doc-architecture is a skill published in the GitHub repository justnau1020/claude-os (3 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 265 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

skill-curator

A Chinese-language evaluator for deciding whether developer tools and agent resources are suitable for a curated collection. It checks real repositories, installation paths, activity, duplicates, and security boundaries using evidence.

laolaoshiren/claude-code-skills-zh · 75 tokens

env-manager

An environment-variable manager for project settings stored outside the code, often in .env files. It checks variable definitions and usage while keeping secret values out of reports and terminal output.

laolaoshiren/claude-code-skills-zh · 22 tokens

git-workflow

A guide for handling Git repository work safely, including status checks, branches, commits, pushes, pull requests, and rebasing. Git is a version-control system that records code changes and coordinates work between developers.

laolaoshiren/claude-code-skills-zh · 73 tokens

perf-profiler

A performance investigation guide that uses repeatable measurements and profiling evidence to find where software spends time or resources. Profiling records runtime activity such as CPU use, memory use, database work, or network delays.

laolaoshiren/claude-code-skills-zh · 78 tokens

i18n-helper

A helper for adding internationalization, which lets software show different languages and regional text. It finds user-visible text written directly in code and moves it into language files.

laolaoshiren/claude-code-skills-zh · 33 tokens

log-analyzer

A log-analysis helper that reads application and system logs to find unusual patterns and likely causes. Logs are records of events such as errors, requests, warnings, and service activity.

laolaoshiren/claude-code-skills-zh · 24 tokens