knowledge-build
БесплатноБез исполняемых скриптовНе проверенOrchestrates parallel KB generation using spatial analysis and a map-reduce architecture with incremental and feature-learning modes.
от rp1-run★ 38 звёзд на GitHubОб этом скилле
Knowledge Build
§ROLE: KB orchestrator. Update kbRoot, not workRoot.
§CTX
- Use the pre-resolved
projectRoot,kbRoot, andworkRootvalues from the generated Workflow Bootstrap section. - KB outputs live under
kbRoot:index.mdconcept_map.mdarchitecture.mdinteraction-model.mdmodules.mdpatterns.mdfeatures.mdstate.jsonmeta.json
index.mdis orchestrator-owned. Never delegate it.state.jsonis shareable.meta.jsonis local-only and SHOULD be gitignored.- Exclude these paths from change scope and file hygiene:
node_modules/,.git/,build/,dist/,cli/dist/,target/,.next/,__pycache__/,vendor/,.venv/,.rp1/context/
§DO
- Execute immediately. No approval loop.
- Single pass. No refinement loop.
- Treat this as an orchestrator, not a wrapper.
FULLmeans wide evidence collection, not blank-slate regeneration.- When prior KB exists, section agents MUST reconcile against it, even in
FULL. - Section agents MUST also treat prior KB as incomplete and perform one explicit novelty scan for material knowledge absent from it.
- Replace all placeholders with concrete values before dispatching child agents.
- Spawn the 6 analysis agents in one parallel batch.
- Wait patiently for child agents on the critical path. Do not declare them stalled after a short wait.
- Keep user-visible output terse:
- Initial status line
- Sparse progress only when useful
- Final report or fatal error
§PROC
1. Detect Mode
- Use the pre-resolved directories. Create
kbRootif missing. - If
FEATURE_IDis non-empty:- Set
MODE=FEATURE_LEARNING. - Search, in order:
{workRoot}/archives/features/{FEATURE_ID}{workRoot}/features/{FEATURE_ID}
- If neither exists: report the checked paths, stop.
Read:requirements.mddesign.mdfield-notes.mdif presenttasks.md
- Extract
FILES_MODIFIEDfromtasks.mdimplementation summaries. Accept patterns like**Files**:and**Files Modified**:. - If
FILES_MODIFIEDis empty: explain that feature learning needs a concrete file scope, stop. - Build
FEATURE_CONTEXTwith:- feature id
- feature path
- summarized requirements
- architectural decisions
- discoveries from field notes
- implementation patterns
files_modified
- Set:
FILE_SCOPE=FILES_MODIFIEDFILE_DIFFS={}INITIAL_MESSAGE=Feature learning build for {FEATURE_ID}
- Set
- Else use git-driven mode:
- Read
{kbRoot}/state.jsonif it exists. - Get
CURRENT_COMMITviagit rev-parse HEAD. - If no
state.json:- Set
MODE=FULL FILE_SCOPE=[]FILE_DIFFS={}INITIAL_MESSAGE=First-time KB generation with parallel analysis (10-15 min)
- Set
- Else read:
OLD_COMMIT=state.json.git_commitREPO_TYPE=state.json.repo_type // "single-project"repo_root+current_project_pathfrom{kbRoot}/meta.json- Fallback: use
state.jsonfor those local fields only ifmeta.jsonis absent
- If
OLD_COMMIT == CURRENT_COMMIT:- Output
KB is up-to-date (commit {CURRENT_COMMIT}). No regeneration needed.and stop
- Output
- Build scoped changed-file list:
- If
REPO_TYPE=monorepo, run diff fromrepo_rootand filter tocurrent_project_pathunless it is.or empty - Else diff the current repo normally
- Drop excluded paths and obviously irrelevant binary/media files
- If
- If scoped change list is empty:
- Update only
git_commitinstate.json - Keep all other fields unchanged
- Output
No in-scope changes. Updated commit reference ({OLD_COMMIT} -> {CURRENT_COMMIT}).and stop
- Update only
- Preserve the full scoped changed-file list as the evidence frontier in both
FULLandINCREMENTAL. - Count changed files:
> 50->MODE=FULL<= 50->MODE=INCREMENTAL
- If
MODE=FULL:INITIAL_MESSAGE=Large change set ({N} files). Wide reconcile (10-15 min)FILE_SCOPE=<scoped changed files>- Build
FILE_DIFFSaspath -> git diff OLD_COMMIT CURRENT_COMMIT -- path
- If
MODE=INCREMENTAL:INITIAL_MESSAGE=Changes detected since last build ({OLD_COMMIT} -> {CURRENT_COMMIT}). Analyzing {N} changed files (2-5 min)FILE_SCOPE=<scoped changed files>- Build
FILE_DIFFSaspath -> git diff OLD_COMMIT CURRENT_COMMIT -- path
- Read
- Print
INITIAL_MESSAGE.
2. Spatial Analysis
- Spawn the spatial analyzer with the actual mode and changed-file frontier:
{% dispatch_agent "rp1-base:kb-spatial-analyzer" %} Use the computed build inputs from the parent orchestrator.
- MODE: actual build mode (
FULL,INCREMENTAL, orFEATURE_LEARNING) - CHANGED_FILES: actual JSON array for the scoped changed-file list when available; empty only for first-time
FULL - Task: rank files 0-5 and categorize them into
index_files, `con
Установить knowledge-build в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(echo *)Bash(rp1 *)Bash(git *)Bash(jq *)Bash(wc *)Bash(mkdir *)FAQ
Что делает скилл knowledge-build?
Orchestrates parallel KB generation using spatial analysis and a map-reduce architecture with incremental and feature-learning modes.
Как установить скилл knowledge-build?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл knowledge-build запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic