From dstoic
Adds section-level comments to code files capturing intent, rationale, gotchas, and architecture for LLM context preservation across sessions. Invoke via 'literatize', 'add literate comments', or 'annotate this file'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dstoic:literatizesonnetThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Add section-level comments to code files that capture intent, rationale, and gotchas — optimized for LLM re-entry across ephemeral sessions.
Add section-level comments to code files that capture intent, rationale, and gotchas — optimized for LLM re-entry across ephemeral sessions.
Not literate programming (Knuth). Documentation embedded in code, following code structure. See references/guide.md for theory and examples.
--dry-run (show diff only), --context <path> (design docs, ADRs)--context files# Python, // JS/TS, -- SQL, etc.)# ── N. Section Name (no trailing padding, adjust prefix to language)--dry-run)| Do | Don't |
|---|---|
| Explain intent and decisions | Describe what code literally does |
| Assume cold-start reader | Assume prior context |
| Keep blocks 2-6 lines | Write essays |
| Reference external docs when they exist | Duplicate info from variable/function names |
| Preserve ALL existing code | Reformat, refactor, add docstrings/types |
# ════════════════════════════════════════
# Purpose: [what this file does]
# Architecture: [data/control flow sketch]
# Invariants: [key guarantees]
# ════════════════════════════════════════
# ── N. Section Name
# [What + Why + Gotchas as relevant, 2-6 lines]
npx claudepluginhub digital-stoic-org/agent-skills --plugin dstoicAdds educational comments to code files explaining the 'why' behind syntax, idioms, and design choices, adapting to the learner's knowledge level.
Routes documentation tasks to code comments (audit/cleanup) or system docs (READMEs, API docs, architecture). Use for writing, auditing, or improving any docs.
Adds structured AI-DEV-NOTE comments, categorized TODOs (ai/refactor, ai/performance), and decision records to code for preserving context, decisions, and incomplete work in AI-assisted development.