pocket-grinding

pocket-grinding is a skill for Claude Code from rfxlamia/pocketto. It costs 65 tokens per session (5,490 once invoked), scanned A, original, MIT.

A planning skill that uses behavior-driven development (BDD), a method of describing software through concrete examples, to clarify features and fixes before coding begins.

In plain words
What is it for?
It is for exploring non-trivial features, bug fixes, refactors, and API changes, then producing an approved specification for implementation.
Why use it?
It reduces unclear requirements and prevents implementation from starting before the scope, examples, and fit with the existing architecture are understood.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code; mentions AGENTS.md.

Part of the pocketto plugin — 13 skills shipped together

Good fit It is for exploring non-trivial features, bug fixes, refactors, and API changes, then producing an approved specification for implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rfxlamia/pocketto/pocket-grinding
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 rfxlamia/pocketto --skill pocket-grinding
Clone the repo
git clone --depth 1 https://github.com/rfxlamia/pocketto

Made for: Claude Code.

Or install pocketto, the plugin that ships this one along with the rest of its 13 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 pocket-grinding

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rfxlamia/pocketto/pocket-grinding"><img src="https://agentmods.dev/badge/skills/rfxlamia/pocketto/pocket-grinding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,490 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.00065 $0.05490
Opus 5 $0.00032 $0.02745
Sonnet 5 $0.00013 $0.01098
Haiku 4.5 $0.00006 $0.00549

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

Security

Grade A, and why

pocket-grinding 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 10d 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/pocket-grinding/SKILL.md · 533 lines

How it starts

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

Pocket Grinding

Production-grade requirement discovery using BDD principles. Gathers project context, defines scope, questions from three expert lenses, maps concrete examples to scenarios, validates against existing architecture, and produces a spec ready for delegation.

Core principle: Scenarios first, design second. Architecture must be validated before handoff. No implementation until spec is approved.

When to Use

Trigger this skill when:

  • Planning a feature whose shape or requirements aren't yet clear, or that spans multiple files/phases (small, clearly-specified additions → hotfix)
  • Fixing a non-trivial bug with design implications
  • Refactoring a system boundary or changing an API contract
  • User says "let's think through", "plan this", "explore options", "before we build"

Do NOT use for:

  • Trivial single-line fixes (typo, config value, rename)
  • Small, well-understood changes touching only 1–4 files and resolvable in 1–2 requests → use hotfix instead (Phase 1.5 surfaces this off-ramp mid-flow)
  • Work that already has an approved spec

Hard Gates

GATE 1: NO IMPLEMENTATION until Phase 7 handoff is complete and user approves.
        No code, no scaffolding, no migrations — regardless of perceived simplicity.

GATE 2: NO PHASE 3 without confirmed scope.
        Phase 2 must be user-confirmed before questioning starts.
        Unconfirmed scope = wasted questions.

GATE 3: NO HANDOFF if architecture validation fails (Phase 6).
        Loop back to Phase 5, revise design, re-validate.

GATE 4: POCKET-PLANNING MUST BE INVOKED after user approves spec.
        Pocket-grinding is not done until pocket-planning receives the spec.
        Do not stop at "spec written" — invoke pocket-planning immediately.

GATE 5: EDGE CASE HUNTER MUST RUN before Phase 5 and before handoff.
        After GWT scenarios (Phase 4), dispatch the read-only edge case hunter
        subagent — this is mandatory, not optional. Do NOT offer handoff to
        pocket-planning until the hunter has run and its blocking findings are
        resolved. If you catch yourself moving toward handoff without an edge
        case hunter result, STOP and dispatch it first.

Read the full file on GitHub · 533 lines

Files

What ships with it

4 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. 10d ago First seen · 533 lines · 65 tokens per session scan A f6b509bb4295

Subscribe to this mod's changes

pocket-grinding is a skill published in the GitHub repository rfxlamia/pocketto (5 stars, last pushed 18d ago), licensed MIT. It adds 65 tokens to every session and 5,490 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.