AgentKit --wiki
AgentKit --wiki
AgentKit skills such as ak-advise --wiki write a markdown (and often an HTML) report. agentwiki report publish puts that report into an AgentWiki project as a Source with origin agentkit, so it shows up in the project’s Sources, in agentwiki context, and in the next wiki compile.
Commands the skill runs
-
Availability check. If either command fails, report
AgentWiki publish skipped: <reason>and continue without blocking:Terminal window command -v agentwiki && agentwiki whoami -
Publish the markdown report (preferred: agents read it best). Use a stable
--origin-refper topic so republishing replaces the older version instead of adding a second one:Terminal window agentwiki report publish "<report>" --origin agentkit --origin-ref "ak-advise:<repo>/<topic>" --title "..." --jsonA report is identified by project, origin, and
--origin-refalone: publishing again with the same reference replaces the previous version even when the local file name changed (for example a new dated report file). The Source’s file name is derived from the reference;--titleis the name people see. Without--origin-refthe reference isreport:<project>/<path of the file in the repository>.Add
--project <slug>when the repository has no.agentwiki.json; otherwise the CLI usesAGENTWIKI_PROJECT, then.agentwiki.json, thendefault. -
Optionally publish the HTML report too, with its own reference (Sources hold at most 512 KB; a larger HTML file is refused with a message, and the markdown report is enough):
Terminal window agentwiki report publish "<report.html>" --origin agentkit --origin-ref "ak-advise:<repo>/<topic>.html" --title "..." --json -
Read
urlfrom the JSON output and include it in the final response. The full output is:{ "source": { "id": "...", "title": "...", "origin": "agentkit", "status": "active" }, "deduplicated": false, "supersededId": null, "project": "core", "url": "https://app.agentwiki.cc/p/core/sources/..." }deduplicated: truemeans the same content was already published;supersededIdnames the older version it replaced.
The Source page is visible to members of the workspace only. Public sharing (agentwiki doc publish, agentwiki sites upload) stays a separate, explicit step.
Without the CLI (MCP)
Call source_push with origin: "agentkit", a stable originRef, the report text as content, and contentType: "text/markdown" (or "text/html"). The response carries the Source id; the page is https://<app>/p/<project>/sources/<id>.
Notes
- Reports must not contain credentials, tokens, or personal data: Sources feed agent context.
--originaccepts any short slug (a-z, digits,.,_,-), for exampleak-brainstormwhen another skill publishes.