/agent-continuity:mine-stylefrom Agent Continuity
Mine an author's commits to draft a canonical-style-examples Knowledge note with file/line anchors and Agent Rules. Use when the user wants to capture their own (or a teammate's) idiomatic style in Agent Continuity, or asks to "mine my commits for style examples" / "build a style guide from my authored code".
Ships in Agent Continuity. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interactive walkthrough. Discover, sample, draft, confirm, write.
Ask the user for these. Provide defaults; let the user override any.
git config user.email. Multiple is common — someone might commit as personal + work emails.projects/<one>, src/).*.dart, *.ts, *.tsx, *.py.Dart, TypeScript, etc.). Used in the output filename.<vault>/Knowledge/<Stack>_Functional_Style_Examples.md. The skill assumes the codex vault has already been scaffolded (agent-continuity:init-vault).Build the commit set:
git log \
--author="<email-1>" --author="<email-2>" \
--no-merges \
--since="<date-range>" \
--pretty=format:"%H%x09%ad%x09%s" --date=short \
-- <scope-path>
Surface to the user:
Optional second pass to focus on refactor-heavy commits (refactors expose style explicitly):
git log --author=<email> --no-merges --pretty=format:"%H %s" --grep="^refactor" -- <scope-path>
Read the top high-frequency files in full (or the most recent representative versions of them). For each, look for patterns the author returns to. Examples of the kinds of patterns to look for — adapt to the actual code you find:
switch/match, refined type guards.Either/Task/Option, fold stacks, validation railways, null-at-seams.Pick 6–10 anchors that together illustrate the idiom. Each anchor = one file + one line range (5–15 lines) + the pattern it exemplifies. Prefer anchors from different files; avoid stacking 4 examples from the same module.
Propose the note structure to the user before writing. Default skeleton:
---
date: <today>
type: knowledge
tags: [knowledge, style, <stack-lowercase>, functional]
---
# <Stack> Functional Style Examples
Annotated in-repo exemplars of <author or team>'s idiomatic <stack> style. Each example points at a real file + line range so the pattern stays anchored to live code, not paraphrased.
## How to use this note
- Treat these as *reference patterns*, not strict rules. The Agent Rules at the bottom distill the binding bits.
- When in doubt, read the anchor file in full — the surrounding code is part of the example.
- If an anchor's source has moved or changed substantially, flag it — the note is meant to track current code, not archived snapshots.
## Anchor 1 — <pattern name>
**Source:** `<relative/path/to/file.ext>:<start-line>-<end-line>`
```<lang>
<3–10 line excerpt that shows the pattern>
```
<2–4 sentences explaining what's idiomatic about this code: the choice the author made, what the alternative would have been, and why this is the preferred shape. Avoid abstract theory — point at the specific lines.>
## Anchor 2 — <pattern name>
*(same structure, repeated for each anchor)*
---
## Agent Rules
Distilled binding rules. Apply these when generating new code in <stack>.
1. **<Rule name>.** <One-sentence rule + when it applies + the anchor(s) it derives from.>
2. <…>
*(Aim for 6–10 rules. Each rule is one sentence + a parenthetical anchor reference.)*
Show the user the drafted note in chunks (anchor by anchor) so they can correct interpretations before the file is written.
Once the user approves:
<vault>/Knowledge/Dart_Functional_Style_Examples.md)..draft.md alongside instead).After writing, tell the user:
<vault>/Knowledge/Agent_Orientation.md (Knowledge Index table) pointing to this note.**Codex Anchors:** header in the relevant .agent/rules/*.md files (e.g. rules-<stack>-style.md) so rule consultations route to this canonical content./agent-continuity:add-refactor-entry <commit-hash> for each notable refactor commit to populate the Style Refactor Catalog with concrete before/after pairs.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub monolith-inc/agent-continuity --plugin agent-continuity13 skills in this plugin
/add-refactor-entryGiven a commit hash, derive a before/after entry for Agent Continuity Style Refactor Catalog with the principle applied. Use when the user wants to capture a notable refactor as a teaching example, or asks to "add this commit to the refactor catalog" / "log this refactor"./canvas-mapGenerate an Obsidian Canvas (.canvas) relationship map for a hub note — the note in the center, its outgoing links to one side and its backlinks to the other, wired with edges — saved into the vault's Architecture/ folder. Uses the Obsidian CLI to read the link graph. Use when the user wants a visual map of how a note connects to the rest of the vault, an architecture/dependency diagram, or asks to "make a canvas for X" / "map what links to X"./