Jiro's Phase 0: Automated mechanical verification. Runs linters, typecheckers, and static analysis before human review. Catches issues that should never require human attention. Must complete before any code review.
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Jiro's Phase 0: Automated mechanical verification. Runs linters, typecheckers, and static analysis before human review. Catches issues that should never require human attention. Must complete before any code review.
This is Phase 0 of Jiro's review process. Run ALL automated tools BEFORE human review begins. These tools catch issues that should NEVER escape to human review - unused imports, type errors, lint violations, etc.
Philosophy: Automated tools are infallible for their domain. If ruff says there's an unused import, there is. Don't second-guess tools. Collect ALL findings. Report ALL findings.
Detection Protocol
Step 1: Identify Project Type
Look for configuration files to determine which tools to run:
Python Projects:
pyproject.toml → check for ruff, mypy, pytest config
setup.py, setup.cfg → legacy Python project
requirements.txt → Python project
TypeScript/JavaScript Projects:
tsconfig.json → TypeScript project
package.json → Node project
.eslintrc* → ESLint configured
Monorepo:
nx.json → Nx monorepo (use npx nx run-many)
pnpm-workspace.yaml → pnpm workspace
lerna.json → Lerna monorepo
Step 2: Run Applicable Tools
Execute EVERY applicable tool. Do NOT stop on first failure. Collect ALL issues.
PYTHON TOOLS
Ruff (Linter + Formatter Check)
# Check for lint issues
ruff check <scope> --output-format=json
# Check for formatting issues
ruff format --check <scope>
Captures:
Unused imports (F401)
Undefined names (F821)
Import order violations
PEP 8 style violations
Common bugs and anti-patterns
Mypy (Type Checker)
# Run type checking
mypy <scope> --show-error-codes --no-error-summary
# For monorepos with Nx
npx nx run <project>:typecheck
Captures:
Type mismatches
Missing type annotations
Incompatible types
Unreachable code
Pylint (Deep Analysis)
# If configured in project
pylint <scope> --output-format=json
Captures:
Code complexity
Convention violations
Refactoring suggestions
Error-prone patterns
Pytest (Test Status)
# Quick smoke test
pytest <scope> --collect-only -q
# Full test run if scope is limited
pytest <scope> -v --tb=short
Captures:
Broken tests
Import errors in test modules
Fixture issues
TYPESCRIPT TOOLS
TypeScript Compiler
# Type checking
tsc --noEmit
# For Nx projects
npx nx run-many -t typecheck