Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

knowledge-merge

/knowledge-merge

Wprowadza dostarczoną funkcję do bazy wiedzy po przygotowanym scaleniu run-plan albo po partiach planu, także częściowo dla porzuconego planu, i zapisuje dopiero po potwierdzeniu.

Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Wprowadza dostarczoną funkcję do bazy wiedzy po przygotowanym scaleniu run-plan albo po partiach planu, także częściowo dla porzuconego planu, i zapisuje dopiero po potwierdzeniu.

Argumenty

/knowledge-merge <todo/<code>/<CODE>-PLAN.md> [--partial]
Oryginalny opis (EN)

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.

Jak działa

  1. 1. Staged already
  2. 2. Prepare
  3. 3. Draft
  4. 4. Review
  5. 5. Apply
Sekcje z nagłówków SKILL.md, w oryginale · 50 linii, 554 słów
Podgląd SKILL.md
---
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.

Wersje

W bazie nie ma innych skilli o nazwie knowledge-merge.

Migawka bazy z 13.11.2026 · wersja paczki 6ef7fad2ad7b (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95merge-pr
    Scala otwarty pull request dla bieżącej gałęzi, porządkuje plik planu i usuwa stare worktree po scaleniu.
  • 100github-renovate-prs
    Przegląda, zatwierdza i scala pull requesty Renovate przez gh, budując plan wykonania i uruchamiając go dopiero po wyraźnym potwierdzeniu.
  • 100arn-code-batch-simplify
    Upraszcza kod po scaleniu wielu funkcji: wyszukuje duplikację między nimi i konsoliduje ją w jednym przejściu jakościowym.
  • 95knowledge-base-management
    Prowadzi przy rozbudowie systemu bazy wiedzy w projekcie DEVS, obejmując obsługę plików i przetwarzanie dokumentów.
  • 100arn-code-batch-merge
    Znajduje otwarte pull requesty z wdrożeniami wsadowymi, analizuje konflikty, ustala optymalną kolejność scalania i wykonuje merge.
  • 87wave-run
    Wykonuje jedną falę zadań z planu: uruchamia zadania jako podagenty, scala gałęzie, uruchamia testy i zapisuje statusy na gałęzi śledzenia.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.