Find and implement evidence-backed simplifications in the ego-lite repository. Use when reviewing the codebase for dead code, duplicated state or APIs, speculative abstractions, unnecessary compatibility layers, hand-written infrastructure, excessive tests or documentation, or when the user asks to reduce code size or maintenance complexity without hiding behavior changes.
77
97%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Reduce concepts and maintenance surface, not just line count. Prefer a few well-proven deletions over a long list of guesses.
AGENTS.md and the design document that owns the affected behavior.git status and preserve unrelated user changes.globalThis.ego is supplied by the closed-source app; docs/native-bindings-api.md documents that external contract.help(), and skills/ego-browser/SKILL.md.Start with production areas carrying the most state, branching, or public surface. Look for:
Do not count moving logic into a wrapper as simplification. Estimate the net result: implementation, tests, docs, public names, state transitions, and special cases removed minus new glue and dependencies added.
Use rg first. Search exact symbols, method forms, event names, configuration keys, error codes, protocol strings, and dynamic registration points. Read the callers rather than relying only on static-analysis output.
Classify evidence as:
package/ego-browser/src, runtime scripts, build and loader paths, and shipped site learnings.help(), skills/ego-browser/SKILL.md, architecture documents, and native binding behavior.Reject or downgrade a candidate when a real production caller exists, the native contract is uncertain, the change merely relocates complexity, or the deletion requires unrelated churn. A small local cleanup may be implemented directly; a behavior or API decision belongs in the owning design document first.
For an audit, present each worthwhile candidate with:
Call out candidates that require a user decision separately from behavior-preserving cleanups.
Follow spec-driven TDD when changing code:
Run the narrowest relevant checks first. From package/ego-browser/, use npm test for runtime changes, npm run e2e for real task-space/browser behavior, and npm run validate:site-skills for learning changes. Finish with git diff --check and report any verification that could not run.
Never edit generated build output as the source of a simplification. Never remove a defensive path until its trust or lifecycle boundary is understood.
dca7003
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.