Install
$ agentstack add skill-digital-stoic-org-agent-skills-literatize ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Literatize — Code Annotation for LLM Context
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](references/guide.md) for theory and examples.
Steps
- Parse arguments: file path (required),
--dry-run(show diff only),--context(design docs, ADRs) - Read target file and any
--contextfiles - Identify logical sections: imports, config, classes, functions, routes, main, etc.
- Generate file header block:
- Purpose (1 line)
- Architecture sketch (1 line — data/control flow)
- Key invariants (1 line)
- For each section, add a comment block (2-6 lines):
- What: what this section does (1 line)
- Why: design rationale (1-2 lines) — only if non-obvious
- Gotchas: pitfalls, key decisions — only if relevant
- Flow: data/control flow — only for routes/pipelines
- Use native comment syntax (
#Python,//JS/TS,--SQL, etc.) - Section dividers:
# ── N. Section Name(no trailing padding, adjust prefix to language) - Write file (or show proposed comments if
--dry-run)
Rules
| 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 |
Comment Style
# ════════════════════════════════════════
# Purpose: [what this file does]
# Architecture: [data/control flow sketch]
# Invariants: [key guarantees]
# ════════════════════════════════════════
# ── N. Section Name
# [What + Why + Gotchas as relevant, 2-6 lines]
Dual Audience
- LLMs (primary): Capture decisions not in code (why X not Y, constraints, framework gotchas). Enable re-entry without external docs.
- Humans (secondary): Section headers as navigation, architecture sketch, gotcha prevention.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: digital-stoic-org
- Source: digital-stoic-org/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.