Skip to content

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

  1. Availability check. If either command fails, report AgentWiki publish skipped: <reason> and continue without blocking:

    Terminal window
    command -v agentwiki && agentwiki whoami
  2. Publish the markdown report (preferred: agents read it best). Use a stable --origin-ref per 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 "..." --json

    A report is identified by project, origin, and --origin-ref alone: 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; --title is the name people see. Without --origin-ref the reference is report:<project>/<path of the file in the repository>.

    Add --project <slug> when the repository has no .agentwiki.json; otherwise the CLI uses AGENTWIKI_PROJECT, then .agentwiki.json, then default.

  3. 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
  4. Read url from 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: true means the same content was already published; supersededId names 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.
  • --origin accepts any short slug (a-z, digits, ., _, -), for example ak-brainstorm when another skill publishes.