skillZs
LIVE SKILL TAGS
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
REAL INSTALL DATA
← back to all skills
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-engineering
view source ↗

Is 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

PrincipleDoDon't
Right AltitudePrinciple-based guidanceRigid Step 1,2,3 workflows
RFC 2119 KeywordsMUST/SHOULD/MAY for precisionVague "you should" everywhere
Structure Over PrescriptionWhen-then patternsComplex if-else chains
Examples Over RulesConcrete demonstrationsAbstract prescriptions

RFC 2119 Keywords

KeywordMeaningUse For
MUSTAlways requiredSecurity, correctness
MUST NOTAbsolute prohibitionDangerous operations
SHOULDStrong guidance, exceptions OKBest practices
MAYOptional, agent discretionOptimizations

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

  1. Read - Access current prompt via read_file
  2. Analyze - Check for over-prescription, under-specification, conflicts
  3. Improve - Apply principles: workflows → principles, add RFC 2119, add examples
  4. Document - Record what changed and why
  5. Test - Run against evaluation, compare results

Common Anti-Patterns

Anti-PatternExampleFix
Prompt bloatEvery scenario in promptExtract 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

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>