원클릭으로
kb-create
Create a new KB document by type with discovery, context-aware content, and auto-incrementing slug
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create a new KB document by type with discovery, context-aware content, and auto-incrementing slug
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use GitKB code intelligence tools instead of grep for finding callers, definitions, usages, and dead code. Trigger when exploring code relationships or searching for symbol usage.
Explore codebase with code intelligence and search across code and documents. Use when searching by concept, finding where functionality lives, or investigating unfamiliar code.
Manage GitKB knowledge base for project documentation, tasks, and context. Use when working with KB documents, viewing tasks, updating progress, or managing project knowledge.
Show GitKB kanban board with task status columns
Complete a task with verification — check acceptance criteria, require evidence, update status
Commit workspace changes to the knowledge base with validation
| name | kb-create |
| description | Create a new KB document by type with discovery, context-aware content, and auto-incrementing slug |
Create a new GitKB document based on the user's input.
Input: $ARGUMENTS
The input format is: <type> [slug] <description>
task, incident, spec, epic, note, or context/. Three forms:
tasks/my-project-28) — use as-is- (e.g. tasks/my-project-) — auto-append next number- (e.g. tasks/my-project) — auto-append -{next number}Examples:
/kb-create task tasks/my-project-28 Add sort flag — exact slug/kb-create task tasks/my-project- Add sort flag — auto-increments to next available/kb-create task tasks/my-project Add sort flag — same as above/kb-create task Add sort flag to git-kb list — fully auto-generates slug/kb-create spec specs/federation-protocol Design the sync protocol/kb-create incident The daemon crashes on startup with empty KBExtract the type (first word), optional slug (second word if it contains /), and description (remainder).
If no type is provided, ask the user what type of document to create. If no description is provided, ask the user to describe what the document is about.
This step is critical. Before creating anything, search for existing related work:
Search for duplicates: kb_search with keywords from the description. If a document already covers this topic, tell the user and ask whether to extend the existing doc or create a new one.
Check the board: git-kb board to understand what's active, what's blocked, and where this new document fits in the current workstream.
Find related documents: Note any documents that should be linked from the new one (parent tasks, related specs, prior incidents with similar symptoms).
Run these searches in parallel to save time. If you find a clear duplicate, stop and ask the user before proceeding.
Use kb_context to understand the project's current state. This ensures the document you create:
If the description mentions specific code (files, functions, modules), use kb_symbols or kb_impact to understand the relevant code and write more precise goals and acceptance criteria.
A. Complete slug — the second word contains / and is a fully-formed slug. Use it as-is.
/ is complete (e.g. specs/federation-protocol, notes/api-design).tasks/my-project-28, incidents/inc-001-auth-timeout).B. Slug prefix — only for numbered types (task, epic, incident). The second word contains / and either ends with - or is a base without a trailing number (e.g. tasks/my-project- or tasks/my-project). Auto-increment:
- to get the base (e.g. tasks/my-project)git-kb list --json and find all slugs matching {base}-{N} (use the appropriate --type for the document being created — e.g. --type task for tasks, --type incident for incidents)N, increment by 1{base}-{N+1}C. No slug provided — fully auto-generate:
| Type | Method |
|---|---|
| task | Run git-kb list --type task --json, detect naming pattern (e.g. tasks/my-project-{N}), increment highest. If no tasks exist, ask the user for a prefix. |
| epic | Run git-kb list --type epic --json, detect naming pattern, increment highest. If no epics exist, ask the user for a prefix. |
| incident | Run git-kb list --type incident --json, pattern incidents/inc-{NNN}-{short-slug}, increment. Derive short slug from description. |
| spec | specs/{short-slug} derived from description (lowercase, hyphens, 2-5 words) |
| note | notes/{short-slug} derived from description |
| context | Ask user for stability level (immutable/extensible/overridable), then context/{level}/{short-slug} |
Create a concise, descriptive title from the user's description. Use title case. Keep it under 80 characters.
Build the document body based on type. Write substantive, project-aware content — not placeholder text. Use what you learned from discovery and context loading to write content that a cold-starting agent could pick up and make progress on.
Task / Epic:
## Overview
[1-2 paragraphs explaining WHAT this task is and WHY it exists.
Reference the current project state. Link to related documents
with [[wikilinks]]. Mention what prompted this work.]
## Goals
- [Concrete goal derived from description and project context]
- [Each goal should be independently verifiable]
## Implementation
[Sketch the approach if obvious from context. Reference specific
files, modules, or functions discovered via code intelligence.
If the approach isn't clear yet, say so — that's fine for a draft.]
## Acceptance Criteria
- [ ] [Specific, verifiable criterion — not vague]
- [ ] [Another criterion — think "how would I test this?"]
- [ ] [Tests pass / no regressions]
## Spec References
- [[related-spec-or-task]] — [why it's related]
Incident:
## Overview
[What happened. When it was discovered. How it was noticed.]
## Symptoms
- [Observable behavior — error messages, incorrect output, crashes]
- [Include exact error text if available]
## Impact
[Who/what is affected. Severity. Is there a workaround?]
## Investigation
[Initial findings. What's been checked so far.
Hypotheses for root cause.]
## Related
- [[related-docs]] — [prior incidents, relevant specs]
Spec:
## Overview
[What this spec covers and why it's needed. Reference the
motivating task or problem.]
## Goals
- [What the design must achieve]
- [Constraints it must satisfy]
## Design
[Proposed approach. Include diagrams (Mermaid) if helpful.
Reference existing architecture from context docs.]
## Alternatives Considered
[Other approaches and why they were rejected.
Document the reasoning so it doesn't get re-litigated.]
## Open Questions
- [Unresolved decisions that need input]
Note:
[Freeform content based on description. Notes don't have a rigid
structure, but should still be clear and useful to a future reader.]
Before creating, verify the document passes these checks:
If any check fails, improve the content before proceeding.
kb_create with the computed slug, title, type, status: "draft", generated content, and inferred tags.kb_commit with message: "Create {type}: {title}".Infer tags from the description and project context:
sqlite, rust, terraform)store, sync, cli, embedding)bug, feature, refactor, dx, perf)phase0, phase2)parent: {slug} to frontmatter[[wikilinks]]resolves: {slug} to frontmatter