gwf/x2c/simplify-x2c-source
Claude Code and agent skill by gwf/x2c
- community
Checking that the SKILL.md file is still in the repository.
Remove over-engineering from hand-authored x2c source by deleting duplicate owners, derived state, redundant paths, obsolete internal APIs, defensive validation, parallel implementations, and boilerplate that current language features can replace. Use for broad simplification campaigns or requests to make src/ and lib/ substantially smaller without changing behavior.
Install
npx vskill@latest install gwf/x2c/simplify-x2c-sourceSKILL.md
The same SKILL.md was published earlier as gwf/x2c/simplify-x2c-source.
Simplify x2c source
Remove unnecessary machinery while preserving observable behavior. For a read-only request, investigate and recommend; for an authorized campaign, follow the removal through source, callers, tests, docs, and generated files.
Find a connected opportunity
Read removal patterns, relevant source, tests, and history. Look for duplicated implementations, derived state, validators, registries, adapters, or intermediate representations whose work an existing path already performs. Identify what can disappear, why it is unnecessary, and the production callers whose behavior must remain.
Optional tools can extend a source-backed investigation:
find-redundant-validationlists validator families, local checks, and
silent guards with the validation rules of x2c lint.
- The structure rules of
x2c lint --allfind related source patterns. x2c lint --allreports comment cleanup candidates.
The finder skills document their runnable commands. Scores measure detector signals; choose work by the code and runtime operations that can disappear.
Establish retained behavior and probe the change
Read callers and relevant public documentation. Trace admissible inputs, identity, ordering, allocation, cleanup, errors, concurrency, symbols, generated layout, side effects, and hot-path cost where applicable. Tests written solely for the machinery being removed do not establish an independent public requirement.
Apply PR-2, PR-3, FA-3, FA-5, FA-7, FA-8, FA-9, and MA-2 in the standard. Prototype the connected change and run focused translation, generated-C, compilation, or runtime checks that distinguish it. Keep only adapters with necessary behavior; recreating old distinctions through modes and callbacks may defeat the goal.
Apply PR-4 and PR-10 in the standard to validation and compatibility.
For private value-contract reductions, use the contract examples. Follow callers, recursive arguments, callback construction, all storage writers, and relevant aliases until the input guarantee closes. Distinguish impossible inputs from repeated validation and equivalent nil-fallback delegation. Preserve the public failure owner, callback ABI, preparation order, and effects. Nonnull pointers do not freeze aliased metadata; a String need not be nonempty, and an empty Map can still hash a key. State the precondition once per connected change under CM-3. Keep optional and unresolved cases outside the proved change set, and report small guard or conversion cleanups as such rather than as a larger machinery deletion.
Complete and verify the removal
Follow the same cause through private APIs, state, helpers, diagnostics, fixtures, documentation, generated projections, initialization, and cleanup. Keep tests of valid behavior and deliberate public failures. Refresh affected artifacts through repository targets after verifying source behavior.
Check the strongest remaining opportunity for deletion or reuse. Delivery follows the root selection; PR submissions use focused checks and the integrator owns the publication gate.
Report the machinery removed, behavior preserved, and focused evidence. If no substantial connected removal was supported, report that result plainly.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagents/skills/simplify-x2c-source/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gwf/x2c/simplify-x2c-source)