Skip to content

feat: Add /delegate skill — hand off findings to other agents via Delega#355

Open
ryanmcmillan wants to merge 2 commits intogarrytan:mainfrom
ryanmcmillan:feature/delegate-skill
Open

feat: Add /delegate skill — hand off findings to other agents via Delega#355
ryanmcmillan wants to merge 2 commits intogarrytan:mainfrom
ryanmcmillan:feature/delegate-skill

Conversation

@ryanmcmillan
Copy link

What

Adds a /delegate skill that bridges single-agent gstack workflows with multi-agent orchestration via Delega. After /review, /qa, or /cso produces findings, /delegate creates tracked, assigned tasks for other AI agents.

Why

gstack skills are excellent at finding issues. But the agent that finds a bug isn't always the right agent to fix it. /cso finds a SQL injection — that goes to your security agent. /qa finds a broken checkout flow — that goes to your frontend agent. /review finds a missing test — that goes to whoever handles testing.

/delegate closes the loop: one agent reviews, another agent gets a tracked task with full context (file, line, severity, confidence, recommended fix, branch).

How it works

  1. Gather — parses .gstack/security-reports/, .gstack/qa-reports/, or conversation context
  2. Plan — shows delegation plan via AskUserQuestion (never auto-creates)
  3. Create — creates Delega tasks via MCP tools (preferred) or CLI
  4. Summary — shows task IDs, priorities, assignments, and tracking command

Setup

Requires Delega MCP server or CLI:

# MCP (preferred)
npx @delega-dev/mcp

# CLI
npm i -g @delega-dev/cli && delega init

Files

  • delegate/SKILL.md.tmpl — source template (follows gstack conventions)
  • delegate/SKILL.md — generated skill file
  • README.md — added /delegate to all 4 skill lists
  • docs/skills.md — added skill table entry + full documentation section with example

Example

You:   /cso
Claude: [runs full OWASP + STRIDE audit, finds 4 issues]

You:   /delegate --agent @security
Claude: Created 4 tasks, all delegated to @security.
        Track progress: delega tasks list --labels cso

@ryanmcmillan ryanmcmillan force-pushed the feature/delegate-skill branch from d67a15c to ce1e04f Compare March 23, 2026 05:06
After /review, /qa, or /cso produces findings, /delegate creates tracked tasks
for other AI agents via Delega (https://delega.dev). One agent reviews, another
fixes. Supports MCP tools (preferred) and CLI fallback.

- Four-phase workflow: gather findings → plan delegation → create tasks → summary
- Parses .gstack/security-reports/ and .gstack/qa-reports/ JSON, or conversation context
- Priority mapping from gstack severity to Delega priority (1-4)
- Full context attachment: file, line, severity, confidence, recommended fix, branch
- Confirmation before creating tasks (never auto-creates)
- Dry run mode for previewing without side effects
- Registered in all skill lists (README, docs/skills.md, install instructions)
@ryanmcmillan ryanmcmillan force-pushed the feature/delegate-skill branch from ce1e04f to 517e14b Compare March 23, 2026 05:10
…legate_task

- Remove delegate_task from allowed-tools and Phase 3 (not a real MCP tool)
- Remove Write from allowed-tools (skill never writes files)
- Add list_agents discovery call in Phase 2 before planning assignments
- Use assigned_to parameter on create_task for delegation (single API call)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant