Skip to main content

refactor-pass

Simplify code while preserving behavior when the user requests a refactor or cleanup pass.

来源信息

仓库
bitsocialnet/seedit
最近来源活动
2026年9月13日 23:00
检测到的 SKILL.md 语言
英语
星标
416
分支
26

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
refactor-pass
description
Simplify code while preserving behavior when the user requests a refactor or cleanup pass.
<!-- Generated from .agents/skills/refactor-pass/SKILL.md; run yarn ai-workflow:sync. --> # Refactor Pass Identify the requested scope from the conversation and diff; include relevant staged, unstaged, and untracked work. If no scope is supplied, inspect recent task changes without expanding into unrelated code. Prefer removing dead code, clarifying control flow, or reusing existing helpers over adding abstractions. Read surrounding source and tests before changing a boundary. Check history when the purpose of a guard, workaround, or optimization is unclear; keep it when its necessity cannot be established. Preserve observable behavior, error contracts, accessibility, and project architecture, including the module boundaries in `src/AGENTS.md` (`yarn boundaries` when files or imports move). Remove memoization only when its purpose and impact are understood. Shared/global state belongs in Zustand; local state and straightforward prop passing remain valid. Use Bitsocial hooks for React UI protocol data and derive values during render when appropriate. Preserve intentional non-React integrations such as Electron RPC bootstrap. Keep the diff focused and avoid new dependencies for routine cleanup. Verify the affected behavior using `docs/agent-playbooks/verification.md`; report what became simpler and any remaining uncertainty.
在 GitHub 查看