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

wtf.hotfixwtf 修补程序

Agent Skill

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

总安装

220

周安装

9

GitHub Stars

3

下载量

71
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/xiduzo/wtf --skill wtf.hotfix

简介

wtf.hotfix 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 它支持基于关键词、任务场景或来源线索进行信息聚合与过滤,适用于紧急修复相关研究。
  • 通过 npx skills add 命令从 GitHub 仓库安装,具体用法需结合原始 README 进一步确认。
  • 安装前请核实权限范围、维护状态,并注意是否涉及联网、命令执行或文件读写操作。
  • wtf.hotfix 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Hotfix

Emergency fix path that bypasses the normal Epic→Feature→Task hierarchy. Core value: gets a narrow, well-understood fix into production as fast as possible while still maintaining a test, a commit trail, and a PR review.

When to use vs. when not to use

Use when: something is broken in production, the fix is narrow and well-understood, and waiting for the full workflow is not acceptable.

Do not use when: the fix is large, the scope is unclear, or the change needs design review — use wtf.write-epic + wtf.write-task instead.

Process

0. GitHub CLI setup

Run steps 1–2 of ../references/gh-setup.md. Stop if gh is not installed or not authenticated.

1. Identify the bug

If a bug issue number was passed in, fetch it:

gh issue view <bug_number>

If no issue exists yet, ask in a single message:

  • "What is broken? (one sentence)"
  • "What is the user impact? (e.g. data loss, revenue impact, all users blocked, subset of users)"
  • "Is there an existing bug issue, or should I create one?"

If no issue exists, follow the Fast path section of wtf.report-bug (Gherkin derivation and Ubiquitous Language mapping are skipped — the goal is to file the issue fast).

2. Confirm hotfix scope

A hotfix must be:

  • Narrow: touches the minimum files necessary to fix the specific breakage
  • Non-breaking: no API contract changes, no schema migrations unless strictly required
  • Testable: at least one automated test can verify the fix

Call AskUserQuestion with:

  • question: "Does this fix meet the hotfix criteria? (narrow, non-breaking, testable)"
  • header: "Scope check"
  • options: [{label: "Yes — proceed", description: "Create the hotfix branch and start the fix"}, {label: "Not sure — it may be larger than that", description: "Use the normal workflow instead"}]

If "Not sure" → exit. Suggest wtf.write-task as the next step.

3. Load the technical steering document

Use the Read tool to attempt reading docs/steering/TECH.md. If it exists, apply its stack constraints, coding patterns, and test commands silently throughout this session.

4. Set up the hotfix branch

git fetch origin
git checkout main
git pull --rebase origin main
git checkout -b hotfix/<bug-number>-<slug>
git push -u origin hotfix/<bug-number>-<slug>

Where <slug> is a 2–4 word kebab-case description of the fix (e.g. null-check-payment-id). Print the branch name.

5. Explore the codebase

Use the Agent tool to find:

  • The specific file(s) responsible for the breakage
  • Existing tests covering the broken behavior (or noting their absence)
  • Contracts or interfaces the fix must preserve without changing

Do not expand scope based on what you find. If the fix turns out to be larger than expected, surface it as a gate in step 6.

6. Scope gate

If exploration reveals the fix touches more than 3–4 files, requires changing an API contract, or requires a schema migration, surface it before writing any code:

Call AskUserQuestion with:

  • question: "This fix is larger than a typical hotfix — [describe what was found]. How do you want to proceed?"
  • header: "Scope gate"
  • options: [{label: "Proceed as hotfix", description: "Accept the larger scope — I understand the risk"}, {label: "Switch to normal flow", description: "Exit and use write-epic + write-task instead"}]

7. Implement the fix

Write the failing test first (one test per broken behavior), then implement the minimum fix to make it pass. Follow the TDD cycle from wtf.implement-task step 8.

Run the full test suite after the fix:

# Run project test command (from TECH.md or package.json scripts)

If unrelated tests fail: do not block — record them in the PR body as pre-existing failures.

Commit per ../references/commit-conventions.md. The commit message uses a Bug: trailer; the Closes #<n> keyword lives in the PR body, not the commit:

git add <changed files>
git commit -m "fix(<scope>): <description>

Bug: #<bug_number>"

8. Open the PR

Write the body to a temp file, then create the PR targeting main:

# Ensure the hotfix label exists
gh label create hotfix --color e11d48 --description "Emergency fix targeting main directly" 2>/dev/null || true

gh pr create \
  --title "fix(<scope>): <description>" \
  --body-file /tmp/wtf.hotfix-<bug_number>-body.md \
  --base main \
  --label "hotfix"

PR body must include:

  • Related: closure keywords per ../references/commit-conventions.md — one Closes #<n> per line, always include Closes #<bug_number>.
  • Impact: what was broken and who was affected.
  • Root cause: what caused it.
  • Fix: what was changed and why it's safe.
  • Risk: what could be affected by this change.
  • Pre-existing failures (if any): unrelated tests that were already failing before this change.

Print the PR URL.

9. Offer backport

If the project uses release branches, offer to backport:

Call AskUserQuestion with:

  • question: "Should this fix be backported to a release branch?"
  • header: "Backport"
  • options pre-filled from git branch -r | grep -iE 'release|v[0-9]' (limit 5), plus {label: "No backport needed", description: "main only"}.

If a backport branch is selected — wait until the hotfix PR merges, then:

git checkout <release-branch>
git pull --rebase origin <release-branch>
git cherry-pick <hotfix-commit-sha>
git push origin <release-branch>

10. Report status

Print:

Hotfix
──────────────────────────────────
Branch:   hotfix/<slug>
PR:       <url>
Closes:   #<bug_number>
Target:   main
Backport: <branch> or —

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

33.23%
按下载量换算24

Claude

28.72%
按下载量换算20

Cursor

20.22%
按下载量换算14

Gemini CLI

9.44%
按下载量换算7

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills