/akc-cycle:learn-evalfrom akc-cycle
Extract a reusable pattern from this session and route it to where something reads it, or drop it. Use when saving what was learned in this session (今回の学びを残して).
Ships in akc-cycle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Extract a reusable pattern from the session, gate it, and route every Save to a destination something actually reaches.
Look for:
Review the session for extractable patterns
Identify the most valuable/reusable insight
Determine the destination — there is no parking lot.
Every Save must land somewhere that something actually routes to (ADR-0047), so pick one of exactly two:
hooks/README.md section that already owns the topic. Name the file and the section.
This is the default: an addition to a reachable asset beats a new file. A skill's value
lies in its comprehensiveness, so appending improves it — "I don't want to pollute the
existing skill" routes the pattern to a file nothing reaches.rules/common/skills.md before writing any skill).If neither fits, the verdict is Drop, not "park it somewhere for now". A note that nothing points at is reachable only by grep, and grep requires already knowing the content exists (measurement: ADR-0047).
Global vs project placement (once a destination type is chosen): the source of truth is
docs/decision-history/0025-global-vs-project-asset-placement.md.
Draft the candidate as a scratch note (the final skill shape belongs to skill-writer;
overlap_candidates.py reads name / description / Problem / Solution / When to Use):
# [Descriptive Pattern Name]
description: "Description in 130 characters or less"
**Context:** [Brief description of when this applies]
## Problem
[What problem this solves - be specific]
## Solution
[The pattern/technique/workaround - with code examples]
## When to Use
[Trigger conditions]
Quality gate — checklist + holistic verdict
First, enumerate the overlap candidates — do not grep by hand. The draft from Step 4 is still in the conversation, not on disk, so write it to a file in this session's scratchpad directory with the Write tool and pass that path:
Paths below start at
${CLAUDE_SKILL_DIR}, the directory holding this SKILL.md; an agent that does not substitute the variable reads it as that directory.
uv run --frozen --project "${CLAUDE_SKILL_DIR}" \
python "${CLAUDE_SKILL_DIR}/scripts/overlap_candidates.py" \
--draft /path/to/scratch/learn-eval-draft.md
Two points in this command are load-bearing:
rules/common/security.md treats a SKILL.md as a control program for
exactly this reason: a step that builds shell source out of untrusted text
is an injection path, not a formatting choice.--project only picks the uv environment; the process cwd stays the
invoking repo, so the script's default --project . finds that repo's
MEMORY.md. Adding uv's --directory would move the cwd into the skill
directory and silently drop it.Evidence mode: JSON on stdout, exit 0 however many candidates (exit 2 only when
an input is unreadable). It enumerates; it never says "this is a duplicate".
skill_candidates ranks installed skills by how much of each description
the draft's terms cover (the description is what routes a future session, so a
body match would rank a skill nothing reaches); memory_candidates does the
same over MEMORY.md index lines — project and global — with line numbers.
Both report shared_terms, so a claim of overlap is checkable.
Read the score, not the rank, and read the two lists on different scales:
skill_candidates — a description carries ~30 terms, so the score spreads.
Measured 2026-08-26 against the live 67-skill library: a draft whose
knowledge already had a home scored 0.600 against that skill and ≤0.143
against everything else; a genuinely new draft topped out at 0.100. Treat a
tight cluster below ~0.2 as "no candidate", not "five near-misses". That floor
is language-conditioned — normalize_terms tokenizes each CJK run into
character bigrams (n−1 per n-character run, no stopword list) but Latin text
into stopword-filtered whole words, and the score divides by the candidate
description's own term count, so the same knowledge covers far more of a
Japanese description than of an English one (measured 2026-09-15: a Japanese
twin scored 0.605 while an English twin carrying the identical shared terms
scored 0.079, under the floor) — so compare a score only against candidates
written in the draft's language, and read shared_terms before calling an
English pair "no candidate".memory_candidates — an index line carries 3–8 terms, so the score is noisy
and shared_concepts is the signal. Concepts, not terms: a Japanese
word of n characters produces n−1 matching bigrams, so counting raw terms
let one incidental katakana word outrank a real match. The script drops
anything sharing a single concept; what survives is worth reading.Before reading the candidates, check that the comparison actually ran. Each of these means part of the corpus was never compared, and "no overlap" would be a false clean bill:
memory_files_unreadable non-empty, or memory_files_read empty while
memory_files_missing is not → the memory half did not run. Name the file.skills_unscannable non-empty → those skills were not compared at all. The
one you cannot read is as likely to be the twin as any other.skill_candidates_total / memory_candidates_total above top_n → the list
was truncated; there are more candidates than you were shown.(An empty draft exits 2 rather than reporting no candidates, so a truncated Write fails loudly instead of certifying itself.)
Then run all of the following before evaluating the draft:
shared_terms or the cited MEMORY.md line. "Nothing survived the
floor and the top skill scored 0.09" is a valid answer; "I grepped" is notThen, generate and answer 3–5 draft-specific atomic yes/no questions. The fixed checklist covers harness-invariant checks (duplication, reusability) but does not test the draft's own claims (what it states under Problem / Solution / When to Use), so this step fills that gap:
Weigh the checklist results, the binary answers, and the draft together, then choose exactly one of the following. Always enumerate the No-answered questions as grounds for the verdict (hidden Nos breed verdict drift):
| Verdict | Meaning | Next action |
|---|---|---|
| Save | Unique, concrete, well-scoped | Go to Step 6 |
| Improve then Save | Valuable but needs fixes | No questions = improvement items → fix → re-judge with the same questions (once only) |
| Absorb into [X] | Should be appended to an existing skill | Present the target and the content to add → go to Step 6 |
| Drop | Trivial, redundant, or abstract | Explain why and stop |
Guiding dimensions (reference points for judgment, not a scoring rubric):
Improve then Save improvement list: the No-answered questions become the improvement items as-is. For each No, write one line on what to change to make it a Yes; after fixing, re-judge with the same question set (once only — do not regenerate the questions: if the bar moves, you cannot tell whether the fix worked or the bar loosened).
Confirmation flow (one report, one reply)
Put every candidate in one numbered report, each entry carrying its own evidence
(checklist results + verdict rationale) so it reads on its own, then ask once. The
author answers per entry in one reply (all, all but 2, 3 skip, …). n = discard,
skip = defer for now (leave a one-line reason). A single candidate is the same report
with one entry.
Save to the destination chosen in Step 3
~/.claude/skills/<name>/SKILL.md, and passes it through a fresh-context draft gate
(learn-eval = extraction and Save/Drop judgment / skill-writer = shape, boundary and
gate — a deliberate role split).Reachability check (after a Save only)
State in one line what will route to the saved content in a future session: the section it now lives in, or the skill description that will select it. If the honest answer is "nothing — someone would have to grep for it", the Save was wrong; go back to Step 3 and either absorb it into a reachable asset or Drop it.
### Overlap candidates (from scripts/overlap_candidates.py)
- skills: 0.60 git-workflow [bash, c, cd, git, permission, status] → same knowledge, Absorb
- memory: MEMORY.md:45 feedback_git_dash_c_over_cd, 4 shared terms → already recorded
(or: top skill 0.10, nothing survived the memory floor — no real overlap)
### Checklist
- [x] Candidates judged one by one: (verdict per candidate, quoting shared terms)
- [x] Append-to-existing considered: new file appropriate (or should append to [X])
- [x] Reusability: confirmed (or one-off → Drop)
- [x] Grounding: (the tool output, error or user correction it rests on — a No leans Drop)
### Draft-specific questions
- [Yes] Q1: ... — one-line evidence
- [No] Q2: ... — one-line evidence → (on Improve: one-line fix plan)
### Verdict: Save / Improve then Save / Absorb into [X] / Drop
**Rationale:** (1–2 sentences explaining the verdict; always mention any No questions)
The generic design canon for this evaluation style (binary checks as evidence →
holistic named verdict, no aggregation) is the llm-as-judge skill; Step 5 is its
N=1 implementation.
Design rationale for Step 5's two-layer design (binary question decomposition → holistic verdict):
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
21 skills in this plugin
/agent-stocktakeAudit the agent definitions in a Claude Code harness (~/.claude/agents or a repo's .claude/agents) and give each a verdict./author-calibrated-evalPolish LLM-written prose with the author's own reading as ground truth./context-syncAudit a repo's context documents (CLAUDE.md, ADRs, README, graph.jsonld) for role overlap and staleness against the code, and fix them; README findings are only flagged. Use when the docs may have drifted from the code or duplicate each other. For README content, use readme-writer./decision-historyRecord a design decision as a dated, past-tense entry in the repo's docs/decision-history/, or decide whether it clears the filing bar or belongs in the commit body. Use when recording a decision (経緯を残して / ADR にして), or when context-sync finds a buried decision./generation-auditAudit the harness when a new Claude model takes a role (judge, build or everyday)./harness-boundaryDesign lens: which layer a harness mechanism belongs in, and whether it outlives the next model or runtime.Generated from the plugin's indexed repository (shimo4228/akc-cycle) — no native marketplace selected
npx claudepluginhub p/shimo4228-akc-cycle