Skip to content
Back to skills

Fec Code Smells

ASecurity

需要在不修改业务代码的前提下诊断既有前端代码的结构性可维护性问题,并要求提供证据、误判检查与候选重构方向时。

  • 21 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
developmentrefactoring

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add bovinphang/frontend-craft --skill fec-code-smells --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fec Code Smells?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fec Code Smells
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bovinphang-fec-code-smells/badge)](https://www.skillsdirectory.com/skills/bovinphang-fec-code-smells)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fec-code-smells
description: 需要在不修改业务代码的前提下诊断既有前端代码的结构性可维护性问题,并要求提供证据、误判检查与候选重构方向时。
---

# 代码坏味道诊断

## 概览
基于具体证据诊断结构问题。坏味道是进一步调查的信号,不等于必须修改代码的结论。

## 执行流程
1. 明确分析范围和项目事实。
2. 收集结构、依赖方向、职责和变化耦合证据。
3. 对照[坏味道目录](references/smell-catalog.md)。
4. 执行[误判检查](references/detection-guide.md)。
5. 根据[坏味道到重构手法映射](references/smell-to-refactoring-map.md)报告置信度、影响和候选方案。
6. 如果用户只要求诊断,不修改业务代码。

## Finding 输出契约
每项必须包含位置、证据、坏味道 ID/名称、影响、置信度(`HIGH`、`MEDIUM`、`LOW`)、候选重构、优先级和重要误判因素。`LOW` 置信度不能作为自动修改依据。

## 快速索引
| 需要 | 资料 |
| --- | --- |
| 24 种标准坏味道 | [坏味道目录](references/smell-catalog.md) |
| 证据与误判保护 | [检测指南](references/detection-guide.md) |
| 候选重构手法 | [映射指南](references/smell-to-refactoring-map.md) |

## 常见错误
- 把指标阈值当成坏味道证据。
- 不指出文件/符号就下结论。
- 把所有循环、switch、注释、包装层或管道都视为缺陷。
- 用户要求只诊断时仍直接改代码。

Files in this skill

  • SKILL.md1.5 KB
  • references/detection-guide.md1.3 KB
  • references/smell-catalog.md32.2 KB
  • references/smell-to-refactoring-map.md8.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…