一键导入
regression-prediction
Estimate the most likely regression categories for a proposed change — performance, auth, schema, UI states, async flows — before merging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Estimate the most likely regression categories for a proposed change — performance, auth, schema, UI states, async flows — before merging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Optimize token usage and context window discipline. Reduce costs and improve response quality through smart context management.
Unified context lifecycle for FlowDeck sessions — ingest, filter, prune, protect, summarize, and persist with telemetry.
Predict affected files, modules, APIs, tests, and DB paths before changes. Returns an impact map for human review.
Map architecture, conventions, and file structure into `.codebase/`. Use when onboarding or before deep feature work.
Plan differently when the agent has low certainty — ask for clarification or narrow scope instead of pretending full understanding.
Protect critical context from pruning during compaction. Preserve active plans, safety files, pending operations, and user intent anchors.
| name | regression-prediction |
| description | Estimate the most likely regression categories for a proposed change — performance, auth, schema, UI states, async flows — before merging. |
| origin | FlowDeck |
Before merging, predict what is most likely to break. Activate this skill by providing the change description and affected files to the agent.
| Category | Triggered by |
|---|---|
| performance | database queries, loops, caching, serialization, lazy-loading |
| auth | JWT, session, OAuth, RBAC, middleware, token, permission |
| schema | database migration, model change, field rename, relation change |
| ui-state | React state, Redux, context, form state, loading/error states |
| async-flow | Promise, async/await, event emitter, queue, webhook, retry logic |
| api-contract | Route signature, request/response shape, HTTP status codes |
| data-integrity | Validation, constraints, null handling, type coercion |
| security | Input sanitization, XSS, CSRF, injection, file upload |
| config | Environment variables, feature flags, hardcoded values |
| i18n | Hardcoded strings, date/time formatting, locale handling |
.codebase/FAILURES.json for prior regressions in these files## Regression Prediction Report
### Change: [description]
| Category | Probability | Severity | Evidence | Suggested Test |
|----------|------------|---------|---------|----------------|
| auth | high | critical | JWT logic modified, prior auth failure | Test token expiry boundary |
| schema | medium | high | Model field added | Test migration rollback |
| async-flow | low | medium | No async code changed | — |
### Top Risk: auth
[Specific regression scenario and suggested test]
### Prediction Confidence: [HIGH / MEDIUM / LOW]
.codebase/FAILURES.json to improve future predictions