Skip to content
Back to skills

Create Sub Agent

ASecurity

Interactive initialization script that generates a compliant Sub-Agent configuration. Use when you need to create a nested contextual boundary with specific tools or persistent memory.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
toolspythonrustbashbackend

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add richfrem/Project_Sanctuary --skill create-sub-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Sub Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Create Sub Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-create-sub-agent/badge)](https://www.skillsdirectory.com/skills/richfrem-create-sub-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: create-sub-agent
description: Interactive initialization script that generates a compliant Sub-Agent configuration. Use when you need to create a nested contextual boundary with specific tools or persistent memory.
disable-model-invocation: false
allowed-tools: Bash, Read, Write
---

# Sub-Agent Scaffold Generator

You are tasked with generating a new Sub-Agent context boundary using our deterministic backend scaffolding pipeline.

## Execution Steps:

1. **Gather Requirements:**
   Before proceeding, you MUST read:
   - `plugins reference/agent-scaffolders/references/hitl-interaction-design.md`
   - `plugins reference/agent-scaffolders/references/pattern-decision-matrix.md`
   
   Use these guides to ask the user for:
   - The name of the sub-agent.
   - The core purpose (to form the `description` and system prompt).
   - The escalation risk: does this agent need an Escalation Trigger Taxonomy explicitly defined in its prompt?
   - The trust posture: warn the user that all sub-agent return boundaries MUST end in a Source Transparency Declaration (Sources Checked/Unavailable).
   - Where the agent should be placed (`.claude/skills/` or within a plugin's `/agents/` folder).

2. **Scaffold the Sub-Agent:**
   You must execute the hidden deterministic `scaffold.py` script.
   
   Run the following bash command:
   ```bash
   python3 ~~agent-scaffolders-root/scripts/scaffold.py --type sub-agent --name <requested-name> --path <destination-directory> --desc "<core-purpose>"
   ```

3. **Confirmation:**
   Print a success message and advise the user on how to spawn the sub-agent (usually via the System `Task` tool).


## Next Actions
- Offer to run `audit-plugin` to validate the generated artifacts.

Files in this skill

  • SKILL.md1.7 KB
  • evals/evals.json1.5 KB
  • references/fallback-tree.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.