Skip to content
context:atomic-doc logo

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.

SKILL.md

Full skill instructions

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
blocksSingle units of knowledge (tool-centric)bun.md, eslint.md, vitest.md
foundationsCapabilities (combines blocks)exec-tsx.md, test-unit-vitest.md
stacksComplete project setupscli-bun.md, api-pnpm-fastify.md
DomainSWEBOK AreaWhat It Covers
constructSoftware ConstructionBuild, bundle, package
testSoftware TestingUnit, E2E, coverage
qualitySoftware QualityLint, format, style
securitySoftware SecurityAuth, secrets, hardening
scmConfig ManagementVersion, release, publish
opsSE OperationsCI/​CD, deploy, infra
observeOperations (sub-area)Log, trace, metrics
docsArchitecture & 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