1password
Install and use 1Password CLI (`op`) to sign in, inspect vault items, read secrets safely, and inject secrets into commands.
Refactor code to reduce complexity and duplication without changing behavior.
$ npx -y skills add HybridAIOne/hybridclaw --skill code-simplification --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-simplificationContext preview
The summary Claude sees to decide when to auto-load this skill.
Refactor code to reduce complexity and duplication without changing behavior.
name: code-simplification
description: Refactor code to reduce complexity and duplication without changing behavior.
user-invocable: false
metadata:
hybridclaw:
category: development
short_description: "Behavior-safe refactors."
tags:
- engineering
- refactoring
- simplicity
- maintainability
related_skills:
- code-review
- feature-planningUse this skill for deeper code simplification work while preserving current behavior.
This is intentionally narrower than a generic "simplify" skill: it is for behavior-preserving refactors in a live codebase, with explicit attention to tests, surrounding types, and incremental validation.
1. Identify the exact behavior that must stay the same. 2. Read the surrounding code, types, and tests before editing. 3. Establish a baseline with the smallest relevant checks. 4. Simplify in small reversible steps. 5. Re-run validation after each meaningful change. 6. Stop when the code is materially clearer, not when it is merely different.
Prioritize complexity that makes defects more likely:
Prefer deleting code over adding a new abstraction when both solve the problem.
sites that justify them.
before trying to flatten it away.
Use whichever move makes the code simpler without broad churn:
Before changing anything, identify the most relevant checks. Typical examples:
git diff --stat npm run typecheck npm run test:unit
Replace generic commands with repo-native validation after inspecting the project. If tests are missing for the behavior you are simplifying, add or note that gap before making broad structural changes.
When reporting simplification work, explain:
1. what complexity was removed 2. what behavior was intentionally preserved 3. what validation was run 4. any remaining complexity that should stay for now
If the requested simplification is too risky without first adding tests, say so directly and recommend the smallest safe precursor change.
possible.
Enterprise-ready self-hosted AI assistant runtime with sandboxed execution, secure credentials, approvals, and memory
Install and use 1Password CLI (`op`) to sign in, inspect vault items, read secrets safely, and inject secrets into commands.
Coordinate cross-functional project delivery by tracking commitments, dependencies, decisions, and risks; maintain project…
Search Airtable bases and tables, read records and computed fields, and prepare guarded record CRUD requests with schema-based…
Expose HybridClaw as a custom Alexa skill and prepare guarded Alexa smart-home/device control payloads without exposing Amazon…
View Apple Calendar schedules, draft or import `.ics` files, and coordinate host-side calendar actions on macOS.
Control Apple Music playback, inspect now playing, start playlists, and automate the macOS Music app.