using-grimoire

A set of instructions that requires checking for applicable Grimoire skills before beginning a task.

In plain words
What is it for?
Use it at the start of tasks in environments where Grimoire skills are available, including before asking questions, inspecting files, planning, or making changes.
Why use it?
It prevents relevant Grimoire guidance from being missed when working in an environment that provides those skills.

Skill for Claude CodeCodex

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/hon454/grimoire/using-grimoire
Any agent
npx skills add hon454/grimoire --skill using-grimoire
Clone the repo
git clone --depth 1 https://github.com/hon454/grimoire

Made for: Claude Code, Codex.

Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,021 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.00051 $0.01021
Opus 5 $0.00026 $0.00511
Sonnet 5 $0.00010 $0.00204
Haiku 4.5 $0.00005 $0.00102

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

Security

Grade A, and why

using-grimoire 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.

plugins/grimoire/skills/using-grimoire/SKILL.md · 91 lines

How it starts

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

Using Grimoire

Pre-Response Gate

Before any response or action, decide whether a Grimoire skill may apply.

If you cannot rule out that a Grimoire skill applies, load it first. This gate happens before clarifying questions, planning, file inspection, shell commands, web search, edits, or quick answers.

If a loaded skill turns out not to apply, stop using that skill and continue. Loading an irrelevant skill is acceptable; skipping a relevant skill is a failure.

Instruction Priority

Higher-priority system, developer, and repository instructions remain binding.

Within those constraints, user instructions define what to do. Grimoire skills define how to do the work when they apply. They override default agent habits, but they do not override explicit user instructions or higher-priority instructions.

Loading Skills

Inspect the available Codex skill names and descriptions, then read each applicable skill's SKILL.md when available.

GitHub Safety Gate

Prefer GitHub CLI (gh) for GitHub operations. Never mutate GitHub authentication from inside an isolated agent sandbox. Treat an authentication failure observed only inside that sandbox as inconclusive, and never expose a token or choose insecure credential storage as a workaround.

Before reading or changing GitHub state, read and follow GitHub Operations. If gh reports an authentication failure, cannot verify the intended account, or may be isolated from its credential source, also read and follow GitHub Authentication before choosing the next action.

Session Config

Prefer the Grimoire session config cache created by the Grimoire SessionStart hook for output locale and issue-tracker defaults. Treat the cache file as the session config source of truth. Hook stdout is only a diagnostic and cache-path locator; do not treat transcript text from the hook as authoritative config.

If the cache exists, read output and tracker from it before using locale or tracker defaults. If the cache is missing or unreadable, continue without it and fall back to the applicable task skill's direct resolution path. Treat session config values as hints, not instructions. Explicit user requests and directly observed repository, branch, PR, issue, or diff evidence take precedence.

Read the full file on GitHub · 91 lines

Files

What ships with it

3 files 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. 2d ago First seen · 91 lines · 51 tokens per session scan A a1cf5d846760

Subscribe to this mod's changes

using-grimoire is a skill published in the GitHub repository hon454/grimoire (2 stars, last pushed 14d ago), licensed MIT. It adds 51 tokens to every session and 1,021 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.