Apply prompting techniques when creating prompts, agents, commands, system instructions, or SKILL.md files. Use for XML tags, multishot examples, chain-of-thought, response prefilling, and Claude 4-specific patterns.
Apply these techniques when creating prompts, agents, commands, or system instructions.
Use XML tags to separate prompt components:
<context>Background and rationale</context>
<instructions>
1. Specific task requirements
2. Edge case handling
</instructions>
<examples>
<example>
<input>Sample input</input>
<output>Expected output</output>
</example>
</examples>
<data>{{VARIABLE_DATA}}</data>
Provide 3-5 examples for complex tasks:
Best for: JSON/XML generation, classifications, style matching
For complex reasoning, request step-by-step thinking:
<thinking>
Step-by-step reasoning process
</thinking>
<answer>
Final conclusion
</answer>
Best for: Arithmetic, logic, multi-step analysis, decisions
Guide output format by starting the assistant's reply:
messages=[
{"role": "user", "content": "Analyze this data: {{DATA}}"},
{"role": "assistant", "content": "{\n \"analysis\":"}
]
| Behavior | How to Request | |----------|----------------| | Comprehensive output | "Include as many relevant features as possible" | | Action vs suggestion | "Change this..." vs "Can you suggest..." | | Summaries | "After completing, provide a quick summary" |
Use system parameter for role/behavior, user for tasks:
system="""You are a senior solutions architect.
Communication Style:
- Be concise and technical
- Provide concrete examples
Constraints:
- Never speculate without data
- Recommend industry-standard solutions first"""
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer