gdmacmillan/sia-web-agent1 installs
prompt-engineering
Best practices for effective system prompts. Use when "improve this prompt", "review system instructions", "optimize agent behavior", or "write agent instructions". Triggers on prompt review, agent optimization tasks.
How do I install this agent skill?
npx skills add https://github.com/gdmacmillan/sia-web-agent --skill prompt-engineeringIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides best practices, templates, and guidelines for effective prompt engineering using RFC 2119 keywords. No security risks were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Prompt Engineering for Agents
Guidelines for writing effective system prompts and agent instructions.
When to Apply
- Reviewing or improving agent system prompts
- Writing instructions for new agents or tools
- Optimizing prompts based on evaluation results
- Analyzing prompt effectiveness
Quick Reference: The Four Principles
| Principle | Do | Don't |
|---|---|---|
| Right Altitude | Principle-based guidance | Rigid Step 1,2,3 workflows |
| RFC 2119 Keywords | MUST/SHOULD/MAY for precision | Vague "you should" everywhere |
| Structure Over Prescription | When-then patterns | Complex if-else chains |
| Examples Over Rules | Concrete demonstrations | Abstract prescriptions |
RFC 2119 Keywords
| Keyword | Meaning | Use For |
|---|---|---|
| MUST | Always required | Security, correctness |
| MUST NOT | Absolute prohibition | Dangerous operations |
| SHOULD | Strong guidance, exceptions OK | Best practices |
| MAY | Optional, agent discretion | Optimizations |
System Prompt Template
# Role
[What the agent is and primary function]
# Constraints
[Hard boundaries using RFC 2119]
# Tools & Integration
[When and how to use available tools]
# Decision Framework
[Principles for making choices]
# Examples
[Concrete demonstrations]
How It Works
- Read - Access current prompt via
read_file - Analyze - Check for over-prescription, under-specification, conflicts
- Improve - Apply principles: workflows → principles, add RFC 2119, add examples
- Document - Record what changed and why
- Test - Run against evaluation, compare results
Common Anti-Patterns
| Anti-Pattern | Example | Fix |
|---|---|---|
| Prompt bloat | Every scenario in prompt | Extract to skills, keep principles |
| Conflicting guidance | "Be creative and follow exact steps" | Prioritize with RFC 2119 |
| Assuming context | "Use best practices" | Specify what that means |
| Workflow addiction | "1. Read, 2. Edit, 3. Test" | "Understand context before modifying" |
Best Practices
- Balance: not too rigid (can't adapt), not too vague (no guidance)
- Use RFC 2119 to distinguish hard requirements from suggestions
- Provide examples showing desired behavior, not just rules
- Separate concerns: role, constraints, tools, decisions, examples
- Test changes with evaluation harness before committing
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/gdmacmillan/sia-web-agent/prompt-engineering">View prompt-engineering on skillZs</a>