一键导入
architecture-improvement
Find deepening opportunities and boundary fixes using domain language.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Find deepening opportunities and boundary fixes using domain language.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Code review and cleanup across reuse, quality, and efficiency dimensions. Launches three parallel review agents against the current diff, then aggregates findings and applies fixes.
Red-team the agent's own output against OWASP Top 10 for LLM Applications and Agentic AI. Self-inject, test boundaries, check exfiltration paths. If you can't attack your own output, someone else will.
Mandatory verification of every factual claim before emission. API contracts, dependency versions, file existence, behavior promises — claims about code are hypotheses until verified against the actual source. Based on Dhuliawala et al. (Meta FAIR, ACL 2024).
Disciplined 6-step diagnosis loop with strict evidence gates between stages. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Cannot advance without the required artifact per step.
Split the workflow into Evaluator and Optimizer personas. Evaluator scores output 1–10 on correctness, completeness, safety, and simplicity. Optimizer rewrites to address critiques. Loop until score ≥9 or 3 iterations. Self-improvement without measurement is guessing.
Detect fail-open security patterns: debug mode in production, permissive CORS, disabled CSRF, default admin credentials, verbose error messages, unauthenticated health endpoints. Configuration is code — review it with the same rigor.
| name | architecture-improvement |
| description | Find deepening opportunities and boundary fixes using domain language. |
CONTEXT.md when names no longer match structure.Related: /domain-context for glossary; /zoom-out for orientation; /plan-eng-review before big changes.
Do not use this skill for greenfield repos with <10 files or when user wants a full rewrite without incremental plan.
CONTEXT.md in proposed module names.CONTEXT.md, docs/adr/, top-level folder layout./zoom-out on the smelliest directory if unfamiliar.Return a markdown report with these exact sections:
packages/pricing from apps/web/lib/pricing.ts — 4 duplicated call sitesOrderRepository boundary — SQL currently in route handlersMove discount pure functions to packages/pricing with unit tests; no route changes.