xiaohongshu
xiaohongshu
create-meta-prompts
Generate meta-prompts for Claude-to-Claude pipelines and multi-stage workflows. Use when creating optimized prompts for complex workflows. Not for simple single-turn prompts or manual messaging.
Full skill instructions
Objective
Create prompts optimized for Claude-to-Claude communication in multi-stage workflows. Outputs are structured with XML and metadata for efficient parsing by subsequent prompts.
Every execution produces a SUMMARY.md for quick human scanning without reading full outputs.
Each prompt gets its own folder in .claude/workspace/prompts/ with its output artifacts, enabling clear provenance and chain detection.
Quick Start
.claude/workspace/prompts/{number}-{topic}-{purpose}/.claude/workspace/prompts/
├── 001-auth-research/
│ ├── completed/
│ │ └── 001-auth-research.md # Prompt (archived after run)
│ ├── auth-research.md # Full output (XML for Claude)
│ └── SUMMARY.md # Executive summary (markdown for human)
├── 002-auth-plan/
│ ├── completed/
│ │ └── 002-auth-plan.md
│ ├── auth-plan.md
│ └── SUMMARY.md
├── 003-auth-implement/
│ ├── completed/
│ │ └── 003-auth-implement.md
│ └── SUMMARY.md # Do prompts create code elsewhere
├── 004-auth-research-refine/
│ ├── completed/
│ │ └── 004-auth-research-refine.md
│ ├── archive/
│ │ └── auth-research-v1.md # Previous version
│ └── SUMMARY.md
Context
Prompts directory: ![ -d ./.claude/planning/prompts ] && echo "exists" || echo "missing"
Existing research/plans: !find ./.claude/planning/prompts -name "*-research.md" -o -name "*-plan.md" 2>/dev/null | head -10
Next prompt number: !ls -d ./.claude/workspace/prompts/*/ 2>/dev/null | wc -l | xargs -I {} expr {} + 1
Automated Workflow
BEFORE analyzing anything, check if context was provided. IF no context provided (skill invoked without description): → IMMEDIATELY use AskUserQuestion with:
implement, build, create, fix, add, refactor → Doplan, roadmap, approach, strategy, decide, phases → Planresearch, understand, learn, gather, analyze, explore → Researchrefine, improve, deepen, expand, iterate, update → Refine
→ If unclear, ask the Purpose question above as first contextual question
→ If clear, proceed to adaptive_analysis with inferred purposeExtract and infer:
auth, stripe-payments).claude/workspace/prompts/*/ to improve.Scan .claude/workspace/prompts/*/ for existing *-research.md and *-plan.md files.
If found:
Generate 2-4 questions using AskUserQuestion based on purpose and gaps. Load questions from: references/question-bank.md Route by purpose:
After receiving answers, present decision gate using AskUserQuestion:
After "Proceed" selected, state confirmation: "Creating a {purpose} prompt for: {topic} Folder: .claude/workspace/prompts/{number}-{topic}-{purpose}/ References: {list any chained files}" Then proceed to generation.
Load purpose-specific patterns:
All generated prompts include:
<confidence> - How confident in findings<dependencies> - What's needed to proceed<open_questions> - What remains uncertain<assumptions> - What was assumed
All prompts must create SUMMARY.md with:.claude/workspace/prompts/{number}-{topic}-{purpose}/completed/ subfolder.claude/workspace/prompts/{number}-{topic}-{purpose}/{number}-{topic}-{purpose}.md.claude/workspace/prompts/{number}-{topic}-{purpose}/{topic}-{purpose}.mdAfter saving prompt(s), present inline (not AskUserQuestion):
Prompt created: .claude/workspace/prompts/{number}-{topic}-{purpose}/{number}-{topic}-{purpose}.md
What's next?
1. Run prompt now
2. Review/edit prompt first
3. Save for later
4. Other
Choose (1-4): _
Prompts created:
- .claude/workspace/prompts/001-auth-research/001-auth-research.md
- .claude/workspace/prompts/002-auth-plan/002-auth-plan.md
- .claude/workspace/prompts/003-auth-implement/003-auth-implement.md
Detected execution order: Sequential (002 references 001 output, 003 references 002 output)
What's next?
1. Run all prompts (sequential)
2. Review/edit prompts first
3. Save for later
4. Other
Choose (1-4): _
Straightforward execution of one prompt.
.claude/workspace/prompts/{number}-{topic}-{purpose}/{topic}-{purpose}.mdcompleted/ subfolderFor chained prompts where each depends on previous output.
Show progress during execution:
Executing 1/3: 001-auth-research... ✓
Executing 2/3: 002-auth-plan... ✓
Executing 3/3: 003-auth-implement... (running)
For independent prompts with no dependencies.
Unlike sequential, parallel continues even if some fail:
For complex DAGs (e.g., two parallel research → one plan).
Layer 1 (parallel): 001-api-research, 002-db-research
Layer 2 (after layer 1): 003-architecture-plan
Layer 3 (after layer 2): 004-implement
Scan prompt contents for @ references to determine dependencies:
@.claude/workspace/prompts/{number}-{topic}/ patternsIf no explicit @ references found, infer from purpose:
If a prompt references output that doesn't exist:
.claude/workspace/prompts/*/ (already completed)After each prompt completes, verify success:
<confidence><dependencies><open_questions><assumptions>If validation fails:
Stop the chain immediately:
✗ Failed at 2/3: 002-auth-plan
Completed:
- 001-auth-research ✓ (archived)
Failed:
- 002-auth-plan: Output file not created
Not started:
- 003-auth-implement
What's next?
1. Retry 002-auth-plan
2. View error details
3. Stop here (keep completed work)
4. Other
Continue others, report all results:
Parallel execution completed with errors:
✓ 001-api-research (archived)
✗ 002-db-research: Validation failed - missing <confidence> tag
✓ 003-ui-research (archived)
What's next?
1. Retry failed prompt (002)
2. View error details
3. Continue without 002
4. Other
Move prompt file to completed subfolder:
mv .claude/workspace/prompts/{number}-{topic}-{purpose}/{number}-{topic}-{purpose}.md \
.claude/workspace/prompts/{number}-{topic}-{purpose}/completed/
Output file stays in place (not moved).
✓ Executed: 001-auth-research
✓ Created: .claude/workspace/prompts/001-auth-research/SUMMARY.md
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# Auth Research Summary
**JWT with jose library and httpOnly cookies recommended**
##
Key Findings
• jose outperforms jsonwebtoken with better TypeScript support
• httpOnly cookies required (localStorage is XSS vulnerable)
• Refresh rotation is OWASP standard
##
Decisions Needed
None - ready for planning
##
Blockers
None
##
Next Step
Create auth-plan.md
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What's next?
1. Create planning prompt (auth-plan)
2. View full research output
3. Done
4. Other
Display the actual SUMMARY.md content inline so user sees findings without opening files.
✓ Chain completed: auth workflow
Results:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
001-auth-research
**JWT with jose library and httpOnly cookies recommended**
Decisions: None • Blockers: None
002-auth-plan
**4-phase implementation: types → JWT core → refresh → tests**
Decisions: Approve 15-min token expiry • Blockers: None
003-auth-implement
**JWT middleware complete with 6 files created**
Decisions: Review before Phase 2 • Blockers: None
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
All prompts archived. Full summaries in .claude/workspace/prompts/*/SUMMARY.md
What's next?
1. Review implementation
2. Run tests
3. Create new prompt chain
4. Other
For chains, show condensed one-liner from each SUMMARY.md with decisions/blockers flagged.
If user wants to re-run an already-completed prompt:
completed/ subfolder{output}.bakIf output file already exists:
{filename}.bakAfter successful execution:
If a prompt's output includes instructions to create more prompts:
Reference Guides Prompt patterns by purpose:
Success Criteria Prompt Creation:
.claude/workspace/prompts/ with correct namingcompleted/ subfolder<critical_constraint> MANDATORY: Create SUMMARY.md for every prompt execution MANDATORY: Validate output file exists and has required sections before archiving MANDATORY: Use proper XML metadata tags for research/plan outputs MANDATORY: Present decision tree before executing prompts MANDATORY: Handle validation failures gracefully with recovery options No exceptions. Meta-prompts must maintain provenance and enable human scanning. </critical_constraint>
This component carries essential Seed System principles for context: fork isolation:
<critical_constraint> MANDATORY: All components MUST be self-contained (zero .claude/rules dependency) MANDATORY: Achieve 80-95% autonomy (0-5 AskUserQuestion rounds per session) MANDATORY: Description MUST use What-When-Not format in third person MANDATORY: No component references another component by name in description MANDATORY: Progressive disclosure - references/ for detailed content MANDATORY: Use XML for control (mission_control, critical_constraint), Markdown for data No exceptions. Portability invariant must be maintained. </critical_constraint>
Delta Standard: Good Component = Expert Knowledge − What Claude Already Knows
Recognition Questions:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience