knowledge-merge
/knowledge-merge
Use to bring a delivered feature into the knowledge base: after run-plan staged its merge, after a plan run batch by batch, or --partial for an abandoned plan. Writes only on confirmation.
- Author
- pierrebelin ↗
- Repository
- claude-code-toolkit ↗
- Licence
- MIT
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use to bring a delivered feature into the knowledge base: after run-plan staged its merge, after a plan run batch by batch, or --partial for an abandoned plan. Writes only on confirmation.
Arguments
/knowledge-merge <todo/<code>/<CODE>-PLAN.md> [--partial]
Original author description
Use to bring a delivered feature into the knowledge base: after run-plan staged its merge, after a plan run batch by batch, or --partial for an abandoned plan. Writes only on confirmation.
How it works
- 1. Staged already
- 2. Prepare
- 3. Draft
- 4. Review
- 5. Apply
SKILL.md preview
--- name: knowledge-merge description: "Use to bring a delivered feature into the knowledge base: after run-plan staged its merge, after a plan run batch by batch, or --partial for an abandoned plan. Writes only on confirmation." argument-hint: "<todo/<code>/<CODE>-PLAN.md> [--partial]" --- # Knowledge merge Brings a feature into the knowledge base (`knowledge.root` of `.claude/kit.config.json`): the delta of its spec (`kit:new`, `kit:modified`, `kit:retired`) and the ADRs of its sheets. Formats → `../knowledge-sync/references/knowledge-format.md`. - The base changes here only, once the plan is delivered. Nothing reaches it without the user's confirmation; `cctoolkit knowledge-write` is its one writer — never `Write` or `Edit` under it yourself. - `run-plan` stages the merge at the end of a plan with every batch ✅ DONE and writes nothing: this skill shows it and writes it. A plan blocked or partial: its spec stays under `todo/`, its ids stay taken, the run that finishes it stages the merge. - `--partial` is for a plan abandoned for good: only the objects whose batches are all ✅ DONE enter; the others stay in the spec, their ids taken while `todo/<code>/` stays. $ARGUMENTS Argument: the global plan. No path → `ls todo/*/*-PLAN.md`; several → ask. `<CODE>` = the plan's file name without `-PLAN.md`. ## 1. Staged already `cctoolkit knowledge-write status --merge <CODE>` prints a context line → the merge is staged (by `run-plan`, or a stop after §3): §4. Otherwise §2. ## 2. Prepare `cctoolkit knowledge-merge prepare <plan> [--partial]`: - `nothing to merge: ` → say it, stop. - `refused: batches not ✅ DONE` → say which; the plan finishes with `/cctoolkit:run-plan <plan>`, or the user asks for `--partial`. Stop. - `collision: ` lines — an id the spec took as new, given meanwhile to another object (two branches each took the next id) → AskUserQuestion, up to four questions per call, one per collision: the id, the base's title, the spec's. Options "Renumber to <next free> (Recommended)" — the command the line gives rewrites the id in the plan folder and under the source and test roots; "Stop". Renumbered → say `git diff` shows the rewrite, then §2 again. - any other `refused: ` → show it, stop. ## 3. Draft `Agent`, `subagent_type: cctoolkit:knowledge-merger`, a `description`, prompt: ``` plan: <plan> · partial: <yes|no> ``` Nothing else: the agent prepares again and reads the format. Its report ends with `## MERGE STAGED — <CODE>`, or `## BLOCKED` → show the cause and its lines; the drafts stay under `<root>/.merge/<CODE>/.drafts/`: stop. ## 4. Review Show the `+n −n <file>` lines — from the report, or from `cctoolkit knowledge-merge stage <plan>` when §1 sent here — and every `WARN` line: a rule rewritten without a line removed may keep what the feature made false. Then AskUserQuestion: - "Write to the base (Recommended)"; - "Show the full diff first" → `diff -u <base file> <staged file>` per file (`/dev/null` for a new one), the staged files under `<root>/.merge/<CODE>/<Context>/`, an ADR under `<Context>/adr/`; then the same question without this option; - "Stop — drafts kept" — a later `/cctoolkit:knowledge-merge <plan>` resumes at §1. ## 5. Apply `cctoolkit knowledge-write apply --merge <CODE>`: files written, one `HISTORY.md` row per context touched — `Feature` the spec's code, `<CODE> partial` for a partial merge —, `INDEX.md` rebuilt, the staging cleared. `refused: ` → show it; a misplaced rule or a draft to fix → §3 again. Summary: the rows written, the `WARN` lines kept. Next step: review `git diff -- <root>` and commit it with the feature. After a full merge every id of the spec lives in the base: `todo/<code>/` can go.
Versions
The database has no other skills named knowledge-merge.
Database snapshot: 13.11.2026 · package version 6ef7fad2ad7b (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95merge-pr
Merge an open PR for the current branch. Refuses to merge when the worktree has uncommitted changes, consolidates the branch's plan file (renaming the latest Handoff Context section to Final Progress and moving the file to done/ in state-machine mode), merges via GitHub CLI, and… - 100github-renovate-prs
Inspect, triage, approve, and merge GitHub Renovate pull requests with gh. When no repository is provided, use the default preset repository set, build a candidate execution plan, and execute only after explicit user confirmation. Use when the user asks to check, batch-handle,… - 100arn-code-batch-simplify
This skill should be used when the user says "batch simplify", "cross-feature simplify", "batch simplification", "simplify all features", "cross-feature quality pass", "batch code cleanup", "consolidate across features", "deduplicate across features", "cleanup after batch… - 95knowledge-base-management
Guide for working with the Knowledge Base system in DEVS. Use this when asked to add knowledge management features, file handling, or document processing. - 100arn-code-batch-merge
This skill should be used when the user says "batch merge", "merge batch", "arness batch merge", "arn-code-batch-merge", "merge all PRs", "merge batch PRs", "merge the batch", "merge implemented features", "batch merge PRs", "merge open PRs", "merge all feature PRs", "combine… - 87wave-run
Third stage of the wave-triage → wave-plan → wave-run pipeline. Execute one wave of a plan folder written by wave-plan — run the tasks as subagents (in parallel where the environment allows; a task worktree only for concurrent tasks of one feature), merge each task branch into…