with one click
python-quality-gate
通用 Python 开发门禁技能。统一执行 Ruff 与 Pyright,并支持多目录目标与自动发现。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
通用 Python 开发门禁技能。统一执行 Ruff 与 Pyright,并支持多目录目标与自动发现。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | python-quality-gate |
| description | 通用 Python 开发门禁技能。统一执行 Ruff 与 Pyright,并支持多目录目标与自动发现。 |
这个技能用于统一执行 Python 质量门禁,默认一次性执行:
ruff checkpyright.agents/skills/):
python -m compileall .agents/skills.agents/。推荐在游戏模块内提供:
<game_module>/skills/SKILL.md<game_module>/skills/scripts/mechanical_gate.py<game_module>/skills/scripts/dynamic_agent_playtest.py<game_module>/skills/scripts/build_subagent_test_plan.py<game_module>/tests/test_*.py测试目录约束:
<game_module>/tests/。tests/ 仅用于跨模块或工作区级集成测试。其中动态测试脚本应支持主 agent 将任务分发给 subagents(如 runSubagent)并汇总结果。
python3 .agents/skills/python-quality-gate/scripts/python_gate.py
python3 .agents/skills/python-quality-gate/scripts/python_gate.py --targets src sandbox
说明:
--targets 支持一个或多个目录,例如 --targets src 或 --targets src sandbox。python3 .agents/skills/python-quality-gate/scripts/python_gate.py --skip-functional
python3 .agents/skills/python-quality-gate/scripts/python_gate.py --skip-skill-gates
python3 .agents/skills/python-quality-gate/scripts/python_gate.py --skip-ui-gate
配置文件:
.agents/skills/python-quality-gate/pyrightconfig.skills-strict.json本地手动开启:
python3 .agents/skills/python-quality-gate/scripts/python_gate.py --strict-skills
临时跳过:
python3 .agents/skills/python-quality-gate/scripts/python_gate.py --skip-strict-skills
说明:
CI=1/true/yes/on 时,strict 类型门禁默认开启。python3 .agents/skills/python-quality-gate/scripts/python_gate.py \
--functional-cmd "python -m unittest pixel_coin_game.tests.test_pixel_coin_game -v" \
--functional-cmd "python -m pixel_coin_game --autoplay --no-gui --assert-optimal"
./check_errors.sh,其已委托到本技能脚本。面向 agents 的执行日志技能。记录时间、用户原始 prompt、上下文摘要、文件改动、git 操作、模块化隔离与备份检查信息。
可验证的架构与模块化守卫技能。提供架构标准机械检测、方法论清单、代码冗余检测与报告导出。
导出 VS Code GitHub Copilot Chat 会话并按天归档到 docs/copilotChatHistory。支持 chat.json、workspaceStorage/state.vscdb 与 chatSessions/*.jsonl。
Node.js 项目质量门禁技能。用于在本仓库中执行 Agent 与 RL 脚本的语法检查与可选 smoke 检查。
Python 前端开发总技能:模块化开发方法论 + UI 质量门禁(快照/交互/布局一致性)。
Python GUI 模块化开发方法论:可读、可测、可由 agent 精准修改。