Community程式設計與開發github.com

EastDong314/agent-skills

專注於過度設計的程式碼審查。找出可刪除的內容:重造輪子的標準庫、不必要的依賴、投機性抽象、無用的靈活性。每個發現一行:位置、要刪什麼、用什麼替代。當使用者說「review for over-engineering」「what can we delete」「is this over-engineered」「simplify review」或呼叫 /ponytail-review 時使用。作為專注正確性的審查的補充,本技能只追查複雜度。

agent-skills 是什麼?

此技能專注於在程式碼差異(diff)中揪出不必要的複雜性,是專注於正確性審查的補充。每個發現只以一行明確指出:位置、要刪除的內容、以及替代方案。最佳結果是讓 diff 變得更短。支援的標籤包括:`delete:`(死碼、未使用的靈活性)、`stdlib:`(重造標準庫)、`native:`(重造平台內建功能)、`yagni:`(僅有一個實作的抽象)、`shrink:`(更簡潔的寫法)。結尾會統計「net: -<N> lines possible.」若無可刪則回「Lean already. Ship.」。明確將正確性、安全性、效能問題排除在外,並保留單一冒煙測試或 assert 自檢。可在指令式提示或 /ponytail-review 觸發,並可透過「stop ponytail-review」或「normal mode」還原成詳細審查風格。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/EastDong314/agent-skills/tree/HEAD/skills/ponytail-review

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

審查 diff 中的不必要複雜度。每個發現一行:位置、要刪什麼、用什麼取代。Diff 的最佳結果是變得更短。

格式

L<行號>: <標籤> <什麼東西>. <替代方案>.,多檔案 diff 則用 <檔案>:L<行號>: ...。

標籤:

  • delete: 死碼、未使用的靈活性、投機性功能。替代方案:無。
  • stdlib: 手刻但標準庫已經有的東西。指名函式。
  • native: 依賴或程式碼做了平台內建功能。指名該功能。
  • yagni: 只有一個實作的抽象、沒人設定的設定、只有一個呼叫者的層。
  • shrink: 相同邏輯,更少行數。展示較短的形式。

範例

❌「這個 EmailValidator 類別可能比必要更複雜,您是否考慮過在這個階段是否真的需要所有這些驗證規則?」

✅ L12-38: stdlib: 27 行的驗證器類別。檢查 "@" 在 email 中,1 行,真正的驗證是確認信。

✅ L4: native: 為了單一 format 呼叫而引入 moment.js。Intl.DateTimeFormat,0 個依賴。

✅ repo.py:L88: yagni: 只有一個實作的 AbstractRepository。直接內聯,直到出現第二個實作。

✅ L52-71: delete: 包在冪等區域呼叫外面的重試包裝。無需替代。

✅ L30-44: shrink: 手動迴圈建立 dict。dict(zip(keys, values)),1 行。

評分

結尾使用唯一重要的指標:net: -<N> lines possible.

如果沒有東西可刪,則說 Lean already. Ship. 並停止。

邊界

範圍:僅限過度設計與複雜度。正確性錯誤、安全漏洞與效能明確排除在外。請將它們導向一般審查流程,而非此技能。單一冒煙測試或基於 assert 的自檢是本技能的最小要求,不是膨脹,絕不標記為刪除。本技能不會套用修正,僅列出它們。 「stop ponytail-review」或「normal mode」:恢復為詳細審查風格。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

EastDong314/agent-skills

查询《中华人民共和国民法典》条文原文(1260 条 / 7 编 84 章 / 附则)。当用户询问民法典的任何条文或制度时使用,例如「第 1042 条」「离婚冷静期」「居住权」「保证合同」「高空抛物」「诉讼时效」「夫妻共同债务」;也用于需要引述、比对、解释民法典原文的场景。回答必须逐字引用条文原文并标注条号,不做改写。 | Look up verbatim articles of the PRC Civil Code (中华人民共和国民法典). Use when the user asks about any Civil Code article, needs the exact statutory text, or wants to cite, quote, or compare provisions.

EastDong314/agent-skills

管理 Ricky 的本地 Obsidian 知识库(默认 $HOME/workspace/notes):创建、读取、更新、删除、搜索、重构、入库(ingest)、体检(lint)、建索引与整理笔记。当用户要求管理 Obsidian 笔记、知识库内容、日记、项目笔记、资料入库(source-to-wiki)、backlinks、tags、YAML frontmatter、Properties、Bases、Dataview 字段或查询、wiki 链接、嵌入、callout、canvas、网页剪藏,或用本地 Obsidian 应用/CLI 打开笔记时使用。 | Create, read, update, delete, search, refactor, ingest, lint, index, and organize Ricky's local Obsidian vault at $HOME/workspace/notes (override with OBSIDIAN_VAULT). Use when an AI coding agent is asked to manage Obsidian notes, knowledge-base content, daily notes, project notes, source-to-wiki ingestion, backlinks, tags, YAML frontmatter, Properties, Bases, Dataview fields or queries, wiki links, embeds, callouts, canvases, web clipping, or to open notes in the local Obsidian app/CLI.

EastDong314/agent-skills

Develop against ruoyi-vue-pro/Yudao projects, including backend modules, Vue3 admin UI, uni-app UI, SQL, permissions, and data-integration boundaries.

EastDong314/agent-skills

Investigate a bug, regression, flaky behavior, or unclear backend failure with an evidence-first debugging workflow before jumping into fixes. Use when Codex should establish a reproducible feedback loop, rank hypotheses, inspect the real failing path, and only then propose or apply changes.

相關技能