AGENT SKILL
legacy
Detect deprecated Python and framework patterns and propose a version-aware migration path.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- legacy
- tags
- [ "backend", "python", "audit" ]
- author
- François-Xavier Guillois
- version
- 0.6.3
- description
- Detect deprecated Python and framework patterns and propose a version-aware migration path.
- permissions
- [ "bash", "files" ]
- vibe_version
- >=1.0.0
02 资源文件 7
- 参考文档actions/01-scan.md6.2 KB
- 参考文档actions/02-migrate.md4.4 KB
- 参考文档dimension-checklists.md8.4 KB
- 参考文档evals/evals.json2.0 KB
- 参考文档evals/scenarios.json1.1 KB
- 参考文档references/framework-migrations.md3.5 KB
- 参考文档references/python-versions.md2.8 KB
03 SKILL.md 正文
Read host portability before resolving plugin files, invoking sibling skills, or persisting project guidance.
sc-python Legacy
Detects version-specific and deprecated patterns in the Python codebase, then produces a migration plan and applies changes file by file — either upgrading to modern Python or downgrading to a target version for compatibility.
Available actions
| # | Action | Role | Input |
|---|---|---|---|
| 01 | scan |
Detect legacy patterns and version gaps | path, target Python version |
| 02 | migrate |
Apply upgrade or downgrade transformations | scan manifest, direction |
Default flow
Always sequential: scan → migrate.
scanreadspyproject.toml,setup.py, or.python-version, detects current and target Python versions, finds deprecated/missing patterns, emits a structured manifestmigratereads the manifest and applies transformations file by file
References
references/python-versions.md— version-by-version change tables (ES5→3.12+, type hint evolution)references/framework-migrations.md— Django, FastAPI/Pydantic, SQLAlchemy breaking changes
Transversal rules
- Always detect the current Python version from
pyproject.toml,.python-version, ortox.inibefore scanning. - Never remove a working pattern without providing its replacement inline.
- For breaking changes: show a diff of what will change and ask for confirmation before writing.
- Downgrade migrations: never remove a feature without confirming the target version actually lacks it.
- Framework-specific patterns (Django, FastAPI): check for framework version before applying framework-level migrations.
- Never touch generated migration files (
migrations/,alembic/versions/).
04 同仓库更多 Skills
web-optimize
暂无简介
★ 1
data-optimize
暂无简介
★ 1
ap-optimize
暂无简介
★ 1
web-optimize
暂无简介
★ 1
data-optimize
暂无简介
★ 1
ap-optimize
暂无简介
★ 1