From quoth
Anti-bloat curation for learned knowledge bases — quality gates at ingestion, cosine-based dedup with LLM verification, credible-interval retirement, temporal staleness. Use when building self-updating RAG/pattern stores that must stay small and high-signal.
How this skill is triggered — by the user, by Claude, or both
Slash command
/quoth:knowledge-base-curationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Self-learning knowledge bases bloat over time. Patterns accumulate faster than they're refined. Generic patterns dominate retrieval. Signal-to-noise degrades.
Self-learning knowledge bases bloat over time. Patterns accumulate faster than they're refined. Generic patterns dominate retrieval. Signal-to-noise degrades.
/^When \w+ing a file/i)common = top_1000_tokens(all_patterns)
distinctiveness(pattern) = |unique_tokens(pattern) - common| / |unique_tokens(pattern)|
Rare tokens = distinctive = retain. Common tokens = generic = reject.
| Parameter | Value | Rationale |
|---|---|---|
| cosine merge threshold | 0.92 | balances recall vs false-merge |
| CI upper retirement | 0.4 | below global median on a well-calibrated system |
| min attempts | 20 | avoid retiring during cold-start |
| staleness | 90d | preserve rare but important patterns |
def curate_weekly(db):
backfill_distinctiveness(db) # recompute on latest corpus
retire_poor(db, ci_upper_threshold=0.4)
retire_stale(db, staleness_days=90)
pairs = find_duplicates(db, cosine_threshold=0.92)
for pair in pairs:
verdict = llm_judge_dedup(pair) # pairwise "same rule or distinct?"
if verdict == 'merge': merge(pair, keep=higher_confidence)
-- Retire with reason
UPDATE patterns
SET status='archived', retired_at=:now, retired_reason='low-ci-upper'
WHERE id=:id;
-- Find dedup candidates (requires embedding column)
SELECT a.id, b.id, cosine(a.embedding, b.embedding) sim
FROM patterns a, patterns b
WHERE a.id < b.id AND a.status='active' AND b.status='active'
ORDER BY sim DESC LIMIT 100;
npx claudepluginhub montinou/quothCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.