Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

bugfixbugfix 搜索

Agent Skill

bugfix 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,546

周安装

50

GitHub Stars

公开资料未说明

下载量

67
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bugfix(bugfix 搜索)
来源仓库:https://github.com/ulpi-io/skills
仓库路径:skills/bugfix
安装命令:
npx skills add https://github.com/ulpi-io/skills --skill bugfix
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ulpi-io/skills --skill bugfix

简介

用于查找和筛选相关信息,适合基于关键词或任务场景定位内容。

  • 可在 Codex、Claude 等环境中使用,支持快速检索。
  • 安装命令:npx skills add https://github.com/ulpi-io/skills --skill bugfix。
  • 建议确认权限和维护状态,避免触发敏感操作。
  • 注意是否涉及外部系统调用或文件读写。

SKILL.md

Non-negotiable rules:

  1. Do not write fix code before you have a reproducer or a clearly documented reason reproduction is impossible.
  2. Fix the root cause, not the symptom.
  3. Keep the change minimal and scoped to the bug.
  4. Load the relevant framework reference before patching.
  5. Load references/bug-playbooks.md after classifying the bug category.
  6. Never weaken tests to make a fix pass.

Bugfix

Inputs

  • $request: Optional bug description, failing scenario, or finding selector

Goal

Resolve confirmed defects with the smallest correct change, backed by reproduction, diagnosis, targeted implementation, and regression checks.

Step 0: Detect framework and load references

Before diagnosing the bug, identify the language and framework from the buggy file's imports, the project's dependency files, and the file extension:

SignalFrameworkReference File
package.json has expressExpress.jsreferences/expressjs.md
package.json has react + JSX/TSX filesReactreferences/react.md
package.json has react-native or expoReact Nativereferences/react-native.md
package.json has nextNext.jsreferences/nextjs.md
package.json has fastifyFastifyreferences/fastify.md
package.json has honoHonoreferences/hono.md
package.json has @remix-run/reactRemixreferences/remix.md
bun.lockb or bunfig.toml presentBunreferences/bun.md
composer.json has laravel/frameworkLaravelreferences/laravel.md
go.mod presentGoreferences/golang.md
go.mod has github.com/gin-gonic/ginGo + Ginreferences/go-gin.md
go.mod has github.com/labstack/echoGo + Echoreferences/go-echo.md
go.mod has github.com/gofiber/fiberGo + Fiberreferences/go-fiber.md
.swift files, Package.swiftSwiftreferences/swift.md
Cargo.toml present, .rs filesRustreferences/rust.md
Cargo.toml has axumRust + Axumreferences/rust-axum.md
Cargo.toml has actix-webRust + Actix Webreferences/rust-actix.md
Cargo.toml has rocketRust + Rocketreferences/rust-rocket.md
.ts/.js files (no specific framework)Node.js/TypeScriptreferences/nodejs-typescript.md

Reference loading rules:

  1. Always load the base language reference (e.g., nodejs-typescript.md for Node.js, golang.md for Go, rust.md for Rust).
  2. Layer the framework-specific reference on top (e.g., read both nodejs-typescript.md and expressjs.md for Express; both rust.md and rust-axum.md for Axum).
  3. React Native includes React -- read both react.md and react-native.md.
  4. Next.js and Remix include React -- read both react.md and the framework file.
  5. Go frameworks layer on Go -- read both golang.md and the framework file.
  6. Rust frameworks layer on Rust -- read both rust.md and the framework file.
  7. If the framework is unclear, fall back to the language-level reference.

Success criteria: The relevant language and framework references are loaded before diagnosis begins.

Step 1: Parse and select the bug

Accept any of these inputs:

  • verified /find-bugs findings
  • user bug reports
  • failing tests
  • runtime crashes or build failures encountered during work

Extract:

  • symptom
  • trigger
  • expected behavior
  • likely file or subsystem
  • severity if provided
  • whether the task is a single bug or a batch

For /find-bugs output:

  • extract only the findings the user asked to fix
  • sort by severity and dependency
  • group findings that touch the same file or function

If the request does not describe a confirmed bug, stop and clarify instead of patching blindly.

Success criteria: The bug scope is explicit enough to reproduce and fix.

Step 2: Reproduce the bug first

Create or locate the smallest relevant test close to the affected code.

Required loop:

  1. write a failing test for the exact bug scenario
  2. run only that reproducer
  3. confirm it fails for the expected reason
  4. add closely related edge-case tests only if they directly protect the fix

If you cannot reproduce:

  • check environment assumptions
  • check exact triggering input
  • check whether the code has already changed since the report
  • check whether the bug is intermittent or concurrency-related
  • if it still cannot be reproduced, stop and report what you tried

Success criteria: You have a failing reproducer, or a precise explanation of why reproduction is blocked.

Step 3: Diagnose the root cause

Read the full local context:

  • the affected function or module
  • direct callers
  • direct dependencies
  • nearby tests
  • relevant type definitions or contracts

Then:

  1. trace data flow from entry point to failure point
  2. identify the first broken assumption in the chain
  3. map the blast radius:

- callers - importers - dependent tests - public APIs or contracts affected

  1. classify the bug category

Bug categories:

  • Injection
  • XSS
  • Auth/AuthZ
  • Null safety
  • Race condition
  • Boundary / off-by-one
  • Async / Promise
  • Type safety
  • Resource leak
  • Logic / business rule

After classification, read references/bug-playbooks.md and use the matching section.

Success criteria: You can state the root cause in one sentence and name the correct fix playbook.

Step 4: Plan the minimal fix

Design the smallest change that fixes the root cause.

Check before editing:

  • which files must change
  • which callers or dependents are affected
  • whether a public API or type changes
  • whether the fix needs defense-in-depth
  • whether the fix should be split by dependency order in a batch

For significant fixes, present a short plan before patching:

  • bug
  • root cause
  • category / playbook
  • blast radius
  • reproducer
  • intended files to change

Success criteria: The planned change is clearly smaller than a refactor and directly tied to the root cause.

Step 5: Implement the fix

Implementation rules:

  • patch the smallest surface that resolves the bug
  • follow the category playbook from references/bug-playbooks.md
  • follow the loaded framework reference
  • do not mix in cleanup, style fixes, or feature work
  • do not blindly copy the /find-bugs suggestion without checking the code

After each logical edit:

  1. run the reproducer
  2. confirm movement toward green
  3. finish the dependency chain if the fix changes callers or contracts

Success criteria: The reproducer turns from failing to passing for the right reason.

Step 6: Verify against regressions

After the reproducer is green:

  1. run the affected test scope
  2. run broader tests if the blast radius crosses module or package boundaries
  3. run type checking or equivalent static verification
  4. run the category-specific verification checklist from references/bug-playbooks.md
  5. check for debug artifacts and accidental cleanup changes

If the fix causes unrelated failures, stop and re-diagnose before expanding scope.

Success criteria: The fix is green locally, category-specific checks pass, and no obvious regressions were introduced.

Step 7: Handle multi-bug batches carefully

For multiple findings:

  • group by file, function, and dependency
  • fix dependent findings in order
  • fix independent findings by severity
  • run verification after each group, not only at the end
  • if one fix resolves another finding, say so explicitly instead of pretending both required separate patches

Success criteria: Batch work remains reviewable and regressions are caught early.

Step 8: Report the result

For each bug fixed, report:

  • root cause
  • category / playbook used
  • files changed
  • reproducer test
  • verification completed
  • any remaining risk or deferred follow-up

Include a summary with:

  • bugs fixed
  • tests added or updated
  • files modified
  • whether broader verification passed

If a bug was not fixed, say exactly why:

  • could not reproduce
  • insufficient information
  • root cause is upstream
  • fix requires architectural change beyond bugfix scope

Success criteria: Another engineer can understand what was fixed, why it was fixed that way, and how it was verified.

Guardrails

  • Do not fix without a reproducer unless you explicitly document why reproduction is impossible.
  • Do not fix the symptom if the root cause is still present.
  • Do not weaken or skip tests.
  • Do not mix refactors with bugfixes.
  • Do not convert bugfix work into feature work.
  • Do not leave broad TODOs instead of finishing the actual fix.

When To Load References

  • Framework references: load the relevant language and framework docs in Step 0.
  • references/bug-playbooks.md: load after classifying the bug in Step 3.

Output Contract

Keep the response focused on execution and proof:

  1. what bug is being fixed
  2. what reproduced it
  3. what root cause was found
  4. what changed
  5. how the fix was verified

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.94%
按下载量换算23

Claude

32.94%
按下载量换算22

Cursor

21.29%
按下载量换算14

Gemini CLI

9.13%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills