New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Multi-agent project audit plugin that repeats code review until no issues remain.

GitHub stars
2K
View on GitHub

What it does

  • Adds audit-project, audit-project-agents, and audit-project-github commands for full-project quality review
  • Runs iterative multi-agent review passes over the codebase, repeating until zero issues remain
  • Covers quality and issue detection across the whole project rather than a single file or diff

Full project audit for quality and issues

Add marketplace

/plugin marketplace add ComposioHQ/awesome-claude-plugins

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install audit-project@awesome-claude-plugins

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Phase 2: Multi-Agent Review - Reference

This file contains detailed agent coordination for /audit-project.

Parent document: audit-project.md

Review Pass Definitions: See orchestrate-review skill for canonical pass definitions (core + conditional). This command uses the same review passes but detects signals from project structure (not just changed files).

Agent Specialization

File Filtering by Agent

Each agent reviews only relevant files:

AgentFile Patterns
code-quality-reviewerAll source files (includes error handling)
security-expertAuth, validation, API endpoints, config
performance-engineerHot paths, algorithms, loops, queries
test-quality-guardianTest files + missing-test signals
architecture-reviewerCross-module boundaries, core packages
database-specialistModels, queries, migrations
api-designerAPI routes, controllers, handlers
frontend-specialistComponents, state management
backend-specialistServices, domain logic, queues
devops-reviewerCI/CD configs, Dockerfiles

Review Queue File

Create a temporary review queue file in the platform state dir. Review passes append JSONL or return JSON for the parent to write.

const path = require('path');
const fs = require('fs');
const { getPluginRoot } = require('@awesome-slash/lib/cross-platform');
const pluginRoot = getPluginRoot('audit-project');
if (!pluginRoot) { console.error('Error: Could not locate audit-project plugin root'); process.exit(1); }
const { getStateDirPath } = require(`${pluginRoot}/lib/platform/state-dir.js`);

const stateDirPath = getStateDirPath(process.cwd());
if (!fs.existsSync(stateDirPath)) {
  fs.mkdirSync(stateDirPath, { recursive: true });
}

function findLatestQueue(dirPath) {
  const files = fs.readdirSync(dirPath)
    .filter(name => name.startsWith('review-queue-') && name.endsWith('.json'))
    .map(name => ({
      name,
      fullPath: path.join(dirPath, name),
      mtime: fs.statSync(path.join(dirPath, name)).mtimeMs
    }))
    .sort((a, b) => b.mtime - a.mtime);
  return files[0]?.fullPath || null;
}

function safeReadJson(filePath) {
  try {
    return JSON.parse(fs.readFileSync(filePath, 'utf8'));
  } catch (error) {
    console.warn(`Review queue unreadable: ${filePath}. Starting fresh.`);
    return null;
  }
}

const resumeRequested = typeof RESUME_MODE !== 'undefined' && RESUME_MODE === 'true';
let reviewQueuePath = resumeRequested ? findLatestQueue(stateDirPath) : null;

if (!reviewQueuePath) {
  reviewQueuePath = path.join(stateDirPath, `review-queue-${Date.now()}.json`);
}

if (!fs.existsSync(reviewQueuePath)) {
  const reviewQueue = {
    status: 'open',
    scope: { type: 'audit', value: SCOPE },
    passes: [],
    items: [],
    iteration: 0,
    updatedAt: new Date().toISOString()
  };
  fs.writeFileSync(reviewQueuePath, JSON.stringify(reviewQueue, null, 2), 'utf8');
} else if (resumeRequested) {
  const reviewQueue = safeReadJson(reviewQueuePath) || {
    status: 'open',
    scope: { type: 'audit', value: SCOPE },
    passes: [],
    items: [],
    iteration: 0,
    updatedAt: new Date().toISOString()
  };
  reviewQueue.status = 'open';
  reviewQueue.resumedAt = new Date().toISOString();
  reviewQueue.updatedAt = new Date().toISOString();
  fs.writeFileSync(reviewQueuePath, JSON.stringify(reviewQueue, null, 2), 'utf8');
}

Agent Coordination

Use Task tool to launch agents in parallel:

const agents = [];

