recursive-quality

recursive-quality is a skill for Claude Code from Jartan-LLC/grimoire. It costs 18 tokens per session (890 once invoked), scanned A, original, MIT.

A set of guidelines for designing recursive development work, including complete data contracts, typed results, interfaces, and expected error types. A contract describes the inputs, outputs, and failure cases that code agrees to support.

In plain words
What is it for?
Use it when defining APIs, data structures, error handling, dependency interfaces, and batch operations for recursive projects.
Why use it?
It helps prevent implementations from being limited by vague or incomplete specifications.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the recursio plugin — 5 skills, 4 agents shipped together

Good fit Use it when defining APIs, data structures, error handling, dependency interfaces, and batch operations for recursive projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jartan-llc/grimoire/recursive-quality
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.

Any agent
npx skills add Jartan-LLC/grimoire --skill recursive-quality
Clone the repo
git clone --depth 1 https://github.com/Jartan-LLC/grimoire

Made for: Claude Code.

Or install recursio, the plugin that ships this one along with the rest of its 5 skills, 4 agents.

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 recursive-quality

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jartan-llc/grimoire/recursive-quality"><img src="https://agentmods.dev/badge/skills/jartan-llc/grimoire/recursive-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 890 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.00018 $0.00890
Opus 5.5 $0.00007 $0.00356
Sonnet 5.5 $0.00004 $0.00178
Haiku 4.5 $0.00002 $0.00089

Measured 1mo ago against content hash d1aaac8720f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

recursive-quality 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 1mo 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/recursio/skills/recursive-quality/SKILL.md · 71 lines

How it starts

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

Recursive Quality

Contract Richness

Wave 0 contracts set the ceiling. Thin contracts -> thin implementations.

Completeness

  • Enumerate all operations, not just common ones
  • Enums for closed sets (prevents string-typing drift)
  • Error types alongside success types (Record | ParseError)
  • Custom exception hierarchy -- base + subtypes per failure domain

Flexibility

  • Batch interfaces (list[Spec]) over single-item
  • Injectable I/O (write callables, output streams) for testability
  • Union return types for expected failures; exceptions for unexpected

Modularity

  • Protocols/interfaces for DI -- not concrete dependencies
  • Factories/registries for runtime selection
  • Structured return types (RunResult) over bare values

Typing boundaries

  • Untyped/dynamic values (Any, object) are acceptable at input boundaries -- parsed records, CLI args, external data where the shape is genuinely unknown
  • All internal result types (aggregation results, pipeline outputs, structured returns) must be fully typed -- the shape is known at design time
  • Contracts file contains: protocols, dataclasses, enums, type aliases, constants. No callable stubs.

Critical Rules

These are never judgment calls. Implementers must not produce code that violates them. Reviewers must flag violations as Critical.

  • Typed returns. No untyped/dynamic returns (Any, object, interface{}) on public functions or protocol methods. Use the specific type or union.
  • Structured returns. No unstructured collection returns where contracts define or should define a structured type.
  • No absolute paths. No hardcoded absolute paths in source or tests. Use the language's path library with relative paths.
  • Logging, not stderr. Library code uses the language's logging framework with named loggers. Never write directly to stderr. Entry points configure level/format.
  • Typed protocol signatures. Protocol/interface method parameters and returns must be fully typed. Untyped signatures cascade to every downstream module.

Read the full file on GitHub · 71 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. 1mo ago First seen · 71 lines · 18 tokens per session scan A d1aaac8720f8

Subscribe to this mod's changes

recursive-quality is a skill published in the GitHub repository Jartan-LLC/grimoire (2 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 890 once invoked, about $0.0001 per session on Opus 5.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-09-08.

Related

Other skills, from other repositories