desloppify

Delete redundant abstractions and replace custom helpers with native SDK features in TypeScript/Bun/Nuxt repositories.

1.1k|189|Updated Mar 11, 2025
One-click install
npx skills add https://github.com/databuddy-analytics/Databuddy --skill desloppify-databuddy-analytics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: desloppify
Source: https://github.com/databuddy-analytics/Databuddy/tree/main/.agents/skills/desloppify
Command: npx skills add https://github.com/databuddy-analytics/Databuddy --skill desloppify-databuddy-analytics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes over-engineered TypeScript/Bun/Nuxt code by flattening abstractions, deleting duplicate helpers, and grounding logic in native SDK capabilities so that refactors focus on readability and correctness.

Core Features & Use Cases

  • Targeted Cleanup: Prioritizes correctness first, then simplicity and deletion of slop such as repeated helpers, excessive assertions, and mirror state.
  • Native Replacement Strategy: Replaces custom helper stacks with package-native behavior, Zod or schema-based validation, and Drizzle/inference typing wherever possible.
  • Use Case: When a handler or API layer is bloated with custom mappings or as unknown as casts, run desloppify to simplify inputs, remove redundant guards, and collapse duplicated helpers.

Quick Start

Ask the agent to desloppify the highlighted module to reduce custom helpers, mirror state, and redundant assertions while keeping behavior stable.

Frequently Asked Questions about desloppify

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

FAQPage Schema
How do I reduce TypeScript code bloat from redundant abstractions and duplicate helpers?

To reduce TypeScript code bloat, you can flatten abstractions and delete duplicate helpers by replacing custom logic with native SDK capabilities and Zod-based parsing. This simplification pass grounds logic in native package behavior while ensuring type inference from source schemas without sacrificing correctness.

What is the best way to replace custom helper stacks with native SDK features in a Bun repository?

The best way to replace custom helper stacks in a Bun repository is to apply a deletion-first refactor strategy. This approach substitutes custom mappings and redundant guards with package-native behavior, schema-based validation, and Drizzle type inference.

How do I remove unnecessary type assertions and mirror state boundaries in Nuxt applications?

To remove unnecessary type assertions and mirror state boundaries in Nuxt applications, apply a targeted cleanup pass that eliminates excessive `as unknown as` casts and collapses duplicated state logic. This grounds logic in schema-based validation and native type inference.

Can I use Zod to simplify API layer inputs and eliminate redundant guards in TypeScript?

Yes, you can use Zod to simplify API layer inputs and eliminate redundant guards. By replacing custom validation mappings with Zod-based parsing and schema-driven type inference, you can collapse bloated handler logic into stable, readable code.

Does simplifying TypeScript code by deleting slop affect runtime correctness in Nuxt or Bun environments?

Deleting slop in TypeScript does not affect runtime correctness because the refactoring pass prioritizes behavioral stability first. It flattens abstractions and applies native SDK replacements while ensuring correctness is maintained throughout the simplification process.