AGENT SKILL

simplify-post-step

暂无简介

License 许可
MIT
最近更新
2026-07-07
Stars
★ 1
Forks
0

03 SKILL.md 正文

After any code change that modifies files, scan the diff for cleanup opportunities.

Rules:

  • Before invoking, check git diff --stat to confirm there are uncommitted changes. If diff is empty, skip (nothing to simplify).
  • Skip if the core skill already runs simplify internally. Skills that already call skill({ name: "simplify" }) as a post-step: add-feature, modify-feature, fix-bug, remove-feature, realign, reorganize-files, address-pr-comments. If the change was produced by one of these, do NOT invoke simplify again — the skill already did it.
  • Skip if ponytail is active. Ponytail governs what gets built; simplify's DRY/naming pass conflicts with ponytail's "shortest path" approach. When ponytail mode is on, let it handle simplification.
  • After implementation or bug fix completes, scan the diff for DRY violations, duplicate code, magic numbers, poor naming, and missed reuse of existing utilities.
  • Mechanical fixes (rename local, extract constant, swap for existing util, delete dead comment) apply immediately.
  • Structural fixes (extract function, split component, replace duplication with shared helper) require user confirmation via question tool.
  • Do not expand scope beyond changed files unless a flagged smell explicitly points to siblings.
  • Skip for: type-only edits, pure formatting, generated files, comment-only changes.

04 同仓库更多 Skills