Agent skill
refactoring-06-static-analysis-style
Use when adding formatting, linting, and type checking to Python research code.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/refactoring-06-static-analysis-style
SKILL.md
Refactoring 06: Static Analysis and Style
Goal
Improve maintainability with consistent formatting, linting, and basic type checking.
Sequence
- Order: 06
- Previous: refactoring-05-testing-regression
- Next: refactoring-07-documentation-usage
Workflow
- Detect existing formatters and linters; extend their configs instead of replacing.
- Success: Existing tooling remains primary with minimal config changes.
- If none exist, propose a minimal toolchain (for example: ruff + black).
- Success: A small, documented toolchain is selected.
- Fix warnings in touched code first; avoid mass rewrites unless requested.
- Success: Touched files are clean without broad rewrites.
- Add type hints to public functions and core data structures.
- Success: Public APIs have basic type annotations.
- Run checks via
uv runto use the repo environment.- Success: Checks execute successfully through
uv run.
- Success: Checks execute successfully through
Guardrails
- Avoid noisy lint rules that block iteration.
- Keep formatting changes separate from logic changes when possible.
- Prefer gradual typing over strict project wide enforcement.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?