Agent audit philoserf claude code setup

From majiayu000/claude-skill-registry-data · View interactive version

Agent audit philoserf claude code setup is an AI agent skill from the GitHub repository majiayu000/claude-skill-registry-data. Validates agent configurations for model selection, tool permissions, focus areas, and approach quality. Use when reviewing, auditing, improving agents, or learning agent best practices.

How to use this skill

Skill file

Reference Files

Advanced agent validation guidance:


Agent Auditor

Validates agent configurations for model selection, tool restrictions, focus areas, and approach methodology.

Quick Start

Basic audit workflow:

  1. Read agent file
  2. Check model selection appropriateness
  3. Validate tool restrictions
  4. Assess focus area quality
  5. Review approach methodology
  6. Generate audit report

Example usage:

User: "Audit my evaluator skill"
→ Reads skills/evaluator/SKILL.md
→ Validates model (Sonnet), tools, focus areas, approach
→ Generates report with findings and recommendations

Agent Audit Checklist

Critical Issues

Must be fixed for agent to function correctly:

Important Issues

Should be fixed for optimal agent performance:

Nice-to-Have Improvements

Polish for excellent agent quality:

Audit Workflow

Step 1: Read Agent File

Identify the agent file to audit:

# Single agent
Read skills/evaluator/SKILL.md

# Find all agents
Glob agents/*.md

Step 2: Validate Model Selection

Check model field:

model: sonnet  # Good - default choice
model: haiku   # Check: Is agent simple enough?
model: opus    # Check: Is complexity justified?

Decision criteria:

Common issues:

See model-selection.md for detailed decision matrix.

Step 3: Validate Tool Restrictions

Check allowed_tools or allowed-patterns:

allowed_tools:
  - Read
  - Grep
  - Glob
  - Bash

Validation checklist:

  1. Tools specified: Has allowed_tools field (not unrestricted)
  2. Tools match usage: All mentioned tools are allowed
  3. No missing tools: All needed tools are included
  4. No excessive tools: No unnecessary permissions
  5. Security implications: No dangerous tool combinations

Common patterns:

See tool-restrictions.md for security analysis.

Step 4: Assess Focus Area Quality

Target: 5-15 focus areas that are specific, concrete, and comprehensive

Quality criteria:

Specific vs Generic:

Concrete vs Vague:

Coverage:

Example analysis:

## Focus Areas

- Defensive programming with strict error handling ✓
- POSIX compliance and cross-platform portability ✓
- Safe argument parsing and input validation ✓
- Robust file operations and temporary resource management ✓
- Production-grade logging and error reporting ✓

Score: 5/5 areas, all specific and concrete → GOOD

See focus-area-quality.md for scoring methodology.

Step 5: Review Approach Methodology

Check approach section completeness:

Required elements:

Example complete approach:

## Approach

1. Analyze requirements and constraints
2. Design solution using defensive programming principles
3. Implement with POSIX compliance
4. Add comprehensive error handling
5. Test on multiple platforms
6. Document with inline comments

Output: Production-ready Bash script with full error handling

Incomplete approach (missing steps, no output format):

## Approach

Write good Bash scripts following best practices.

See approach-methodology.md for templates.

Step 6: Validate Resource Organization

Check for progressive disclosure:

Single file agents:

  1. Count lines in agent file
  2. If <500 lines: No references needed, mark as N/A
  3. If >500 lines: Should use references/, flag for refactoring

Directory-based agents:

  1. Check for references/ subdirectory
  2. Count files in references/
  3. Verify all references linked from main file
  4. Check for orphaned files
  5. Verify flat structure (no nested directories)

Targets:

Scoring:

See resource-organization.md for detailed validation criteria.

Step 7: Check Context Economy

File size assessment:

# Count lines
wc -l skills/evaluator/SKILL.md

Targets:

If oversized:

  1. Extract detailed content to references/ files
  2. Keep main file focused on core workflow
  3. Link to references from main file
  4. Maintain one-level-deep structure

Step 8: Generate Audit Report

Compile findings into standardized report format. See report-format.md for the complete template.

Agent-Specific Validation

For detailed validation criteria in each area, see the reference files:

Common Issues

For detailed troubleshooting guidance, see common-issues.md.

Common patterns include:

Report Format

Use the standardized template in report-format.md for all agent audit reports.

Integration with audit-coordinator

Invocation pattern:

User: "Audit my agent"
→ audit-coordinator invokes audit-agent
→ audit-agent performs specialized validation
→ Results returned to audit-coordinator
→ Consolidated with evaluator findings

Sequence:

  1. audit-agent (primary) - Agent-specific validation
  2. evaluator (secondary) - General structure validation
  3. test-runner (optional) - Functional testing

Report compilation:

Related Audit Skills

This skill is part of the audit skill family:

For comprehensive audits, use audit-coordinator which will invoke the appropriate specialists.

Examples

Example 1: Good Agent (evaluator)

Status: PASS

Strengths:

Score: 9/10 - Excellent agent design

Example 2: Agent Needs Work

Status: NEEDS WORK

Issues:

Critical fixes:

  1. Add allowed_tools field
  2. Change model to Sonnet
  3. Expand focus areas to 5-10 specific items
  4. Add complete approach section

Score: 4/10 - Requires significant improvement

See examples.md for complete audit reports.


For detailed guidance on each validation area, consult the reference files linked at the top of this document.

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.