to-prompt
Convert code/issues into structured prompts that let receiving LLMs determine the best implementation.
Install
mkdir -p .claude/skills/to-prompt && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10683" && unzip -o skill.zip -d .claude/skills/to-prompt && rm skill.zipInstalls to .claude/skills/to-prompt
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Transform code, issues, or context into a detailed prompt/context for another LLM to fix or implement. Use when preparing comprehensive context for external LLM assistance, bug fixes, improvements, or feature implementations. Provides detailed context without implementation suggestions, letting the receiving LLM decide how to implement solutions. Focuses on "what" (problem, requirements, current state) not "how" (implementation approach).Key capabilities
- →Extract context
- →Identify problem areas
- →Format requirements
- →Draft LLM prompts
- →Isolate implementation details
How it works
It transforms raw context into a structured prompt that focuses on the problem and requirements while explicitly avoiding implementation suggestions.
Inputs & outputs
When to use to-prompt
- →Create detailed bug report prompts
- →Prepare feature implementation requests
- →Draft context for external LLM assistance
About this skill
To Prompt
Transform code, issues, or context into detailed prompts for another LLM to fix or implement.
Overview
This skill helps create comprehensive, context-rich prompts for external LLM assistance. The goal is to provide all necessary context about the problem, current state, and requirements without prescribing implementation approaches. The receiving LLM decides how to implement the solution based on the context provided.
Core Principles
<critical> - **MUST** explain all context comprehensively and in detail - **MUST** show code snippets only to illustrate current implementation, structure, or problem areas - **MUST NOT** include implementation suggestions, solutions, or "how to fix" instructions - **MUST NOT** show example solutions, code patterns, or step-by-step guides - **MUST** let the receiving LLM decide how to implement the solution based on the context provided - **MUST** focus on "what" (problem, requirements, current state) not "how" (implementation approach) </critical>Task Type Guidance
Bug Fix
When transforming a bug fix task, ensure the prompt includes:
- Reproduction steps: Exact steps to reproduce the bug consistently
- Error messages and logs: Complete error messages, stack traces, console logs, and any diagnostic output
- Current behavior: What actually happens when the bug occurs
- Expected behavior: What should happen instead
- Environment context: OS, browser, Node version, dependencies versions, configuration
- Recent changes: What changed recently that might have introduced the bug (git history, recent commits)
- Affected code: Show the current implementation of code paths involved in the bug
- Related components: Files, modules, or systems that interact with the buggy code
- Regression tests: Current tests (if any) and what regression tests should be written to prevent the bug from recurring
- Impact: Who/what is affected by this bug and severity
Improvement
When transforming an improvement task, ensure the prompt includes:
- Current state: Detailed description of how things work now
- Current implementation: Code showing the existing approach
- What needs improvement: Specific aspects that need enhancement (performance, maintainability, usability, etc.)
- Constraints: Technical constraints, backward compatibility requirements, or limitations
- Success criteria: How to measure if the improvement is successful
- Related code: Files and modules that will be affected
- Dependencies: External libraries, APIs, or systems involved
- User impact: How users will benefit from the improvement
- Non-goals: What should NOT be changed or improved
Feature
When transforming a feature task, ensure the prompt includes:
- Requirements: Complete functional requirements and user stories
- Current system context: How the system works now and where the feature fits
- Integration points: Where the feature connects with existing code
- Data models: Current data structures and what needs to be added/modified
- API contracts: Existing APIs and what new endpoints or methods are needed
- User flows: How users will interact with the feature
- Edge cases: Boundary conditions and special scenarios to consider
- Constraints: Technical, business, or design constraints
- Dependencies: External services, libraries, or systems required
- Testing requirements: What needs to be tested (unit, integration, E2E)
What NOT to Include
- Implementation suggestions or "how to fix" instructions
- Example solutions or code patterns to follow
- Step-by-step implementation guides
- Prescribed approaches or methodologies
- "Before/after" code examples showing solutions
Usage
When asked to transform code, issues, or context into a prompt:
- Gather comprehensive context: Collect all relevant information about the problem, current state, and requirements
- Show current code: Include code snippets to illustrate the current implementation, structure, or problem areas
- Describe the problem: Clearly explain what needs to be fixed, improved, or implemented
- Provide context: Include environment details, related components, dependencies, and constraints
- Avoid solutions: Do not include implementation suggestions, examples, or step-by-step guides
- Focus on "what": Describe the problem, requirements, and current state, not how to solve it
The resulting prompt should be comprehensive enough for another LLM to understand the full context and decide on the best implementation approach independently.
When not to use it
- →Writing code solutions
- →Prescribing implementation approaches
Limitations
- →Does not generate code
- →Requires manual context gathering
How it compares
It forces a focus on 'what' needs to be done rather than 'how' to do it, preventing the receiving LLM from being biased by pre-scripted solutions.
Compared to similar skills
to-prompt side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| to-prompt (this skill) | 0 | 3mo | No flags | Beginner |
| criteria-generator | 0 | 4mo | No flags | Intermediate |
| skill-development | 17 | 8mo | Review | Intermediate |
| writing-skills | 4 | 4mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by Cahmoraes
View all by Cahmoraes →You might also like
criteria-generator
openzigs
Converts ingested requirements into structured Given/When/Then acceptance criteria using RAG-powered LLM generation. Auto-tags criteria, assigns confidence scores, and maintains traceability links.
skill-development
anthropics
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.
writing-skills
obra
Use when creating new skills, editing existing skills, or verifying skills work before deployment
openai-knowledge
openai
Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.
openai-docs
openai
Use when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations (for example: Codex, Responses API, Chat Completions, Apps SDK, Agents SDK, Realtime, model capabilities or limits); prioritize OpenAI docs MCP tools and restrict any fallback browsing to official OpenAI domains.
microsoft-skill-creator
MicrosoftDocs
Create agent skills for Microsoft technologies using Learn MCP tools. Use when users want to create a skill that teaches agents about any Microsoft technology, library, framework, or service (Azure, .NET, M365, VS Code, Bicep, etc.). Investigates topics deeply, then generates a hybrid skill storing essential knowledge locally while enabling dynamic deeper investigation.