xiaohongshu
xiaohongshu
agent-prompt-design
Create well-structured prompts for AI agents using proven architecture patterns. Use when users ask to write agent prompts, system prompts, or agent instructions, or want to improve existing prompts that aren't working.
Full skill instructions
Collect the following before drafting:
Required:
If improving an existing prompt:
Build the prompt with these five components in order:
Write 1-2 sentences establishing identity and function.
You are a [role] that [primary function]. Your goal is to [main objective].
Add placeholders for context that will be injected at runtime. Focus on domain-specific data the framework won't provide automatically:
## Current Context
- User: {{user_name}}
- Account type: {{account_tier}}
- Permissions: {{user_permissions}}
Note: Conversation history and tool definitions are typically handled by the framework—don't include them unless the system requires manual injection.
Write step-by-step behavioral guidance. Be specific about:
Include only if the task has non-obvious output formats. Keep examples minimal—frontier models don't need extensive few-shot demonstrations.
For prompts longer than ~500 words, repeat the most important rules at the end. Models pay more attention to the beginning and end of prompts.
Identify domain-specific decisions the agent must make and write explicit rules for each.
Questions to answer:
Transform vague instructions into explicit rules:
| Vague | Explicit |
|---|---|
| "Search for relevant documents" | "Search up to 3 times. If no relevant results after 3 searches, ask the user to clarify." |
| "Make sure the data is accurate" | "Cross-reference data from at least 2 sources before presenting to user." |
| "Be thorough" | "For simple questions, use 1-2 tool calls. For complex analysis, use up to 10." |
Add guidance for how the agent should use its tools.
For agents with MCP servers or dynamic tools: Tools are loaded automatically with their own descriptions. Focus on:
## Tool Usage Guidelines
- Always read existing data before attempting modifications
- Prefer search tools over list tools when looking for specific items
- Use creation tools only after confirming the item doesn't exist
For agents with custom/static tools: If tools have overlapping functions or ambiguous names, add explicit selection rules:
## When to Use Each Tool
- Use `search_docs` for internal knowledge base queries
- Use `search_web` only when docs don't have the answer
- Use `ask_user` when the query is ambiguous after one search attempt
Address potential failure modes in the prompt:
Loops: Add stopping conditions
If you've attempted the same action 3 times without progress, stop and ask the user for guidance.
Excessive tool use: Set budgets
Limit to 5 tool calls per user request unless explicitly asked for deeper research.
Irreversible actions: Require confirmation
Before deleting, modifying, or sending anything, show the user what will happen and ask for confirmation.
Perfectionism: Allow "good enough"
If perfect information isn't available after reasonable effort, provide the best answer with caveats rather than continuing indefinitely.
Before delivering, verify:
Empathy test: Read the prompt as if you were the agent with only the described tools and context. Could you follow every instruction unambiguously?
Heuristics check: Are all domain-specific decisions explicit? No "use your judgment" without criteria.
Architecture check: All five components present (role, dynamic content, instructions, examples if needed, critical reminders if long)?
Side effects check: Are irreversible actions, loops, and resource limits addressed?
If any check fails, revise the relevant section.
Overcomplicating: Start simple. Add complexity only when testing reveals gaps.
Implicit knowledge: Don't assume the agent knows domain rules. If humans in the field would need training, the agent needs explicit instructions.
Rigid reasoning: Don't prescribe exact thought patterns ("First think X, then think Y"). Let the model reason flexibly between tool calls.
Vague stopping conditions: "Keep searching until you find it" causes loops. Always define when to stop.
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