git-wiki AGENTS.md

Repository instructions for Git Wiki, a project that installs and maintains a Markdown-based wiki repository. They describe its files, shell scripts, setup process, and testing conventions.

In plain words
What is it for?
Use them when changing the installer, wiki scaffolding, documentation templates, or related Bash scripts, and when running syntax checks or linting.
Why use it?
They give an agent the project’s layout and the commands needed to check, install, and develop it safely.

Instructions file for CodexOpenCode

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 instructions/rarce/git-wiki/agents-md
Clone the repo
git clone --depth 1 https://github.com/rarce/git-wiki

Made for: Codex, OpenCode.

Per session 672 This file is loaded in full into every session.
When invoked 672 The same file — it is already loaded in full.
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.00672 $0.00672
Opus 5 $0.00336 $0.00336
Sonnet 5 $0.00134 $0.00134
Haiku 4.5 $0.00067 $0.00067

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

Security

Grade A, and why

git-wiki AGENTS.md 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 2d 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.

AGENTS.md · 57 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

This repository distributes the git-wiki Agent Skill and its installer. Root-level files are project documentation and entry points: README.md, install.sh, LICENSE, and assets/demo.gif. The skill lives in skills/git-wiki/: SKILL.md defines behavior and trigger rules, scripts/setup.sh scaffolds a user's wiki repository, and assets/wiki-scaffold/ contains Markdown templates copied into that wiki (CLAUDE.md, index.md, log.md, README.md, and gitattributes).

Build, Test, and Development Commands

  • bash -n install.sh checks installer shell syntax.
  • bash -n skills/git-wiki/scripts/setup.sh checks the wiki scaffolder syntax.
  • shellcheck install.sh skills/git-wiki/scripts/setup.sh runs shell linting when ShellCheck is available.
  • bash install.sh runs the full interactive installer, creating or reusing a wiki repo. Use WIKI_VIS=local to avoid GitHub publishing; other modes exercise GitHub and npx side effects. qmd must already be installed.

Coding Style & Naming Conventions

Shell scripts use Bash with set -euo pipefail, small helper functions (say, warn, die, require), uppercase environment variables, and lowercase local variables. Keep scripts POSIX-friendly where practical, but preserve Bash when existing code depends on it. Markdown files use concise headings, fenced sh examples, and relative links. Wiki page and scaffold file names should be lowercase kebab-case where generated content needs names.

Testing Guidelines

There is no automated test harness. For script changes, run both bash -n commands and ShellCheck if installed. For scaffold changes, review the generated paths expected by setup.sh, especially skills/git-wiki/assets/wiki-scaffold/. For installer changes, prefer WIKI_VIS=local for smoke tests. Use a disposable private GitHub repo and temporary WIKI_DIR only when validating remote publishing, for example: WIKI_REPO=tmp-git-wiki WIKI_VIS=private WIKI_DIR=/tmp/tmp-git-wiki bash install.sh.

Read the full file on GitHub · 57 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. 2d ago First seen · 57 lines · 672 tokens per session scan A ba1965077ebf

Subscribe to this mod's changes

git-wiki AGENTS.md is an instructions file published in the GitHub repository rarce/git-wiki (21 stars, last pushed 2mo ago), licensed MIT. It adds 672 tokens to every session, about $0.0034 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-30.