Step-by-step reasoning patterns for complex problem solving
Enables step-by-step reasoning for complex problems. Triggers when you request systematic analysis, use phrases like "think step by step," or tackle math, coding, or logic challenges.
/plugin marketplace add pluginagentmarketplace/custom-plugin-prompt-engineering/plugin install prompt-engineering-assistant@pluginagentmarketplace-prompt-engineeringThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/config.yamlreferences/GUIDE.mdscripts/helper.pyBonded to: chain-of-thought-agent
Skill("custom-plugin-prompt-engineering:chain-of-thought")
parameters:
cot_type:
type: enum
values: [zero_shot, few_shot, self_consistency, tree_of_thought]
default: zero_shot
verbosity:
type: enum
values: [minimal, standard, detailed]
default: standard
verification:
type: boolean
default: true
description: Include self-verification step
| Variant | Description | Accuracy | Token Cost |
|---|---|---|---|
| Zero-shot CoT | "Let's think step by step" | Good | Low |
| Few-shot CoT | Examples with reasoning | Better | Medium |
| Self-consistency | Multiple paths, vote | Best | High |
| Tree-of-Thought | Branch and evaluate | Best | Highest |
[Problem statement]
Let's think step by step.
Trigger phrases:
Q: [Example problem 1]
A: Let's think step by step.
Step 1: [reasoning]
Step 2: [reasoning]
Step 3: [reasoning]
Therefore, the answer is: [answer]
Q: [Example problem 2]
A: Let's think step by step.
Step 1: [reasoning]
Step 2: [reasoning]
Therefore, the answer is: [answer]
Q: [Actual problem]
A: Let's think step by step.
process:
1_generate: "Generate N reasoning paths (temperature > 0)"
2_extract: "Extract final answer from each path"
3_vote: "Select answer with highest frequency"
4_confidence: "Confidence = frequency / N"
parameters:
n_paths: 5
temperature: 0.7
selection: majority_vote
Q: [Complex problem]
A: Let's first understand the problem and devise a plan.
## Understanding
[Restate the problem and identify key elements]
## Plan
1. [Step 1 description]
2. [Step 2 description]
3. [Step 3 description]
## Execution
Step 1: [Execute and explain]
Step 2: [Execute and explain]
Step 3: [Execute and explain]
## Verification
[Check if solution satisfies requirements]
## Final Answer
[Conclusion]
triggers_by_domain:
mathematics:
- "Let's solve this step by step, showing all work"
- "First, let's identify what we know and what we need to find"
coding:
- "Let's trace through the logic step by step"
- "Let me walk through this algorithm"
logic:
- "Let's analyze each premise systematically"
- "Let me reason through this logically"
analysis:
- "Let's break this down into components"
- "Let me examine this from multiple angles"
validation_checklist:
logical_flow:
- [ ] Each step follows from previous
- [ ] No logical gaps
- [ ] No circular reasoning
completeness:
- [ ] All sub-problems addressed
- [ ] Edge cases considered
- [ ] Assumptions stated
conclusion:
- [ ] Follows from final step
- [ ] Directly answers question
- [ ] Confidence indicated
| Issue | Cause | Solution |
|---|---|---|
| Skips steps | Steps too obvious | Add intermediate steps |
| Wrong answer | Error in early step | Add verification at each step |
| Inconsistent | Single path variance | Use self-consistency |
| Too verbose | Over-explanation | Use minimal verbosity |
| Token overflow | Too many steps | Consolidate related steps |
integrates_with:
- few-shot-prompting: Examples with reasoning
- prompt-design: Base structure
- self-reflection: Verify reasoning
combination_patterns:
cot_plus_few_shot: "Examples showing reasoning steps"
cot_plus_self_consistency: "Multiple reasoning paths"
cot_plus_verification: "Reasoning with self-check"
See references/GUIDE.md for advanced CoT techniques.
See assets/config.yaml for configuration options.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.