lore
Skill1 starsChanged 52 days agoApache-2.0View on GitHub
Have the AI add or fix code comments and docstrings across a diff or file so they match this repo's lore policy, in whatever language or framework it's written in. Use when the user says lore, asks to comment the code, add docstrings, document a function, or clean up stale/noisy comments.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- DevNewbie1826/skillstheir own version, first seen Nov 8, 2026
- opum-ai/proof-skillstheir own version, first seen Nov 8, 2026
- thesatellite-ai/loretheir own version, first seen Nov 3, 2026
- ryanmaclean/skillstheir own version, first seen Nov 1, 2026
- simota/agent-skillstheir own version, first seen Oct 23, 2026
- 0xHoneyJar/construct-gygaxtheir own version, first seen Oct 11, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- carapace-sh/carapace-bin★ 2ksame name
- specstoryai/getspecstory★ 1.4ksame name
- simota/agent-skills★ 96same name
- opum-ai/proof-skills★ 27same name
- TheaDust/lore★ 23same name
- sh008/claude-lore★ 6same name
- DevNewbie1826/skills★ 2same name
- prantikmedhi/lore★ 2same name
- 0xHoneyJar/construct-gygax★ 1same name
- ryanmaclean/skills★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 15 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the user asks the AI to write, fix, or clean up in-code comments and docstrings — the clan calls this "lore."
- Very specific: line 27
Read context/policies/lore-policy.md for the shape rules.
- Distinctive: line 33
Leave already-compliant lore untouched.
- Distinctive: line 43
Not a documentation generator for README/external docs sites — scope is in-source comments and docstrings only.
- Distinctive: line 45
Not permission to touch code logic.
- Distinctive: line 50
Run when the user explicitly asks to lore, comment the code, add docstrings, document a function/file, or clean up comments.
- Distinctive: line 52
If the target is ambiguous (no file, diff, or PR implied and none is the obvious current work), ask which scope before editing anything.
- Very specific: line 67
Read context/policies/lore-policy.md.
- Distinctive: line 70
Check git status --short to know what's actually in scope before editing.
- Distinctive: line 100
Never commit, push, stage, or touch a PR/issue as part of this skill.
- Distinctive: line 101
Never change code behavior — comments and docstrings only.
- Distinctive: line 102
Never invent behavior the code doesn't have.
- Distinctive: line 104
Don't add a comment or docstring the policy says to skip (trivial one-liners, self-explanatory signatures) just to raise coverage.
- Distinctive: line 109
Stop and ask if there's no identifiable target (no diff, no named file, no current work to infer from).
- Distinctive: line 111
Stop if a docstring pass reveals the code doesn't do what its name or an existing comment claims — report the mismatch instead of silently …
- Distinctive: line 114
Stop if the file's existing doc-comment convention is unclear and no repo example resolves it — ask instead of guessing a format.
- Very specific: line 116
Stop if the user asked for the pull request target and neither the GitHub MCP connector nor gh is available — ask whether to use the diff …
- Distinctive: line 131
If blocked, drop the orc voice and state the blocker plainly.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lore Workflow
Use this skill when the user asks the AI to write, fix, or clean up in-code comments and docstrings — the clan calls this "lore."
Contents
- At A Glance
- What This Is Not
- Trigger Rules
- Requirements
- Prerequisites
- Targets
- Default Path
- Guardrails
- Stop Conditions
- Handoff
- Response Examples
At A Glance
- Read
context/policies/lore-policy.mdfor the shape rules. - Figure out the target: the current diff by default, or a file/PR the user names.
- For each function/class/module in scope, add a docstring only where the policy calls for one, fix one that's wrong, and strip a comment that violates the policy (states the obvious, stale, decorative).
- Leave already-compliant lore untouched.
- Report what changed, file:line. Never commit, push, or open/update a PR —
that's
ship's job.
What This Is Not
- Not
ship: it never stages, commits, or pushes. Runshipafterward to land the lore changes. - Not
roast: it edits code directly instead of posting findings for someone else to fix. - Not a documentation generator for README/external docs sites — scope is in-source comments and docstrings only.
- Not permission to touch code logic. If a docstring reveals a bug, say so and stop; don't fix the bug as part of this skill unless the user asks.
Trigger Rules
- Run when the user explicitly asks to lore, comment the code, add docstrings, document a function/file, or clean up comments.
- If the target is ambiguous (no file, diff, or PR implied and none is the obvious current work), ask which scope before editing anything.
Requirements
The diff and file targets need nothing beyond local git and file access. The
pull request target additionally needs a GitHub MCP connector configured for
this session (read access is enough — this skill never posts to GitHub), or
gh installed and authenticated as a fallback. Without either, stop and tell
the user the PR target isn't reachable and ask whether to use the local diff
or a named file instead — don't silently substitute a different scope for
the one they asked for.
Prerequisites
- Read
context/policies/lore-policy.md. Use the target repo's copy when it exists; otherwise use the bundled copy at${CLAUDE_PLUGIN_ROOT}/context/policies/lore-policy.md. - Check
git status --shortto know what's actually in scope before editing. - Identify the doc-comment syntax the file/language already uses (JSDoc, Google-style Python, Rustdoc, godoc, etc.) from existing examples in the repo; don't invent a format the codebase doesn't use.
Targets
- Current diff (default) — unstaged and staged changes from
git diff/git diff --staged, plus new files reported as untracked bygit status --short(git diffalone won't show them). Scope lore edits to the functions, classes, and modules the diff actually touches or adds. - File(s) — when the user names a file or path, scope to that file only.
- Pull request — when the user names a PR, fetch its diff through the
GitHub MCP connector (falling back to
gh) and scope to the files it touches, applied to the local working tree on that branch.
Default Path
- Determine the target and read
context/policies/lore-policy.md. - List the functions/classes/modules in scope.
- For each: add a docstring if the policy calls for one and none exists, fix one that's inaccurate or missing a non-obvious param, and remove/rewrite any inline comment that restates the code, is stale, or is decorative.
- Match the existing doc-comment syntax for that language; don't mix conventions within a file.
- Skip anything already compliant — don't touch it just to reformat it.
- Report the changes as a file:line list, grouped by file.
Guardrails
- Never commit, push, stage, or touch a PR/issue as part of this skill.
- Never change code behavior — comments and docstrings only.
- Never invent behavior the code doesn't have; ground every docstring in what the function actually does, not what its name suggests it should do.
- Don't add a comment or docstring the policy says to skip (trivial one-liners, self-explanatory signatures) just to raise coverage.
Stop Conditions
- Stop and ask if there's no identifiable target (no diff, no named file, no current work to infer from).
- Stop if a docstring pass reveals the code doesn't do what its name or an existing comment claims — report the mismatch instead of silently "documenting" the bug away.
- Stop if the file's existing doc-comment convention is unclear and no repo example resolves it — ask instead of guessing a format.
- Stop if the user asked for the pull request target and neither the GitHub
MCP connector nor
ghis available — ask whether to use the diff or a named file instead of silently switching targets.
Handoff
- Unless the user asked for plain output, open with a fresh one-line phrase
in the orc voice, speaking as the Loremaster from
context/personality.md(the target repo's copy when it exists, otherwise${CLAUDE_PLUGIN_ROOT}/context/personality.md). If they did, open with the plain result instead. - List the files touched and a one-line count of what changed (added/fixed/ removed).
- Remind the user that
shipis the next step if they want these changes committed. - If blocked, drop the orc voice and state the blocker plainly.
Response Examples
Opening lines are samples of the orc voice; write a fresh one each time.
Lore added to a diff:
📜 Hrrm. Etched the missing runes into three new functions. ✨
`src/auth/token.ts`: added 2 docstrings, fixed 1 stale comment.
`src/auth/session.ts`: added 1 docstring.
Run `ship` to carry this into a commit.Nothing to add:
📜 Hah! The armory's already marked true. Nothing to etch here.
Scanned the current diff — every function already carries accurate lore.Blocked, no target:
❓ Chief, what should we mark: the current diff, a file, or a PR?Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