const baseReviewPrompt = (passId, role, focus) => `Role: ${role}.

Scope: ${SCOPE}
Framework: ${FRAMEWORK}

Focus on:
${focus.map(item => `- ${item}`).join('\n')}

Write findings to ${reviewQueuePath} (append JSONL if possible). If you cannot write files, return JSON only.

Return JSON ONLY in this format:
{
  "pass": "${passId}",
  "findings": [
    {
      "file": "path/to/file.ts",
      "line": 42,
      "severity": "critical|high|medium|low",
      "category": "${passId}",
      "description": "Issue description",
      "suggestion": "How to fix",
      "confidence": "high|medium|low",
      "falsePositive": false
    }
  ]
}`;

// Always active agents
agents.push(Task({
  subagent_type: "review",
  prompt: baseReviewPrompt('code-quality', 'code quality reviewer', [
    'Code style and consistency',
    'Best practices violations',
    'Potential bugs and logic errors',
    'Error handling and failure paths',
    'Maintainability issues',
    'Code duplication'
  ])
}));

agents.push(Task({
  subagent_type: "review",
  prompt: baseReviewPrompt('security', 'security reviewer', [
    'Auth/authz flaws',
    'Input validation and output encoding',
    'Injection risks (SQL/command/template)',
    'Secrets exposure and unsafe configs',
    'Insecure defaults'
  ])
}));

agents.push(Task({
  subagent_type: "review",
  prompt: baseReviewPrompt('performance', 'performance reviewer', [
    'N+1 queries and inefficient loops',
    'Blocking operations in async paths',
    'Hot path inefficiencies',
    'Memory leaks or unnecessary allocations'
  ])
}));

agents.push(Task({
  subagent_type: "review",
  prompt: baseReviewPrompt('test-coverage', 'test coverage reviewer', [
    'New code without corresponding tests',
    'Missing edge case coverage',
    'Test quality (meaningful assertions)',
    'Integration test needs',
    'Mock/stub appropriateness',
    HAS_TESTS ? 'Existing tests: verify coverage depth' : 'No tests detected: report missing tests'
  ])
}));

// Conditional agents
if (FILE_COUNT > 50) {
  agents.push(Task({
    subagent_type: "review",
    prompt: baseReviewPrompt('architecture', 'architecture reviewer', [
      'Module boundaries and ownership',
      'Dependency direction and layering',
      'Cross-layer coupling',
      'Consistency of patterns'
    ])
  }));
}

if (HAS_DB) {
  agents.push(Task({
    subagent_type: "review",
    prompt: baseReviewPrompt('database', 'database specialist', [
      'Query optimization and N+1 queries',
      'Missing indexes',
      'Transaction handling',
      'Migration safety'
    ])
  }));
}

if (HAS_API) {
  agents.push(Task({
    subagent_type: "review",
    prompt: baseReviewPrompt('api', 'api designer', [
      'REST best practices',
      'Error handling and status codes',
      'Rate limiting and pagination',
      'API versioning'
    ])
  }));
}

if (HAS_FRONTEND) {
  agents.push(Task({
    subagent_type: "review",
    prompt: baseReviewPrompt('frontend', 'frontend specialist', [
      'Component boundaries',
      'State management patterns',
      'Accessibility',
      'Render performance'
    ])
  }));
}

if (HAS_BACKEND) {
  agents.push(Task({
    subagent_type: "review",
    prompt: baseReviewPrompt('backend', 'backend specialist', [
      'Service boundaries',
      'Domain logic correctness',
      'Concurrency and idempotency',
      'Background job safety'
    ])
  }));
}

if (HAS_CICD) {
  agents.push(Task({
    subagent_type: "review",
    prompt: baseReviewPrompt('devops', 'devops reviewer', [
      'CI/CD safety',
      'Secrets handling',
      'Build/test pipelines',
      'Deploy config correctness'
    ])
  }));
}

Finding Consolidation

After all agents complete:

