Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问clear审计未展示

apex_debugapex 调试

Agent Skill

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

总安装

367

周安装

15

GitHub Stars

公开资料未说明

下载量

118
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add benredmond/apex --skill "apex:debug"

简介

apex_debug 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 适用于研究检索类任务,支持基于来源仓库和安装命令核验具体用法。
  • 通过 npx skills add benredmond/apex --skill "apex:debug" 安装,需确认权限范围和联网行为。
  • 建议在使用前检查维护状态,避免触发不必要的文件读写或命令执行。
  • 可结合原始 README 文档进一步验证功能边界和使用场景。

SKILL.md

name
apex:debug
description
Systematic debugging with pattern learning. Applies hypothesis-driven investigation, evidence collection, and reflection to update pattern confidence.
argument-hint
[task-identifier or error-description]

<skill name="apex:debug" phase="any">

<overview> Systematic debugging workflow that leverages pattern intelligence and reflection.

Integrates with failure-predictor and git-historian agents to provide historical context. Produces evidence that feeds into the reflection step for continuous learning.

Can operate phase-agnostic: debug sessions can happen at any point in the workflow. </overview>

<phase-gate requires="none" sets="none"> <reads-file>./apex/tasks/[ID].md (if task-linked)</reads-file> <appends-section>debug</appends-section> <note>Debug is phase-agnostic - can be invoked at any workflow stage</note> </phase-gate>

<principles>

  • Evidence-Based: Every hypothesis needs concrete evidence (error messages, stack traces, git bisect results)
  • Pattern-Informed: Check known patterns or past incidents for failure modes before investigating
  • Learn From History: Check similar past bugs and their resolutions
  • Reflective: Record debugging outcomes to improve future debugging
  • Systematic: Follow structured methodology - no shotgun debugging
  • Hypothesis Discipline: Maximum 3 concurrent hypotheses to prevent scattered investigation

</principles>

<initial-response> <if-no-arguments> I'll help debug systematically. Please provide either:

  • A task identifier from ./apex/tasks/
  • An error description to investigate

Usage: /apex:debug [task-id] or /apex:debug "error message or description" </if-no-arguments> <if-arguments>Initialize debug session with provided context.</if-arguments> </initial-response>

<workflow>

<step id="1" title="Initialize debug session"> <instructions>

  1. Parse argument: Determine if task ID or error description
  2. Query patterns: Review existing patterns or incident notes for debugging/failure patterns
  3. Link or create task:

- If task ID provided: Read ./apex/tasks/[ID].md - If error description: Create a new debug task entry in the task log

  1. Spawn failure-predictor: Get historical failure context

</instructions>

<spawn-agents> <agent type="apex:failure-predictor"> Error Context: [Error message or symptom] File Context: [Suspected files if known]

Predict likely failure modes based on historical patterns. Return: Predicted failures with prevention strategies. </agent> </spawn-agents>

</step>

<step id="2" title="Reproduce and gather evidence"> <critical> Do NOT proceed without reproducing the bug. Reproducibility is mandatory. </critical>

<instructions>

  1. Create minimal reproduction:

- Write smallest test case that triggers the bug - Document exact reproduction steps - If cannot reproduce, investigate intermittency patterns

  1. Capture evidence:

- Error messages (exact text) - Stack traces (full trace) - Logs (relevant entries) - Environment state (versions, config) - Recent changes (git log)

  1. Record evidence in the task log:

</instructions>

<reproduction-checklist>

  • [ ] Bug reproduces consistently OR intermittency pattern documented
  • [ ] Exact error message captured
  • [ ] Stack trace saved
  • [ ] Minimal test case created (if possible)
  • [ ] Environment details recorded

</reproduction-checklist> </step>

<step id="3" title="Root cause investigation"> <instructions>

  1. Spawn git-historian: Find related changes
  2. Query similar failures: Search existing patterns or incident notes for matches
  3. Trace data flow: Follow bad value to its source
  4. Form hypotheses: Based on evidence (MAX 3 concurrent)

</instructions>

<spawn-agents> <agent type="apex:git-historian"> Scope: [Suspected files/directories] Window: 30 days (recent changes) Focus: Commits that touched error location

Find: Recent changes, regressions, related fixes. Return: Git intelligence with blame and commit analysis. </agent> </spawn-agents>

<hypothesis-formation> Form hypotheses based on evidence gathered:

