fec-refactor-clean SKILL.md skillA
fec-refactor-clean from bovinphang/frontend-craft is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add bovinphang/frontend-craft/fec-refactor-clean@git:20260901.387d97aPins git:20260901.387d97a in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- bovinphang/frontend-craft
- Path
localized/zh-CN/skills/fec-refactor-clean/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260901.387d97a, committed Sep 1, 2026
- First version recorded
- Jun 11, 2026
- Size
- 3,296 bytes
- Repository stars
- 22
- License
- MIT
用于安全移除前端死代码、未使用导出、陈旧组件、废弃路由、未使用依赖,或由 knip、depcheck、ts-prune、TypeScript、ESLint、人工审查发现的清理目标。不要用于会改变行为的功能重写;中文触发词包括 死代码、清理未使用、refactor clean、依赖清理、删除无用代码。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 重构清理 ## 用途 在验证保护下识别并清理无用前端代码,减少技术债,同时避免误删动态引用、路由入口、配置文件和运行时约定。 ## 流程 1. 先建立基线:运行或确认当前 lint、type-check、test、build 的状态。 2. 收集候选项: - 优先使用仓库已有工具,如 knip、depcheck、ts-prune、eslint、TypeScript。 - 没有工具时,用 `rg` 检查引用、导出、路由、注册点和文档入口。 3. 按风险分类: - SAFE:测试夹具、未引用工具函数、明确未导出的私有组件。 - CAUTION:共享组件、feature 入口、样式文件、Storybook stories。 - DANGER:路由、配置、package scripts、运行时模板、动态 import、插件元数据。 - UPGRADE:过期依赖、重复依赖、未使用依赖和安全告警先进入依赖升级或依赖清理评估,不与死代码删除混做。 4. 只自动处理 SAFE 项;CAUTION 和 DANGER 需输出建议和证据,不直接删除。 5. 每批清理后运行受影响验证命令。 6. 若验证失败,停止扩大清理范围,先定位该批次。 7. 清理结束后做行为等价复核:公开 API、路由、命令、模板、metadata、文档示例和报告输出仍可被引用。 8. 对技术债排序:优先清理有验证保护、影响开发效率或阻塞升级的项目;低证据的大范围重写只输出建议。 ## 前端专项检查 - 检查 JSX/模板字符串、路由配置、barrel export、Storybook、测试、文档示例和动态组件注册。 - 样式文件需检查 className、CSS Modules、Tailwind safelist、全局选择器和主题变量。 - 依赖清理需检查构建插件、运行时模板、CLI scripts、monorepo 子包和 peer dependency。 ## 约束 - 不改变用户可见行为。 - 不删除无法证明无引用的公开 API、路由、模板或配置。 - 不用“一次大删除”替代可验证的小批次清理。 - 不把格式化、重命名或架构重写混入死代码清理。 - 不用“看起来没人用”作为证据;必须有搜索、工具输出、类型错误消失或测试保护。 - 不把依赖大版本升级伪装成清理;升级风险、release notes 和 lockfile 变更应分流到依赖升级工作流。 ## 详细参考 撰写清理报告时,加载 [references/report-template.md](references/report-template.md)。 ## 预期输出 - 清理报告保存为 `reports/refactor-clean-YYYY-MM-DD-HHmmss.md`。 …
Read the whole file at its exact version.
How to install
mdr add bovinphang/frontend-craft/fec-refactor-clean@sha256:549b04bd5d258e29The line at the top of this page pins the label git:20260901.387d97a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_kf2icdo2n72ccaln)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Jun 11, 2026 and Sep 1, 2026, about one every 82 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260901.387d97a latest | 2026-09-01 | 387d97a | 3,296 B | A | view · diff |
| git:20260611.9d7f5e4 | 2026-06-11 | 9d7f5e4 | 2,969 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3296 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
bovinphang/frontend-craft · 22 stars · license MIT · pushed 2026-09-26 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_kf2icdo2n72ccaln GET https://markdownregistry.com/api/v1/resolve?ref=bovinphang/frontend-craft/fec-refactor-clean GET https://markdownregistry.com/api/v1/blob/549b04bd5d258e2935ba8fbf64d2e0b9222dcfe63173eeaa57377e54cd5859fa
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from bovinphang/frontend-craft
Every file in bovinphang/frontend-craft