function consolidateFindings(agentResults) {
  const allFindings = [];

  for (const result of agentResults) {
    const pass = result.pass || 'unknown';
    const findings = Array.isArray(result.findings) ? result.findings : [];
    for (const finding of findings) {
      allFindings.push({
        id: `${pass}:${finding.file}:${finding.line}:${finding.description}`,
        pass,
        ...finding,
        status: finding.falsePositive ? 'false-positive' : 'open'
      });
    }
  }

  // Deduplicate by pass:file:line:description
  const seen = new Set();
  const deduped = allFindings.filter(f => {
    const key = `${f.pass}:${f.file}:${f.line}:${f.description}`;
    if (seen.has(key)) return false;
    seen.add(key);
    return true;
  });

  // Sort by severity
  const severityOrder = { critical: 0, high: 1, medium: 2, low: 3 };
  deduped.sort((a, b) => {
    const aRank = severityOrder[a.severity] ?? 99;
    const bRank = severityOrder[b.severity] ?? 99;
    return aRank - bRank;
  });

  // Update queue file
  const queueState = safeReadJson(reviewQueuePath) || {
    status: 'open',
    scope: { type: 'audit', value: SCOPE },
    passes: [],
    items: [],
    iteration: 0,
    updatedAt: new Date().toISOString()
  };
  queueState.items = deduped;
  queueState.passes = Array.from(new Set(deduped.map(item => item.pass)));
  queueState.updatedAt = new Date().toISOString();
  fs.writeFileSync(reviewQueuePath, JSON.stringify(queueState, null, 2), 'utf8');

  // Group by file
  const byFile = {};
  for (const f of deduped) {
    if (!byFile[f.file]) byFile[f.file] = [];
    byFile[f.file].push(f);
  }

  return {
    all: deduped,
    byFile,
    counts: {
      critical: deduped.filter(f => f.severity === 'critical' && !f.falsePositive).length,
      high: deduped.filter(f => f.severity === 'high' && !f.falsePositive).length,
      medium: deduped.filter(f => f.severity === 'medium' && !f.falsePositive).length,
      low: deduped.filter(f => f.severity === 'low' && !f.falsePositive).length
    }
  };
}

Queue Cleanup

After fixes and re-review, remove the queue file if no open issues remain:

const queueState = safeReadJson(reviewQueuePath);
if (!queueState) {
  return;
}
const openCount = queueState.items.filter(item => !item.falsePositive).length;
if (openCount === 0) {
  if (fs.existsSync(reviewQueuePath)) {
    try {
      fs.unlinkSync(reviewQueuePath);
    } catch (error) {
      if (error.code !== 'ENOENT') {
        throw error;
      }
    }
  }
}

Framework-Specific Patterns

React Patterns

