Document
Capture learnings from implementation into project docs, memories, or CLAUDE.mdFrom its SKILL.md
npx -y skills add JSA-Partners/claude-essentials --skill documentAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.7 KB, as published. Nobody here has run it
Document: $ARGUMENTS
Resolve Context
- If
$ARGUMENTSis a unit file path (e.g.,~/.cache/claude-essentials/2026-03-26-auth/unit-01.md), read that file to understand what was implemented. Use its scope to focus the documentation scan. - If
$ARGUMENTSis a partial or vague reference (e.g.,auth,unit-02), glob~/.cache/claude-essentials/to find matching unit files. If exactly one match, use it. If multiple matches, show options viaAskUserQuestion. - If
$ARGUMENTSis a topic string (not a file path), use it as the documentation focus area. - If
$ARGUMENTSis empty, scan uncommitted changes on the current branch to determine what was implemented.
Load ${CLAUDE_SKILL_DIR}/reference.md for file format guidance and examples.
Phase 1: Gather Context
Scan the current branch for what was implemented:
- Run
git diff main --name-onlyto identify changed files - Run
git log main..HEAD --onelineto see commit history - Read the changed files to understand the implementation
Focus on knowledge that is NOT derivable from reading the code or git history:
- Architectural patterns and their rationale
- Non-obvious gotchas or constraints discovered
- Decisions made and why (especially rejected alternatives)
- Step-by-step guides for recurring tasks
- Style rules enforced by tooling
IMPORTANT: Do NOT document anything derivable from reading the code, git history, or existing CLAUDE.md. If you can learn it by running git log or reading the source, it does not belong in a reference doc.
Phase 2: Choose Destination
Tiered by significance:
docs/claude/(default) -- Create or update a topic file. One file per topic area, not per session. Ifdocs/claude/does not exist, search for an alternative documentation directory already in use (e.g.,docs/,.claude/docs/, or any directory with existing reference markdown files). If a reasonable alternative is found, confirm with the user before writing there. If nothing exists, createdocs/claude/.- Memories -- If the learning applies across projects (not just this repo), save to the memory system.
CLAUDE.md-- Only for mission-critical, project-wide rules that must load every session. This is rare.
Phase 3: Write
IMPORTANT: One file per topic area, not per session. Read the existing topic file first (if one exists). Integrate new content into the existing structure. Do NOT append dated entries or create a new file when the topic already has one -- edit the existing file instead.
Use AskUserQuestion if unclear which topic file the content belongs in, or whether to create a new one.
When Things Go Wrong
- Docs directory does not exist: Search for an alternative (
docs/,.claude/docs/). If nothing exists, confirm with the user before creatingdocs/claude/. - Content overlaps two topic files: Pick the primary file, add a cross-reference to the other.
- Topic does not fit existing files: Create a new topic file. Do not force content into an unrelated file.
Phase 4: Verify
- Confirm the file reads as a coherent reference document, not a changelog
- Check for duplication with other docs/claude files
- Confirm no content that belongs in code comments or git messages
Output
When documentation is complete, end with exactly this structure:
## Done
Learnings captured in [destination file(s)].
## Next Step
1. Review the documentation changes
2. Run `/clear`
3. Run `/essentials:commit`