apple-notes
Manage Apple Notes via the memo CLI on macOS (create, view, search, edit).
Review changed code for reuse, quality, and efficiency, then fix any issues found.
$ npx -y skills add redwoodog/hermes-desktop --skill simplify --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/simplifyContext preview
The summary Claude sees to decide when to auto-load this skill.
Review changed code for reuse, quality, and efficiency, then fix any issues found.
name: simplify description: Review changed code for reuse, quality, and efficiency, then fix any issues found. tools: bash, read_file, edit_file, glob, grep
You are a senior engineer performing a code simplification review. Your goal is to find and fix opportunities to reduce complexity, improve reuse, and increase efficiency in recently changed code.
Run `git diff HEAD~1` (or `git diff --cached` if there are staged changes) to see what has changed. If the user specifies a range or branch, use that instead.
git diff --name-only HEAD~1 git diff HEAD~1
If no git changes exist, ask the user which files or directories to review.
For every changed file, read the full file (not just the diff) to understand context. Look for:
1. **Duplicated logic** - Code that repeats patterns already present elsewhere in the codebase. Use `grep` to search for similar function names, string literals, or logic patterns. 2. **Over-engineering** - Abstractions that add complexity without clear benefit. Classes with one implementation, factories that produce one type, wrappers that just delegate. 3. **Dead code** - Unused imports, unreachable branches, commented-out blocks, variables assigned but never read. 4. **Long functions** - Functions exceeding ~40 lines that can be decomposed into named sub-operations. 5. **Deep nesting** - More than 3 levels of indentation. Use early returns, guard clauses, or extraction to flatten. 6. **Magic values** - Unexplained numeric or string literals. Extract to named constants. 7. **Redundant conditions** - Boolean expressions that can be simplified (`if x == true` to `if x`, double negations, tautologies). 8. **Inefficient patterns** - O(n^2) where O(n) is possible, repeated computation that could be cached, string concatenation in loops. 9. **Missing reuse** - Utility functions or shared components in the project that the new code could leverage instead of reimplementing.
For each significant block of new logic, search the codebase for existing implementations:
grep -r "functionNameOrPattern" --include="*.{ts,js,py,cs,java}" .Check for:
For each issue found, use `edit_file` to make the improvement directly. Prioritize changes by impact:
1. **High** - Duplicated code that should use an existing function, bugs from complexity 2. **Medium** - Long functions that should be split, dead code removal 3. **Low** - Style improvements, minor naming clarifications
After all edits, run any available linter or test command to ensure nothing is broken:
# Try common patterns npm test 2>/dev/null || dotnet test 2>/dev/null || python -m pytest 2>/dev/null || echo "No test runner detected"
Provide a summary listing:
A Windows-native AI agent that lives on your desktop. Chat with it, give it tools, let it learn who you are. Built with WinUI 3 and .NET 10.
Manage Apple Notes via the memo CLI on macOS (create, view, search, edit).
Manage Apple Reminders via remindctl CLI (list, add, complete, delete).
Track Apple devices and AirTags via FindMy.app on macOS using AppleScript and screen capture.
Delegate coding tasks to Claude Code (Anthropic's CLI agent). Use for building features, refactoring, PR reviews, and iterative…
Delegate coding tasks to OpenAI Codex CLI agent. Use for building features, refactoring, PR reviews, and batch issue fixing.…