agentsclimarketplace

Improvement extraction

Skill justinmchoi/ai-toolkit/skills/engineering/improvement-extraction

Reusable agent skills and baselines for Claude Code, Codex, and Copilot, with deterministic install/verify tooling

Install
npx -y skills add justinmchoi/ai-toolkit --skill improvement-extraction

Assembled 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.

What its author says it does

Copied from the file, not written here

Scan the current session for candidate CLAUDE.md/AGENTS.md baselines or candidate Claude Code skills, and write them as structured notes to a configurable output folder for later manual review. Use when the user asks to extract improvement ideas, capture process improvements, or save candidate baselines/skills surfaced during this session — phrases like "extract improvements", "capture what we'd add to CLAUDE.md", or "save this as a candidate skill idea".

SKILL.md

4.9 KB, as published. Nobody here has run it

Improvement Extraction

Scan the current session for candidate CLAUDE.md/AGENTS.md baselines or candidate skills, and write each as a structured note to a configurable output folder. This is a scratch capture step — candidates land here for later manual review, not automatic promotion into this repo's baselines or skills.

Step 1 — Resolve the output root

  • Read IMPROVEMENTS_ROOT from the environment.
  • If unset, ask the user for the path once, then use it for this run only. Tell them how to persist it so this step isn't needed again:
    • Windows: setx IMPROVEMENTS_ROOT "<path>"
    • macOS/Linux: export IMPROVEMENTS_ROOT="<path>" in their shell profile
  • Never write the resolved path into this skill file or any committed content — the environment variable is the only place it lives.

Step 2 — What counts as a candidate

Only two categories qualify:

  1. Candidate portable baseline — a rule that, had it existed in CLAUDE.md/AGENTS.md at the start of the session, would have prevented a mistake, correction, or ambiguity that actually came up. General enough to survive a future session or a different repo.
  2. Candidate skill — a repeatable, at least partly mechanizable procedure that came up this session and would be cheaper to run as a scripted/semi-scripted skill next time than to redo by hand.

Exclude: routine bug fixes, one-off decisions, anything already covered by an existing baseline or skill, and anything too narrow to generalize past this one task.

Step 3 — Dedup against existing notes

List the files already in IMPROVEMENTS_ROOT and skim their titles and first paragraphs. If a new candidate is a variation or reinforcement of an existing note's topic, extend that file (add an observation, a nuance, a "seen again" note) instead of creating a near-duplicate.

Step 4 — Write one file per genuinely new idea

Filename: kebab-case-topic.md. Use this structure:

# <one-line statement of the proposed rule/skill>

**Status:** improvement note / candidate baseline (or candidate skill) — not yet formalized
**Captured:** <date>
**Context:** <ticket/PR/repo this came from, one line>

## The observation
<what happened that surfaced this>

## The rule (proposed)
<the specific, actionable rule or skill description>

## Nuance (so we don't over-apply it)
<where this should NOT apply>

## What triggered this
<the concrete incident(s), with enough detail to be self-explanatory later>

## Future work
<what it would take to actually formalize this as a baseline or a skill>

No confirmation gate before writing — IMPROVEMENTS_ROOT is a working/scratch folder for candidate ideas, not curated long-term memory or this repo's governed skill/baseline inventory.

Step 5 — Report back

State which files were created vs. extended, with a one-line summary of each.

Relationship to other end-of-session tools

This is a third, distinct capture tool, not a replacement for whatever session-log or personal-lesson skills already exist in this environment:

  • A session-log capture skill (e.g. capture-assistant-session) → full session log, written to a personal work-log vault.
  • A lesson-extraction skill → sanitized, cross-company-portable personal knowledge distilled into a personal vault for the user's own long-term reference. It is not aimed at producing a repo baseline or skill.
  • improvement-extraction (this skill) → things learned this session that could become a future CLAUDE.md/AGENTS.md baseline rule or a Claude Code skill, written as one candidate markdown file per idea so each can be reviewed and formalized into an actual baseline or skill later, one at a time. Stays inside the work context (a project folder), not a personal vault.

If neither of the other two skills exists in this environment, that's fine — this skill still runs standalone.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.