一键导入
modernize-scan
Quick codebase modernization scan that accepts a file or directory path. Runs all assessment categories with default settings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Quick codebase modernization scan that accepts a file or directory path. Runs all assessment categories with default settings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Open a PR for the current branch, then loop on Codex Code Review until it comes back clean: resolve each finding, reply, and re-request review with a single @codex review once the whole pass is handled. Use when a feature branch is ready to ship and Codex Code Review is enabled on the repository.
Scaffold the repo side of Xcode Cloud for an XcodeGen / Tuist Swift project - generate ci_scripts/ci_post_clone.sh (regen + guarded CI_BUILD_NUMBER stamping), propose a unit-test-only CI scheme, print the exact App Store Connect workflow checklist, and optionally install an opt-in .githooks/pre-push gate. Shows diffs and confirms before writing.
Review Swift 6 strict-concurrency and SwiftUI code for idiom and build-breaking issues - non-Sendable across actor boundaries, @MainActor witness vs nonisolated protocol requirements, Combine/ObservableObject usage, force-unwraps, #Predicate macro limits, the 6.3.x Binding IRGen crash, missing #if os() guards, and unsafe escape hatches. Reports file:line with the fix and the why.
Diagnose a Swift / Xcode Cloud / TestFlight failure from a pasted red build log, an ITMS App Store rejection email, or a bare error code. Maps symptoms to root cause (ITMS-90242/90296/90683, errSec keychain codes, ad-hoc entitlement rejections, missing ci_scripts, signing errors) and prescribes the exact fix.
Audit a Swift / iOS / macOS repo for Xcode Cloud and TestFlight release blockers before upload - pbxproj drift, static build numbers, missing ci_scripts, macOS App Store entitlements/Info.plist, headless-CI keychain tests, ad-hoc signing entitlement rejections, and flaky-UITest release gating. Reports PASS/WARN/FAIL with file:line and fixes.
Run the right local verification gate for a Swift project - detect XcodeGen vs plain .xcodeproj vs SwiftPM vs Tuist, then regenerate (if applicable), swiftformat --lint, swiftlint --strict, and xcodebuild test on the cheapest valid destination (macOS for pure-Swift) or swift build/test for SwiftPM. Reports each stage; --fix lets SwiftFormat rewrite.
| name | modernize-scan |
| description | Quick codebase modernization scan that accepts a file or directory path. Runs all assessment categories with default settings. |
| disable-model-invocation | true |
You are a codebase modernization scanner that performs a quick assessment of code quality, anti-patterns, and technical debt.
This command accepts an optional file path or directory path argument. Unlike /modernize-audit, this command is designed for quick, non-interactive scans.
If a path argument is provided (e.g., /modernize-scan ./src or /modernize-scan ./src/services/auth.ts):
If no argument is provided:
The quick scan runs with these default settings (no interactive questions):
| Setting | Default |
|---|---|
| Assessment Categories | All categories |
| Severity Threshold | All findings |
| AI Tool History | Auto-detect from code patterns |
| Technology Stack | Auto-detect from project files |
Before scanning, auto-detect the technology stack:
package.json, tsconfig.json, *.csproj, *.sln, requirements.txt, pyproject.toml, go.mod, Cargo.toml, composer.jsonpackage.json exists, read it to detect frameworks and dependencies.csproj or .sln exists, read to detect .NET version and project typeUse the Agent tool with subagent_type "ai-modernize:modernize-auditor" to perform the assessment.
When invoking the subagent, provide:
/docs/modernize/{timestamp}-modernize-scan.md
YYYY-MM-DD-HHMMSS-modernize-scan.md2026-03-22-143022-modernize-scan.mdThis skill provides a quick, non-interactive modernization scan for individual files or directories. It runs all assessment categories with default settings and produces a concise report. For a full interactive audit with configurable categories and scope, use /modernize-audit instead.
Invoke this skill when:
This scan evaluates the same 12 categories as the full audit:
For detailed descriptions of each category, refer to the modernize-audit skill documentation.
Determine the scan scope from the provided path:
For each applicable category:
Generate the abbreviated scan report and save to /docs/modernize/{timestamp}-modernize-scan.md.
/docs/modernize/YYYY-MM-DD-HHMMSS-modernize-scan.md2026-03-22-143022-modernize-scan.mdCRITICAL INSTRUCTION: Use this exact template structure. This is MANDATORY.
Apply the same severity criteria as the full audit:
All time estimates assume AI-assisted development. Use the same estimation guidelines as the full audit skill:
| Task Type | AI-Assisted Estimate |
|---|---|
| Simple refactor | 2-5 min |
| Add input validation | 5-10 min |
| Fix N+1 query | 5-15 min |
| Add error handling to module | 10-20 min |
| Extract service layer | 20-45 min |
| Add types to untyped module | 15-30 min |
| Write integration tests | 15-30 min |
| Security hardening | 20-40 min |
Before finalizing a scan report: