plugins/cache/nyldn-plugins/octo/9.30.0/skills/skill-meta-prompt/SKILL.md
Craft better prompts using proven optimization techniques — use when your prompt needs refinement. Use when: Use PROACTIVELY when user wants to:. "create a prompt for", "write a prompt for". "optimize this prompt", "improve this prompt"
npx skillsauth add moliboy5000/.claude skill-meta-promptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate well-structured, verifiable prompts for any use case. Applies proven meta-prompting techniques to minimize hallucination and maximize effectiveness.
┌─────────────────────────────────────────────────────────────────────────────┐
│ META-PROMPT GENERATION │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ Phase 1: Requirement Gathering │
│ → Understand the primary goal/role │
│ → Clarify expected outputs │
│ → Identify accuracy requirements │
│ ↓ │
│ Phase 2: Task Analysis │
│ → Apply Technique 1: Task Decomposition │
│ → Identify if complex enough for subtasks │
│ → Map dependencies between subtasks │
│ ↓ │
│ Phase 3: Expert Assignment │
│ → Apply Technique 5: Specialized Experts │
│ → Assign personas to subtasks │
│ → Apply Technique 2: Fresh Eyes Review │
│ ↓ │
│ Phase 4: Verification Design │
│ → Apply Technique 3: Iterative Verification │
│ → Build in checking steps │
│ → Apply Technique 4: No Guessing │
│ ↓ │
│ Phase 5: Prompt Assembly │
│ → Structure: Role, Context, Instructions, Constraints, Format │
│ → Add verification hooks │
│ → Include uncertainty disclaimers │
│ ↓ │
│ Phase 6: Output & Iteration │
│ → Present generated prompt │
│ → Offer refinement │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
What: Break complex tasks into smaller, manageable subtasks.
When to use:
How to apply:
Example:
Task: "Create a technical blog post about OAuth 2.0"
Decomposition:
1. Research Phase
- Gather OAuth 2.0 specifications
- Find common implementation examples
- Identify security best practices
2. Structure Phase
- Outline main sections
- Plan code examples
- Design diagrams/visuals
3. Writing Phase
- Write introduction
- Write technical sections
- Write conclusion/CTA
4. Review Phase
- Technical accuracy check
- Code example testing
- Readability review
What: Use different "experts" for creation vs. validation. Never use the same expert to both create and verify.
When to use:
How to apply:
Example:
Creator: "Expert Technical Writer" produces article
Reviewer: "Expert Security Engineer" verifies OAuth claims
Reviewer: "Expert Developer" tests code examples
NOT: Same expert writes AND reviews their own work
What: Build explicit verification steps into the task, especially for error-prone outputs.
When to use:
How to apply:
Example:
Step 1: Calculate discount price
Step 2: VERIFY - recalculate from opposite direction
Step 3: If mismatch, identify error and recalculate
Step 4: Only proceed when both methods match
What: Never assume unverified facts. Disclaim uncertainty explicitly.
When to use:
How to apply:
Disclaimer templates:
"Note: This figure is approximate and should be verified."
"I don't have access to [specific data]. Please provide or verify."
"This is based on general patterns; your specific case may differ."
What: Spawn domain-specific personas for complex subtasks.
When to use:
Available expert archetypes: | Expert | Use For | |--------|---------| | Expert Writer | Content, copy, documentation | | Expert Mathematician | Calculations, proofs, statistics | | Expert Python | Python code, data analysis | | Expert Security | Security review, threat modeling | | Expert Architect | System design, trade-offs | | Expert Reviewer | Quality assurance, error-finding | | Expert Strategist | Planning, prioritization |
How to apply:
"For this subtask, adopt the persona of Expert [X].
Your expertise includes [specific areas].
Focus exclusively on [your assigned task].
You have no memory of previous context—all needed information is below."
**Meta-Prompt Generator**
I'll help you create an effective, verifiable prompt.
**Questions:**
1. **What is the main goal?**
What should this prompt help someone accomplish?
2. **What's the expected output?**
(e.g., document, code, analysis, decision)
3. **How important is accuracy?**
- Critical (factual, technical, or high-stakes)
- Moderate (useful but not mission-critical)
- Flexible (creative, exploratory)
4. **Any specific constraints?**
(length, format, tone, tools available)
If information is missing, ask ONE clarifying question at a time.
After gathering requirements, analyze internally:
| Complexity | Indicators | Approach | |------------|------------|----------| | Simple | Single step, one output | Direct prompt, no decomposition | | Moderate | 2-3 steps, clear sequence | Light decomposition, one expert | | Complex | 4+ steps, dependencies | Full decomposition, multiple experts |
| Task Type | Creator Expert | Reviewer Expert | |-----------|----------------|-----------------| | Technical writing | Expert Writer | Expert Engineer | | Code generation | Expert Developer | Expert Reviewer | | Analysis | Expert Analyst | Expert Strategist | | Creative | Expert Creative | Expert Editor |
For the task, identify where verification is needed:
| Step | Risk | Verification Method | |------|------|---------------------| | [step] | [what could go wrong] | [how to verify] |
You MUST return the generated prompt in this exact format:
# [Prompt Title]
## Role
[Short, direct role definition]
[Emphasize verification and uncertainty disclaimers]
## Context
[User's task and goals]
[Background information provided]
[Clarifications gathered]
## Instructions
### Phase 1: [First Phase Name]
1. [Step 1]
2. [Step 2]
3. **Verification:** [How to verify this phase]
### Phase 2: [Second Phase Name]
1. [Step 1]
2. [Step 2]
3. **Verification:** [How to verify this phase]
[Continue phases as needed...]
### Expert Assignments (if applicable)
- **[Expert Type]:** Handles [specific subtask]
- **[Reviewer Type]:** Validates [what they check]
## Constraints
- [Constraint 1]
- [Constraint 2]
- [Accuracy requirement: how to handle uncertainty]
## Output Format
[Specify exactly how the output should be structured]
[Include all required sections]
## Verification Checklist
Before considering complete:
- [ ] [Verification item 1]
- [ ] [Verification item 2]
- [ ] [Accuracy disclaimers added where needed]
## Examples (if provided)
[Context or examples from user]
**Generated Meta-Prompt**
[The prompt in the format above]
---
**Techniques Applied:**
- ✓ Task Decomposition: [Yes/No, how]
- ✓ Fresh Eyes Review: [Yes/No, which experts]
- ✓ Iterative Verification: [Yes/No, where]
- ✓ No Guessing: [Where disclaimers needed]
- ✓ Specialized Experts: [Which ones assigned]
**Would you like me to:**
1. Refine any section
2. Add more verification steps
3. Adjust the complexity level
4. Execute this prompt now
"Create a prompt to help me write API documentation"
# API Documentation Generator
## Role
You are an Expert Technical Writer specializing in API documentation.
Your documentation will be reviewed by an Expert Developer for accuracy.
When uncertain about behavior, note "Verify with implementation" rather than guessing.
## Context
Creating comprehensive API documentation for developers.
Documentation should be usable without reading source code.
## Instructions
### Phase 1: API Discovery
1. List all endpoints with methods (GET, POST, etc.)
2. Document request/response schemas
3. Identify authentication requirements
4. **Verification:** Cross-reference with OpenAPI spec if available
### Phase 2: Documentation Writing
1. Write endpoint descriptions (what it does, not how)
2. Create request examples with all parameters
3. Create response examples for success and error cases
4. Document rate limits and constraints
5. **Verification:** Each example should be valid JSON/code
### Phase 3: Review Cycle
Expert Developer reviews for:
- Technical accuracy of examples
- Missing edge cases
- Unclear descriptions
### Expert Assignments
- **Expert Technical Writer:** Creates documentation prose
- **Expert Developer:** Validates examples and accuracy
## Constraints
- Use consistent terminology throughout
- Examples must be syntactically valid
- Note any undocumented or unclear behaviors
- Accuracy: Mark assumptions with "Assumed behavior - verify"
## Output Format
```markdown
# [Endpoint Name]
**Method:** [HTTP method]
**Path:** [/api/path]
**Auth:** [Required/Optional/None]
## Description
[What this endpoint does]
## Request
[Parameters, body schema, headers]
## Response
[Success and error responses with examples]
## Notes
[Rate limits, deprecation, related endpoints]
---
## Error Handling
### Unclear Requirements
```markdown
I need a bit more clarity to create an effective prompt.
**Specifically:**
[Question about the unclear part]
[Offer 2-3 options if applicable]
This task has [N] distinct components. I recommend:
1. **Split into multiple prompts** - One per major component
2. **Simplify scope** - Focus on [core element] first
3. **Proceed as-is** - Full complexity, longer prompt
Which approach works best for you?
If techniques don't fit the task:
ℹ️ **Note on Techniques**
This task is straightforward enough that some techniques
don't apply:
- Task Decomposition: Not needed (single step)
- Fresh Eyes: [Explain why/why not]
- Specialized Experts: Not needed (single domain)
The generated prompt focuses on clarity and verification instead.
Generate prompts for content creation based on anatomy guides.
Transform brainstorming insights into actionable prompts.
Enhance PRD generation with meta-prompting techniques.
Generate implementation prompts with built-in verification.
Meta-prompt → Decompose → Assign experts → Build verification → Generate
Otherwise → Vague prompts → Hallucination → Unreliable output
Structure breeds reliability. Verification breeds accuracy. Experts breed quality.
tools
MANDATORY prerequisite — load this skill BEFORE every `generate_diagram` tool call. NEVER call `generate_diagram` directly without loading this skill first. Trigger whenever the user asks to create, generate, draw, render, sketch, or build a diagram — flowchart, architecture diagram, sequence diagram, ERD or entity-relationship diagram, state diagram or state machine, gantt chart, or timeline. Also trigger when the user mentions Mermaid syntax or wants a system architecture, decision tree, dependency graph, API call flow, auth handshake, schema, or pipeline visualized in FigJam. Routes to type-specific guidance, sets universal Mermaid constraints, and tells you when to use a different diagram type or skip the tool entirely (mindmaps, pie charts, class diagrams, etc.).
development
DEFAULT PIPELINE for all tasks requiring execution. You (Claude) are the strategic orchestrator. Codex agents are your implementation army - hyper-focused coding specialists. Trigger on ANY task involving code, file modifications, codebase research, multi-step work, or implementation. This is NOT optional - Codex agents are the default for all execution work. Only skip if the user explicitly asks you to do something yourself.
development
This skill should be used when the user asks to analyze a UI screen recording and map interaction states into Figma. Trigger for requests such as "put video frames in Figma", "extract states from my recording", "map interactions from video to Figma", "analyze this screen recording", "create a storyboard from my video", "deconstruct this interaction in Figma", "annotate the UI states in my recording", or "pull the key moments from this video into Figma". Also trigger when the user references a video file (.mp4, .mov, .webm, .avi) together with Figma, design review, interaction analysis, prototypes, or UI states. The skill extracts key visual moments from a video, infers interaction triggers, and builds an annotated Figma Design storyboard using native Figma annotations and uploaded screenshot assets.
development
Generate a FigJam project plan board from a PRD plus codebase context. Interactive flow: research → propose sections → per-section deep research → per-section content + block-shape proposal → create FigJam → skeleton → fill → diagrams → wrap. Each content block (section, nested section, intro callout, table, multi-column text, sticky column, diagram section, metadata strip) has its own subskill reference file. Use when the user asks for 'project plan in FigJam', 'interactive project plan', '/generate-project-plan', or provides a PRD and wants per-section confirmation on content + rendering.