com um clique
audit-python
Systematic code audit of a Python codebase against DMP standards
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Systematic code audit of a Python codebase against DMP standards
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Sweep Wolf calendars and the DMP calendar for OoO mirroring, tag-line normalization, and DMP conflict detection. Auto mode is silent and runs once per day, fired by the first worklog-touching skill that creates today's worklog file. Interactive mode (default) does the full sweep.
Log a notable accomplishment
Ship completed work — direct release or PR
Find what to work on next — pulls from Jira, OmniFocus, and local inbox/TODO
Log commute time to daily work log
Log a meeting to daily work log
| name | audit-python |
| description | Systematic code audit of a Python codebase against DMP standards |
| argument-hint | [scope: changes, file/dir path, or 'all'] |
| allowed-tools | Read, Glob, Grep, Bash, AskUserQuestion, mcp__mcp-atlassian__jira_get_issue, mcp__mcp-atlassian__jira_search |
| model | opus |
Audit Python code against the DMP code audit checklist. Argument:
$ARGUMENTS (optional scope hint — see below).
Read the canonical checklist — do not hardcode rules:
~/develop/dmp/standards/code-audit-checklist.md
This file defines every section and check item. If it has changed since you last saw it, the audit reflects the current version automatically.
The checklist references several standards documents (WHAT-MATTERS-MOST.md, STANDARDS-FOR-SHARED-PROJECTS.md, DMP-PYTHON-STANDARDS.md, etc.). Read these once if they are not already in the current conversation context. If you've already read them in this session, don't re-read.
~/Vaults/Notes/2-projects/dmp/<project-name>/inbox.md) and/or inbox.local-only.md in the project root if either exists. Note any items that relate to code quality, design issues, or audit-relevant observations.Ask the user:
Jira context. "Any Jira tickets I should pull for context? (ticket keys, a JQL query, or 'skip')" — If provided, fetch the tickets and extract relevant context (known bugs, design decisions, complaints).
Audio notes / braindumps. "Any notes, observations, or things you've been thinking about for this audit? (paste, file path, or 'skip')"
Consumer code. "Any client/consumer code I should look at to understand how this library is used? (paths or 'skip')"
Do NOT look in OmniFocus.
If $ARGUMENTS specifies scope, use it. Otherwise ask:
What should I audit?
- changes — only files changed in the current branch (vs main)
- file or directory path — a specific area
- all — the entire project
For "changes" scope, derive the file list from:
git diff --name-only main...HEAD
Plus any unstaged/staged changes:
git diff --name-only
git diff --name-only --cached
For directory scope, discover all Python files in that tree.
For "all" scope, discover all Python files in the project (respect
.gitignore).
Work through each section of the checklist against the scoped code.
For large codebases, work module by module. After each module, briefly report what you found before moving on. This keeps the user informed and lets them steer ("skip that area", "go deeper here").
After completing the audit, present a clear textual summary organized by checklist section. For each section with findings:
## Section Name
* **Issue** `path/file.py:42` — Description of what's wrong and why it
matters
* **Question** `path/other.py:SomeClass` — Is this intentional? It looks
like X but the usual pattern is Y
* **Note** `path/good.py:helper_func` — Nice use of protocol conformance
here
End with a brief overall assessment: what's the general health of this code? What are the most important things to address?
After presenting the summary, ask:
"Save findings to AUDIT.local-only.md? (yes/no)"
If yes, write the findings to AUDIT.local-only.md in the project root.
Use the same format as the summary, but also include:
Then offer the next step:
"Want to prioritize these findings? (This adds A/B/C ratings and scope estimates)"
This step only runs when findings have been saved to AUDIT.local-only.md.
Prioritizing requires seeing all findings together.
For each finding, add:
Work through this interactively — present findings in groups and let the
user assign or confirm ratings. Update AUDIT.local-only.md with the
ratings.
After prioritization, the format becomes:
* **[A/small]** **Issue** `path/file.py:42` — Description
* **[B/medium]** **Question** `path/other.py:SomeClass` — Description
Order findings: A items first (by scope ascending), then B, then C.
Note any dependency chains ("X should be done before Y").
The prioritized AUDIT file is the input for filing tickets, which is a separate step outside this skill.