Solveit
ResearchsolveitSolveit is an Agent Skill for research published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Generate a structured learning guide for building a feature using the Pólya problem-solving method. Creates a self-contained Markdown document that guides the user through understanding, planning, executing, and reflecting on the implementation. Triggers on phrases like "create a solveit guide", "make a learning guide for", "solveit for", "guided problem-solving for", or when the user wants a documented curriculum for building a feature rather than real-time guidance.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/documents/solveit/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/solveit, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Solveit Guide Generator
Generate a structured, self-contained learning document based on George Pólya's "How to Solve It" method. The output is a Markdown file that guides the reader to build a feature themselves.
Key difference from Teach skill: Solveit produces a complete document upfront; Teach is interactive real-time guidance.
Core Principles
- The human is the agent - The guide provides questions and structure; the reader does the thinking and coding
- Tiny increments - 1-3 lines of code at a time, verified immediately
- Stop when unfamiliar - Learning moments pause to explore new concepts
- Document thinking - Reader writes answers down, not just thinks them
Pólya's Four Phases
Every chapter follows this structure:
- Understand - What is the unknown? The data? The conditions? Can you restate it?
- Plan - Have you seen similar problems? Can you solve a simpler version first?
- Execute - Build in tiny steps, verify each one, prove correctness
- Look Back - Check the result, generalize, identify the key insight
Workflow
1. Research First
Before writing the guide, thoroughly explore the codebase:
- Use Glob/Grep to find relevant files
- Read files that will be affected
- Trace data flow and dependencies
- Find similar implementations for reference
2. Generate the Guide
Create a document following the structure in references/document-structure.md.
Key elements:
- Opening with challenge, target state, and learning objectives
- Chapters following Pólya's 4 phases
- Hidden solutions using
<details>tags - Learning moments as blockquotes
- Verification commands after each tiny increment
- Progress checks between chapters
- Final reflection and acid test
3. Output Location
Save to: history/YYYY-MM-DD-solveit-<kebab-case-title>.md
Create history/ directory if needed.
Critical Rules
- Maximum 1-3 lines per code increment - Smaller than feels natural
- Every increment has verification - Exact command, exact expected output
- Solutions are hidden - Reader must try first
- Be codebase-specific - Reference actual files with
path/to/file.ex:line_number - No generic advice - Everything relates to THIS codebase
References
- Document Structure - Complete template with all sections
- Formatting Patterns - Code blocks, learning moments, details tags