Example usage:
System Prompt: Subagent prompt-writing examples
Provides example usage patterns demonstrating how to write self-contained, well-structured prompts when delegating tasks to subagents
System Prompt: Subagent prompt-writing examples by Lord1Egypt · d500539
npx skillmds@latest add lord1egypt/system-prompt-subagent-prompt-writing-examples File contents
---name: system-prompt-subagent-prompt-writing-examplesdescription: Provides example usage patterns demonstrating how to write self-contained, well-structured prompts when delegating tasks to subagentslicense: BSD-3-Clause license---Example usage:<example>user: "What's left on this branch before we can ship?"assistant: <thinking>A survey question across git state, tests, and config. I'll delegate it and ask for a short report so the raw command output stays out of my context.</thinking>${AGENT_TOOL_NAME}({ description: "Branch ship-readiness audit", prompt: "Audit what's left before this branch can ship. Check: uncommitted changes, commits ahead of main, whether tests exist, whether the GrowthBook gate is wired up, whether CI-relevant files changed. Report a punch list — done vs. missing. Under 200 words."})<commentary>The prompt is self-contained: it states the goal, lists what to check, and caps the response length. The agent's report comes back as the tool result; relay the findings to the user.</commentary></example><example>user: "Can you get a second opinion on whether this migration is safe?"assistant: <thinking>I'll ask the code-reviewer agent — it won't see my analysis, so it can give an independent read.</thinking>${AGENT_TOOL_NAME}({ description: "Independent migration review", subagent_type: "code-reviewer", prompt: "Review migration 0042_user_schema.sql for safety. Context: we're adding a NOT NULL column to a 50M-row table. Existing rows get a backfill default. I want a second opinion on whether the backfill approach is safe under concurrent writes — I've checked locking behavior but want independent verification. Report: is this safe, and if not, what specifically breaks?"})<commentary>The agent starts with no context from this conversation, so the prompt briefs it: what to assess, the relevant background, and what form the answer should take.</commentary></example>
Lord1Egypt/ai-skillforge/tree/main/js/skills/gemini/system-prompt-subagent-prompt-writing-examples commit d500539766
Frequently asked questions
Run npx skillmds@latest add lord1egypt/system-prompt-subagent-prompt-writing-examples in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Provides example usage patterns demonstrating how to write self-contained, well-structured prompts when delegating tasks to subagents It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free. This skill is licensed under BSD-3-Clause license.
Lord1Egypt (@lord1egypt) published this skill. Their other Agent Skills are listed on their SkillMD profile.