Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add bushuhui/skills --skill pd-simplifygit clone --depth 1 https://github.com/bushuhui/skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/bushuhui/skills/pd-simplify)<a href="https://agentmods.dev/skills/bushuhui/skills/pd-simplify"><img src="https://agentmods.dev/badge/skills/bushuhui/skills/pd-simplify.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00057 | $0.00638 |
| Opus 5 | $0.00028 | $0.00319 |
| Sonnet 5 | $0.00011 | $0.00128 |
| Haiku 4.5 | $0.00006 | $0.00064 |
Grade A, and why
pd-simplify scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
pd-simplify — 代码精炼
对最近修改的代码进行精炼,提升可读性、一致性和可维护性,不改变任何功能行为。
使用方式
/pd-simplify # 精炼最近修改的代码
/pd-simplify --file path # 精炼指定文件
如果未指定范围,通过 git diff 确定最近修改的代码范围。
精炼原则
1. 功能不变
这是硬性约束。 所有原始功能、输出和行为必须保持完整。只改"怎么做",不改"做什么"。
2. 遵循项目规范
遵循项目 CLAUDE.md 中的编码规范,包括:import 排序、函数声明方式(function vs 箭头函数)、显式返回类型、React 组件模式、错误处理模式、命名约定等。若无规范文件,遵循代码既有风格。
3. 提升清晰度
- 减少不必要的复杂度和嵌套
- 消除冗余代码和重复逻辑
- 改进变量和函数命名
- 合并相关逻辑
- 删除描述显而易见代码的冗余注释
- 避免嵌套三元运算符 — 优先 switch 或 if/else
- 清晰优先于简短 — 显式代码优于过度紧凑的写法
4. 避免过度简化
- 不为"行数更少"牺牲可读性
- 不做过度聪明的"一行式"改写
- 不合并过多关注点到单一函数
- 不删除有助于代码组织的有用抽象
- 不破坏调试和扩展能力
精炼流程
- 识别最近修改的代码范围(通过 git diff 或用户指定)
- 分析优雅性和一致性改进机会
- 应用项目最佳实践和编码标准
- 确保所有功能保持不变
- 确认精炼后的代码更简洁、更易维护
- 仅对影响理解的重要变更做简要说明
作用域
默认只作用于当前 session 中修改过的代码,除非用户明确指定更大范围。
输出要求
直接输出精炼后的代码变更,附带简要说明。仅记录显著影响理解的重要变更,不对每个小改动逐一解释。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 63 lines · 57 tokens per session scan A 18df98a2586b
pd-simplify is a skill published in the GitHub repository bushuhui/skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 57 tokens to every session and 638 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…