Audit

From tae0y/python-project-template · View interactive version

Audit is an AI agent skill from the GitHub repository tae0y/python-project-template. Run dependency security audit using pip-audit. Use when checking for known vulnerabilities in project dependencies.

How to use this skill

Skill file

Dependency Security Audit

Scan project dependencies for known security vulnerabilities.

Execution

Run via pre-commit (preferred):

uv run pre-commit run pip-audit --hook-stage manual

Or directly:

uv run pip-audit --desc --require-hashes

Output Format

Summarize results as:

## Dependency Security Audit

### Summary
- Packages scanned: [count]
- Vulnerabilities found: [count]

### Vulnerabilities
- [package] [version]
  - CVE: [CVE-ID]
  - Severity: [Critical/High/Medium/Low]
  - Description: [brief description]
  - Fix version: [version]

### Recommended Actions
- Upgrade immediately: [package list]
- Consider replacement: [package list]

Triage by severity:

If no vulnerabilities: output Dependency audit passed ✓ only.

When to Run

| Trigger | Action |

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

| New external dependency added | Run immediately after uv add |

| Monthly cadence | Run and log result (even if clean) |

| Before major release | Run as part of release checklist |

Execution Log

After each audit run, append a one-line entry to localdocs/worklog.done.md:

worklog done  audit YYYY-MM-DD — [N vulnerabilities / clean]

This creates a lightweight audit trail without a separate log file.

Notes

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.