knowledge_draft_create
Create a knowledge draft to document flows as ADR, pattern, runbook, or lesson learned. Automatically deduplicates by project, type, and title.
Instructions
Create a new knowledge draft. Called by YOU (Claude) after classifying flows via knowledge_backfill_request, or standalone when you identify a flow worth documenting.
Dedup is automatic — if a draft with the same (projectId, draftType, title) already exists in any status, the existing draft is returned and sourceFlowIds are merged. You can safely call this repeatedly.
Rules:
draftType: one of adr | pattern | runbook | lessons_learned
title: deklarativ, max 60 chars, no prefix like "ADR candidate:"
body: 2–6 short markdown paragraphs, the consumable form of the knowledge
rationale: one sentence why this matters
sourceFlowIds: all flow ids that contributed to this draft (grouping)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | Project ID (defaults to linked project) | |
| draftType | Yes | The type of knowledge this draft represents | |
| title | Yes | Declarative title, max 60 chars | |
| body | No | Markdown body, 2-6 paragraphs | |
| rationale | No | One sentence why this is worth capturing | |
| sourceFlowIds | No | Flow ids that contributed to this draft |