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.
npx agentmods add skills/n-n-code/n-n-code-skills/recursive-thinkingnpx skills add n-n-code/n-n-code-skills --skill recursive-thinkinggit clone --depth 1 https://github.com/n-n-code/n-n-code-skillsWhat 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 | $0.00085 | $0.00972 |
| Opus 5 | $0.00043 | $0.00486 |
| Sonnet 5 | $0.00017 | $0.00194 |
| Haiku 4.5 | $0.00009 | $0.00097 |
Grade A, and why
recursive-thinking 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 2d 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 — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Recursive Thinking
Challenge an existing candidate hard enough to improve, qualify, or reject it before action.
Use this as an orthogonal workflow skill alongside the relevant domain or repository skills. It can be invoked directly whenever a candidate exists; a prior thinking pass is not required. If no candidate exists, use thinking to frame the decision first.
This workflow produces a concise, evidence-based audit trail. It does not require a step-by-step reasoning transcript.
Routing boundaries
- Use security as primary when red-teaming means exploit discovery, abuse paths, authentication, authorization, secrets, or trust boundaries.
- Use tester-mindset as primary when the main artifact is a test strategy, oracle, or edge-case inventory.
- Keep language, backend, UI, documentation, prompt, and story skills primary for reviews of their artifacts; add this workflow only when adversarial pressure-testing is materially useful.
- Do not use this for simple lookups, routine execution, or open-ended idea generation.
Optional n
If the user supplies n, treat it as the maximum number of distinct challenge lenses, not recursion depth. Do not ask for n, invent a default, or expand weak branches to satisfy the count. Without n, use only as many lenses as the decision needs.
Grounding
Keep conclusions, evidence, and assumptions distinguishable. Apply labels only where they clarify a material claim:
- Observed: directly supported by a cited source, file, test, log, or supplied fact.
- Inferred: derived from observations plus a named assumption.
- Unknown: unresolved, with the evidence that would resolve it.
For diagnosis and review, cite concrete evidence. For strategy or design, state verification or falsification conditions for the most important assumptions. Do not convert plausibility into observation.
Workflow
- Define the candidate and success target. State what is being challenged and what a better outcome means.
- Inspect the evidence. Gather relevant artifacts, constraints, tests, history, and domain guidance before critiquing.
- Choose distinct challenge lenses. Cover only material angles such as objective mismatch, hidden assumptions, contrary evidence, alternatives, failure modes, incentives, interfaces, reversibility, or verification. Include at least one strong countercase to the current conclusion.
- Select high-yield probes. Prioritize questions likely to change confidence, the recommendation, the next action, or the validation plan. Replace repetitive or cosmetic questions.
- Deepen selectively. Probe with the most useful form of
why,how,what evidence,what fails,what trade-off, orwhat would change the conclusion. Continue only while another probe could produce a decision-relevant delta. - Reconcile the result. Name contradictions instead of smoothing them over. State which assumptions survived, weakened, or failed and whether the candidate should proceed, change, wait for evidence, or be rejected.
- Recommend the next action. Give the smallest action that addresses the strongest concern, plus what should not happen yet.
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.
- 2d ago First seen · 69 lines · 85 tokens per session scan A efe64c11cd40
recursive-thinking is a skill published in the GitHub repository n-n-code/n-n-code-skills (4 stars, last pushed 4d ago), licensed MIT. It adds 85 tokens to every session and 972 once invoked, about $0.0004 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
cocoscout
Relevance-ranked context loading — Tier 2 async subagent (Haiku, <5s) that fires after Tier 1 deterministic checks in UserPromptSubmit. Injects ranked context from CocoGrove, CocoContext, Environment Inspector, Prompt Studio, and CocoDream.
cocowatch
Developer engagement observer — non-blocking, always-on observational layer that tracks Delegation Intensity, Review Depth, and Engagement Zone throughout a session. Summary surfaced at $ship and FULL checkpoints.
the-grilling
Use when adversarial brainstorming is needed after reconnaissance — the Proposer, Devils-Advocate, and Synthesizer each run ONE pass (no rounds); the Don is grilled on the IDEA first, one question at a time, then the proposal is attacked.
using-gangsta
Use when starting any conversation — establishes how to find and use Gangsta skills, enforces the 1% invocation rule, maps platform tools, and routes the Don's intent through the Gangsta Agents Family hierarchy.
interrogation-debugging
Use when encountering any bug, test failure, or unexpected behavior — finds the rat in the code through systematic root-cause interrogation before any fix attempts.
the-hit
Use when the execution plan is approved and it is time for parallel execution — dispatches workers through crew leads to implement work packages with TDD enforcement, report collection, and escalation protocols.