agentleFS
ww-w-aiww-w-ai/bkit-gemini/skills/simplify/SKILL.md

simplify

Skill66 starsChanged 8 months agoApache-2.0View on GitHub

Review changed code for reuse, quality, and efficiency, then fix any issues found. Use after PDCA Check >= 90% or when code review is needed.

73 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use clonedeps, deepwork and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hbollonSkill

    clonedeps

    Clone important project dependency source code into an ignored local workspace so OpenCode can inspect library internals. Use when the user asks to clone dependencies, inspect dependency/source internals, understand SDK/framework behavior from source, debug library implementation details, or make core dependency repos locally readable. Do not use for ordinary API/docs questions where @librarian is enough.

    Also in 3 projects that use this

  • hbollonSkill

    deepwork

    Orchestrator-only workflow for heavy coding sessions, multi-phase implementation, and risky refactors. Use for complex work that needs planning, review gates, and persistent progress tracking.

    Also in 3 projects that use this

  • JordanCoinSkill

    codemap

    Analyze codebase structure, dependencies, changes, cross-agent handoffs, and get code-aware intelligence. Use when user asks about project structure, where code is located, how files connect, what changed, how to resume work, before starting any coding task, when you need risk analysis and skill guidance, or when Codemap should tune project config before analysis.

    Also in 4 projects that use this

  • llama-farmSkill

    commit-push-pr

    Commit changes, push to GitHub, and open a PR. Includes quality checks (security, patterns, simplification). Use --quick to skip checks.

    Also in 3 projects that use this

  • nicolasestremSkill

    finalize

    Complete project finalization with quality gates and git workflow automation.

    Also in 3 projects that use this

  • PostHogSkill

    react-doctor

    Diagnose and fix React codebase health issues. Use when reviewing React code, fixing performance problems, auditing security, or improving code quality.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 71 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After PDCA Check phase reaches >= 90% match rate.

    line 33
  2. Distinctive:

    When code review is needed before merging.

    line 34
  3. Distinctive:

    When refactoring is requested.

    line 35
  4. Distinctive:

    Run git diff --name-only (and git diff --cached --name-only for staged files) to identify all recently changed files.

    line 41
  5. Distinctive:

    Ensure the fix does not change external behavior.

    line 67
  6. Distinctive:

    Do NOT change public API signatures without confirmation.

    line 71
  7. Distinctive:

    Do NOT remove code that appears unused if it is exported.

    line 72
  8. Distinctive:

    Keep changes minimal and focused.

    line 73
  9. Distinctive:

    Use project's existing linting rules and conventions.

    line 93

“Common” is measured: kept by at least 6 in 10 of the 71 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Simplify — Code Quality Review and Improvement

Review changed code for reuse, quality, and efficiency, then fix any issues found.

When to Use

  • After PDCA Check phase reaches >= 90% match rate.
  • When code review is needed before merging.
  • When refactoring is requested.

4-Step Workflow

Step 1: Collect Changed Files

Run git diff --name-only (and git diff --cached --name-only for staged files) to identify all recently changed files.

Filter to relevant source files only (exclude lockfiles, generated files, build artifacts).

Output: List of files to review.

Step 2: Analyze Each File

For each changed file, analyze for:

CategoryWhat to Look For
Duplicate codeRepeated logic that can be extracted into shared functions
Unnecessary complexityNested conditionals, long functions, over-engineering
Naming improvementsUnclear variable/function names, inconsistent conventions
Unused codeDead imports, unreachable branches, commented-out blocks
Error handlingMissing try/catch, unhandled edge cases
PerformanceUnnecessary loops, redundant operations, missing caching

Output: Issue table per file.

Step 3: Apply Improvements

For each identified issue:

  1. Apply the fix automatically using replace tool.
  2. Ensure the fix does not change external behavior.
  3. Preserve existing test coverage.

Rules:

  • Do NOT change public API signatures without confirmation.
  • Do NOT remove code that appears unused if it is exported.
  • Keep changes minimal and focused.

Step 4: Output Change Summary

Present a summary table of all changes made:

FileChange TypeBeforeAfterImpact
...Dedup3 copies1 shared function-20 lines
...NamingtmpuserSessionReadability
...Dead codeUnused importRemovedClean

Final output:

  • Total files reviewed
  • Total issues found
  • Total issues fixed
  • Lines added / removed

References

  • Use project's existing linting rules and conventions.
  • Respect .eslintrc, .prettierrc, or equivalent config files.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.