Audit for deprecated APIs, libraries, patterns, language features across Python, TS/React, Rust, third-party deps
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Audit for deprecated APIs, libraries, patterns, language features across Python, TS/React, Rust, third-party deps
source-command-audit-deprecation
Use this skill when the user asks to run the migrated source command audit-deprecation.
Command Template
Deprecation Audit
Audit the entire Auralis codebase for deprecated APIs, libraries, patterns, and language features across Python, TypeScript/React, Rust, and all third-party dependencies. Then create GitHub issues for every new confirmed finding.
Shared protocol: Read .Codex/commands/_audit-common.md first for project layout, severity framework, methodology, deduplication rules, and GitHub issue template.
Severity Examples
Severity
Deprecation-Specific Examples
CRITICAL
Python 3.14 removed module still imported, React 18 removed API still called (e.g. ReactDOM.render), Pydantic V1 syntax on V2
black / ruff deprecated configuration options or rules
Deprecated pip features or install flags
Methodology
For each finding:
Identify the deprecated API/pattern and the file(s) using it
Verify it is actually deprecated — check official docs, changelogs, or deprecation warnings
Determine the replacement — what is the modern equivalent?
Assess scope — how many files/call sites are affected?
Evaluate risk — is this blocking an upgrade? Emitting warnings? Will it break?
Phase 1: Audit
Write your report to: docs/audits/AUDIT_DEPRECATION_<TODAY>.md (use today's date, format YYYY-MM-DD).
Report Structure
Executive Summary — Total findings by severity, key upgrade blockers, recommended migration order
Findings — Grouped by severity (CRITICAL first), using the per-finding format below
Dependency Upgrade Roadmap — Which packages need upgrading, in what order, and what breaks
Migration Effort Estimate — Small (< 10 call sites), Medium (10-50), Large (50+) per finding
Per-Finding Format
### <ID>: <Short Title>
- **Severity**: CRITICAL | HIGH | MEDIUM | LOW
- **Dimension**: Python Stdlib | NumPy/SciPy | FastAPI/Pydantic/SQLAlchemy | React/Redux/MUI | Node/npm/Build | Rust/PyO3 | Internal | Config/CI
- **Location**: `<file-path>:<line-range>` (+ count of affected files if widespread)
- **Status**: NEW | Existing: #NNN | Regression of #NNN
- **Deprecated API**: Exact function/class/method/pattern that is deprecated
- **Deprecated Since**: Version where deprecation was introduced
- **Removal Version**: Version where it will be / was removed (if known)
- **Replacement**: The modern equivalent API/pattern
- **Affected Files**: Count and list of files using the deprecated pattern
- **Evidence**: Code snippet showing current usage
- **Migration Path**: Step-by-step instructions to migrate
- **Risk**: What breaks if we don't migrate, and when
Phase 2: Report Finalization
Save the report to docs/audits/AUDIT_DEPRECATION_<TODAY>.md