git-wiki: Instructions file for Claude Code

CLAUDE.md

git-wiki CLAUDE.md is an instructions file for Claude Code from rarce/git-wiki. It costs 1,166 tokens per session, scanned C, original, MIT.

Repository instructions for git-wiki, a tool that helps create and maintain a wiki from a Git repository. They explain the project layout, installer, validation, and the difference between the tool’s own files and files copied into a user’s wiki.

In plain words
What is it for?
Use them when changing the git-wiki skill, installer, or wiki templates, and when checking how a new wiki is created and configured.
Why use it?
They prevent contributors from running wiki operations in the wrong repository or editing a template when they meant to change the tool itself. They also clarify the setup commands and environment settings involved.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is rarce/git-wiki's own configuration. It tells Claude Code how to work on git-wiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything git-wiki configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rarce/git-wiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rarce/git-wiki/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/rarce/git-wiki

Made for: Claude Code.

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 git-wiki CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rarce/git-wiki/claude-md/github.svg)](https://agentmods.dev/instructions/rarce/git-wiki/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/rarce/git-wiki/claude-md"><img src="https://agentmods.dev/badge/instructions/rarce/git-wiki/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-wiki CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rarce/git-wiki/claude-md"><img src="https://agentmods.dev/badge/instructions/rarce/git-wiki/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,166 This file is loaded in full into every session.
When invoked 1,166 The same file — it is already loaded in full.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01166 $0.01166
Opus 5.5 $0.00466 $0.00466
Sonnet 5.5 $0.00233 $0.00233
Haiku 4.5 $0.00117 $0.00117

Measured 1mo ago against content hash 6a58be1a2251, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

git-wiki CLAUDE.md scanned grade C with 2 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 1mo 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- `install.sh` — one-shot bootstrap run by end users via `curl | bash`. Creates

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `install.sh` — one-shot bootstrap run by end users via `curl | bash`. Creates
CLAUDE.md · 90 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this repo is

This repo distributes the git-wiki Agent Skill and its installer. It is not itself a wiki. Do not run wiki operations (ingest/query/lint) here — those run in a user's wiki repo after they install the skill. Working here means editing the skill definition, the installer, and the scaffold templates.

Two distinct audiences, easy to confuse:

  • This repo's AGENTS.md — contribution rules for editing this repo.
  • skills/git-wiki/assets/wiki-scaffold/CLAUDE.md — the schema that gets copied into a user's wiki and loaded there. Editing it changes the conventions every newly scaffolded wiki follows; it has no effect on this repo.

Layout

  • install.sh — one-shot bootstrap run by end users via curl | bash. Creates (GitHub or local-only) a wiki repo, runs npx skills add rarce/git-wiki, then invokes the scaffolder. Calls git, npm, npx, qmd, optionally gh.
  • skills/git-wiki/SKILL.md — the skill: frontmatter, trigger rules, and the ingest/query/lint procedures the agent follows.
  • skills/git-wiki/scripts/setup.sh — the scaffolder. Run from inside an existing git repo that already contains the skill; lays out the wiki files and registers with qmd. It must never create/clone/publish a repo or install packages — that boundary is enforced and load-bearing (see CHANGELOG security notes).
  • skills/git-wiki/assets/wiki-scaffold/ — templates (CLAUDE.md, config.yml, index.md, log.md, README.md, gitattributes, gitignore) copied into the user's wiki by setup.sh. {{DATE}} and {{REPO}} placeholders are substituted at scaffold time ({{REPO}} becomes the qmd collection / named-index name).
  • scripts/ — demo tooling (record-demo.sh, compact-cast.py); regenerates assets/demo.gif and .cast files. Not part of the shipped skill.

Validation

Read the full file on GitHub · 90 lines

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. 1mo ago First seen · 90 lines · 1,166 tokens per session scan C 6a58be1a2251

Subscribe to this mod's changes

git-wiki CLAUDE.md is an instructions file published in the GitHub repository rarce/git-wiki (22 stars, last pushed 4mo ago), licensed MIT. It adds 1,166 tokens to every session, about $0.0047 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories