maintain-wiki

maintain-wiki is a cursor rule for Cursor from danielvm-git/bigpowers. It costs 40 tokens per session (515 once invoked), scanned A, original, MIT.

Agent-maintained OKF wiki — INGEST source docs, LINT for issues, QUERY across concept pages. Run as part of build-epic Step 8 and verify-work Phase 3.

Cursor rule for Cursor

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 rules/danielvm-git/bigpowers/maintain-wiki
Clone the repo
git clone --depth 1 https://github.com/danielvm-git/bigpowers

Made for: Cursor.

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 maintain-wiki

README.md
[![agentmods](https://agentmods.dev/badge/rules/danielvm-git/bigpowers/maintain-wiki.svg)](https://agentmods.dev/rules/danielvm-git/bigpowers/maintain-wiki)
Your own site
<a href="https://agentmods.dev/rules/danielvm-git/bigpowers/maintain-wiki"><img src="https://agentmods.dev/badge/rules/danielvm-git/bigpowers/maintain-wiki.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 515 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00040 $0.00515
Opus 5 $0.00020 $0.00258
Sonnet 5 $0.00008 $0.00103
Haiku 4.5 $0.00004 $0.00052

Measured today against content hash 0c0e03228c2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

maintain-wiki 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 today.

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.

.cursor/rules/maintain-wiki.mdc · 64 lines

What it actually says

Maintain Wiki

Three operations for keeping the OKF wiki bundle consistent with its source docs.

INGEST

Read source doc (CLAUDE.md, CONVENTIONS.md, or SKILL.md) and write/update OKF concept pages:

# Regenerate skills-wiki from SKILL.md files
bash scripts/sync-skills.sh --okf

# Regenerate conventions-wiki from CONVENTIONS.md
bash scripts/decompose-conventions.sh

# Regenerate agent-guide from CLAUDE.md
bash scripts/generate-agent-guide.sh

LINT

Check for common OKF issues:

  1. Stale concepts — source file mtime vs concept page mtime. If source is newer, concept is stale.
  2. Orphan concepts — concept page exists but source doc section no longer exists.
  3. Missing cross-references — skill concept pages with no enforced_by or references links.
  4. Contradictions — two concept pages that make opposite claims about the same topic.
  5. Broken links — internal OKF links that point to non-existent concept pages.
# Quick stale check: compare source vs concept mtimes
for page in specs/skills-wiki/skills/*.md; do
  skill=$(basename "$page" .md)
  source="skills/$skill/SKILL.md"
  if [ -f "$source" ] && [ "$page" -ot "$source" ]; then
    echo "STALE: $skill (SKILL.md newer than concept page)"
  fi
done

QUERY

Search across OKF concept pages to answer questions:

# Find all concepts about a topic
grep -rl "topic" specs/skills-wiki/ specs/conventions-wiki/ specs/agent-guide/

# Trace a convention → enforcing skills
grep -A1 "enforced_by" specs/conventions-wiki/*.md

# Find skill by description keyword
grep -ril "keyword" specs/skills-wiki/skills/*.md

Verify

→ verify: test -d specs/skills-wiki && test -d specs/conventions-wiki && test -d specs/agent-guide

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. today First seen · 64 lines · 40 tokens per session scan A 0c0e03228c2b

Subscribe to this mod's changes

maintain-wiki is a cursor rule published in the GitHub repository danielvm-git/bigpowers (163 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 515 once invoked, about $0.0002 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-09-03.