Adapter audit

From gabrielmoreira/agent-skills-mirror · View interactive version

Adapter audit is an AI agent skill from the GitHub repository gabrielmoreira/agent-skills-mirror. Use this skill to audit CLI adapter projects (like opencli) for missing output fields, then batch-generate fixes and submit PRs. Turns AI agents into adapter quality reviewers.

How to use this skill

Skill file

Adapter audit skill

Use this skill when you want to systematically audit and fix CLI adapter projects — for example, scanning all search adapters in opencli for missing url fields and batch-generating patches.

When to use

Core workflow

1. Scan

Scan all adapters in the target project and classify each by:

Standard fields to check:

2. Classify fix type

For each missing field, determine the fix strategy:

| Situation | Fix strategy |

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

| Field is computed internally but not in columns | Add to columns list |

| Field is computed but stripped by a map step | Pass through the map step + add to columns |

| Field is not computed but can be constructed from existing data | Add construction logic + add to columns |

| Field requires external data not available in the API response | Skip or mark as "needs upstream API change" |

3. Fix

Apply fixes using the minimum change principle:

4. Verify

After fixing, run the project's existing tests:

npm run build    # ensure TS compiles
npm test         # ensure nothing breaks

5. Submit

Create a single well-documented PR with:

Proven example

This skill was used to audit opencli's 33 search adapters:

Output contract

The audit output should include:

  1. total adapters scanned
  2. per-adapter field coverage table
  3. fix strategy for each missing field
  4. list of files changed
  5. before/after coverage metrics
  6. risk classification

Key rules

Quick invocation template

Use /adapter-audit to scan all search adapters in this CLI project for missing url fields, fix them, and prepare a PR.
请用 /adapter-audit 扫描这个 CLI 项目里所有 search adapter 的缺失字段,批量修复并准备 PR。
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.