AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Code Simplifier

skill-kopp0510-claude-dd-code-simplifier · by kopp0510

調用官方 code-simplifier agent 簡化程式碼。當使用者要求簡化、降低複雜度、清理冗餘,或執行 6 步開發迴圈步驟 3 時啟用。不適用於 PR 審查(用 code-reviewer)。

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-kopp0510-claude-dd-code-simplifier

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-kopp0510-claude-dd-code-simplifier)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
yesterday

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Code Simplifier? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Code Simplifier — 官方 agent 包裝器

本 skill 只負責介面層:定範圍 → 調用官方 code-simplifier agent → 呈現結果。 簡化邏輯全在 agent 內,不在此重複。

範圍決定

  • 6 步開發迴圈步驟 3(最常見):範圍 = 該功能段落新增/修改的程式碼(git diff HEAD~1 或使用者指明的段落),不詢問,直接執行
  • 使用者指明檔案/目錄/片段:照指示,不追問
  • 範圍不明:問一題 —「要簡化哪個範圍?(預設:最近修改的檔案)」,其餘參數用預設

預設不含測試檔;使用者要求才包含。

Agent 調用

依序嘗試 subagent_type

  1. code-simplifier:code-simplifier(plugin 命名空間)
  2. code-simplifier(本地 ~/.claude/agents/code-simplifier.md

兩者皆回 Agent type not found → 停下,請使用者跑 ./install-dd-pipeline.sh 補齊。

Prompt 模板:

請簡化以下程式碼,提高可讀性與可維護性,保留所有功能:

範圍:{檔案清單或片段}

重點:降低圈複雜度、改善命名、移除冗餘、簡化條件(early return、減少巢狀)。
約束:不改公開 API 簽名;有測試必須全過。
輸出:簡化摘要 + 關鍵變更的 Before/After 對比。

結果呈現

轉述 agent 的簡化摘要與 Before/After 對比。統計數字只引用 agent 實際回報的, 沒有就不列 — 禁止自行估算複雜度指標。

簡化後提醒(在 6 步迴圈中則直接續行步驟 4):用 git diff 審查變更,重跑測試確認行為不變。

範圍外

  • 架構層重構(模組拆分、設計模式)、效能調校 — 超出簡化範疇,明說不做
  • 第三方 / 生成的程式碼 — 不修改
  • 效能關鍵段落 — 「看似複雜但高效」的寫法保留,標註說明即可

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.