agent-system-promptlisted
Install: claude install-skill Ahoo-Wang/skills
# Agent System Prompt Generator
A structured workflow for crafting effective LLM agent system prompts, from scratch or from an existing draft.
## When to Use This Skill
- Creating a new agent from scratch — user describes what they want, you interview and draft
- Improving an existing prompt — user provides the current version, you diagnose and rewrite
- Refactoring a prompt for a different platform (e.g., moving from OpenAI to Claude)
## Core Philosophy
A system prompt is a contract between the developer and the model. It should be:
- **Clear** — the model never has to guess what's expected
- **Complete** — covers the agent's role, boundaries, behavior, and output format
- **Concise** — every sentence earns its place; fluff dilutes signal
The goal is not to write a long prompt, but to write a *precise* one.
---
## Step 1: Gather Requirements
Interview the user to understand the agent's purpose. Ask these questions (adapt to context — if the user already provided some of this, don't re-ask):
### 1.1 Identity & Role
- What is this agent's name/identity?
- What role does it play? (e.g., "senior code reviewer", "customer support agent", "data analyst")
- What persona or tone should it adopt? (formal, casual, expert, friendly)
### 1.2 Scope & Capabilities
- What tasks should this agent handle?
- What tools or APIs does it have access to?
- What domains of knowledge does it need?
### 1.3 Boundaries & Safety
- What should the agent refuse to do?
- Are there compliance,