Logo van Agent Audit

Agent Audit

Community
majiayu000
agent-audit

Validates agent configurations for model selection, tool permissions, focus areas, and approach quality. Use when reviewing, auditing, improving agents, or learning agent best practices.

Overzicht

Uitgevermajiayu000
Repositoryclaude-skill-registry-data
Skillnaamagent-audit
Sterren
28
Forks
11
Meegeleverde bestanden
1
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 1

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door majiayu000 op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Agent Audit in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/majiayu000/claude-skill-registry-data/tree/main/agent/agent-audit-philoserf-claude-code-setup
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/majiayu000/claude-skill-registry-data.git /tmp/claude-skill-registry-data
mkdir -p .claude/skills
cp -r /tmp/claude-skill-registry-data/agent/agent-audit-philoserf-claude-code-setup .claude/skills/agent-audit
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Agent Audit in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Agent Audit automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Agent Audit niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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:

text
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:

  • Valid YAML frontmatter - Proper syntax, required fields present
  • name field matches filename - Name consistency
  • model field present and valid - Sonnet, Haiku, or Opus only
  • At least 3 focus areas - Minimum viable expertise definition
  • Tool restrictions present - allowed_tools or allowed-patterns specified
  • No security vulnerabilities - Tools don't expose dangerous capabilities

Important Issues

Should be fixed for optimal agent performance:

  • Model matches complexity - Haiku for simple, Sonnet default, Opus rare
  • 5-15 focus areas - Not too few (vague) or too many (unfocused)
  • Focus areas specific - Concrete, not generic statements
  • Tools match usage - No missing or excessive permissions
  • Approach section complete - Methodology defined, output format specified
  • File size reasonable - <500 lines or uses progressive disclosure

Nice-to-Have Improvements

Polish for excellent agent quality:

  • Model choice justified - Clear reason for non-default model
  • Focus areas have examples - Technology/framework specificity
  • Approach has decision frameworks - If/then logic for complex tasks
  • Tool restrictions documented - Why specific tools are allowed/restricted
  • Resource organization - Uses references/ when needed, proper structure
  • Context economy - Concise without sacrificing clarity

Audit Workflow

Step 1: Read Agent File

Identify the agent file to audit:

bash
# Single agent
Read skills/evaluator/SKILL.md

# Find all agents
Glob agents/*.md

Step 2: Validate Model Selection

Check model field:

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

Decision criteria:

  • Haiku (haiku): Simple read-only analysis, fast response needed, low cost priority
  • Sonnet (sonnet): Default for most agents, balanced cost/capability
  • Opus (opus): Complex reasoning required, highest capability needed

Common issues:

  • Opus overuse: Using expensive model when Sonnet sufficient
  • Haiku underperformance: Too simple for task complexity
  • Missing model: No model field specified (defaults to Sonnet)

See model-selection.md for detailed decision matrix.

Step 3: Validate Tool Restrictions

Check allowed_tools or allowed-patterns:

yaml
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:

  • Read-only analyzer: [Read, Grep, Glob, Bash (read commands)]
  • Code generator: [Read, Write, Edit, Grep, Glob, Bash]
  • Orchestrator: [Task, Skill, Read, AskUserQuestion]

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:

  • ✗ Generic: "Python programming"
  • ✓ Specific: "FastAPI REST APIs with SQLAlchemy ORM"

Concrete vs Vague:

  • ✗ Vague: "Best practices"
  • ✓ Concrete: "Defensive programming with strict error handling"

Coverage:

  • Too few (<5): Expertise unclear or overly narrow
  • Sweet spot (5-15): Comprehensive, focused expertise
  • Too many (>15): Unfocused, trying to do everything

Example analysis:

markdown
## 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:

  • Methodology defined - Step-by-step process
  • Decision frameworks - How to handle different scenarios
  • Output format - What the agent produces
  • Integration with focus - How approach uses expertise

Example complete approach:

markdown
## 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):

markdown
## 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:

  • Main file: <500 lines (300-400 ideal)
  • References: 2-6 focused files in references/ directory
  • Navigation: Clear "Reference Files" section with descriptive links
  • Structure: Flat (no subdirectories within references/)

Scoring:

  • EXCELLENT (9-10): Well-organized with clear navigation
  • GOOD (7-8): Reasonable organization, minor issues
  • NEEDS IMPROVEMENT (4-6): Size issues or poor organization
  • POOR (1-3): >800 lines single file or bad structure
  • N/A: Simple agent <300 lines, no references needed

See resource-organization.md for detailed validation criteria.

Step 7: Check Context Economy

File size assessment:

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

Targets:

  • <300 lines: Excellent - concise and focused
  • 300-500 lines: Good - comprehensive without bloat
  • 500-800 lines: Consider progressive disclosure
  • >800 lines: Should use references/ directory

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:

  • Opus overuse: Expensive model for simple tasks
  • Generic focus areas: Lack of specificity and concrete examples
  • Missing tool restrictions: Unrestricted access creates security risks
  • Overly restrictive tools: Missing tools the agent needs
  • Incomplete approach: Vague methodology without clear steps

Report Format

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

Integration with audit-coordinator

Invocation pattern:

text
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:

  • audit-agent findings (model, tools, focus, approach)
  • evaluator findings (YAML, markdown, structure)
  • Unified report with reconciled priorities

Related Audit Skills

This skill is part of the audit skill family:

  • audit-agent (this skill) - Validates agent configurations
  • audit-skill - Validates skill configurations
  • audit-command - Validates command configurations
  • audit-hook - Validates hook configurations
  • audit-output-style - Validates output-style configurations
  • audit-coordinator - Orchestrates multi-faceted audits

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

Examples

Example 1: Good Agent (evaluator)

Status: PASS

Strengths:

  • Model: Sonnet (appropriate for analysis tasks)
  • Tools: Read, Grep, Glob, Bash (read-only pattern, secure)
  • Focus: 12 specific areas covering evaluation expertise
  • Approach: Complete methodology with output format

Score: 9/10 - Excellent agent design

Example 2: Agent Needs Work

Status: NEEDS WORK

Issues:

  • Model: Opus (expensive, Sonnet sufficient for task)
  • Tools: No allowed_tools (unrestricted access)
  • Focus: 3 generic areas ("best practices", "code quality")
  • Approach: Missing (no methodology defined)

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Agent Audit?

Validates agent configurations for model selection, tool permissions, focus areas, and approach quality. Use when reviewing, auditing, improving agents, or learning agent best practices.

Waarom Agent Audit gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Agent Audit bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Agent Audit in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/majiayu000/claude-skill-registry-data/tree/main/agent/agent-audit-philoserf-claude-code-setup. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Agent Audit gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Agent Audit gebruiken?

Zoveel als je wilt. Je kunt Agent Audit gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Agent Audit gratis?

Deze skill is door majiayu000 op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