Agent Skills › yielded-dev/auth › simplify

simplify

GitHub

通过质疑架构、移除冗余依赖和复杂性来简化代码与工作流,优先删除而非优化,保留必要行为与契约。适用于代码审查、重构及消除技术债务,旨在降低维护成本并提升系统清晰度。

.agents/skills/simplify/SKILL.md yielded-dev/auth

触发场景

请求简化代码或工作流 进行架构审查以移除冗余组件 清理不必要的依赖和实现细节

安装

npx skills add yielded-dev/auth --skill simplify -g -y
更多选项

非标准路径

npx skills add https://github.com/yielded-dev/auth/tree/main/.agents/skills/simplify -g -y

不安装直接使用

npx skills use yielded-dev/auth@simplify

指定 Agent (Claude Code)

npx skills add yielded-dev/auth --skill simplify -a claude-code -g -y

安装 repo 全部 skill

npx skills add yielded-dev/auth --all -g -y

预览 repo 内 skill

npx skills add yielded-dev/auth --list

SKILL.md

Frontmatter
{
    "name": "simplify",
    "description": "Review or simplify code and workflows by questioning architecture and removing unnecessary machinery while preserving required behavior.",
    "disable-model-invocation": true
}

Simplify

Start from the requested outcome and what it actually requires. Follow repository guidance and keep the review focused on that outcome. Look for unnecessary work, complexity, and weak assumptions in the solution. Distinguish inherited assumptions from user requirements and external contracts. Current code and tests establish what happens, not by themselves what must remain.

Prefer deleting over simplifying, simplifying over optimizing, and optimizing over automating. Question whether whole responsibilities, subsystems, dependencies, alternate paths, and handoffs need to exist before cleaning up their implementation. Sketch the smallest design that satisfies the actual requirements; treat the current architecture as a candidate, not a constraint. Reassess what becomes unnecessary after each proposed removal. Optimize or automate only when the task calls for it.

Match the requested deliverable. A review produces findings and tradeoffs for a reviewer to decide; an implementation request authorizes justified changes within scope. For a large feature, branch, or architecture review, follow the architecture review workflow and write a short memo of what to cut, what replaces it, and what stays. When implementation is already requested, use that reasoning to guide the work without adding a report approval gate. Small, focused changes do not need the full workflow.

Check relevant callers, stored data, and operational dependencies before removing behavior. Use a reversible candidate diff and focused checks when dependencies are uncertain. If deletion would change the assignment, make that choice explicit. If no worthwhile simplification is supported, leave the implementation alone and explain what makes the current machinery necessary. Judge simplification by responsibilities and maintenance removed, not code moved, renamed, or a deletion quota.

Keep the minimum useful implementation, including inside libraries. Preserve a small boundary that owns reusable behavior; remove machinery that the current contract does not need. The library-first guidance owns that distinction. In Effect code, preserve service requirements, typed failures, and scoped lifetimes; use existing primitives rather than replacing them with custom wrappers.

  • Reviewing durability, validation, verification stages, or agent prompts: durability and verification.
  • Explicitly requested pre-production removal of legacy compatibility: no-legacy pass. Ordinary simplification does not establish that premise.

Preserve required contracts and usable pending or error states. Use existing evidence and relevant checks; small changes do not need a new audit, checklist, benchmark suite, or permanent proof artifact. Critical-path changes still need performance evidence. Report the removed mechanism and any constraint that required it to remain when useful to review the change.

版本历史

  • ba456e0 当前 2026-11-02 09:15

    新增关于大型功能审查的备忘录要求、库边界处理指南及耐久性/验证检查引用,细化了实施请求与审查的区别。

  • 72bfeeb 2026-10-18 15:35

同 Skill 集合

.agents/skills/alchemy/SKILL.md
.agents/skills/cloudflare/SKILL.md
.agents/skills/dev-kit/SKILL.md
.agents/skills/effect/SKILL.md
.agents/skills/feedback-loops/SKILL.md
.agents/skills/library-first/SKILL.md
.agents/skills/measure-performance/SKILL.md
.agents/skills/o11y/SKILL.md
.agents/skills/project-setup/SKILL.md
.agents/skills/pull-requests/SKILL.md
.agents/skills/show-me/SKILL.md
.agents/skills/testing/SKILL.md

元信息

文件数
0
版本
ba456e0
Hash
c22c3217
收录时间
2026-10-18 15:35

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-02 15:46
浙ICP备14020137号-1