compile

compile is a skill for Claude Code, Codex from vedantggwp/grimoire. It costs 61 tokens per session (3,567 once invoked), scanned A, original, MIT.

A maintenance workflow for a Grimoire wiki, a collection of linked Markdown notes. It analyzes the note graph, repairs predictable linking issues, identifies gaps, and creates indexes for other workflows.

In plain words
What is it for?
Building backlinks and cross-references, updating the wiki overview, checking for gaps, and compiling indexes after articles have been added.
Why use it?
It helps keep a growing set of linked notes consistent and makes missing connections or content easier to spot.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the grimoire plugin — 8 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/vedantggwp/grimoire/compile
Any agent
npx skills add vedantggwp/grimoire --skill compile
Clone the repo
git clone --depth 1 https://github.com/vedantggwp/grimoire

Made for: Claude Code, Codex.

Or install grimoire, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compile

README.md
[![agentmods](https://agentmods.dev/badge/skills/vedantggwp/grimoire/compile.svg)](https://agentmods.dev/skills/vedantggwp/grimoire/compile)
Your own site
<a href="https://agentmods.dev/skills/vedantggwp/grimoire/compile"><img src="https://agentmods.dev/badge/skills/vedantggwp/grimoire/compile.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00061 $0.03567
Opus 5 $0.00030 $0.01784
Sonnet 5 $0.00012 $0.00713
Haiku 4.5 $0.00006 $0.00357

Measured 3d ago against content hash 092ac853f183, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

compile scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/compile/SKILL.md · 377 lines

How it starts

The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.

compile

Audit the wiki graph, repair deterministic issues, surface gaps, and build serialized indexes for downstream skills (present, serve).

Prerequisites

  • A grimoire workspace must exist — check for SCHEMA.md in the workspace root. If missing, tell the user to run /grimoire:new first.
  • The wiki/ directory must contain at least one article (not counting index.md, overview.md, or log.md). If empty, tell the user to run /grimoire:ingest first.

Step 1 — Locate the Grimoire

Find the grimoire workspace:

  1. Look for SCHEMA.md in the current directory first
  2. If not found, ask the user: "Where is your grimoire? (path to the directory containing SCHEMA.md)"
  3. Confirm the wiki/ directory exists and contains markdown files
  4. Read SCHEMA.md to understand the topic, scope, and taxonomy

Step 2 — Run the Compile Script

Execute the Papyr Core analysis script against the workspace root:

node ${CLAUDE_PLUGIN_ROOT}/dist/compile.js {workspace}

The script auto-detects the nested wiki/ directory. Passing {workspace}/wiki directly also works and is treated identically.

This produces JSON artifacts in {workspace}/wiki/.compile/:

File Contents
audit.json Link validation, orphan analysis, centrality, components, hubs, authorities
graph.json Full graph structure (nodes, edges, backlinks, orphans, statistics)
search-index.json Serialized FlexSearch index (used by serve and present)
analytics.json Content analytics (word distribution, reading time, tag analysis, graph metrics)
notes.json Lightweight manifest (slug, title, tags, word count, headings, links)
overview-metadata.json Enforcement evidence for Step 5. Top-5 centrality articles, the required-citation slug list, coverage stats, and topic clusters (support pages filtered). Step 9 audits wiki/overview.md against this file
taxonomy-proposal.json Enforcement trigger for Step 5.5. Conditional — present ONLY when all three Step 5.5 conditions are met (5+ content articles, 5+ unique tags, SCHEMA taxonomy not "defined"). Contains deterministic tag cooccurrence groupings. Absence = Step 5.5 can be skipped

Read the full file on GitHub · 377 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 377 lines · 61 tokens per session scan A 092ac853f183

Subscribe to this mod's changes

compile is a skill published in the GitHub repository vedantggwp/grimoire (2 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 3,567 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

vault-for-llm

Connect OpenClaw to Vault Agent Memory as a local-first governed project memory layer. Search first, then bounded-read cited source ranges; propose new memories as candidates instead of writing directly into active memory.

zycaskevin/Vault-Agent-Memory · 46 tokens

knowledge-base

Skill "knowledge-base" from Pinvou/pinvou-agent, covering ima knowledge base, operations, routing rules, examples and file upload guard.

Pinvou/pinvou-agent · 0 tokens

karpathy-llm-wiki

Use when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'.

Astro-Han/karpathy-llm-wiki · 67 tokens

knowledge-base

Build and maintain a company knowledge base as a wiki of interlinked markdown notes in the workspace — a private, compounding Wikipedia. Use when the user wants to start or organize a knowledge base / wiki, ingest sources (URLs, documents, pasted notes) into it, ask questions answered from it, or audit (lint) it.…

Open-Curiosity/gini-agent · 119 tokens

plur-memory

Persistent learning for AI agents. Open engram format. Your agent learns from corrections, remembers across sessions, and transfers knowledge across domains.

plur-ai/plur · 31 tokens

plur-memory

Your memory stays on your machine. No cloud, no tracking, no API key. PLUR makes your OpenClaw remember — and shares that memory with every other tool you use.

plur-ai/plur · 41 tokens