一键导入
ai-regression-testing
Use when AI agent modifies API routes or backend logic - catch systematic blind spots where the same model writes and reviews code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when AI agent modifies API routes or backend logic - catch systematic blind spots where the same model writes and reviews code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Debug frontend vanilla JS issues - console errors, rendering bugs, SPA navigation, WebSocket
Automates the process of setting up the first admin user or adding new admins via the bootstrap endpoint. Includes a Python script for easy execution.
Push to remote and wait for CI to pass. If CI fails, read logs, fix bugs, and re-push. Repeat until green.
Use when building or debugging LangGraph multi-agent systems - eval-first execution, task decomposition, model routing by complexity, and cost discipline
Use when making or recording significant architectural decisions - capture context, alternatives, and rationale as structured ADRs
Use when you have a written implementation plan to execute with review checkpoints between tasks
基于 SOC 职业分类
| name | ai-regression-testing |
| description | Use when AI agent modifies API routes or backend logic - catch systematic blind spots where the same model writes and reviews code |
When AI writes code and reviews its own work, it carries the same assumptions:
AI writes fix → AI reviews fix → "looks correct" → Bug still exists
#1 Sandbox/Production Path Mismatch Fixed production path but forgot sandbox/test path (or vice versa).
# Our project: TEST_MODE vs production paths
if TEST_MODE:
return {"data": mock_data} # ← forgot new field
return {"data": real_data} # ← has new field
#2 SELECT/Query Omission Added new column to response but forgot to include in DB query.
# Forgot to add new_field in SELECT
c.execute("SELECT id, name FROM users WHERE id = %s", (uid,))
#3 Error State Leakage Error set but old state not cleared.
except Exception:
return {"error": "failed"} # stale data still in caller
Write tests WHERE bugs were found, not everywhere:
Bug in premium.py → Write test for premium
Bug in messages.py → Write test for messages
No bug in forum.py → Don't write test (yet)
TEST_MODE=true for DB-free API testing.venv\Scripts\python.exe -m pytest --no-cov -q as first step of any bug checktest_bug_x_missing_field_regressionStep 1: pytest --no-cov -q → FAIL = highest priority
Step 2: ruff check . → FAIL = type/style errors
Step 3: AI code review → with known blind spots above
Step 4: For each fix → regression test
| AI Regression | Test Strategy | Priority |
|---|---|---|
| Sandbox/prod mismatch | Assert same response shape | High |
| Query omission | Assert all required fields | High |
| Error state leakage | Assert state cleanup on error | Medium |
| Missing rollback | Assert state on failure | Medium |