create-or-audit-subagent

Create or audit codebase-specific subagents in the .claude/agents directory.

9|2|Updated Nov 29, 2024
One-click install
npx skills add https://github.com/bbvch-ai/aihub-core --skill create-or-audit-subagent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-or-audit-subagent
Source: https://github.com/bbvch-ai/aihub-core/tree/main/.claude/skills/create-or-audit-subagent
Command: npx skills add https://github.com/bbvch-ai/aihub-core --skill create-or-audit-subagent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the risk of cluttering the .claude/agents directory with generic subagents that duplicate Claude's built-in capabilities or lack project-specific knowledge. It ensures every custom agent is justified, properly scoped, and grounded in the actual architecture and patterns of the codebase.

Core Features & Use Cases

  • Build New Subagents: Guides engineers through validating the need for isolation, investigating codebase-specific patterns, and writing a system prompt that teaches the agent about real file paths, helper functions, and project conventions.
  • Audit Existing Subagents: Runs a comprehensive quality gate including specificity tests, overlap checks with built-in agents, tool scoping validation, and token budget analysis to identify redundant or misconfigured agents.
  • Use Case: Imagine your team has accumulated a dozen custom agents, many of which are generic code reviewers or debuggers that add no value. Use this Skill to audit the directory, remove redundant agents, and ensure remaining agents have minimal tool access and proper configuration.

Quick Start

Use the create-or-audit-subagent skill to audit all subagents in the .claude/agents directory and generate a report recommending which agents to keep, revise, or remove.

Frequently Asked Questions about create-or-audit-subagent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent generic subagent bloat in my Claude Code .claude/agents directory?

You can audit existing subagents by running comprehensive quality gates that check specificity, overlap with built-in agents, and tool scoping. This identifies redundant or misconfigured agents in your .claude/agents directory and generates a report recommending which agents to keep, revise, or remove.

How do I build codebase-specific subagents with restricted tools in Claude Code?

Build codebase-specific subagents by validating isolation needs, investigating project patterns, and writing system prompts that teach real file paths and conventions. Apply configuration hygiene for model selection, tool scoping, and memory settings to ensure agents remain focused and isolated for heavy-output tasks.

When do I need isolated subagents for code review and test execution tasks?

You need isolated subagents for heavy-output tasks like code review, test execution, and documentation analysis when engineers require restricted tools and focused personas. Validating against specificity thresholds ensures the subagent adds value beyond Claude's built-in capabilities for your specific project.

What is the best way to audit subagent configuration hygiene for model selection and tool scoping?

The best way to audit subagent configuration hygiene is to run validation checks for model selection, tool scoping, and memory settings. This quality gate includes specificity tests and overlap checks with built-in agents to identify misconfigured agents that lack proper tool access restrictions.

Does Claude Code subagent validation check for overlap with built-in agents?

Yes, subagent validation runs overlap checks with built-in agents to identify custom agents that duplicate Claude's default capabilities. This eliminates the risk of cluttering the .claude/agents directory with redundant subagents that add no project-specific value.