/aif-skills:wiki-publishfrom aif-skills
Publish markdown to the Company wiki through Wiki.js GraphQL — bootstrap an ephemeral working copy, then create or update live pages. User-invoked only.
Ships in aif-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Endpoint: POST $WIKI_URL/graphql
Auth: Authorization: Bearer $WIKI_API_KEY — load WIKI_URL and WIKI_API_KEY from workspace .env (those two keys only; never print the key)
Leading words: preflight · working copy · index propagation · plan · APPROVE · mutate · cleanup
Mutation shapes: REFERENCE.md.
Durable store = the Company wiki. Working copies are ephemeral under $TMPDIR/wiki-publish/. Never write Wiki page markdown into a project repo (no docs/wiki-packs/).
Speak locale-absolute URLs to the user (/en/…, /th/…). GraphQL path omits the locale prefix (locale is a separate field). Never use markdown hrefs ./standards/… or ../… — Wiki.js nests those under the current page.
Completion: every target has locale, GraphQL path, working-copy path, intended title, and a create/update intent once preflight runs.
/en/standards/templates/overview or ./standards/templates/overview → GraphQL path standards/templates/overview)./en/… → locale: "en"; /th/… → locale: "th"; path has no locale prefix.$TMPDIR/wiki-publish/<path-with-/-as-->.md for en; same stem with .th.md for th (e.g. projects-foo-overview.th.md).content.# heading unless the user overrides./en/… or /th/… matching the page locale), not ./ or ../.singleByPath, propagation-table paths only) + patch before Plan B.Completion: user has chosen a mode; Plan A is ready (no file written yet).
Offer exactly one mode per missing target:
| Mode | Source of content |
|---|---|
| stub | Minimal markdown: # <title> + short placeholder body |
| pull template | Live wiki page under standards/templates/… matching the leaf type; if missing → stub |
| pull live | pages.singleByPath for the target path; if missing → stub |
Show Plan A:
| path | working copy | mode | title |
|---|---|---|---|
| … | $TMPDIR/… | stub | pull template | pull live | … |
Stop. Wait for exact APPROVE. Then write the working copy only. Print the file path. Stop again for human edit — do not enter Plan B until the user says they are ready or re-invokes /wiki-publish.
Completion: auth OK; for each path, parents exist; create-vs-update decided.
WIKI_URL and WIKI_API_KEY from workspace .env — those two keys only (REFERENCE.md). If the file or either value is missing → notify the user and stop. Do not invent a host. Do not echo the key. Do not source .env.pages.list(limit: 1) (or equivalent) — fail closed on auth errors; notify the user.pages.singleByPath(path, locale) → update if id, else create.curl for HTTPS if Python SSL verify fails.Completion: user sees the plan table; no GraphQL mutations yet.
| path | id or — | action | working copy | title |
|---|---|---|---|---|
| … | … | create | update | $TMPDIR/… | … |
Live URL form: $WIKI_URL/<locale>/<path>.
Stop. Wait for exact APPROVE.
yes / ok / go are not enough.
Completion: every planned row has success and singleByPath verify.
pages.create with editor: "markdown", isPublished: true, isPrivate: false, tags: [], body from working copy.page.locale in the create selection set. Prefer responseResult + verify query.pages.update(id: …) with new content / title; keep editor: "markdown", isPublished: true.singleByPath → confirm id, path, title.Completion: every successfully verified working copy from this run is deleted; failures remain with path printed.
id exists.APPROVE gates Plan A (local write) and Plan B (wiki mutate).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aifgrouplaos/ai-skills --plugin aif-skills41 skills in this plugin
/ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
/cherry-pick-to-mainPrepare a feature branch created from `develop` for a selected target branch such as `main` or `uat`, creating a target-prefixed branch and cherry-picking only that feature's commits. Use when a feature needs a separate branch based on a chosen target.Other plugins' skills for the same job