ego-lite-simplify
/ego-lite-simplify
Znajduje i wdraża uproszczenia poparte dowodami w repozytorium ego-lite: martwy kod, zduplikowany stan lub API, spekulatywne abstrakcje, zbędne warstwy zgodności i nadmiar testów lub dokumentacji.
- Autor
- citrolabs ↗
- Repozytorium
- ego-lite ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 19.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 19.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Znajduje i wdraża uproszczenia poparte dowodami w repozytorium ego-lite: martwy kod, zduplikowany stan lub API, spekulatywne abstrakcje, zbędne warstwy zgodności i nadmiar testów lub dokumentacji.
Oryginalny opis (EN)
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.
Jak działa
- Establish the contract
- Find strong candidates
- Prove each candidate
- Report before broad removal
- Implement safely
Podgląd SKILL.md
--- name: ego-lite-simplify description: 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. --- # Simplify ego-lite Reduce concepts and maintenance surface, not just line count. Prefer a few well-proven deletions over a long list of guesses. ## Establish the contract 1. Read `AGENTS.md` and the design document that owns the affected behavior. 2. Inspect `git status` and preserve unrelated user changes. 3. Decide whether the request is an audit or an authorized implementation. Do not turn a cleanup into a product decision without making the behavior change explicit. 4. Identify the relevant boundary before judging code: - `globalThis.ego` is supplied by the closed-source app; `docs/native-bindings-api.md` documents that external contract. - The runtime has direct CLI and embedded SDK startup paths. - Public agent APIs must stay aligned across implementation, tests, `help()`, and `package/ego-browser/skill-body/SKILL.md`. - Browser state can outlive the short Node.js process. ## Find strong candidates Start with production areas carrying the most state, branching, or public surface. Look for: - Exports, helpers, events, options, fallbacks, packages, or state fields with no production consumer. - Tests or documentation that are the only consumers of behavior that is no longer required. - Multiple representations of the same page, task-space, session, ref, lifecycle, or output state. - Pass-through layers that add vocabulary but no policy, isolation, or test seam. - Compatibility code that is unnecessary on an explicitly breaking branch. - Generality with no current product use, such as unsupported concurrency modes or unused extension points. - Special cases, rollback paths, or validation that exist only to protect a removable surface. - Hand-written parsers, queues, retry logic, or utilities that a Node.js built-in or healthy dependency can replace with less total code. 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. ## Prove each candidate 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: - **Production:** `package/ego-browser/src`, runtime scripts, build and loader paths, and shipped site learnings. - **Contract:** public JSDoc consumed by `help()`, `package/ego-browser/skill-body/SKILL.md`, architecture documents, and native binding behavior. - **Non-production:** tests, fixtures, snapshots, comments, and historical or draft documents. - **Ambiguous:** examples and development scripts; inspect how they are invoked before deciding. 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. ## Report before broad removal For an audit, present each worthwhile candidate with: - The surface to remove or fold. - Call-site and contract evidence. - The user-visible behavior change, or “none”. - What complexity disappears and what replacement remains. - Confidence, risks, and the smallest verification needed. Call out candidates that require a user decision separately from behavior-preserving cleanups. ## Implement safely Follow spec-driven TDD when changing code: 1. Update or add a characterization test when existing behavior must remain. 2. Update the owning design or API contract before an intentional behavior change. 3. Remove the implementation and its now-obsolete tests, fixtures, exports, JSDoc, help entries, and skill documentation together. 4. Keep comments in English and explain only non-obvious constraints. 5. Prefer deleting a state or transition over adding another abstraction around it. 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.
Pliki w paczce (2)
- SKILL.md 5 KB
- agents/openai.yaml 1 KB
Wersje
W bazie nie ma innych skilli o nazwie ego-lite-simplify.
Migawka bazy z 13.11.2026 · wersja paczki 45362af72830 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100dsh-find-simplifications
Znajduje poparte dowodami uproszczenia w kodzie, API, konfiguracji, testach i tekstach DeepSeek Harness: martwy, zduplikowany lub spekulatywny kod oraz niepotrzebnie utrzymywaną infrastrukturę. - 100kiss
Wyszukuje możliwości uproszczenia kodu: nadmierną złożoność, over-engineering, zbędne abstrakcje, martwy i zduplikowany kod, ścisłe sprzężenia oraz rozbudowane interfejsy. - 90find-simplifications
Szuka uproszczeń w kodzie Cherry Studio: martwy kod, zbędny stan, nadmiarowe API i zamiany bibliotek, z dowodami w notatkach. - 100simplify-code
Proponuje poparte dowodami uproszczenia całej gałęzi lub pull requestu, a zmiany wprowadza dopiero po zatwierdzeniu. - 100pg-find-simplifications
Szuka uzasadnionych uproszczeń w kodzie, API, konfiguracji i testach, na przykład martwych lub zduplikowanych fragmentów. - 90bloat-audit
Wskazuje w całym repozytorium, co można usunąć lub scalić: duplikaty, zbędne abstrakcje, nieużywane ustawienia i martwy kod.