Claude-skill-registry context:atomic-doc

Create/update atomic documentation (blocks, foundations, stacks). Use when user asks to "create atomic doc", "add a block", "add a foundation", "setup a stack", or needs to document reusable knowledge. Creates files in context/ following SWEBOK-aligned structure.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/context-atomic-doc" ~/.claude/skills/majiayu000-claude-skill-registry-context-atomic-doc && rm -rf "$T"
manifest: skills/data/context-atomic-doc/SKILL.md
source content

Atomic Documentation

Create or update context documentation following the atomic documentation system.

Execution Instructions

When this skill is invoked:

MANDATORY FIRST STEP: Use the Read tool to read

context/workflows/manage-atomic-doc.md
(relative to project root). DO NOT proceed without reading this file first - it contains the complete workflow including Phase 0 (index check) that you MUST follow.

After reading the workflow file:

  1. Parse

    $ARGUMENTS
    :

    • create <layer>/<domain>/<name>
      → new doc
    • update <path>
      → modify existing
    • No args → ask user what they want to create/update
  2. Follow ALL phases in the workflow file, starting with Phase 0.

Quick Reference

LayerPurposeExamples
blocks
Single units of knowledge (tool-centric)bun.md, eslint.md, vitest.md
foundations
Capabilities (combines blocks)exec-tsx.md, test-unit-vitest.md
stacks
Complete project setupscli-bun.md, api-pnpm-fastify.md
DomainSWEBOK AreaWhat It Covers
construct
Software ConstructionBuild, bundle, package
test
Software TestingUnit, E2E, coverage
quality
Software QualityLint, format, style
security
Software SecurityAuth, secrets, hardening
scm
Config ManagementVersion, release, publish
ops
SE OperationsCI/CD, deploy, infra
observe
Operations (sub-area)Log, trace, metrics
docs
Architecture & DesignADRs, diagrams, prompting

Usage

/context:atomic-doc create blocks/test/playwright.md
/context:atomic-doc create foundations/construct/bundle-web-esbuild.md
/context:atomic-doc update context/blocks/construct/bun.md

References

  • Full workflow: @context/workflows/manage-atomic-doc.md
  • Philosophy & naming: @context/blocks/docs/atomic-documentation.md
  • Maintenance patterns: @context/blocks/docs/maintenance.md
  • Index of all docs: @context/README.md