Wiki process queue

From stevehuang0115/crewly · View interactive version

Wiki process queue is an AI agent skill from the GitHub repository stevehuang0115/crewly. Claim the next pending wiki-queue item and get the vault context your LLM needs to classify it into llm-curated/<folder>/<page>.md. No preset taxonomy — your LLM picks the target.

How to use this skill

Skill file

Wiki Process Queue

Claim the next pending queue item and get back the vault state your runtime's LLM should classify against. This skill does not call an LLM. It returns the structured context; your runtime concatenates with the per-LLM task-instruction prompt and synthesizes a target page.

After this skill returns, YOUR runtime MUST:

  1. Read result.item.content + result.item.reason (the agent who queued it justified why).
  2. Read result.vaultContext (SCHEMA, frozen paths, recent log, candidate pages).
  3. Use your LLM to pick a target. Options:
  1. Cascade-update related pages (2026-05-26 — Karpathy 10-15-pages-per-source rule). After writing the primary target, ask: "what existing pages in this vault are now stale or contradicted because of this new content?" Run wiki-query with the topic to surface related pages, read each, and decide:
  1. Commit:

Hard rules your LLM must honor

Inputs

| Flag | Required | Description |

|---|---|---|

| --claimed-by <session> | yes | Your agent session name. Defaults to $CREWLY_SESSION_NAME or crewly-orc. |

| --vault <path> | no | Filter to a specific vault. Default: any vault with pending items. |

| --offset <n> | no | Skip the first N pending items. Useful for retry after a skip. |

| --top-k <n> | no | How many candidate pages to surface (default 5). |

| --recent-log <n> | no | How many tail log entries to include (default 10). |

Output

{
  "success": true,
  "result": {
    "item": { "id": "uuid", "content": "...", "reason": "...", "status": "claimed", ... },
    "vaultContext": {
      "vault": { "scope": "project", "id": "crewly", "path": "..." },
      "schemaSummary": { "hardcoded": [...], "llmCurated": [...], "frozenPaths": ["memory/", "sop-overrides/"], "writePolicy": {...} },
      "recentLog": [...],
      "candidatePages": [{"path": "llm-curated/customers/anthropic.md", "score": 9, "excerpt": "..."}],
      "callerNotes": ["Cite pages by path.", "Refuse writes into frozenPaths.", ...]
    },
    "classifierNotes": [
      "You have ALREADY decided this item is wiki-worthy at queue-add time...",
      "Pick the target page path under llm-curated/...",
      ...
    ]
  }
}

Failure modes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.