Subagent Staffing Planner – Claude Code Skill
by GlowHalo
Decide which recurring tasks deserve a Claude Code subagent versus a skill, script or manual work, and draft least-privilege .claude/agents files.
$5
Works with the AI Agents you already use
Subagent Staffing Planner – Claude Code Skill
Example session with this skill installed
Use the Subagent Staffing Planner on this (a sample I wrote). I maintain a small Node web app in a repo at /work/example-shop and want to know which of these recurring tasks deserve a Claude Code subagent. Please draft files for the ones that do.
- Weekly: scan all dependencies for outdated or risky packages and give me a short list (about 400 package files and a lockfile; I only need a table back).
- Daily: format code and fix lint errors before commits (currently I run it by hand).
- Per pull request, several times a week: review the diff for missing tests and unsafe input handling. Diffs are often 20+ files; I only want a short report.
- Monthly: read the last 30 days of server error logs (very long) and summarize the top recurring errors.
- Occasionally: rename a feature flag across the codebase, which needs careful judgement and edits.
- Release day, twice a month: follow our release checklist step by step with me in the chat.
All reports go to me only. I have never created a subagent before, and my .claude/agents folder is empty. No secrets should end up in any file.
- Read your context and instructions
- Compiled the subagent staffing planner
Evidence
| # | Task | Frequency | Input size | Output | Side effects | Pain |
|---|---|---|---|---|---|---|
| 1 | Dependency scan | Weekly | ~400 package files + lockfile | Short table | None | Volume of reading |
| 2 | Format + lint fix | Daily | Changed files | Clean code | Edits files | Manual, forgettable |
| 3 | PR review (tests, input handling) | Several/week | 20+ file diffs | Short report | None | Big diffs fill context |
| 4 | Error-log summary | Monthly | 30 days of logs, very long | Top recurring errors | None | Size |
| 5 | Feature-flag rename | Occasional | Codebase-wide search | Edited files | Edits many files | Needs judgement |
| 6 | Release checklist | Twice/month | The checklist | Steps done with you | Unknown, likely tags/deploys | Unknown |
Rubric scores
| # | 1 Freq | 2 Context | 3 Isolation | 4 Tool risk | 5 Parallel | 6 Simpler option |
|---|---|---|---|---|---|---|
| 1 | + weekly, same shape | + reads far more than it reports | + lockfile noise stays out of chat | + read-only if npm audit/outdated output is passed in as files | 0 one lockfile | 0 npm audit gives raw data, but not the "risky" judgement |
| 2 | + daily | - only changed files | 0 | - must write | 0 | - Prettier/ESLint --fix in a pre-commit hook |
| 3 | + several/week | + 20+ files → short report | + diff noise stays out | + Read/Grep/Glob are enough if you pass the diff | + split per module | + no script judges missing tests |
| 4 | 0 monthly, not weekly | + very long logs | + | + read-only | + per-week chunks | - a grouping script (normalise, count, sort) does the heavy part |
| 5 | - occasional | + codebase-wide search | - needs your judgement in the chat | - broad edits | 0 | 0 |
| 6 | 0 twice/month | - | - needs the conversation | - release steps change state | - sequential | - a skill covers it |
Buckets
- Agent: 1, 3
- Script/CI: 2 (pre-commit hook), 4 (aggregation script, then the main session summarises its short output)
- Skill: 6 (the checklist as a skill the main session follows with you)
- Stay manual: 5 (do it in the main session, where you can approve each judgement call)
Anti-pattern check
- No one-agent-per-task: 6 tasks → 2 agents. Tasks 1 and 3 read different material, so they are not merged.
- No write tools: both agents are Read/Grep/Glob only. The main session runs
npm audit --json,npm outdated --jsonandgit diff, saves the output to files and passes the paths. That avoids granting Bash at all. - No god-agent, no nested delegation, and no secrets in the bodies.
Agent drafts
.claude/agents/dependency-auditor.md
---
name: dependency-auditor
description: Reviews a Node lockfile plus npm audit/outdated JSON and returns a short risk table. Read-only; never edits files or runs commands.
tools: Read, Grep, Glob
---
You are the dependency auditor for this project. You receive a request without the surrounding conversation.
## Do
1. Confirm you were given the repo path, the lockfile path, and the paths to `npm audit --json` and `npm outdated --json` output files.
2. Read the audit and outdated files. Use the lockfile and package.json files only to check whether a package is direct or transitive and which top-level dependency pulls it in.
3. Rank the packages by risk: known vulnerabilities by severity first, then major versions behind, then deprecation notices found in package metadata.
## Does not do
- Does not edit, create or delete files.
- Does not run commands, install, upgrade or push anything.
- Does not guess: anything it cannot confirm from the given files is marked "unverified".
- Does not recommend upgrades beyond naming the target version.
## If context is missing
Say exactly which file or path is missing and stop. Do not assume.
## Report format
Table of at most 15 rows: Package | Direct/Transitive | Current | Latest | Issue | Severity | Suggested target.
Then a one-line verdict: "N urgent, N worth scheduling, rest fine."
.claude/agents/pr-reviewer.md
---
name: pr-reviewer
description: Reviews a saved PR diff for missing tests and unsafe input handling and returns a short report. Read-only; never edits files.
tools: Read, Grep, Glob
---
You are the PR reviewer for this project. You receive a request without the surrounding conversation.
## Do
1. Confirm you were given the repo path, the diff file path, and the scope (all files, or a named module).
2. For each changed source file, find its tests with Glob/Grep. Flag new or changed behaviour that has no matching test change.
3. Check changed code that handles request input (params, body, query, headers, uploads) for missing validation, unescaped output, raw SQL/shell construction and unchecked redirects.
4. Report findings only. Do not narrate your process.
## Does not do
- Does not edit, create or delete files.
- Does not run commands, tests or git operations.
- Does not guess: unclear cases are reported as "unverified".
- Does not comment on style or formatting; linting handles that.
## If context is missing
Say exactly what is missing (diff path, scope) and stop.
## Report format
At most 10 bullets, each written as `file:line — category (Missing test | Input handling) — one-line issue`.
Then a one-line verdict: "Ready", "Ready with notes", or "Needs changes".
Delegation examples
dependency-auditor: "Repo /work/example-shop. Lockfile /work/example-shop/package-lock.json. Audit JSON at <path>, outdated JSON at <path>. Return the risk table."
pr-reviewer: "Repo /work/example-shop. Diff at <path> (main...feature-x). Scope: all files." For large PRs, run one copy per top-level module with the same diff path and a different scope, then have the main session merge the reports and remove duplicates.
Staffing table
| Task | Bucket | Criteria met | Agent name or alternative | Tools | Writes? |
|---|---|---|---|---|---|
| 1 Dependency scan | Agent | 1, 2, 3, 4 | dependency-auditor | Read, Grep, Glob | No |
| 2 Format/lint | Script/CI | 1 | Pre-commit hook (Prettier + ESLint --fix) | — | Yes (by the hook) |
| 3 PR review | Agent | 1, 2, 3, 4, 5, 6 | pr-reviewer | Read, Grep, Glob | No |
| 4 Log summary | Script/CI | 2, 3, 4, 5 | Grouping script, then the main session summarises | — | No |
| 5 Flag rename | Stay manual | 2 | Main session, with you approving edits | — | Yes (reviewed) |
| 6 Release | Skill | none | Release-checklist skill | — | Per step |
Recommendation: 2 agents. Not staffed:
- 2: deterministic, so a hook is cheaper.
- 4: monthly, and a script does the heavy reduction.
- 5: rare and judgement-heavy, so it belongs with you.
- 6: needs the conversation, so a skill fits better.
Review step: read each draft's tools: line and its Does not do list before saving. Saving the files, and deciding which tools to grant, is your call. I haven't written anything to disk.
Connects securely to your tools. The creator never sees your data.
About this skill
Takes your list of recurring tasks and records frequency, input size, output, side effects and pain for each. It scores them on six criteria (frequency, context size, isolation, tool risk, parallelism, simpler option), assigns a bucket (Agent, Skill or saved prompt, Script or CI job, Stay manual, Merge) and rejects anti-patterns such as one agent per task, god-agents and write tools by default. For tasks that earn an agent it drafts .claude/agents/<name>.md files with an explicit read-only tools line, a Does not do list and a fixed report format, plus delegation examples and a final staffing table. It only produces drafts in the chat: it does not create files unless you ask, runs nothing, calls no service and asks for no secrets. Saving files and granting tools is your decision.
Product and company names mentioned here, including Anthropic, OpenAI and OpenClaw, are trademarks of their respective owners; this Skill is an independent product and is not affiliated with, endorsed by or sponsored by any of them.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 20 days ago