solve-problem

solve-problem is a command for coding agents from jimmc414/claude-code-plugin-marketplace. It costs 12 tokens per session (1,748 once invoked), scanned A, original, MIT.

A guided workflow that turns a clarified problem into several solution options, compares them in a decision matrix, and produces a recommendation.

In plain words
What is it for?
Use it with a saved problem file to compare approaches across factors such as technology, scope, timing, cost, and constraints.
Why use it?
It helps make trade-offs visible before choosing how to solve a problem.

Command

Part of the problem-solving plugin — 2 commands, 1 agent shipped together

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.

agentmods
npx agentmods add commands/jimmc414/claude-code-plugin-marketplace/solve-problem
Clone the repo
git clone --depth 1 https://github.com/jimmc414/claude-code-plugin-marketplace

Or install problem-solving, the plugin that ships this one along with the rest of its 2 commands, 1 agent.

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 solve-problem

README.md
[![agentmods](https://agentmods.dev/badge/commands/jimmc414/claude-code-plugin-marketplace/solve-problem.svg)](https://agentmods.dev/commands/jimmc414/claude-code-plugin-marketplace/solve-problem)
Your own site
<a href="https://agentmods.dev/commands/jimmc414/claude-code-plugin-marketplace/solve-problem"><img src="https://agentmods.dev/badge/commands/jimmc414/claude-code-plugin-marketplace/solve-problem.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,748 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00012 $0.01748
Opus 5 $0.00006 $0.00874
Sonnet 5 $0.00002 $0.00350
Haiku 4.5 $0.00001 $0.00175

Measured yesterday against content hash cb1340226ae0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

solve-problem 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 yesterday.

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.

plugins/problem-solving/commands/solve-problem.md · 249 lines

How it starts

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

Problem Solution Generator

You are receiving a path to a problem clarification file. Your job is to analyze the problem, generate solution options, help the user explore and refine them, and produce a final recommendation—all through iterative dialogue.

Your role: Solution architect who presents options, facilitates exploration, and makes a clear recommendation.

Input: Path to a problem file (e.g., problem_2024-12-19_api-timeout.md)


Phase 1: Input & Analysis

  1. Read the problem file using the Read tool

    • Extract the problem label from the filename (for output naming)
    • Parse the problem statement, symptoms, context, and constraints
  2. Analyze solution dimensions:

    • What axes could solutions vary on? (approach, technology, scope, timeline)
    • What tradeoffs exist? (speed vs quality, simple vs robust, cheap vs thorough)
    • What constraints are mentioned in the problem file?

Phase 2: Constraint Gathering

Before generating solutions, use AskUserQuestion to gather constraints:

Questions to Ask

  1. Time/Budget: "Are there time or budget constraints that should influence the solution?"
  2. Technical: "Are there technical constraints? (must use X, can't use Y, compatibility needs)"
  3. Risk tolerance: "How risk-tolerant are you? (prefer safe/proven vs innovative/experimental)"
  4. Must-haves: "Are there any must-have requirements for the solution?"

Include option: "Skip - use constraints from problem file"

Analyze responses and proceed to solution generation.


Phase 3: Solution Generation

Generate 5 distinct solution approaches. For each solution, provide:

Attribute Description
Name Short descriptive name
Description Concept-level explanation (NOT implementation steps)
Pros Advantages of this approach
Cons Disadvantages and limitations
Risk Assessment Low/Medium/High with explanation
Reversibility How easy to undo if it doesn't work
Dependencies What this solution requires or assumes
Prerequisites What must be true/done before this can work
Success Criteria How we'd know this solution worked
Failure Modes What could go wrong
Effort Estimate Low/Medium/High with brief rationale

Read the full file on GitHub · 249 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. yesterday First seen · 249 lines · 12 tokens per session scan A cb1340226ae0

Subscribe to this mod's changes

solve-problem is a command published in the GitHub repository jimmc414/claude-code-plugin-marketplace (4 stars, last pushed today), licensed MIT. It adds 12 tokens to every session and 1,748 once invoked, about $0.0001 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-04.