Verify a competitive programming or LeetCode solution for correctness, edge cases, and performance. Use when asked to "verify my solution", "check my code", "is this solution correct", "test my solution", "review my competitive programming answer", "validate my algorithm", or any solution verification request.
Verifies competitive programming solutions for correctness by analyzing logic, generating tests, and executing them.
/plugin marketplace add sequenzia/agent-alchemy/plugin install agent-alchemy-cs-tools@agent-alchemyThis skill is limited to using the following tools:
Verify competitive programming and LeetCode solutions for correctness through static analysis, automated test case generation, and execution.
CRITICAL: Complete ALL 4 phases. Do not stop after static analysis.
Goal: Extract the problem statement and solution code.
Parse $ARGUMENTS to extract:
If both are in $ARGUMENTS, separate them. The problem statement typically comes first, followed by the solution code in a code block or after a separator.
If the solution is a file path, read it:
Read [file_path]
If the problem statement is missing, ask for it:
AskUserQuestion:
question: "Please provide the problem statement for verification. I need it to generate test cases and validate correctness."
options:
- label: "Paste problem text"
description: "Paste the full problem statement with constraints and examples"
- label: "Describe the problem"
description: "Describe what the problem asks — I'll generate test cases from that"
If the solution code is missing, ask for it:
AskUserQuestion:
question: "Please provide your solution code to verify."
options:
- label: "Paste code"
description: "Paste your Python solution code"
- label: "Provide file path"
description: "Give the path to your solution file"
If the solution is not Python, note this to the user and proceed with analysis (the verifier agent will handle language adaptation).
Goal: Delegate verification to the specialized agent.
Use the Task tool to spawn the solution-verifier agent:
Task:
subagent_type: "agent-alchemy-cs-tools:solution-verifier"
prompt: |
## Problem Statement
[full problem text with all constraints, I/O format, and examples]
## Solution Code
```python
[the user's solution code]
```
Perform full verification following your structured process:
1. Static analysis for logic errors and edge case handling
2. Generate test cases (basic, edge, stress)
3. Write and execute test harness
4. Compile report with verdict
Goal: Collect and validate the agent's findings.
The agent returns a structured report containing:
Review the report for completeness. If the agent encountered infrastructure issues (test harness errors, not solution bugs), note this to the user.
Goal: Present the verification results with follow-up options.
Present the report to the user with clear formatting:
After presenting the report, offer follow-up actions:
AskUserQuestion:
question: "What would you like to do next?"
options:
- label: "Fix bugs and re-verify"
description: "I'll apply the suggested fixes and run verification again"
- label: "Show corrected solution"
description: "Generate a complete corrected solution using /solve"
- label: "Add more test cases"
description: "Generate additional test cases targeting specific scenarios"
- label: "Done"
description: "Verification complete, no further action needed"
If the user selects "Fix bugs and re-verify":
If "Show corrected solution":
/solve with the same problem statement to get a fresh, verified solutionIf "Add more test cases":
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.