smithery.ai

review-and-simplify

Review and simplify implementation

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,183 B
  • docs SUMMARY.md 61 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Review and Simplify Implementation

Steps

  1. Get diff against main:

``bash git diff main...HEAD --name-only | grep -E '\.(ts|tsx)$' | grep -v '\.test\.' ``

  1. For each changed file (excluding tests):

Read the file and identify: - Dead code: Unused imports, variables, functions - Over-abstraction: Unnecessary indirection, premature generalization - Unclear naming: Variables/functions that don't describe their purpose - Redundant logic: Duplicate code, unnecessary conditions - Complex expressions: Code that could be simplified

  1. For each simplification:

a. Make the change

b. Run tests to verify no breakage:

``bash npm test --workspaces --if-present ``

c. If tests fail, revert and skip that simplification

  1. If any simplifications were made, commit:

``bash git commit -m "refactor: simplify implementation" ``

What to Simplify

DO:

  • Remove unused imports
  • Remove unused variables and functions
  • Simplify complex conditionals
  • Inline single-use abstractions
  • Improve variable/function names for clarity
  • Remove redundant type annotations
  • Simplify nested callbacks/promises

DO NOT:

  • Add new features
  • Change observable behavior
  • Add documentation or comments
  • Refactor code that wasn't changed in this feature
  • Add error handling that wasn't in the original
  • "Improve" working code just because you can

Example Simplifications

// Before: Over-complicated
const isValid = data !== null && data !== undefined && data.length > 0;

// After: Simplified
const isValid = data?.length > 0;
// Before: Unused abstraction
function createHandler(fn: Function) {
  return (req, res) => fn(req, res);
}
app.get("/api", createHandler(handleRequest));

// After: Direct usage
app.get("/api", handleRequest);

Notes

  • This is a cleanup pass, not a refactoring exercise
  • Keep changes minimal and focused
  • Test after each change to catch regressions early
  • If unsure whether a change is safe, skip it