Skip to content
Back to skills

Cs Issue

ASecurity

修 bug 的子流程入口。默认快速定位并留下 fix-note;根因不明、影响面大或用户要求完整留档时才补 report / analysis。触发:用户说"修 bug"、"有个问题"、"修复 XX"。只做路由。

  • 225 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added September 4, 2026
code-qualitygit

Security analysis

A100/100

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

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill cs-issue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cs Issue?

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

Security grade badge for Cs Issue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-cs-issue/badge)](https://www.skillsdirectory.com/skills/neversight-cs-issue)

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: cs-issue
description: 修 bug 的子流程入口。默认快速定位并留下 fix-note;根因不明、影响面大或用户要求完整留档时才补 report / analysis。触发:用户说"修 bug"、"有个问题"、"修复 XX"。只做路由。
---

# cs-issue

## 启动必读

开始任何判断或动作前,先读取 `.codestable/attention.md`;缺失则视为骨架不完整,提示先补齐或运行 `cs-onboard`,不要回退到外部 AI 入口文件。

修 bug 直觉是"找到错的地方改了完事",但这个直觉路径反复制造同样的麻烦:

1. 问题描述只在脑子里改完就忘——三个月后 bug 再现没复现步骤留存
2. 根因没分析就动手——改了表面现象深层问题等下次爆发
3. 修复范围扩散——发现一个 bug 顺手改五处引入新问题,无法追溯
4. 没验收闭环——怎么判断改好了?改好了什么?没记录

issue 工作流默认不塞完整缓冲。根因明确的小 bug 直接走快速通道:

```
读代码 → 告知根因 + 修复方案 → 用户确认 → 修复验证 → fix-note
```

只有根因不明 / 多候选 / 跨模块影响时,才走标准缓冲:

```
发现问题 → 清晰记录(report)→ 根因分析(analyze)→ 定点修复 + 验证(fix)
```

本技能不写任何东西,只看当前 issue 走到哪步、决定触发哪个子技能。

---

## 文件放哪儿

```
.codestable/issues/{YYYY-MM-DD}-{slug}/
├── {slug}-report.md           ← 阶段 1 问题报告
├── {slug}-analysis.md         ← 阶段 2 根因分析
└── {slug}-fix-note.md         ← 阶段 3 修复记录(必出产物)
```

日期取**发现 / 提报问题当天**定了不动。slug 能一眼看出是什么问题(`auth-token-leak`、`null-pointer-on-empty-list`)。

`{slug}-fix-note.md` 是阶段 3 **必出产物**——无论修复简单还是复杂都要写。它不是仪式,是回溯凭证:没有它下次类似问题来你只能从 git log 反推。

所有 issue 文档带 YAML frontmatter(`doc_type` 分别为 `issue-report` / `issue-analysis` / `issue-fix`)便于 `search-yaml.py` 按 severity / tags / status 检索。

---

## 两条路径

### 默认快速通道(问题简单、根因一眼确定)

同时满足就走:

1. AI 读完代码后对根因高度有把握(能明确指出 file:line + 原因)
2. 修复改动很小(1-2 处)
3. 无跨模块影响风险

流程压缩成:AI 读代码 → 直接告知根因 + 修复方案 → 用户确认 → AI 修复 → 用户验证通过 → AI 写 `{slug}-fix-note.md`。只产出一份 `fix-note.md`,省掉 report 和 analysis。

**不能**走快速通道:根因有多个候选 / 修复范围涉及多模块 / 需要先复现才能定位 / 用户希望留完整分析存档。

### 标准路径(问题复杂或根因不明)

| 阶段 | 子技能 | 主导 | 产出 |
|---|---|---|---|
| 1 问题报告 | `cs-issue-report` | 用户描述,AI 引导 | `{slug}-report.md` |
| 2 根因分析 | `cs-issue-analyze` | AI 读代码分析,用户确认 | `{slug}-analysis.md` |
| 3 修复验证 | `cs-issue-fix` | AI 按分析定点修复,用户验证 | 代码 + `{slug}-fix-note.md` + scoped-commit |

阶段间有人工 checkpoint——让用户在每阶段结束有一次明确把关,防止 AI 一口气从问题跑到代码跑出来才发现走偏。

---

## 路由

进入本技能先 Glob `.codestable/issues/`,自己读已有文件才有数。

| 当前状态 | 触发哪个子技能 |
|---|---|
| 刚发现问题,没有任何文件,且根因可快速确认 | 直接走快速通道:读代码后进入 `cs-issue-fix` |
| 刚发现问题,但根因不明 / 影响面大 / 用户要完整记录 | `cs-issue-report` |
| `report.md` 已存在,没 `analysis.md` | `cs-issue-analyze` |
| `analysis.md` 已存在,代码还没改 | `cs-issue-fix` |
| 代码已改,还没修复验证记录 | `cs-issue-fix`(走验证) |
| 不确定 | 自己读已有文件按上表对号 |

用户描述的是**新功能需求而不是 bug** → 告诉用户走 `cs-feat`。

---

## 与 feature 工作流的边界

- issue:本来应该好的东西坏了——已有代码里的 bug / 异常行为 / 文档错误 / 性能问题
- feature:从来没有的东西要加进来——新功能 / 新能力

灰色地带:修 issue 过程中发现需要新增能力才能真正解决——**先用 issue 工作流把记录和分析做完,再视情况开 feature**。不在 issue 里偷偷做新功能,理由跟 feature 不在 PR 里偷偷修 bug 一样:混着改分不清这次到底改了什么范围。

---

## 相关文档

- `.codestable/reference/system-overview.md` — CodeStable 体系总览
- `.codestable/reference/shared-conventions.md` — 跨阶段共享口径
- `.codestable/attention.md` — CodeStable 启动注意事项和项目硬约束
- `.codestable/architecture/ARCHITECTURE.md` — 根因分析时可能要查

Files in this skill

  • SKILL.md4.9 KB
  • description_ar.txt554 B
  • description_cn.txt295 B
  • description_de.txt448 B
  • description_en.txt229 B
  • description_es.txt382 B
  • description_fr.txt441 B
  • description_it.txt392 B
  • description_ja.txt557 B
  • description_ko.txt423 B
  • description_ru.txt714 B
  • description_tw.txt301 B
  • stats.json68 B

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.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.