const reactPatterns = {
  hooks_rules: {
    description: "React hooks must be called at top level",
    pattern: /use[A-Z]\w+\(/,
    context: "inside conditionals or loops"
  },
  state_management: {
    description: "Avoid prop drilling, use context or state management",
    pattern: /props\.\w+\.\w+\.\w+/
  },
  performance: {
    description: "Use memo/useMemo for expensive computations",
    pattern: /\.map\(.*=>.*\.map\(/
  }
};

Express Patterns

const expressPatterns = {
  error_handling: {
    description: "Express routes must have error handling",
    pattern: /app\.(get|post|put|delete)\(/,
    check: "next(err) in catch block"
  },
  async_handlers: {
    description: "Async handlers need try-catch or wrapper",
    pattern: /async\s*\(req,\s*res/
  }
};

Django Patterns

const djangoPatterns = {
  n_plus_one: {
    description: "Use select_related/prefetch_related",
    pattern: /\.objects\.(all|filter)\(\)/
  },
  raw_queries: {
    description: "Avoid raw SQL, use ORM",
    pattern: /\.raw\(|connection\.cursor\(\)/
  }
};

Pattern Application

function applyPatterns(findings, frameworkPatterns) {
  if (!frameworkPatterns) return findings;

  for (const pattern of Object.values(frameworkPatterns)) {
    // Check each finding against framework patterns
    for (const finding of findings) {
      if (pattern.pattern.test(finding.codeQuote)) {
        finding.frameworkContext = pattern.description;
      }
    }
  }

  return findings;
}

Review Output Format

## Agent Reports

### security-expert
**Files Reviewed**: X
**Issues Found**: Y (Z critical, A high)

Findings:
1. [Finding details with file:line]
2. [Finding details with file:line]

### performance-engineer
**Files Reviewed**: X
**Issues Found**: Y

Findings:
1. [Finding details with file:line]

[... per agent]

## Consolidated Summary

**Total Issues**: X
- Critical: Y (must fix)
- High: Z (should fix)
- Medium: A (consider)
- Low: B (nice to have)

**Top Files by Issue Count**:
1. src/api/users.ts: 5 issues
2. src/auth/session.ts: 3 issues

From the ComposioHQ/awesome-claude-plugins README

Awesome Claude Code Plugins

Awesome Claude Plugins

Awesome PRs Welcome License: MIT

A curated list of production-ready plugins for Claude Code to supercharge your development workflow.

Want plugins that do more than generate text? The connect-apps plugin lets Claude send emails, create issues, post to Slack, and take actions across 1000+ apps.


Give your skills real-world actions

Skills tell your agent how to work. An MCP Gateway gives it secure access to the tools it needs.

Composio MCP Gateway provides a single MCP endpoint for 1,000+ integrations with built-in authentication, team-based access controls, audit logs, and production-ready reliability.

1. Clone & Run

git clone https://github.com/composiohq/awesome-claude-plugins.git
cd awesome-claude-plugins
claude --plugin-dir ./connect-apps

2. Run Setup

/connect-apps:setup

Paste your API key when asked. (Get a free key at dashboard.composio.dev

3. Try It

Ask Claude to send you a test email. If you receive it, Claude is now connected to 1000+ apps.

See all supported apps →


Contents

What Are Claude Plugins?

Claude Plugins are extensions that enhance Claude Code with custom slash commands, specialized agents, hooks, and skills. Plugins can be shared across projects and teams, providing consistent tooling and workflows.

Plugins

Integrations

  • connect-apps - Connect Claude to any app. Send emails, create issues, post messages, update databases - take real actions across Gmail, Slack, GitHub, Notion, and 1000+ services.
  • kaggle-skill - Complete Kaggle integration — account setup, competition reports, dataset/model downloads, notebook execution, submissions, and badge collection.

Frontend & Design

  • frontend-design - Create distinctive, production-grade interfaces. Avoids generic "AI slop" with bold typography, unique color palettes, and creative layouts.
  • artifacts-builder - Suite of tools for creating elaborate, multi-component HTML artifacts using React, Tailwind CSS, and shadcn/ui.
  • theme-factory - Applies professional font and color themes to artifacts including slides, docs, reports, and HTML landing pages with 10 pre-set themes.
  • canvas-design - Creates beautiful visual art in PNG and PDF documents using design philosophy and aesthetic principles for posters and static pieces.
  • senior-frontend - React/Next.js/TypeScript development patterns with bundle analysis, component generation, and accessibility best practices.
  • frontend-developer - Frontend development specialist agent for building modern web interfaces.

Git & Version Control

  • commit - Creates smart git commits using conventional commit format with meaningful messages and emojis.
  • create-pr - Automates pull request creation with proper templates, descriptions, and labels.
  • pr-review - Comprehensive PR reviews with detailed feedback on code quality, security, and best practices.
  • changelog-generator - Automatically creates user-facing changelogs from git commits by analyzing history and transforming technical commits into customer-friendly release notes.
  • ship - Complete PR workflow from commit to production. Lint, test, review, and deploy.

Code Quality & Testing

  • AgentLint - Lint your repo for AI agent compatibility. 33 evidence-backed checks across 5 dimensions. Claude Code plugin.
  • code-review - Comprehensive code review with best practices, patterns, and improvement suggestions.
  • test-writer-fixer - Automatically write and fix unit tests. Supports Jest, Vitest, Pytest, and more.
  • debugger - Advanced debugging assistant for tracking down and fixing complex bugs.
  • bug-fix - Analyzes stack traces and code to identify and fix bugs in your codebase.

Agent Memory

  • glen - Shared team memory for coding agents. Recalls past decisions on every turn and records what you build, so your whole team's agents work from one history. (Website)

Backend & Architecture

  • backend-architect - Backend architecture patterns, API design, database schemas, and system design.
  • mcp-builder - Guides creation of high-quality MCP (Model Context Protocol) servers for integrating external APIs and services with LLMs.
  • agent-sdk-dev - Claude Agent SDK development helper for building custom AI agents.
  • maestro-orchestrate - Multi-agent development orchestration coordinating 22 specialized subagents through 4-phase workflows with native parallel execution, persistent sessions, and standalone commands for code review, debugging, security audit, and more.

DevOps & Performance

  • perf - Performance analysis and optimization. Identify bottlenecks and improve speed.
  • audit-project - Full project audit for code quality, dependencies, security, and best practices.
  • MyVibe - Instant deployment to live URLs with /myvibe:publish.
  • aws-cost-saver - Automated AWS cost optimization with 173 checks across EC2, RDS, S3, Lambda, and more. ML-powered recommendations and real pricing from AWS API.
  • Manifest - Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage. Includes Claude Code skill for guided setup. Self-hosted, OTLP ingestion, 28+ LLM models. (Website)

Documentation & Security

  • documentation-generator - Generate comprehensive documentation from code. READMEs, API docs, and guides.
  • security-guidance - Security best practices and vulnerability detection. OWASP guidelines and secure coding.
  • security-sweep - Comprehensive security scanner covering OWASP Top 10 (2025), Mobile Top 10 (2024), and LLM Top 10 (2025). Scans for hardcoded secrets, injection flaws, auth issues, misconfigurations, and AI-specific vulnerabilities.
  • asqav-claude-code - Signs a tamper-evident Asqav receipt at the end of each Claude Code session: files edited (content hashes before/after), commands run (hashed), and git context. Verifiable by anyone at asqav.com/verify.

Developer Productivity

  • CCHub - Desktop app for managing the Claude Code ecosystem — MCP marketplace, config profiles, skills & plugins browser, workflow templates, security audit. Built with Tauri v2 + React + Rust.

  • developer-growth-analysis - Analyzes your recent Claude Code chat history to identify coding patterns, development gaps, and curates personalized learning resources.

  • skill-bus - The skill for connecting skills. Wire context, conditions, and other skills into any skill invocation — declaratively, without modification. Zero dependencies.

  • context-mode - Process large outputs in sandboxed subprocesses, keeping only summaries in the context window. 98% context savings across 21 benchmarked scenarios.

  • codebase-graph - Code intelligence MCP server that builds knowledge graphs from source code with 42-language tree-sitter AST parsing and FalkorDB.

  • agntk - Zero-config AI agent CLI with persistent named agents, 20+ built-in tools, and hardware-aware local model selection.

  • backlog - Persistent, cross-session task management. 24 MCP tools for tasks, projects, tags, dependencies, and docs. 7 skills for planning, standups, and handoffs. Event-sourced storage, agent coordination, pure TypeScript. (Website)

Companion & Personality

  • claude-familiar - Enhance Claude Code's /buddy companion with personality, mood, lore, and interactive commands (fortune, roast, haiku, focus timer). Mood shifts automatically on tool success/failure. Extensible — other plugins can layer traits and lore via "x-familiarExtensions" in their plugin.json.

Image and Video Generation

  • nano-banana - Google Gemini image generation plugin. Text-to-image, text-guided image editing, style transfer, 4K output, search grounding, and multi-reference composition — all from a single /genimage command. Powered by gemini-2.5-flash-image and gemini-3-pro-image-preview.
  • taisly-agent-kit - Claude Code plugin, skill, SDK, CLI, and MCP server for publishing short-form videos to TikTok, Instagram Reels, YouTube Shorts, X, and Facebook through Taisly.

Getting Started

Using Plugins

Clone the repo and run Claude with any plugin:

git clone https://github.com/composiohq/awesome-claude-plugins.git
cd awesome-claude-plugins
claude --plugin-dir ./commit

Load multiple plugins at once:

claude --plugin-dir ./commit --plugin-dir ./code-review --plugin-dir ./connect-apps

Plugin Structure

Each plugin follows the standard Claude Code plugin format:

plugin-name/
├── .claude-plugin/
│   └── plugin.json       # Plugin metadata
├── skills/               # Skill definitions (optional)
│   └── skill-name/
│       └── SKILL.md
├── commands/             # Slash commands (optional)
│   └── command.md
├── agents/               # Agent definitions (optional)
│   └── agent.md
└── hooks/                # Event hooks (optional)
    └── hooks.json

Contributing

Want to add your plugin?

  1. Fork this repository
  2. Add your plugin folder with the standard structure
  3. Update this README with your plugin details
  4. Submit a pull request

Please ensure your plugin:

  • Addresses a real use case
  • Doesn't duplicate existing functionality
  • Follows the template structure
  • Has been tested

Resources

License

MIT - See individual plugins for their specific licenses.

Details

Marketplace
ComposioHQ/awesome-claude-plugins
Source
audit-project
Author
Community
Category
Devops
Listed since
Apr 7, 2026

More from ComposioHQ/awesome-claude-plugins

All 24

Similar to audit-project

More Code Review & Quality