/alfaedge:kb-write [topic]from AlfaEdge
Write a short doc into the AlfaEdge Outline Knowledge Base. When you finish something worth keeping for the team — a fixed tricky bug, setup or integration steps, a gotcha, a non-obvious config — ASK the user once, at the end of the task, "Want me to add this to the KB?". Invoke this skill ONLY after the user explicitly says yes. Never invoke it on your own.
Ships in AlfaEdge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Topic: $ARGUMENTS (if empty, use what was just built or discussed in this conversation)
Run only if the user explicitly asked for it, or said yes to "add this to the KB?". Otherwise stop now.
Target is ALWAYS the Knowledge Base collection: collectionId = 6b520a26-35eb-4afa-b4d8-dd947d85007a.
collectionId on EVERY create_document call, including folders and nested docs.Only create_document is allowed. Never update, move, or delete. (A hook enforces this.)
NEVER create anything before the user says yes.
Gather — read the relevant code / conversation. Get facts, not guesses.
Check for duplicates — list_documents with query = the topic and collectionId = the Knowledge Base.
See the tree — list_collection_documents for the Knowledge Base.
Pick a place
Knowledge Base › Folder › Doc.Draft a MINIMAL doc — markdown, no H1 (title is separate). Only the sections that apply:
One-line summary of what this is.
## Why
## How it works / Steps
## Commands / Config (code blocks)
## Gotchas
<placeholder>.Preview and confirm — show:
📁 Path: Knowledge Base › <Folder> › <Title>
🆕 Folder: <name> (new) | existing
📝 Doc:
<full markdown>
Then ask with AskUserQuestion: Push / Edit / Cancel.
Push (only after "Push"):
create_document (collectionId = KB, publish: true), keep its id.create_document (collectionId = KB, parentDocumentId = folder id, publish: true).Report — the doc's title and URL.
If the Outline tools are missing or return 401, tell the user to re-run setup:
curl -fsSL https://raw.githubusercontent.com/ArjunKrish7356/alfaedge/master/setup.sh | bash
What SKILL.md sets; muted values are Claude Code's defaults
haiku2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub arjunkrish7356/alfaedge --plugin alfaedge