AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Distill Skill

skill-digital-stoic-org-agent-skills-distill-skill · by digital-stoic-org

Record an interactive Claude Code session and distill it into one or more generalized skills. Captures turns, tool calls, failures, friction, and confusion signals, then hands a structured draft to edit-tool. Use when "distill skill", "record macro", "turn this session into a skill", "extract skill from session", or "/distill-skill [start|finalize]".

— No reviews yet
0 installs
33 views
0.0% view→install

Install

$ agentstack add skill-digital-stoic-org-agent-skills-distill-skill

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-digital-stoic-org-agent-skills-distill-skill)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Distill Skill? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Distill Skill — Session → Skill

Record a CC session, then distill it into a generalized skill via edit-tool. Two modes: forward (record as we go) and retrospective (parse session-so-far).

Modes

| Arg | Mode | When | |---|---|---| | start | Forward | User invokes at/near session start. Creates trace dir, annotates turns going forward. | | finalize | Close out | End of session. Run search-skill dedup, propose split, hand to edit-tool. | | status | Inspect | Show current trace dir + turn count + friction/confusion tally. | | (none) | Retrospective | Parse session-so-far. ⚠️ Warn if compaction may have occurred (turn count high / early context lost). |

Workflow

1. start — initialize trace

: "${PRAXIS_DIR:?PRAXIS_DIR must be set}"
SID=$(date -Iseconds | tr ':+' '-')
DIR="$PRAXIS_DIR/.tmp/distill-skill/$SID"
mkdir -p "$DIR"
echo "$DIR" > "$PRAXIS_DIR/.tmp/distill-skill/.current"

Create three files in $DIR:

  • trace.jsonl — append-only per-turn: {ts, turn, user_intent, tools_used, files_touched, outcome, friction?, confusion_flag?}
  • draft.yaml — RISEN-lite scaffold (see reference.md)
  • anti-patterns.md — what didn't work + why

Respond: 🎬 Recording to $DIR. Annotate turns as you go. /distill-skill finalize when done.

2. Annotate each turn

After each meaningful turn, append to trace.jsonl — fields: user_intent (generalized, not verbatim) · tools_used · files_touched · outcome ∈ {ok,retry,abandoned} · friction (verbatim correction, if any) · confusion_flag (true if assistant asked clarifying Q → signals upfront disambiguation needed).

Keep draft.yaml filled progressively as evidence accumulates.

3. finalize — distill

  1. Compaction check (retrospective only): turn >30 or early context lost → warn, confirm start-of-session facts first.
  2. Generalize: trace.jsonl + draft.yaml → strip session-specifics.
  3. Dedup: /search-skill → report overlap verdict. Mandatory.
  4. Split: ≥2 distinct end-goals with disjoint tools/inputs → propose split, confirm.
  5. Preload scan: Glob $PRAXIS_DIR/reference/ for frameworks referenced → list as @include candidates.
  6. Handoff: /edit-tool with draft.yaml + anti-patterns.md → it triages (skill/bash/agent) and writes. Never write final skill directly.
  7. Kaizen: each retry-friction → append to $PRAXIS_DIR/thinking/kaizen/distill-skill.jsonl.

4. status

Read .current → print $DIR, wc -l trace.jsonl, friction count (grep -c '"friction"'), confusion count.

RISEN-lite scaffold

Structures what to gather, not final format. Full template + trace schema + annotation heuristics + split rules in reference.md.

role: {who performs — inferred from session}
intent: {generalized goal, session-specifics stripped}
steps: [{ordered actions observed}]
end_goal: {observable success criteria}
narrowing: {constraints, anti-patterns, confusion-disambiguation, resources}

Rules

  • Friction + anti-patterns are non-negotiable in final skill's narrowing.
  • Confusion flags → upfront disambiguation in final skill.
  • No compaction handling: warn, don't fix.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.