The bot-scaffolding skill
Wingman ships a Claude skill that turns "here are our docs" into a deployable bot.
Installing it
Symlink the skill from the SDK checkout so it stays current:
mkdir -p ~/.claude/skills
ln -s ~/Projects/wingman/skills/create-wingman ~/.claude/skills/create-wingman
It runs only when you type it — /create-wingman — and never because Claude
decided a conversation looked like it wanted a bot.
Using it
/create-wingman https://docs.acme.com "Acme billing support"
Sources can be web pages, a documentation site, or local files. The skill:
- Interviews you briefly — bot name, scope, tone, who to ask for help, platforms.
- Runs
pnpm new-botto scaffold the package, so the files everybody's bot has in common come from the one template that is tested rather than from a description of it. That bot already passes its tests before it knows anything. - Reads every source and replaces the placeholder knowledge base with a sectioned tree of interlinked Markdown, one topic per file, written for both readers: the bot that searches it and the people who read it as a website.
- Writes the bot's starter questions — broad questions, the more specific ones
under them, and a short answer to each, from that knowledge base — so the
bot answers them from the record from its first day. It outlines the tree
before writing a single answer, then has the decision model review it with
pnpm review-questionswhen one is configured, and fixes what it finds. See Recording what people ask. - Adapts what the template could not know — the bot's instructions, a menu derived from the knowledge base's top-level topics, where it goes for a person — and extends the generated tests.
- Builds the knowledge base into the documentation site the Worker serves, and reads it as a stranger would.
- Runs
pnpm typecheck,pnpm testandpnpm site. - Prints the operator checklist — the Slack app, the scopes, the secrets, and whether the documentation should be public.
It never invents facts: everything in the knowledge base is traceable to a source, and gaps are recorded rather than filled in.
Refreshing a knowledge base
Re-run it against the same sources on an existing bot. It rewrites the Markdown and reports contradictions, dropped items, significant changes, and any article URLs that moved — an article's path is a public address once the bot is deployed, so a refresh keeps paths wherever the topic survives. Implementation code is left alone unless you ask.
Related: The knowledge base, The knowledge-base website, Getting started.