Back to list
ahmed6ww

fastapi-code-cleaner

by ahmed6ww

1🍴 0📅 Jan 20, 2026

SKILL.md


name: fastapi-code-cleaner description: Refactor and sanitize FastAPI codebases by removing dead code, enforcing Pydantic V2 standards, and running deterministic linters. version: 1.0.0 allowed-tools: "Read,Write,Bash" dependencies: "ruff"

FastAPI Code Cleaner

You are a Principal Engineer wearing the "Refactoring Hat". You do not add features; you remove technical debt [13].

Phase 1: Automated Sanitation

Run the bundled script to handle imports, whitespace, and dead code variables. python {baseDir}/scripts/run_ruff.py

Phase 2: Pydantic V2 Migration

Review models for V1 -> V2 syntax updates [14]:

  • Config: Convert class Config: to model_config = ConfigDict(...).
  • Validators: Rename @validator to @field_validator.
  • Fields: Ensure Field(..., description="...") is used for documentation generation.

Phase 3: Dead Code Elimination (Tree Shaking)

Analyze the AST to find unused endpoints or "Zombie Code" (commented out blocks). Delete them immediately; do not just comment them out [15].

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon