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

Distill

skill-komluk-scaffolding-distill · by komluk

Knowledge distillation methodology: candidate extraction, confidence scoring, tier routing, conversation-scoped mode. TRIGGER when: running /learn or /distill, deciding if an insight is memory-worthy, or scoring a knowledge candidate. SKIP: ad-hoc memory reads/writes (use agent-memory); vector storage (use semantic-memory-store).

No reviews yet
0 installs
48 views
0.0% view→install

Install

$ agentstack add skill-komluk-scaffolding-distill

✓ 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-komluk-scaffolding-distill)

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? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Distill Methodology

Guidelines for automated knowledge extraction and consolidation across memory systems.

Knowledge Candidate Criteria

An insight qualifies as a knowledge candidate when it meets ANY of these:

| Criterion | Source | Example | |-----------|--------|---------| | Cross-conversation pattern | 3+ context.md files contain the same insight | "Redis pool exhaustion under SSE load" | | Architectural decision | design.md contains explicit Decision/Rationale section | "Use pgvector for semantic search" | | Recurring gotcha/bug | Keyword match in specs: gotcha, bug, pattern, lesson | "POST 301 redirect strips body" | | Stale reference | File path in memory points to non-existent file | "app/backend/old_module.py" | | Cross-tier duplicate | Same entry in both KNOWLEDGE.md and agent MEMORY.md | Duplicated bullet point |

Confidence Scoring

| Occurrences | Confidence | Tier Recommendation | |-------------|------------|---------------------| | 5+ conversations | 0.5 - 1.0 | shared (KNOWLEDGE.md) | | 3-4 conversations | 0.3 - 0.5 | shared (with review) | | 1-2 conversations | 0.1 - 0.2 | agent-specific MEMORY.md | | Decision section | 0.7 fixed | shared | | Pattern keyword | 0.5 fixed | shared | | Stale reference | 0.9 fixed | cleanup action |

Tier Routing

| Target | When | Path | |--------|------|------| | shared | Cross-cutting insight useful to all agents | .scaffolding/agent-memory/shared/KNOWLEDGE.md | | agent:{name} | Domain-specific to one agent | .scaffolding/agent-memory/agents/{name}/MEMORY.md | | Overflow | KNOWLEDGE.md would exceed 200 lines | Route to most relevant agent file |

Output Format

Candidates are structured as:

- content: The knowledge text (max 500 chars)
- source: File path or "conversations:N_occurrences"
- source_type: conversation | spec | memory | semantic
- confidence: 0.0-1.0
- target_tier: shared | agent:{name}
- tags: categorization tags

200-Line Limit Enforcement

KNOWLEDGE.md has a hard limit of 200 lines (auto-injected into every agent context). When merging would exceed this limit:

  1. High-confidence candidates (>= 0.7) get priority
  2. Lower-confidence candidates overflow to agent-specific files
  3. The orchestrator routes overflow to the most relevant agent based on tags

Dry-Run vs Apply

  • Dry-run (default): Report what would change, write nothing
  • Apply: Create timestamped backup, then write merged content
  • Restore: Revert files from any backup timestamp

Conversation-Scoped Distillation

The /learn command runs distillation against a single conversation rather than mining all of .scaffolding/conversations/. This mode is backend-free and self-contained — no session-log mining, no database.

Inputs for one conversation_id (a UUID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx):

| Input | Path | Role | |-------|------|------| | Conversation memory | .scaffolding/conversations/{id}/agent-memory/context.md | Decisions and findings recorded during the chain | | Design decisions | .scaffolding/conversations/{id}/specs/design.md (## Decisions section, if present) | Architectural choices + rationale |

Apply the Knowledge Candidate Criteria and Confidence Scoring above against these two files only. With a single conversation, the "Cross-conversation pattern" criterion does not apply; rely on the Decision-section and pattern-keyword criteria. If context.md is absent, there is nothing to distill — exit cleanly.

Skill Promotion Criterion

Each distilled candidate routes to one of two destinations:

| Candidate shape | Destination | Decision rule | |-----------------|-------------|---------------| | Situational insight, gotcha, or one-off decision | Memory entry — shared, agent:{name}, or conversation tier per the Tier Routing rules above | The knowledge is a fact about this codebase. | | Repeatable procedure or methodology | New skill — propose a /create-skill invocation with a pre-filled draft | The knowledge is a reusable how-to an agent would follow on future, unrelated tasks. |

Promote to a skill only when the candidate is a generalizable procedure, not a single fact. A one-off fact ("module X has a 301 redirect bug") is a memory entry; a recurring procedure ("how to safely roll a zero-downtime migration") is a skill. When in doubt, prefer a memory entry — skills carry an auto-invocation cost and should stay few and sharp.

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.