### Hypothesis 1: [Title]
- **Based on**: [Evidence that supports this]
- **Predicts**: [What we'd see if true]
- **Test**: [How to verify]

### Hypothesis 2: [Title]
...

### Hypothesis 3: [Title]
...

LIMIT: Maximum 3 concurrent hypotheses. If all 3 fail, revisit evidence before forming new ones. </hypothesis-formation>

<root-cause-techniques> 5 Whys Method:

Problem: [Symptom]
Why? → [First-level cause]
Why? → [Second-level cause]
Why? → [Third-level cause]
Why? → [Fourth-level cause]
Why? → ROOT CAUSE: [Fundamental issue]

Binary Search (git bisect):

git bisect start
git bisect bad HEAD
git bisect good [known-good-commit]
# Test each midpoint until culprit found

</root-cause-techniques>

</step>

<step id="4" title="Hypothesis testing"> <critical> Test ONE hypothesis at a time. Make SMALLEST possible change to test. </critical>

<instructions>

  1. Select hypothesis: Choose most likely based on evidence
  2. Design minimal test: Smallest change to verify
  3. Execute test: Run and observe
  4. Record result: Document outcome for each hypothesis
  5. Iterate or escalate:

- If confirmed → proceed to fix - If refuted → test next hypothesis - If 3+ hypotheses fail → question assumptions, escalate </instructions>

<testing-discipline> For each hypothesis:

### Testing Hypothesis [N]: [Title]
- **Test method**: [What we're doing]
- **Expected if true**: [Prediction]
- **Actual result**: [What happened]
- **Conclusion**: CONFIRMED | REFUTED | INCONCLUSIVE

</testing-discipline>

<escalation-trigger> If 3 hypotheses fail:

  1. Re-examine evidence - something was missed
  2. Question architectural assumptions
  3. Ask user for additional context
  4. Consider spawning systems-researcher for deeper analysis

</escalation-trigger>

</step>

<step id="5" title="Fix implementation"> <critical> Create failing test BEFORE implementing fix. TDD for bug fixes. </critical>

<instructions>

  1. Write failing test: Test that reproduces the exact bug
  2. Verify test fails: Confirm it catches the bug
  3. Implement minimal fix: Single change addressing root cause
  4. Verify test passes: Bug is fixed
  5. Run full test suite: No regressions introduced

</instructions>

<fix-checklist>

  • [ ] Failing test written that reproduces bug
  • [ ] Test verified to fail before fix
  • [ ] Fix implemented (single, minimal change)
  • [ ] Bug-specific test now passes
  • [ ] Full test suite passes
  • [ ] No new lint errors

</fix-checklist>

<validation-commands>

# Run targeted test
npm test -- [test-file]

# Run full suite
npm test

# Lint check
npm run lint

</validation-commands>

</step>

<step id="6" title="Reflection and learning"> <critical> Without reflection, debugging learnings are lost. This step is MANDATORY. </critical>

<instructions>

  1. Document root cause: Clear explanation of what caused the bug
  2. Document fix: What changed and why
  3. Identify patterns:

- Did existing patterns help? (update confidence) - Discovered new failure mode? (propose new pattern)

  1. Submit reflection: Record a structured reflection with evidence
  2. Update task: Complete debug section

</instructions>

<reflection-template>

### Debug Summary
- **Root Cause**: [What actually caused the bug]
- **Fix**: [What we changed]
- **Prevention**: [How to prevent similar bugs]

### Patterns
- **Used**: [Patterns that helped, with outcomes]
- **Discovered**: [New failure modes or fixes]

### Learnings
- [Key insight 1]
- [Key insight 2]

</reflection-template>

</step>

</workflow>

<output-format> Append to task file ./apex/tasks/[ID].md:

<debug>
<metadata>
  <timestamp>[ISO]</timestamp>
  <duration>[Time spent]</duration>
  <hypotheses-tested>[N]</hypotheses-tested>
</metadata>

<reproduction>
  <reproducible>true|false</reproducible>
  <steps>[Reproduction steps]</steps>
  <minimal-case>[Test case location if created]</minimal-case>
</reproduction>

<investigation>
  <evidence>
    <error-message>[Exact error]</error-message>
    <stack-trace>[Relevant portions]</stack-trace>
    <related-commits>[Git history findings]</related-commits>
    <pattern-matches>[Patterns that matched]</pattern-matches>
  </evidence>

  <hypotheses>
    <hypothesis id="1" status="confirmed|refuted|untested">
      <title>[Hypothesis]</title>
      <evidence>[Supporting evidence]</evidence>
      <test-result>[What happened when tested]</test-result>
    </hypothesis>
  </hypotheses>
</investigation>

<root-cause>
  <description>[What actually caused the bug]</description>
  <five-whys>[If used, the chain of whys]</five-whys>
</root-cause>

<fix>
  <description>[What was changed]</description>
  <files-modified>[List of files]</files-modified>
  <test-added>[New test location]</test-added>
</fix>

<reflection>
  <patterns-used>
    <pattern id="[PAT:ID]" outcome="worked|tweaked|failed">[How it helped]</pattern>
  </patterns-used>
  <learnings>
    <learning>[Key insight]</learning>
  </learnings>
  <prevention>[How to prevent similar bugs]</prevention>
</reflection>
</debug>

</output-format>

<antipatterns> <avoid name="Shotgun Debugging"> Making random changes hoping something works. Instead: Form hypotheses based on evidence, test systematically. </avoid>

<avoid name="Symptom Fixing"> Quick patches that don't address root cause. Instead: Use 5 Whys to find fundamental issue. </avoid>

<avoid name="Evidence-Free Hypotheses"> Guessing without data. Instead: Every hypothesis must cite specific evidence. </avoid>

<avoid name="Hypothesis Sprawl"> Forming 10+ hypotheses without testing any. Instead: Limit to 3 concurrent, test each fully. </avoid>

<avoid name="Skipping Reflection"> Fixing bug but not recording learnings. Instead: Always record a reflection at the end. </avoid> </antipatterns>

<success-criteria>

  • Bug reproduced (or intermittency documented)
  • Evidence gathered and recorded in the task log
  • Root cause identified through systematic investigation
  • Fix implemented with failing test first
  • All tests pass including new regression test
  • Reflection recorded with debugging outcomes
  • Task file updated with <debug> section
  • Checkpoints recorded at each major step

</success-criteria>

<next-steps> After debugging:

  • If part of existing task: Continue with current workflow phase
  • If standalone debug: /apex:ship [identifier] to finalize and reflect

</next-steps>

</skill>

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

OpenCode

25.21%
按下载量换算30

kilo

23.22%
按下载量换算27

Antigravity

17.26%
按下载量换算20

Claude Code

13.87%
按下载量换算16

crush

7.96%
按下载量换算9

github-copilot

3.2%
按下载量换算4

安全审计

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

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills