跳到正文
cccskills
免费在 GitHub 公开

cc-fix

Run the bug fix workflow — risk-based routing through task validation, implementation, testing, and optional review.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Bug Fix Workflow

Bug description: $ARGUMENTS

Provide the following information in $ARGUMENTS:

  • What is the incorrect behavior (actual)
  • What is the expected behavior
  • Steps to reproduce
  • Environment or version where the bug occurs (if known)
  • Any relevant error messages or stack traces

Web interface scope

Same web scope as cc-feature: when the fix concerns web layout, component states, feedback, motion, or a requested UI audit, apply skill web-design-engineering during test/implementation and review; keep this workflow's gates and TDD order. See cc-feature for the full scope rule.

Android phone interface scope

Same Android scope as cc-feature: when the fix concerns concrete Jetpack Compose phone UI or a requested UI audit, apply skill android-ui-design during test/implementation and review; keep this workflow's gates and TDD order. See cc-feature for the full scope rule.

Step 1 — Task Card validation (task-coach)

Invoke task-coach with the bug description above.

task-coach must produce a Task Card that includes:

  • A clear statement of actual vs. expected behavior
  • Reproduction steps (or a note that they are unknown)
  • Risk classification: low, medium, or high
  • Scope: which files or modules are likely affected

If reproduction steps are missing, task-coach must ask for them before classifying risk. A bug without a reproduction path cannot be classified reliably.

STOP here. Show the Task Card and wait for human confirmation.


Step 2 — Route by risk

Read the risk field from the Task Card and follow the corresponding route.

Low-risk route

Applies when: the bug is isolated to a single component, existing tests cover the affected code, and no public API or shared state is involved.

Route: task-coach → tester → implementer

Proceed directly to Step 3.

Medium or high-risk route

Applies when: the bug touches shared state, a public API, auth or payment paths, database writes, or the root cause is not yet understood.

Route: task-coach → architect → tester → implementer → reviewer

Invoke architect before implementation. architect must:

  • Identify the root cause (or document that it is unknown)
  • Define the fix approach and affected files
  • Flag any regression risk to adjacent components
  • Produce a Technical Plan

STOP here if high-risk. Show the Technical Plan and wait for human approval before continuing.


Step 3 — Regression tests (tester)

Invoke tester for all risk levels.

tester must:

  1. Write a regression test that reproduces the original bug (fails before the fix, passes after)
  2. Verify that existing tests still pass
  3. Produce a Coverage Summary: test added, case covered

Step 4a — Implementation, low-risk (implementer)

Invoke implementer with the Task Card and the failing regression test from Step 3. Implementer creates a Git Worktree before touching any file; all edits happen inside it.

implementer must:

  1. Locate the defect using the reproduction steps
  2. Apply the minimal fix to make the regression test pass — no unrelated changes
  3. Run the test suite
  4. Produce an Implementation Summary: root cause, fix applied, files changed

Step 4b — Implementation, medium/high-risk (implementer)

Invoke implementer with the approved Technical Plan, the Task Card, and the failing regression test from Step 3. Implementer creates a Git Worktree before touching any file; all edits happen inside it.

implementer must follow the plan exactly. Any deviation requires a new Technical Plan approval. After implementation, run the full test suite.


Step 5 — Review (reviewer) — medium/high-risk only

Invoke reviewer with the diff and Task Card.

reviewer produces a Review Report with CRITICAL / WARNING / SUGGESTION findings. If any CRITICAL findings exist, STOP. Do not close the fix until they are resolved.


Completion

Report: Task Card, Implementation Summary, regression test added, Review Report (if applicable). The fix is complete only when: the regression test passes, the full suite passes, and no CRITICAL review findings remain.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when adding monitoring, metrics, logging, or tracing to Spring AI or LLM integration code. Covers token tracking, latency measurement, cost estimation, and prompt/response logging. Use when user mentions AI monitoring, token costs, or LLM observability.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月20日 更新

android

免费

Provides expert knowledge for building modern native Android apps using Kotlin, Jetpack Compose, Material Design 3, MVI architecture, Hilt dependency injection, and Media3/ExoPlayer.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月20日 更新

Design, implement, review, and audit Android Jetpack Compose UI/UX for phone interfaces. Use when a request concerns concrete Compose layout, components, interaction, accessibility, or visual behavior. Do not activate for framework or dependency presence alone; non-UI Android work is excluded.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月20日 更新

Provides expert knowledge for designing, implementing, and managing REST API versioning strategies with deprecation workflows.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月20日 更新

astro

免费

Provides expert knowledge for building Astro 5+ sites with Islands Architecture, Content Collections, TypeScript, and performance-first rendering strategies.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月20日 更新

Audits token storage mechanisms to prevent XSS-based JWT theft.

中文简介正在准备中。当前显示原文说明。

lgzarturo/springboot-course32026年10月20日 更新

查看 lgzarturo 的全部技能

报告此技能的问题