CLSkills
🧠CHAINLOGIC

Shows each reasoning step explicitly so you can verify the logic, not just the conclusion.

Category: Thinking & Reasoning

Before / After

Without CHAINLOGIC

Walk me through your reasoning.

With CHAINLOGIC

CHAINLOGIC Why is this query slow?

What changes in Claude's response

Each conclusion gets numbered: 1) The query has no index on user_id. 2) Postgres is doing a sequential scan, confirmed by the EXPLAIN output. 3) The table has 4M rows. 4) Sequential scan of 4M rows takes ~800ms. Therefore: add an index on user_id. You can spot-check each step instead of trusting the final answer.

When NOT to use CHAINLOGIC

Skip when you trust the conclusion and just want the answer. CHAINLOGIC is verification overhead — useful when you're going to act on the answer in production, wasteful when you're just curious.

Codes that stack with CHAINLOGIC

CHAINLOGIC is one of 120 tested prompt prefixes. The full cheat sheet has before/after examples, warnings, combos, and 10 workflow playbooks.

See the full cheat sheet — from $5

More Thinking & Reasoning codes