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.
/plugin marketplace add ojCezarFerreira/Grimoire/plugin install grimoireWrote 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.
[](https://agentmods.dev/skills/ojcezarferreira/grimoire/grimoire-construct)<a href="https://agentmods.dev/skills/ojcezarferreira/grimoire/grimoire-construct"><img src="https://agentmods.dev/badge/skills/ojcezarferreira/grimoire/grimoire-construct.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.02220 |
| Opus 5 | $0.00023 | $0.01110 |
| Sonnet 5 | $0.00009 | $0.00444 |
| Haiku 4.5 | $0.00005 | $0.00222 |
Grade A, and why
grimoire-construct 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
[Required Reading]
- Read
${CLAUDE_PLUGIN_ROOT}/GRIMOIRE-CONVENTIONS.md. The sections that apply to this skill are:§ Construct(the single source of truth for the construct artifact — definition, folder layout,CONSTRUCT.mdformat, writer contract, self-containment),§ .grimoire/ layout(theconstructs/folder structure),§ Sub-agent spawning(research runs in sub-agents; the orchestrator stays lucid),§ Skill composition,§ Commits(thedocs(grimoire): construct <name>commit),§ User-facing language,§ Pause-point pattern(the clarifying-questions and draft-review pauses),§ Project context(readPROJECT.md; never write it), and§ IDE-aware review(the draft surface). Not applicable:§ TDD,§ Historic, and the Spec → Plan → Execute page lifecycle do not apply — this skill is orthogonal (same family asgrimoire-init/grimoire-note/grimoire-deps) and writes no page, noSPEC.md, and noHISTORIC.mdentry. Do not restate any§ Constructrule in this body — reference it. - If
.grimoire/PROJECT.mdexists in the project root, read it for project context. If it does not exist, proceed without it and, at the end of the run, suggest the user rungrimoire-initonce to enrich future runs (non-blocking per§ Project context). - If
.grimoire/HISTORIC.mdexists, read it read-only for recent-page recency context. Absence is non-blocking — this skill does not write or depend onHISTORIC.md. - If invoked with a handoff brief — a path to (or pasted content of) a
.grimoire/bag/drafts/construct-brief-<epoch>.mdwritten bygrimoire-spec's size-evaluation pause — read it as the seed of the objective. Memorize its exact path for the Phase 6 cleanup.
[Objective]
Turn the user's larger-than-a-page objective (or the seeding handoff brief) into a construct: a flat, ordered list of page-sized reference-seeds persisted under .grimoire/constructs/NNN-<name>/, per § Construct. Each reference is a focused seed that grimoire-spec will later expand — through its normal full interview — into one real page. The construct is the roadmap-of-record; the pages it spawns are the actual work.
User's objective (or handoff-brief path / content):
$ARGUMENTS
[Hard constraints — orthogonal skill]
- Never write to
.grimoire/HISTORIC.md. Never write to.grimoire/PROJECT.md. Never create a page folder under.grimoire/pages/. - Authoring and rewriting construct files (
CONSTRUCT.mdand thereferences/detail files) belongs to this skill only.grimoire-specmay only flip a single reference's status in place when it consumes one — never author. This is the§ Constructwriter contract; do not duplicate it here. - Keep the construct flat and self-contained per
§ Construct: no nested constructs, no sub-references, noHISTORIC.mdentry for the construct itself.
[Phase 1: Research]
Per § Sub-agent spawning, run the research inside sub-agent(s) so the orchestrator's context stays lucid. The orchestrator stays in charge of the interview, the NNN resolution, and the construct writes.
- Brief each research sub-agent with a self-contained prompt naming the objective (or the handoff brief's content) and the project context from
PROJECT.md. Equip it withRead,Grep,Glob, read-onlyBash, and — when the objective's established shape depends on facts outside the repo —WebSearch/WebFetch. - The research goal is the decomposition: analyze the codebase (and, when relevant, the established external shape of the objective) to propose a flat, ordered list of reference-seeds where each reference is sized to fit one normal page. A reference too big to spec in one page interview must be split; trivial slivers should be merged.
- The sub-agent returns the proposed ordered reference list (each with a short description and the rationale for its size/ordering) plus an explicit list of anything it was uncertain about. Do not invent facts — uncertainties become questions for Phase 2.
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.
- 7d ago First seen · 66 lines · 46 tokens per session scan A c18e590f88d6
grimoire-construct is a skill published in the GitHub repository ojCezarFerreira/Grimoire (2 stars, last pushed 2mo ago), licensed MIT. It adds 46 tokens to every session and 2,220 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-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…