一键导入
purify
Eliminate KISS, YAGNI, Idiomatic, and Hygiene violations while preserving intended behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Eliminate KISS, YAGNI, Idiomatic, and Hygiene violations while preserving intended behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Atomic execution for the project framework. Executes exactly one atomic task from `PLAN.md`.
Comprehensive Execution for the `SPAE` framework. Executes all tasks from `PLAN.md` sequentially in one invocation.
Optimization & Verification for the `SPAE` framework. Performs gap analysis on `PLAN.md`.
Orchestrate SPAE subagents sequentially through the structured workflow and lifecycle.
Task Decomposition for the `SPAE` framework. Decomposes `SPEC.md` into a `DAG` of atomic tasks in `PLAN.md`.
Orchestrate SPAE subagents sequentially through the spec, plan, and inspect phases of the structured workflow.
| name | purify |
| description | Eliminate KISS, YAGNI, Idiomatic, and Hygiene violations while preserving intended behavior. |
| user-invocable | true |
| argument-hint | [optional: file path, module, or focus area] |
KISS, YAGNI, Idiomatic, and Hygiene violations: dead
code, redundant abstractions, over-engineering, non-idiomatic
patterns, and hygiene debt.Determine scope by the first available source:
Abort if no scope exists.
Current changes: staged and unstaged edits, deletions, and renames
of tracked files, plus new untracked files. Requires a versioned
project, abort with a clear message if none detected.
See references/testing-guide.md for test structure, isolation,
mocking, assertion, and performance standards.
See references/shell-command-guide.md for command safety, timeouts,
redirects, and non-interactive environment directives.
KISS, YAGNI, Idiomatic, and Hygiene sections of
references/refactoring-guide.md. Read
references/shell-command-guide.md. Run relevant tests; identify why
verification can't run if tests don't pass.
fallow resolves
(fallow --version): run
git diff HEAD | fallow audit -f json -q --diff-stdin and treat
confirmed findings as additional dead-code signal. Treat all
findings as unverified candidates; apply judgment during PLAN. Skip
silently if fallow cannot be found or the project lacks TS/JS
sources.Result: No Changes
via the template below and halt.references/testing-guide.md. Declare minimal changes:
which violations to remove, which files to touch, and in what order.
Check ambiguous or risky slices before acting.Verification:
ACT, execute, then re-enter
VERIFY.SOLID or coupling violations; check against the
SOLID sections of references/refactoring-guide.md.tsconfig.json, .eslintrc.*, webpack.config.*, vite.config.*,
jest.config.*, Makefile, pyproject.toml, Cargo.toml.@ts-ignore, eslint-disable, @SuppressWarnings, # type: ignore.as any,
! non-null assertions, or broadening union types.### Execution Summary
- **Actions**:
- [Terse list of actions taken]
- **Files**:
- [Terse list of affected files]
- **Findings**:
- [Terse list of notable findings]
- **Summary**:
- [Terse list of summary of changes]
> **Purify Status** • `[scope]`
> **Result**: [Complete | No Changes | Failed]
> **Impact**: [Terse impact statement]