Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

hard-fix硬修复

Agent Skill

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

总安装

188

周安装

8

GitHub Stars

公开资料未说明

下载量

66
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/nielsmadan/agentic-coding --skill hard-fix

简介

hard-fix 用于查找、检索和筛选相关信息,适合根据关键词快速定位候选结果。

  • 适用于 Codex、Claude、Cursor 和 Gemini CLI 中需要线索驱动搜索的任务场景。
  • 通过 GitHub 安装,使用 npx skills add 命令添加技能。
  • 使用前需确认权限范围、维护状态,以及是否触发联网、命令执行或文件读写。
  • 建议结合来源仓库和原始 README 进一步核验具体功能和限制。

SKILL.md

Hard Fix

Comprehensive investigation workflow for bugs that resist normal debugging.

Usage

/hard-fix login keeps failing after auth changes
/hard-fix race condition in checkout - tried 3 fixes already
/hard-fix                              # Uses recent conversation context

Do NOT shortcut this workflow:

  • "I think I already know the fix" -- If you knew, you wouldn't need this skill
  • "Let me just try one more thing first" -- You've already tried. Follow the systematic process
  • "I only need one of these investigation methods" -- Parallel investigation is the point, run ALL agents

Circuit Breaker Rule: If 3 sequential fix attempts have failed for the same issue:

  1. STOP attempting more fixes
  2. Document what was tried and why each failed
  3. This signals a systemic/architectural issue, not a localized bug
  4. Recommend architectural review rather than continuing to patch

Gotchas

  • Phase 0 doc search uses 2>/dev/null on docs/log/ — if the directory doesn't exist, the search silently returns nothing and gives false confidence there are no prior known issues.
  • Phase 7 logging requires user confirmation that the fix works. If the session ends before confirmation, no log is written and the institutional knowledge loop breaks.

Workflow

Phase 0: Pre-Check Internal Documentation

Before full investigation, check internal docs for known issues and gotchas:

Check past issues:

grep -ri "<keywords>" docs/log/ 2>/dev/null | head -10
ls -la docs/log/ 2>/dev/null | grep -i "<related_terms>"

Check project documentation:

grep -ri "<keywords>" docs/ *.md 2>/dev/null | head -10

Look for documented gotchas, known issues, or patterns related to the problem area.

If a matching past issue is found:

  1. Read the full log file
  2. Present the previous solution to the user
  3. Ask: "We encountered this before. Should I apply the previous solution, or run a fresh investigation?"

If relevant documentation is found:

  1. Read the relevant sections
  2. Check if documented patterns/gotchas apply to this issue

If no match or user wants fresh investigation, continue.

Phase 1: Gather Context

Ask clarifying questions if needed:

  • What behavior are you seeing vs. expecting?
  • What fixes have already been tried?
  • When did this start happening? (recent change, always broken, etc.)
  • Are there error messages or logs?

Keep questions minimal - only ask what's essential.

Phase 2: Parallel Investigation

Launch ALL of these simultaneously using the Task tool:

AgentSkill/ToolFocus
Researchresearch-onlineExternal solutions, known issues, library bugs
Debugdebug-logAdd logging to trace the actual execution path
Historyreview-historyGit blame, recent changes, past issue logs
Library SourceRead library codeUndocumented behavior, actual implementation
Opinion 1second-opinionFresh perspective on the problem

For detailed agent prompt templates, see references/templates.md.

Phase 3: Synthesize Findings

Wait for all agents. Combine into a root cause theory with evidence.

The synthesis must trace to mechanism, not stop at symptoms — good synthesis names the root cause with corroborating evidence from multiple agents (debug timing, git history, library source, research). See references/templates.md for BAD/GOOD synthesis examples.

Phase 4: Validate Theory

Run second-opinion with your synthesis and proposed fix. Check for blind spots.

Phase 5: Present to User

For the presentation template, see references/templates.md.

Ask: "Should I proceed with the recommended fix?"

Phase 6: Implement and Verify

  1. Implement the recommended fix
  2. Keep all debug logging in place — do NOT remove debug logs added during investigation
  3. Ask user to test/verify
  4. Wait for user confirmation that the fix worked
  5. Only after user confirms the fix works, remove the debug logging added in Phase 2

Do NOT remove debug logs until user confirms the fix is working. If the fix fails, the logs are essential for the next investigation round. Do NOT proceed to Phase 7 until user confirms the fix is working.

Phase 7: Log for Future Reference (after user confirms fix)

Only after user confirms fix works, write to docs/log/YYYY-MM-DD-{Issue}.md.

For the log template, see references/templates.md.

Examples

Token refresh bug after multiple failed fix attempts:

/hard-fix auth token refresh fails silently after 3 fix attempts

Launches parallel agents: research finds a known axios issue with token queuing, debug-log traces the refresh timing, history reveals the bug started after PR #234 moved refresh to background, and library source confirms axios doesn't queue requests during refresh. Synthesizes a root cause (race condition) with a concrete fix using axios-auth-refresh.

Race condition traced to library update via git history:

/hard-fix race condition in order processing since last deploy

History agent pinpoints a dependency bump that changed default concurrency behavior. Debug logging captures the interleaved execution order, and library source inspection confirms the breaking change in the new version. Presents the version diff and a targeted fix to restore the previous behavior.

Troubleshooting

Parallel investigation agents do not converge on root cause

Solution: Run second-opinion with a consolidated summary of all agent findings and the conflicting theories. If agents still disagree, prioritize the evidence from the debug-log agent (actual runtime behavior) over static analysis, and test the most likely theory first.

Root cause is in a third-party dependency

Solution: Pin the dependency to the last known working version as an immediate fix, then file an issue upstream with reproduction steps. If a patch is needed sooner, fork the dependency or apply a local patch using patch-package (JS) or the equivalent for your ecosystem.

Notes

  • This is a heavyweight process - use for genuinely stuck problems
  • The parallel investigation is key - each source provides different insights
  • Only log confirmed fixes - don't log until user verifies it works
  • Past issue logs are gold - check them first

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.28%
按下载量换算23

Claude

30.93%
按下载量换算20

Cursor

20.73%
按下载量换算14

Gemini CLI

8.52%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills