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

bugfix-crate错误修复箱

Agent Skill

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

总安装

533

周安装

22

GitHub Stars

公开资料未说明

下载量

174
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

bugfix-crate 针对 Rust crate 缺陷实施逐项修复与回归测试双重保障机制。

  • 适用于开源库维护者确保每次改动不影响现有功能稳定性。
  • 强制要求先写失败测试再实施修复,遵循 TDD 理念控制变更风险。
  • 每次修改后运行 clippy 检查代码风格一致性,维持项目健康度指标。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Non-negotiable rules:

  1. Fix one finding at a time.
  2. For behavioral bugs, write the failing regression test before the fix.
  3. Run crate tests and clippy after every fix.
  4. Do not mark a finding fixed without the required verification.
  5. Use the rust skill for crate-specific coding conventions before changing Rust code.

bugfix-crate

Inputs

  • $issues_file: Path to the crate findings file

Goal

Work through a crate issue file sequentially and leave behind:

  • a verified fix for each resolved finding
  • regression coverage for each behavioral fix
  • a passing crate test suite
  • an updated issue file showing what was fixed, deferred, or rejected as not-a-bug

Step 0: Establish the baseline

Before editing:

  • read the entire issue file
  • determine the target crate name and path
  • invoke rust for relevant conventions
  • read crate-local CLAUDE.md or testing guidance if present
  • run baseline cargo test -p <crate>
  • run baseline cargo clippy -p <crate> -- -D warnings

Success criteria: The crate, issue file, and baseline state are explicit before the first fix.

Step 1: Process one finding at a time

For each unresolved finding:

  • read the cited file and surrounding context
  • determine whether it is behavioral, API, dead-code, doc-only, deferred, or not-a-bug
  • if it is a behavioral or API fix, write the failing test first
  • verify the test fails before changing the implementation

Do not batch findings.

Success criteria: Each finding has a concrete resolution path before any fix lands.

Step 2: Apply the smallest correct fix

Make the minimum code change that addresses the root cause.

Rules:

  • do not batch adjacent refactors
  • do not weaken existing tests
  • do not hide warnings with #[allow(...)]
  • if you uncover another real bug in the touched area, fix it in the same pass and add it to the issue file

Success criteria: The fix addresses the root cause without broad collateral edits.

Step 3: Verify and mark status

After each fix:

  • run cargo test -p <crate>
  • run cargo clippy -p <crate> -- -D warnings
  • update the issue file:

- **[FIXED]** for verified fixes - Deferred: <reason> for real out-of-scope fixes - Not a bug: <reason> for invalid findings

Do not mark a finding fixed before the verification pass completes.

Success criteria: The issue file and crate state stay in sync after every finding.

Step 4: Finish only when the issue file is resolved

At the end:

  • confirm every finding has a terminal status
  • confirm the crate still passes tests and clippy
  • summarize resolved, deferred, and rejected findings

Success criteria: The issue file is fully triaged and the crate is green.

Guardrails

  • Do not use worktree agents for same-crate fixing.
  • Do not run this skill proactively; it is explicit-user-only.
  • Do not mark behavioral bugs fixed without regression coverage.
  • Do not replace a real fix with comments, warnings, or documentation.
  • Do not batch multiple findings in one verification loop.

Output Contract

Report:

  1. crate and issue file processed
  2. baseline test and clippy state
  3. per-finding outcome
  4. final test and clippy state
  5. any newly discovered findings added during repair

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.5%
按下载量换算64

Claude

29.19%
按下载量换算51

Cursor

21.23%
按下载量换算37

Gemini CLI

10.42%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/ulpi-io/skills --skill bugfix-crate 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills