knowledge-flush

knowledge-flush is a skill for Claude Code from choiyounggi/dev-loop. It costs 117 tokens per session (3,669 once invoked), scanned A, original, MIT.

A skill that turns queued session insights into a reviewed wiki pull request. It researches and verifies each insight, checks for duplicates, chooses where it belongs, and prepares the wiki contribution without merging it.

In plain words
What is it for?
Processing queued lessons from coding sessions, linking them to existing wiki content, and opening reviewable wiki changes.
Why use it?
It keeps proposed knowledge separate from the main wiki until the repository owner can review it, while reducing duplicate or unsupported entries.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions AGENTS.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dev-loop plugin — 9 skills, 11 agents, 6 hooks, 1 MCP server shipped together

Good fit Processing queued lessons from coding sessions, linking them to existing wiki content, and opening reviewable wiki changes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add choiyounggi/dev-loop
Claude Code
/plugin install dev-loop

Made for: Claude Code.

Or install dev-loop, the plugin that ships this one along with the rest of its 9 skills, 11 agents, 6 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for knowledge-flush

README.md
[![agentmods](https://agentmods.dev/badge/skills/choiyounggi/dev-loop/knowledge-flush/github.svg)](https://agentmods.dev/skills/choiyounggi/dev-loop/knowledge-flush)
Your own site
<a href="https://agentmods.dev/skills/choiyounggi/dev-loop/knowledge-flush"><img src="https://agentmods.dev/badge/skills/choiyounggi/dev-loop/knowledge-flush/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for knowledge-flush

Your own site · 80×15
<a href="https://agentmods.dev/skills/choiyounggi/dev-loop/knowledge-flush"><img src="https://agentmods.dev/badge/skills/choiyounggi/dev-loop/knowledge-flush.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00117 $0.03669
Opus 5.5 $0.00047 $0.01468
Sonnet 5.5 $0.00023 $0.00734
Haiku 4.5 $0.00012 $0.00367

Measured 5d ago against content hash 4db9851cae6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

knowledge-flush scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/knowledge-flush/SKILL.md · 261 lines

How it starts

The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.

knowledge-flush — queued insights → verified wiki PR

Turn the ★ Insight candidates harvested from your sessions into a wiki contribution, PR-only — you (the repo owner) review each PR and merge or reject it. This skill NEVER auto-merges and NEVER pushes to main.

The queue lives at ~/.dev-loop/queue/*.jsonl (written by the Stop hook). Each row is a candidate: trigger, directive, why, evidence, domain, tags, content.

Non-negotiable order (a PreToolUse gate enforces it)

hooks/pre-flush-pr-gate.sh blocks gh pr create on a knowledge branch unless an INGEST_REPORT.md with three filled sections exists. So do the work first:

  1. Acquire the shared flush lock — before anything else, including the checkout reset in step 1. This skill and the hooks/auto-flush.sh Stop hook are the two entry points that drain the same queue; both serialize through the same lock (scripts/flush-lock.sh, issue #77).

    Generate this run's id once, here, and record it — every later flush-lock.sh call in this flush (the abort-path release below, and step 5's release) must be prefixed with it. This is mandatory, not a style choice: each step in this skill runs in its own fresh shell, so nothing carries between them on its own — an unprefixed call computes a brand-new run id that no longer matches the one that acquired the lock, so release is refused as a foreign caller and the lock leaks for the full TTL.

    RUNID="flush-$(date +%Y%m%d-%H%M%S)-$$"
    echo "$RUNID"          # record this — every later flush-lock.sh call needs it
    export DEV_LOOP_FLUSH_RUN_ID="$RUNID"
    sh "${CLAUDE_PLUGIN_ROOT}/scripts/flush-lock.sh" acquire
    

    Always set the run id with export on its own line immediately before the flush-lock.sh call, in the SAME shell invocation — never as an inline DEV_LOOP_FLUSH_RUN_ID=... sh ... prefix. A headless run (see hooks/auto-flush.sh) auto-approves this call against a fixed allowlist that can match a literal sh .../flush-lock.sh acquire|release command but can never auto-approve an unscoped env-var-prefixed command.

    • Exit 0 → proceed to step 1.
    • Non-zero exit → do not touch ~/.dev-loop/repo. Read the failure line (held <holder-runid> <age>s on stderr) and tell the user: "a flush is already running (holder <holder-runid>, started <age>s ago) — stopping." Then stop. Do not retry, poll, or wait for the lock. The lock is released once, at the very end of step 5 on a successful flush. If you abort or hit an unrecoverable error at any point after acquiring it, release it before stopping — prefixed with the same $RUNID recorded above — so the next run does not wait out the TTL:
    export DEV_LOOP_FLUSH_RUN_ID="<the run id you recorded above>"
    sh "${CLAUDE_PLUGIN_ROOT}/scripts/flush-lock.sh" release
    

Read the full file on GitHub · 261 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +18 lines 4db9851cae6b
  2. 29d ago Changed · +12 lines 551c22cb5203
  3. 1mo ago First seen · 231 lines · 117 tokens per session scan A 2c0ff8aae056

Subscribe to this mod's changes

knowledge-flush is a skill published in the GitHub repository choiyounggi/dev-loop (6 stars, last pushed today), licensed MIT. It adds 117 tokens to every session and 3,669 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

learn

Use when users /learn, save, remember, or distill lessons.

tigerless-labs/autoharness · 17 tokens

building

Use when writing production code test-first: the RED-GREEN-REFACTOR cycle, false-RED detection, vertical slicing, scope escalation, test process discipline, and code generation patterns.

romiluz13/cc10x · 43 tokens

cc10x-guide

Answers questions about cc10x itself — what it is, how to install and configure it, how the router, workflows, memory, and hooks operate, and how to troubleshoot. Use this skill when: the user asks ABOUT cc10x — "what is cc10x", "how do I configure cc10x", "why isn't cc10x activating", "how do cc10x workflows work"…

romiluz13/cc10x · 231 tokens

memory-and-handoff

Two-mode skill: (1) session memory — load/persist durable workflow state under .cc10x/ (activeContext, patterns, progress) so context survives compaction; (2) handoff package — portable, secrets-redacted export for a coworker, different tool, or fresh non-cc10x session.

romiluz13/cc10x · 70 tokens

plan-review-gate

Use after saving a non-trivial plan or decision RFC when a fail-closed feasibility, completeness, and alignment review must block execution.

romiluz13/cc10x · 32 tokens

codebase-design

Canonical deep-module vocabulary (module, interface, depth, seam, adapter, leverage, locality) for designing a module's shape — a lot of behaviour behind a small interface at a clean seam, testable through that interface. The single source of truth for these terms; other skills (architecture, codebase-hygiene) point…

romiluz13/cc10x · 109 tokens