xsimplify

Identify duplicated code in HurrahTv.Api and HurrahTv.Client for promotion into HurrahTv.Shared.

1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/mkerchenski/hurrah-tv --skill xsimplify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xsimplify
Source: https://github.com/mkerchenski/hurrah-tv/tree/main/.claude/skills/xsimplify
Command: npx skills add https://github.com/mkerchenski/hurrah-tv --skill xsimplify

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduces duplicated logic and fragmented contracts by identifying code that should be promoted into HurrahTv.Shared so both the API and the Blazor client can reuse the same types and helpers.

Core Features & Use Cases

  • Wraps the system simplify workflow: Runs the standard simplify pass first, then adds a Hurrah.tv-specific “Shared elevation” lens without replacing the base quality cleanup.
  • Surfaces intentionally skipped improvements as tracking issues: Offers to file GitHub issues for refactor opportunities that the system simplify pass decided not to fix inline.
  • Promotes only contract-friendly shapes into Shared: Evaluates whether changed code in HurrahTv.Api or HurrahTv.Client should move into HurrahTv.Shared/Models based on cross-side reuse and anti-elevation signals.

Quick Start

Use the xsimplify skill on your current diff to get a list of HurrahTv.Shared elevation candidates and, when helpful, proposed tracking issues for items skipped by the system simplify pass.

Frequently Asked Questions about xsimplify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I move duplicated DTOs and enums into a shared library for an API and client?

You promote duplicated DTOs and enums into a shared library by analyzing cross-side code diffs to identify contract-friendly shapes and elevate them from your API and client projects into a shared models folder.

What is shared elevation in code refactoring?

Shared elevation in code refactoring is the process of promoting duplicated logic and contract-like types, such as request and response DTOs, from separate API and client codebases into a unified shared library for reuse.

How do I prevent platform-specific dependencies from leaking into a shared contract library?

You prevent platform-specific dependencies from leaking into a shared contract library by applying anti-elevation constraints during diff analysis that block server-only or client-only types from being promoted into the shared project.

Can I track skipped code refactoring opportunities as GitHub issues?

Yes, you can track skipped code refactoring opportunities as GitHub issues by running a diff analysis pass that surfaces intentionally ignored improvements and optionally files them as tracking issues for future work.

How do I synchronize provider lookup tables and pure helpers across an API and Blazor client?

To synchronize provider lookup tables and pure helpers across an API and Blazor client, you evaluate the diff for matching logic on both sides of the wire and consolidate the duplicated shapes into a shared project.

Does this shared library refactoring approach work with standard code review workflows?

Yes, this shared library refactoring approach works with standard code review workflows by running the base simplify pass first, then applying a shared elevation lens to identify cross-project promotion candidates without replacing the initial cleanup.