zerobias-org avatar

review-collector

Comprehensive validation of collector bot packages using 8 parallel specialized agents. Use to valid

by zerobias-org|Open Source

review-collector

Comprehensive validation of collector bot packages using 8 parallel specialized agents.

Usage

/review-collector [path]

Arguments:

  • path (optional) - Path to collector package directory. Defaults to current directory.

Examples:

/review-collector package/amazon/aws/iam
/review-collector .

Description

This skill performs comprehensive validation of a collector bot package by spawning 8 specialized validation agents in PARALLEL. Each agent focuses on a specific aspect and reports violations with specific file:line references and fix suggestions.

Execution Instructions for Claude

When this skill is invoked:

Step 1: Determine Collector Path

Parse the args parameter. If empty, use current working directory.

Step 2: Spawn 8 Validation Agents in Parallel

Use the Task tool to spawn ALL 8 agents in a SINGLE message (parallel execution):

For each agent, read the corresponding instruction file from .claude/agents/ and use it as the agent prompt:

  1. validate-config - Read .claude/agents/validate-config.md
  2. validate-schema - Read .claude/agents/validate-schema.md
  3. validate-mapping - Read .claude/agents/validate-mapping.md
  4. validate-pagination - Read .claude/agents/validate-pagination.md
  5. validate-groupid - Read .claude/agents/validate-groupid.md
  6. validate-security - Read .claude/agents/validate-security.md
  7. validate-performance - Read .claude/agents/validate-performance.md
  8. validate-dependencies - Read .claude/agents/validate-dependencies.md

CRITICAL: Spawn all 8 in a single message with 8 Task tool calls for true parallel execution.

Pass to each agent:

[Agent Instructions from .md file]

---

TASK: Validate collector at: {absolutePath}

Follow the validation checklist above.

Return results in this EXACT JSON format:
{
  "category": "{AgentName}",
  "status": "PASS | FAIL | WARN",
  "issues": [
    {
      "file": "relative/path/from/collector/root",
      "line": number,
      "message": "Description",
      "severity": "error | warning | info",
      "suggestion": "How to fix"
    }
  ]
}

Wrap JSON in ```json code block.

Step 3: Wait for All Agents to Complete

Collect results from all 8 agents.

Step 4: Aggregate and Display Results

Parse JSON from each agent and display:

=================================================================================
šŸ” Collector Review Results
=================================================================================

āœ… Configuration: PASS
   šŸ“„ 8 files checked, 0 issues

āœ… Schema: PASS
   šŸ“„ 3 classes validated, all implemented correctly

āŒ Mapping: FAIL (3 issues)
   āŒ src/Mappers.ts:45 - Nested mapping detected (should be flat)
      šŸ’” Use group IDs instead: groups: source.groupIds.sort()

   āŒ src/Mappers.ts:67 - Date field using DateTime format
      šŸ’” Use Object.assign workaround - see ADVANCED_MAPPING_GUIDE.md

   āš ļø  src/Mappers.ts:89 - Enum case mismatch
      šŸ’” Change 'ACTIVE' to 'Active'

āœ… Pagination: PASS
   šŸ“„ All pages processed, pageSize optimized

āš ļø  GroupId: WARN (1 issue)
   āš ļø  src/CollectorImpl.ts:124 - GroupId pattern unclear
       šŸ’” Consider: ${accountId}-${region} for regional resources

āœ… Security: PASS
   šŸ“„ No vulnerabilities detected

āœ… Performance: PASS
   šŸ“„ Concurrency within limits, memory managed well

āŒ Dependencies: FAIL (1 issue)
   āŒ package.json:38 - Product package in dependencies
      šŸ’” Remove @auditlogic/product-amazon-aws-iam (transitive dependency)

=================================================================================
šŸ“Š Overall Results
=================================================================================
   āœ… Pass: 6
   āŒ Fail: 2
   āš ļø  Warn: 1
   šŸ“ˆ Compliance: 75%

āš ļø  Action required: Fix 2 critical issue(s) before commit.
=================================================================================

Step 5: Provide Summary

  • If all PASS → "šŸŽ‰ All validations passed! Collector is ready for commit."
  • If any FAIL → "āš ļø Action required: Fix N critical issues."
  • If only WARN → "āœ“ Ready with warnings: Review N warnings."

Compliance score: (pass_count / 8) Ɨ 100

Notes

  • All agents run in parallel for speed
  • Each agent is independent
  • All agent instructions are in .claude/agents/*.md
  • Results are structured JSON for consistent parsing
  • File paths are relative to collector root
  • Suggestions are actionable and reference documentation
review-collector - AI Agent Skill for Claude Code & Cursor | Agent Skills