Audit

From agentic-dev3o/devx-plugins · View interactive version

Audit is an AI agent skill from the GitHub repository agentic-dev3o/devx-plugins. Audits an agent, tool loop, or inference request across six dimensions (prompt engineering, tools definition, context engineering, cache usage, evaluation, guardrails) and produces a scored gap analysis with severity ratings and concrete remediations. Framework-agnostic; recognizes patterns from Ant

How to use this skill

Skill file

Agentic System Audit

Target: $ARGUMENTS (path to file, directory, prompt text, or description of the system to audit)

Workflow

Progress checklist:

Agentic System Audit:
- [ ] Step 1: Resolve audit target
- [ ] Step 2: Detect framework and identify components
- [ ] Step 3: Evaluate across six dimensions
- [ ] Step 4: Classify findings and assign severity
- [ ] Step 5: Produce scored gap analysis

Step 1: Resolve Audit Target

The target is one of:

If $ARGUMENTS is a path, read the file(s). If a directory, list it and ask the user to scope to specific files when more than ~5 are present. If it is prompt text, treat the text as the target directly. If it is a description, ask one clarifying question only when the framework or component shape is genuinely ambiguous.

Step 2: Detect Framework and Identify Components

Identify the runtime context to ground recommendations:

Identify the components present in the target: system prompt, user prompt, tool definitions, tool loop, memory/state, evals, guardrails, retries, streaming.

Step 3: Evaluate Across Six Dimensions

For each dimension, load the matching reference and walk the checklist against the target. Do not declare a finding without concrete evidence (a quote from the prompt, a line in the code, or a missing pattern that should be present).

  1. Prompt engineering — references/prompt-engineering.md
  2. Tools definition — references/tools-definition.md
  3. Context engineering — references/context-engineering.md
  4. Cache usage — references/cache-usage.md
  5. Evaluation — references/evaluation.md
  6. Guardrails — references/guardrails.md

When a dimension is not applicable (e.g. no tools defined), mark it N/A and explain why. Do not invent issues to fill a dimension.

Step 4: Classify Findings and Assign Severity

Severity rubric (see references/scoring-rubric.md for full criteria):

Each finding must include: the practice it violates, where (file:line or prompt section), evidence, the recommended fix, and a one-line "why it matters" rooted in the reference.

Step 5: Produce Scored Gap Analysis

Output a markdown table with these columns:

| Practice | Status | Severity | Location | Evidence | Fix |

|----------|--------|----------|----------|----------|-----|

Status values: Respected, Violated, Partially respected, N/A.

Group rows by dimension in this order: Prompt engineering, Tools definition, Context engineering, Cache usage, Evaluation, Guardrails.

End with:

  1. Score summary — per-dimension score (X/10) and an overall maturity tier:
  1. Top fixes — ordered list of the 3–5 highest-impact changes, each with effort estimate (S/M/L).
  2. What looks good — specific strengths worth keeping. Do not invent these; only list real strengths.

If the audit cannot be completed (target unreadable, framework unrecognized after Step 2), say so plainly and stop. Do not fabricate findings.

Constraints

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.