reasoning

reasoning is a skill for Claude Code, Codex from LuuOW/meridian-mcp. It costs 38 tokens per session (1,875 once invoked), scanned A, original, MIT.

A guide to making AI systems produce more reliable answers by designing prompts, breaking down tasks, checking outputs, and comparing results. It also covers evaluation methods and keeping different prompt versions organised.

In plain words
What is it for?
Use it to design structured prompts, validate generated data, evaluate models or AI judges, and manage prompt changes in production systems.
Why use it?
It helps reduce unclear instructions, inconsistent answers, and untested changes in applications that use language models.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design structured prompts, validate generated data, evaluate models or AI judges, and manage prompt changes in production systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luuow/meridian-mcp/reasoning
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 LuuOW/meridian-mcp --skill reasoning
Clone the repo
git clone --depth 1 https://github.com/LuuOW/meridian-mcp

Made for: Claude Code, Codex.

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 reasoning

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/reasoning"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/reasoning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,875 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.00038 $0.01875
Opus 5 $0.00019 $0.00937
Sonnet 5 $0.00008 $0.00375
Haiku 4.5 $0.00004 $0.00187

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

Security

Grade A, and why

reasoning 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 5d 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/reasoning/SKILL.md · 218 lines

How it starts

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

reasoning

Covers how to reliably extract high-quality reasoning from LLMs: prompt design, decomposition strategies, output validation, and evaluation at scale.

1) Prompt architecture patterns

# Structure: System → Context → Task → Constraints → Output format
PROMPT_TEMPLATE = """
[SYSTEM]
You are {persona}. {core_capability_statement}.

[CONTEXT]
{relevant_background}

[TASK]
{specific_instruction_verb_first}

[CONSTRAINTS]
- {constraint_1}
- {constraint_2}

[OUTPUT FORMAT]
{exact_format_specification}
"""

# Verb-first task instructions improve instruction-following
GOOD = "Classify the following text as..."
BAD  = "I would like you to think about classifying..."

2) Chain-of-thought (CoT)

# Zero-shot CoT — append "Think step by step"
def zero_shot_cot(question: str) -> str:
    return f"{question}\n\nThink step by step before giving your final answer."

# Few-shot CoT — provide worked examples
FEW_SHOT_COT = """
Q: Is the keto diet safe for type 2 diabetics?
Thinking: Type 2 diabetes involves insulin resistance. Keto reduces carbs → lower blood glucose →
reduced insulin demand. Studies show HbA1c improvements. Risk: hypoglycaemia if on medication.
Answer: Generally beneficial but requires medical supervision and medication adjustment.

Q: {new_question}
Thinking:"""

# Scratchpad pattern — separate reasoning from answer
SCRATCHPAD = """
Work through this in a <scratchpad> block, then give your final answer after </scratchpad>.

{question}
"""

3) Self-consistency (ensemble reasoning)

# Generate N independent answers, take majority vote
async def self_consistent_answer(prompt: str, n: int = 5, temperature: float = 0.7) -> str:
    answers = await asyncio.gather(*[
        llm_call(prompt, temperature=temperature) for _ in range(n)
    ])
    # Extract final answers and vote
    finals = [extract_final_answer(a) for a in answers]
    from collections import Counter
    return Counter(finals).most_common(1)[0][0]

# Useful when: high-stakes classification, numeric estimation, factual Q&A
# Not useful when: creative writing, style tasks, open-ended generation

Read the full file on GitHub · 218 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. 5d ago First seen · 218 lines · 38 tokens per session scan A 1733b5189828

Subscribe to this mod's changes

reasoning is a skill published in the GitHub repository LuuOW/meridian-mcp (0 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 1,875 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-09-03.

Related

Other skills, from other repositories

dspy-output-refinement-constraints

Use for dspy.Refine, dspy.BestOfN, output constraints, validation, reward functions, and iterative output refinement.

OmidZamani/dspy-skills · 35 tokens

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

prompt-optimization

Improve a prompt on the evaluations workbench through a measured loop. Score the baseline first, then duplicate the target column, form a hypothesis from failing rows, edit the copy's prompt draft, run, compare pass rate and cost, and repeat until the numbers hold. Use when the user asks to optimize or improve a…

langwatch/langwatch · 105 tokens

prompts

Version and manage your agent's prompts with LangWatch Prompts CLI. Use for both onboarding (set up prompt versioning for an entire codebase) and targeted operations (version a specific prompt, create a new prompt version). Supports Python and TypeScript.

langwatch/langwatch · 54 tokens

llm-engineering-expert

Build reliable applications on large language models: prompt design, structured output, evaluation, guardrails, and cost and latency control. Use when the user mentions LLMs, prompts, prompt engineering, few-shot examples, structured or JSON output, function calling, hallucination, model evaluation, token costs…

personamanagmentlayer/pcl · 92 tokens

ai-engineering-toolkit

AI Engineering Toolkit workflow skill. Use this skill when the user needs 6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching and the operator…

diegosouzapw/awesome-omni-skills · 81 tokens