grimoire-construct

grimoire-construct is a skill for Claude Code from ojCezarFerreira/Grimoire. It costs 46 tokens per session (2,220 once invoked), scanned A, original, MIT.

A Grimoire construct is an ordered set of reference seeds that guides work toward a larger objective. The workflow researches the objective and stores the construct under the project's .grimoire/constructs directory.

In plain words
What is it for?
Use it for larger objectives that need research and an ordered path of references. It creates a CONSTRUCT.md record without creating a page specification or history entry.
Why use it?
It breaks a broad goal into an organized collection of references before page-level work begins. This keeps the research direction and supporting material together.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

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 for larger objectives that need research and an ordered path of references. It creates a CONSTRUCT.md record without creating a page specification or history entry.

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-construct

README.md
[![agentmods](https://agentmods.dev/badge/skills/ojcezarferreira/grimoire/grimoire-construct.svg)](https://agentmods.dev/skills/ojcezarferreira/grimoire/grimoire-construct)
Your own site
<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>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,220 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.00046 $0.02220
Opus 5 $0.00023 $0.01110
Sonnet 5 $0.00009 $0.00444
Haiku 4.5 $0.00005 $0.00222

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

Security

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.

skills/grimoire-construct/SKILL.md · 66 lines

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]

  1. 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.md format, writer contract, self-containment), § .grimoire/ layout (the constructs/ folder structure), § Sub-agent spawning (research runs in sub-agents; the orchestrator stays lucid), § Skill composition, § Commits (the docs(grimoire): construct <name> commit), § User-facing language, § Pause-point pattern (the clarifying-questions and draft-review pauses), § Project context (read PROJECT.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 as grimoire-init / grimoire-note / grimoire-deps) and writes no page, no SPEC.md, and no HISTORIC.md entry. Do not restate any § Construct rule in this body — reference it.
  2. If .grimoire/PROJECT.md exists 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 run grimoire-init once to enrich future runs (non-blocking per § Project context).
  3. If .grimoire/HISTORIC.md exists, read it read-only for recent-page recency context. Absence is non-blocking — this skill does not write or depend on HISTORIC.md.
  4. If invoked with a handoff brief — a path to (or pasted content of) a .grimoire/bag/drafts/construct-brief-<epoch>.md written by grimoire-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.md and the references/ detail files) belongs to this skill only. grimoire-spec may only flip a single reference's status in place when it consumes one — never author. This is the § Construct writer contract; do not duplicate it here.
  • Keep the construct flat and self-contained per § Construct: no nested constructs, no sub-references, no HISTORIC.md entry 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 with Read, Grep, Glob, read-only Bash, 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.

Read the full file on GitHub · 66 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. 7d ago First seen · 66 lines · 46 tokens per session scan A c18e590f88d6

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

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…

microsoft/ai-agents-for-beginners · 200 tokens

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…

vercel/next.js · 95 tokens

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…

vercel/next.js · 103 tokens

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…

microsoft/vscode · 72 tokens

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…

openai/codex · 114 tokens