Claude Code Plugins

Community-maintained marketplace

Feedback

chain-of-thought

@bnadlerjr/dotfiles
2
0

INVOKE for debugging and step-by-step problem solving. Produces visible reasoning trace with each step shown. Use when tracing logic, explaining reasoning, or debugging issues. Triggers: debugging, tracing execution, explaining how something works, step-by-step problems.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name chain-of-thought
description INVOKE for debugging and step-by-step problem solving. Produces visible reasoning trace with each step shown. Use when tracing logic, explaining reasoning, or debugging issues. Triggers: debugging, tracing execution, explaining how something works, step-by-step problems.

Chain of Thought (CoT)

Linear reasoning that makes intermediate steps explicit.

MUST Invoke When

  • Debugging code or tracing execution flow
  • User asks to "walk through", "explain", or "show your work"
  • Solving problems with clear sequential dependencies
  • Causal analysis ("why does this happen?")
  • Math problems or logical deductions
  • Any task requiring an auditable reasoning trail

Output Commitment

This skill produces visible structured output:

  • Numbered steps, each building on the previous
  • Explicit state at each step
  • Verification against original question

Do NOT use extended thinking alone—invoke this skill to show your step-by-step trace.

Core Mechanism

Instead of jumping to an answer, generate a sequence of reasoning steps:

Problem → Step 1 → Step 2 → Step 3 → ... → Answer

Each step:

  • Builds explicitly on previous steps
  • Is independently verifiable
  • Creates an audit trail for debugging

Activation Methods

Zero-shot: Append trigger phrase

[Problem statement]
Let's work through this step by step.

Few-shot: Provide worked examples

Example 1: [problem] → [step 1] → [step 2] → [answer]
Example 2: [problem] → [step 1] → [step 2] → [answer]
Now solve: [new problem]

Process

1. Restate the problem in own words
2. Identify what is given and what is asked
3. Break into sequential sub-steps
4. Execute each step, showing work
5. Verify the final answer against the original question

Key Principles

  • Explicitness: Every reasoning step is visible
  • Forward-only: Once committed, cannot revise earlier steps
  • Context accumulation: Full chain remains in context
  • Transparency: Reasoning is traceable and debuggable

When to Apply

  • Mathematical calculations
  • Logical deductions
  • Code debugging (trace execution)
  • Causal reasoning
  • Any problem with clear sequential dependencies
  • When interpretability/auditability matters

Enhanced Variants

Structured CoT: Force specific step format

Given: [extract knowns]
Find: [state goal]
Step 1: [first operation]
Step 2: [second operation]
...
Therefore: [conclusion]

Verification CoT: Add self-check

[Normal CoT steps]
Verification: Does this answer satisfy the original constraints?

Anti-Patterns

  • Using for problems requiring exploration (use ToT instead)
  • Very long chains without intermediate verification (errors propagate)
  • Skipping steps that seem "obvious" (defeats transparency goal)
  • Using when decomposition would be cleaner (use AoT for multi-hop)