Delegate

From jrcjrcc/deepseek-nyamu · View interactive version

Delegate is an AI agent skill from the GitHub repository jrcjrcc/deepseek-nyamu. Strategic delegation for multi-step coding, research, or verification work. Use when a task can be split into parent reasoning plus focused sub-agent execution through agent_open, agent_eval, and agent_close.

How to use this skill

Skill file

Delegate

Use sub-agents when they can do focused work in parallel while the parent keeps architectural judgment, integration, and final verification.

Keep vs Delegate

Keep in the parent:

Delegate to sub-agents:

Do not delegate tiny one-step tasks, ambiguous product decisions, destructive operations without a clear acceptance criterion, or final verification.

Open Focused Sessions

Prefer agent_open for a named child session, then agent_eval to fetch or wait on its result. Open independent children together so they can run in parallel.

{
  "name": "config_audit",
  "prompt": "Inspect crates/tui/src/config.rs and crates/tui/src/settings.rs for duplicate model-default logic. Return file/line findings only; do not edit files.",
  "type": "explore",
  "model": "deepseek-v4-flash",
  "cwd": "."
}

For code changes, give the child a precise write boundary and tell it not to revert unrelated edits:

{
  "name": "docs_patch",
  "prompt": "Update only docs/configuration.md to document the new [statusline] keys. Match the surrounding style. Do not edit other files.",
  "type": "implementer",
  "model": "deepseek-v4-flash",
  "cwd": "."
}

Use fork_context: true only when the child genuinely needs the current conversation prefix. Leave it omitted for fresh, narrower context.

Evaluate and Verify

Use agent_eval with block: true when you need the result before continuing:

{
  "name": "docs_patch",
  "block": true,
  "timeout_ms": 120000
}

Use block: false for a quick status projection while other work continues.

Sub-agent outputs are self-reports. Re-check material claims before relying on them:

Close sessions that are no longer useful with agent_close.

Prompt Shape

A good delegation prompt includes:

Weak prompt:

Fix the settings bug.

Strong prompt:

Own only crates/tui/src/settings.rs and its tests. Preserve existing config key names. Add a regression test showing that provider-specific API key changes do not restart DeepSeek onboarding. Return the changed paths and test command output.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.