スキル一覧に戻る
DNYoussef

codex-audit

by DNYoussef

Context Cascade - Nested Plugin Architecture for Claude Code Official Claude Code Plugin | Version 3.1.0 | Last updated: 2026-01-09 (see docs/COMPONENT-COUNTS.json for source counts) Context-saving nested architecture: Playbooks -> Skills -> Agents -> Commands. Load only what you need, saving 90%+ context space.

13🍴 4📅 2026年1月14日
GitHubで見るManusで実行

SKILL.md


name: codex-audit description: Use Codex CLI for sandboxed auditing, debugging, and autonomous prototyping allowed-tools: Bash, Read, Write, TodoWrite, Glob, Grep

Codex Audit Skill


LIBRARY-FIRST PROTOCOL (MANDATORY)

Before writing ANY code, you MUST check:

Step 1: Library Catalog

  • Location: .claude/library/catalog.json
  • If match >70%: REUSE or ADAPT

Step 2: Patterns Guide

  • Location: .claude/docs/inventories/LIBRARY-PATTERNS-GUIDE.md
  • If pattern exists: FOLLOW documented approach

Step 3: Existing Projects

  • Location: D:\Projects\*
  • If found: EXTRACT and adapt

Decision Matrix

MatchAction
Library >90%REUSE directly
Library 70-90%ADAPT minimally
Pattern existsFOLLOW pattern
In projectEXTRACT
No matchBUILD (add to library after)

Purpose

Route auditing and debugging tasks to Codex CLI when:

  • Autonomous iteration is needed (test-fix-retest loops)
  • Sandboxed execution required for safety
  • Rapid prototyping without approval overhead

Unique Capability

What Codex Does Better:

  • Fully autonomous execution (no approval needed mid-task)
  • Sandboxed isolation (no network, CWD only)
  • Iterative debugging loops
  • GPT-5-Codex optimized for agentic coding

When to Use

Perfect For:

  • Automated test fixing
  • Code auditing in isolation
  • Rapid prototyping of features
  • Refactoring with test verification
  • Build failure recovery
  • Security scanning in sandbox

Don't Use When:

  • Need network access (sandbox disables it)
  • Need to access files outside CWD
  • Production debugging (use Claude with oversight)
  • Complex multi-file coordination

Usage

Basic Audit

/codex-audit "Find and fix all type errors" --context src/

Test Fixing

/codex-audit "Fix failing tests" --context tests/ --max-iterations 10

Prototyping

/codex-audit "Build REST API with CRUD endpoints" --context .

Command Pattern

bash scripts/multi-model/codex-audit.sh "<task>" "<context>" "<task_id>" "<max_iterations>"

Safety Constraints

ConstraintValue
NetworkDISABLED
File AccessCWD only
IsolationmacOS Seatbelt / Docker
Max Iterations5 (configurable)

Memory Integration

Results stored to Memory-MCP:

  • Key: multi-model/codex/audit/{task_id}
  • Tags: WHO=codex-cli, WHY=audit

Output Format

{
  "raw_output": "Audit findings...",
  "metrics": {
    "files_analyzed": 15,
    "findings_count": 7,
    "fixes_applied": 5
  },
  "context_path": "src/",
  "sandbox_mode": true
}

Handoff to Claude

After Codex audit completes:

  1. Findings stored in Memory-MCP
  2. Claude agents review findings
  3. Apply or escalate based on severity
// Claude agent reads Codex audit
const audit = memory_retrieve("multi-model/codex/audit/{task_id}");
if (audit.metrics.findings_count > 0) {
  Task("Reviewer", `Review findings: ${audit.raw_output}`, "reviewer");
}

Integration with Audit Pipeline

# Phase 1: Theater detection (Claude)
/theater-detection-audit

# Phase 2: Functionality audit (Codex)
/codex-audit "Verify all functions work" --context src/

# Phase 3: Style audit (Claude)
/style-audit

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です