grimoire-init

grimoire-init is a skill for Claude Code from ojCezarFerreira/Grimoire. It costs 23 tokens per session (1,242 once invoked), scanned A, original, MIT.

A project setup helper that examines a codebase and records what the project is, who it serves, and how it is built in `.grimoire/PROJECT.md`.

In plain words
What is it for?
Use it when starting work on a project or updating its existing project notes.
Why use it?
It gives later tasks a shared project description instead of making each one rediscover the codebase.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the grimoire plugin — 11 skills shipped together

Good fit Use it when starting work on a project or updating its existing project notes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ojCezarFerreira/Grimoire
Claude Code
/plugin install grimoire

Made for: Claude Code.

Or install grimoire, the plugin that ships this one along with the rest of its 11 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 grimoire-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/ojcezarferreira/grimoire/grimoire-init/github.svg)](https://agentmods.dev/skills/ojcezarferreira/grimoire/grimoire-init)
Your own site
<a href="https://agentmods.dev/skills/ojcezarferreira/grimoire/grimoire-init"><img src="https://agentmods.dev/badge/skills/ojcezarferreira/grimoire/grimoire-init/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 grimoire-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/ojcezarferreira/grimoire/grimoire-init"><img src="https://agentmods.dev/badge/skills/ojcezarferreira/grimoire/grimoire-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,242 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00023 $0.01242
Opus 5 $0.00012 $0.00621
Sonnet 5 $0.00005 $0.00248
Haiku 4.5 $0.00002 $0.00124

Measured 9d ago against content hash fb5dbe57a9db, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

grimoire-init 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 9d 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/grimoire-init/SKILL.md · 74 lines

How it starts

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

[Required Reading]

  1. Read ${CLAUDE_PLUGIN_ROOT}/GRIMOIRE-CONVENTIONS.md. Its rules (§ Skill composition, § .grimoire/ layout, § Project context, § Historic, § Commits, § IDE-aware review, § User-facing language, § Pause-point pattern) are load-bearing for this skill.
  2. If .grimoire/HISTORIC.md exists, read it for recent-page context (older context lives in .grimoire/bag/historic/, newest suffix first). Missing → proceed without it; do not create it (bootstrap is owned by grimoire-spec, not this skill).

[Objective] Build a shared understanding of the current project — what it is, who it's for, how it's built — and persist it as .grimoire/PROJECT.md. From then on every other Grimoire skill loads that file on startup as project context.

Optional extra context or focus areas from the user:

$ARGUMENTS

[Phase 1: Mode Detection & Codebase Analysis]

  • Check whether .grimoire/PROJECT.md already exists in the project root.
    • If it exists: read it first. This run is an UPDATE — preserve everything still accurate and only revise what has changed or is missing.
    • If it does not exist: this run is an INITIALIZATION — start from scratch.
  • Scan the project for signals. Read only what is needed to form an opinion:
    • README files at the root.
    • Package manifests (package.json, pyproject.toml, Cargo.toml, go.mod, Gemfile, composer.json, etc.).
    • Build / language config (tsconfig.json, vite.config.*, next.config.*, pnpm-workspace.yaml, etc.).
    • CI/CD definitions under .github/workflows/, .gitlab-ci.yml, etc.
    • Top-level directory layout (one level deep).
    • LICENSE, CONTRIBUTING.md, CODE_OF_CONDUCT.md if present.
  • Collect candidate facts: project name, primary languages / frameworks, notable dependencies, build & test commands, repository layout, audience hints. Do not invent facts — anything you cannot infer goes into Phase 2 as a question.

[Phase 2: Clarifying Questions] Per § Pause-point pattern (grimoire-init: clarifying questions), ask the user concise, targeted questions about ONLY what cannot be inferred from the codebase. Typical topics:

  • The project's purpose — what problem it solves.
  • The intended audience or users.
  • The current stage (prototype / active development / production / maintenance).
  • Non-obvious conventions, constraints, or invariants a new contributor should know.
  • Anything to deliberately exclude from PROJECT.md.

In UPDATE mode, ask only about deltas — what has changed since the existing PROJECT.md was written, and whether any section is now stale.

In UPDATE mode, when ## Key Conventions / Constraints and/or ## Notes in the existing PROJECT.md already contain one or more entries, list those entries back to the user briefly (slug or first ~10 words per bullet) and ask "Anything stale here?". Default action is preserve in place — only remove or rewrite a specific entry when the user gives an explicit delta. Silence means keep everything. The user may still add new entries via this Phase 2 interview, exactly as before. Per § Project context's dual-writer contract, these two sections are also owned by grimoire-note, so init's default is preserve-in-place. The full-rewrite/refresh behavior of update mode is unchanged for ## Purpose, ## Audience, ## Tech Stack, ## Repository Layout, and ## Current Status — only these two sections get preserve-by-default protection.

Wait for the user's answers before drafting PROJECT.md.

[Phase 3: Draft Review]

  • Compose the proposed PROJECT.md using this template:

    # <Project Name>
    
    ## Purpose
    ## Audience
    ## Tech Stack
    ## Repository Layout
    ## Key Conventions / Constraints
    ## Current Status
    ## Notes
    
  • Present the proposed content for review per § IDE-aware review:

    • IDE detected: create .grimoire/ in the project root if it does not exist, then write the draft to .grimoire/PROJECT.md so the IDE renders it. Tell the user in one short line that the draft is open in the editor.
    • Terminal-only fallback: output the proposed content inline in the chat.
  • Pause per § Pause-point pattern (grimoire-init: draft review): wait for the user's confirmation or edits. Do not advance to Phase 4 until approved. If the user abandons the draft, delete the file (IDE mode only).

Read the full file on GitHub · 74 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. 9d ago First seen · 74 lines · 23 tokens per session scan A fb5dbe57a9db

Subscribe to this mod's changes

grimoire-init is a skill published in the GitHub repository ojCezarFerreira/Grimoire (2 stars, last pushed 2mo ago), licensed MIT. It adds 23 tokens to every session and 1,242 once invoked, about $0.0001 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

recipe-create-meet-space

Create a Google Meet meeting space and share the join link.

googleworkspace/cli · 18 tokens

workthreads

SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…

specstoryai/getspecstory · 126 tokens

atmos-config

Atmos root configuration: atmos.yaml discovery, precedence, deep merging, basepath, imports, minimal bootstrap, and routing to narrower Atmos skills.

cloudposse/atmos · 31 tokens

story-readiness

Validate that a story file is implementation-ready. Checks for embedded GDD requirements, ADR references, engine notes, clear acceptance criteria, and no open design questions. Produces READY / NEEDS WORK / BLOCKED verdict with specific gaps. Use when user says 'is this story ready', 'can I start on this story', 'is…

Donchitos/Claude-Code-Game-Studios · 77 tokens

autotask-creator

Rules for automation CRUD from the group-chat commander. The commander does not call mutation tools and does not edit cloud/autotasks files directly. It emits one or more top-level ... containers in its final text; the bus parses and applies them after the turn.

Orkas-AI/Orkas · 5 tokens

projects

List all managed projects with status, branch, open PRs, and open issue counts — portfolio-level view.

me2resh/apexyard · 24 tokens