unslop

GitHub

用于代码提交前的清理审查,自动识别并移除LLM生成的冗余抽象、防御性代码、无意义注释及低效React钩子等“噪音”,在保持行为不变的前提下提升代码简洁度与质量。

.agents/skills/unslop/SKILL.md nodetool-ai/nodetool

Trigger Scenarios

代码提交前检查 审查包含LLM生成内容的Diff

Install

npx skills add nodetool-ai/nodetool --skill unslop -g -y
More Options

Non-standard path

npx skills add https://github.com/nodetool-ai/nodetool/tree/main/.agents/skills/unslop -g -y

Use without installing

npx skills use nodetool-ai/nodetool@unslop

指定 Agent (Claude Code)

npx skills add nodetool-ai/nodetool --skill unslop -a claude-code -g -y

安装 repo 全部 skill

npx skills add nodetool-ai/nodetool --all -g -y

预览 repo 内 skill

npx skills add nodetool-ai/nodetool --list

SKILL.md

Frontmatter
{
    "name": "unslop",
    "description": "Remove unnecessary abstractions, defensive code, comments, or prose from a requested diff or files. Preserve behavior and repository rules."
}

Unslop

A pre-commit pass that removes patterns LLMs add reflexively but humans wouldn't write. Apply it to the requested diff or files. The goal isn't to shorten the diff — it's to delete code whose absence would not be missed.

This skill complements (does not replace) AGENTS.md and web/src/components/ui_primitives/STRATEGY.md. Those define the rules. This skill defines the patterns to actively hunt and remove.

Unslop is a quality pass, not a bug hunt. For correctness review of a diff, branch, or PR — including the NodeTool-specific landmines — use code-review; a full pre-merge pass runs both.

How to use

  1. After making changes, run git diff and read every added line through the lenses below.
  2. For each "slop" you find, delete or rewrite it. Don't leave a // removed X comment behind.
  3. Complete mandatory post-change verification for code edits. For prose-only edits, check affected links and formatting. Reuse valid results for unchanged files.
  4. When deleting an abstraction, remove unused types and exports. Preserve behavior coverage by moving useful tests to the surviving public interface.

Pattern reference

Read patterns.md for the languages and frameworks in the diff. Repository rules take precedence over these cleanup heuristics.

Self-review checklist

Use the relevant questions to inspect the requested diff. Verify each concern against the repository rules before changing code.

  • Did I add a comment that restates the code, names the PR, or describes a removed feature?
  • Did I add a try/catch whose error path can't actually trigger here?
  • Did I write any, as any, or as unknown as to silence the compiler?
  • Did I add useEffect to compute a value from props/state I already have?
  • Did I useCallback/useMemo/React.memo without a memoized consumer or measurable cost?
  • Did I subscribe to a whole Zustand store (const s = useFooStore()) or skip useShallow on a multi-key selector?
  • Did I import a raw MUI component into a non-primitive file, or hardcode a color, spacing, radius, font size, or transition?
  • Did I write a useEffect+fetch instead of useQuery?
  • Does any new test assert implementation rather than user-visible behavior?
  • Are there // TODO, // removed, // added by, or "useful elsewhere" leftovers?
  • Could three near-identical lines have been left as-is instead of becoming a helper?
  • Does my prose contain any banned openers or filler ("delve", "robust", "seamlessly", "Here's the thing")?
  • Have I left any required verification incomplete?

Report the concrete removals and verification results. A checklist alone does not establish correctness.

Sources

Patterns synthesized from these community skills, adapted to NodeTool's stack:

Version History

  • 9b979bc Current 2026-09-22 23:26

Same Skill Collection

.agents/skills/ask-matt/SKILL.md
.agents/skills/ast-grep-outline/SKILL.md
.agents/skills/ast-grep/SKILL.md
.agents/skills/code-review/SKILL.md
.agents/skills/codebase-design/SKILL.md
.agents/skills/companion-clis/SKILL.md
.agents/skills/diagnosing-bugs/SKILL.md
.agents/skills/domain-modeling/SKILL.md
.agents/skills/flash/SKILL.md
.agents/skills/grill-with-docs/SKILL.md
.agents/skills/implement/SKILL.md
.agents/skills/improve-codebase-architecture/SKILL.md
.agents/skills/prototype/SKILL.md
.agents/skills/research/SKILL.md
.agents/skills/resolving-merge-conflicts/SKILL.md
.agents/skills/runpodctl/SKILL.md
.agents/skills/setup-matt-pocock-skills/SKILL.md
.agents/skills/tdd/SKILL.md
.agents/skills/to-spec/SKILL.md
.agents/skills/to-tickets/SKILL.md
.agents/skills/triage/SKILL.md
.agents/skills/wayfinder/SKILL.md
.agents/skills/wizard/SKILL.md
.agents/skills/yts806379-everything-claude-code-e2e-testing/SKILL.md
.claude/skills/ask-matt/SKILL.md
.claude/skills/ast-grep-outline/SKILL.md
.claude/skills/ast-grep/SKILL.md
.claude/skills/codebase-design/SKILL.md
.claude/skills/companion-clis/SKILL.md
.claude/skills/diagnosing-bugs/SKILL.md
.claude/skills/domain-modeling/SKILL.md
.claude/skills/flash/SKILL.md
.claude/skills/implement/SKILL.md
.claude/skills/improve-codebase-architecture/SKILL.md
.claude/skills/nodetool-api-reference/SKILL.md
.claude/skills/nodetool-browser-agent/SKILL.md
.claude/skills/nodetool-chat-cli/SKILL.md
.claude/skills/nodetool-custom-node-developer/SKILL.md
.claude/skills/nodetool-deployment/SKILL.md
.claude/skills/nodetool-model-provider-config/SKILL.md
.claude/skills/nodetool-rag-indexing/SKILL.md
.claude/skills/nodetool-troubleshooter/SKILL.md
.claude/skills/nodetool-workflow-builder/SKILL.md
.claude/skills/prototype/SKILL.md
.claude/skills/research/SKILL.md
.claude/skills/resolving-merge-conflicts/SKILL.md
.claude/skills/setup-matt-pocock-skills/SKILL.md
.claude/skills/tdd/SKILL.md
.claude/skills/to-spec/SKILL.md

Metadata

Files
0
Version
9b979bc
Hash
3750e380
Indexed
2026-09-22 23:26

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-23 07:12
浙ICP备14020137号-1