Agent Skills › trycompai/crm › zero-tech-debt

zero-tech-debt

GitHub

指导以最终理想状态重构代码,删除兼容包袱和意外复杂度。通过识别真实调用者清理死代码,重塑产品表面,统一共享规则并验证新流程,旨在消除技术债务并保持代码整洁。

.agents/skills/zero-tech-debt/SKILL.md trycompai/crm

Trigger Scenarios

重构遗留代码 清理兼容性逻辑 优化架构设计

Install

npx skills add trycompai/crm --skill zero-tech-debt -g -y
More Options

Non-standard path

npx skills add https://github.com/trycompai/crm/tree/release/.agents/skills/zero-tech-debt -g -y

Use without installing

npx skills use trycompai/crm@zero-tech-debt

指定 Agent (Claude Code)

npx skills add trycompai/crm --skill zero-tech-debt -a claude-code -g -y

安装 repo 全部 skill

npx skills add trycompai/crm --all -g -y

预览 repo 内 skill

npx skills add trycompai/crm --list

SKILL.md

Frontmatter
{
    "name": "zero-tech-debt",
    "description": "Rework a change as if the intended UX and architecture existed from day one, deleting compatibility cruft and accidental complexity.",
    "user-invocable": true
}

Zero Tech Debt

Rework the change from the intended end state, not from the historical path that produced the current patch.

Steps

  1. State the intended end state in one or two sentences.

  2. Search for real callers before preserving compatibility. If a mode, prop, wrapper, route alias, or fallback has no current caller, delete it.

  3. Reshape around the final product surface. Prefer one clear component or flow over mode flags. Split only when it creates an obvious boundary such as state, layout, controls, or domain commands.

  4. Move shared rules to one place. Feature flags, permissions, route gating, URL state, and command naming should not be duplicated across pages or hidden in view components.

  5. Verify the intended flow. Test the new behavior and any deleted assumptions that affect navigation, permissions, or persisted state.

Rules

  • Optimize for the code that should exist, not the smallest diff from the old shape.
  • Delete dead compatibility paths instead of making them better.
  • Do not invent a generic framework for one feature.
  • Keep the refactor scoped to what makes the final shape coherent.
  • Prefer names that describe product intent over implementation history.

Version History

  • c26a08d Current 2026-08-08 08:04

Same Skill Collection

.agents/skills/ai-elements/SKILL.md
.agents/skills/better-auth-best-practices/SKILL.md
.agents/skills/better-colors/SKILL.md
.agents/skills/better-interface/SKILL.md
.agents/skills/better-ui/SKILL.md
.agents/skills/better-writing/SKILL.md
.agents/skills/code-refactor-review/SKILL.md
.agents/skills/create-draft-pr/SKILL.md
.agents/skills/diffs/SKILL.md
.agents/skills/eve/SKILL.md
.agents/skills/ga-pr/SKILL.md
.agents/skills/ga/SKILL.md
.agents/skills/gh-stack/SKILL.md
.agents/skills/install-anti-slop/SKILL.md
.agents/skills/nestjs-best-practices/SKILL.md
.agents/skills/no-use-effect/SKILL.md
.agents/skills/nuqs/SKILL.md
.agents/skills/pit-of-success/SKILL.md
.agents/skills/posthog-instrumentation/SKILL.md
.agents/skills/prepare-branch-context/SKILL.md
.agents/skills/prisma-database-setup/SKILL.md
.agents/skills/shadcn/SKILL.md
.agents/skills/skill-creator/SKILL.md
.agents/skills/turborepo/SKILL.md
.agents/skills/typescript-advanced-types/SKILL.md
.agents/skills/ux-flow-plan/SKILL.md
.agents/skills/vercel-composition-patterns/SKILL.md
.agents/skills/vercel-react-best-practices/SKILL.md
.agents/skills/web-design-guidelines/SKILL.md
.agents/skills/ai-sdk/SKILL.md
.agents/skills/better-accessibility/SKILL.md
.agents/skills/better-layout/SKILL.md
.agents/skills/better-typography/SKILL.md
.agents/skills/nestjs-trpc/SKILL.md
.agents/skills/seo-audit/SKILL.md

Metadata

Files
0
Version
c9473b8
Hash
8fd8faf9
Indexed
2026-08-08 08:04

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-08 11:05
浙ICP备14020137号-1