Token导航 LogoToken导航

Agent Skill · 待分类

debug-task(调试任务)

debug-task 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

debug-task 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在待分类类的 11,209 个 Skill 里排第 5,326。

总安装 582周安装 24GitHub Stars 3,809下载 190核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/moonrepo/moon --skill debug-task

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

面向 moon 任务系统的结构化诊断工具,引导快速隔离任务执行问题。适用于构建失败、任务挂起或输出不符合预期的场景。按五步流程依次检查解析后的任务定义、依赖关系与执行上下文。需用户提供具体 <project>:<task> 目标才能启动诊断流程。

debug-task 属于待分类类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/debug-task

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/moonrepo/moon --skill debug-task;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

debug-task 怎么安装?

在终端执行 npx skills add https://github.com/moonrepo/moon --skill debug-task。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

debug-task 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

debug-task 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/moonrepo/moon --skill debug-task 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

debug-task 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

debug-task 用的人多吗?

公开数据是累计安装 582 次,近一周安装 24 次,下载 190 次,GitHub 3,809 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

debug-task 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 3,809 星,维护活跃度相对可查。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理待分类类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

待分类类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
infsh-cli

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
debug-task

调试任务 · 本页

5823,809执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

moon task debugger

A workflow-oriented diagnostic skill for troubleshooting moon tasks. This is not a reference manual — it guides you through a structured debugging flow so you can isolate the problem quickly.

For conceptual background, see the moon documentation.

Before you start: Ask the user for the <project>:<task> target to debug. If they haven't provided a specific target, prompt them for it — the diagnostic flow requires a concrete target to inspect.


Quick-start: 5-step diagnostic flow

Work through these steps in order. Most issues resolve by step 3.

Step 1: Inspect the resolved task configuration

The first thing to check is whether the task is configured the way the user expects. moon merges configuration from multiple sources (global tasks, project config, inheritance), so the resolved result can surprise people.

# Show the fully resolved task config (with inheritance applied)
moon task <project>:<task>

# Machine-readable version for programmatic inspection
moon task <project>:<task> --json

What to verify:

  • command vs script — if the command contains pipes (|), redirects (>), chained commands (&&), or complex syntax, it must use script, not command.
  • inputs — are they too broad (**/* captures everything) or too narrow (missing source files)? Check state.defaultInputs (true = using default **/*) and state.emptyInputs (true = explicitly set to []).
  • outputs — are they declared for build tasks? Missing outputs means the cache can never hydrate artifacts.
  • toolchains — is the correct toolchain(s) assigned? An incorrect toolchain means wrong tool versions.
  • deps — are task dependencies correct and complete?
  • options — check persistent, runInCI, cache, affectedFiles, mutex, timeout, retryCount, allowFailure, and os.
  • type — build (has outputs), test (default), or run (persistent)
  • preset — server or utility apply multiple option defaults at once.

Red flags:

  • command: 'eslint. && prettier --check.' — shell syntax in command is a parse error in v2. Use script instead.
  • Empty outputs on a build task — cache will never restore artifacts.
  • inputs: ['**/*'] — too broad, cache invalidates on every change.
  • A persistent task in a deps chain — moon produces a hard error at runtime.
  • command: 'noop' or nop / no-op — the task is intentionally a no-op and does nothing. moon treats these specially.
  • runInCI: 'only' — task runs in CI but NOT locally (common surprise).
  • runInCI: 'skip' — task is skipped in CI but relationships remain valid.
  • os set to a platform the user isn't on — task silently skips.
  • allowFailure: true — task errors are swallowed, can mask real problems.

Step 2: Run with maximum verbosity

If the config looks right, run the task with debug logging to see what moon is actually doing under the hood.

# Debug-level logging with cache bypass
moon run <project>:<task> --log debug --force

# Deep debugging: reveal env vars and stdin passed to the process
MOON_DEBUG_PROCESS_ENV=true MOON_DEBUG_PROCESS_INPUT=true moon run <project>:<task> --log trace --force

What to look for in the logs:

  • Toolchain resolution — is the right version of node/deno/bun/etc being used?
  • Hash generation — what sources are being hashed?
  • Affected status — is the task being skipped because it's "not affected"?
  • Process execution — what command is actually being spawned?

Visualize the execution graph to spot dependency issues:

moon action-graph <project>:<task>
moon action-graph <project>:<task> --dot  # DOT format (useful for agents)
For all graph commands and output formats, see references/environment-debug.md.

Step 3: Inspect cache state

If the task runs but produces wrong results, or runs when it shouldn't, or doesn't run when it should, the cache is the likely culprit.

# Inspect a hash manifest to see what inputs were hashed
moon hash <hash>

# Compare two hashes to see what changed between runs
moon hash <hash1> <hash2>

# Short-form hashes work too
moon hash 0b55b234 2388552f
For cache file locations, hash interpretation, and the --force vs --cache off comparison, see references/cache-issues.md.

Step 4: Diagnose the problem type

Use this table to jump to the right reference:

SymptomLikely causeQuick checkReference
Task doesn't existInheritance not applied — check inheritedBy conditions in .moon/tasks/**/* against project's toolchains, stack, layer, tags via moon project <name> --jsonmoon task <target> --jsonreferences/config-mistakes.md
"Nothing to do"--affected + no changes, runInCI: false, or inheritedBy mismatch (global task not inherited)Check flags, options.runInCI, and inheritedByreferences/decision-tree.md
Task errors on executionWrong command/script, bad toolchainmoon run <target> --log debugreferences/config-mistakes.md
Stale cache (cached when it shouldn't be)Inputs too narrow, missing env varsmoon hash <hash>references/cache-issues.md
Cache miss (re-runs every time)Inputs too broad, volatile outputsmoon hash <h1> <h2>references/cache-issues.md
Outputs not restored after cache hitoutputs misconfiguredCheck .moon/cache/outputs/references/cache-issues.md
Task hangs / pipeline stuckPersistent task in deps chain (hard error in v2)moon action-graph <target>references/config-mistakes.md
Task is slowDep chain bottleneck, no parallelismmoon action-graph <target>references/decision-tree.md
Task does nothing (no-op)Command is noop/nop/no-opmoon task <target> --jsonreferences/config-mistakes.md
Task fails silentlyallowFailure: true hiding errorsCheck options.allowFailurereferences/config-mistakes.md
Task skipped locallyrunInCI: 'only' setCheck options.runInCIreferences/config-mistakes.md
Task skipped in CIrunInCI: false or 'skip'Check options.runInCIreferences/config-mistakes.md
Mutex contention / deadlockTwo tasks share same mutexCheck options.mutexreferences/config-mistakes.md
Task times outtimeout option set too lowCheck options.timeoutreferences/config-mistakes.md

Step 5: Validate the fix

After making changes, verify the fix actually worked:

# Bypass cache to force a fresh run
moon run <project>:<task> --force

# Disable cache entirely (no reads OR writes)
moon run <project>:<task> --cache off

# Verify the resolved config reflects your changes
moon task <project>:<task> --json

--force vs --cache off:

  • --force ignores existing cache but writes new cache after execution.
  • --cache off disables caching entirely — no reads, no writes.
For all cache modes, see references/cache-issues.md.

Common mistakes at a glance

These are the issues that come up most often. For details and fixes, see references/config-mistakes.md.

  • Shell syntax in command — pipes, &&, redirects require script; v2 rejects these as parse errors.
  • Missing outputs on build tasks — cache can never hydrate artifacts.
  • Overly broad inputs — **/* invalidates cache on every change; be specific.
  • Volatile outputs — timestamps or absolute paths in build artifacts cause permanent cache misses.
  • Persistent task in deps — hard error; tasks named dev/start/serve auto-get server preset.
  • --affected vs --force confusion — --affected restricts; --force bypasses cache (they're opposites).
  • allowFailure: true hiding errors — task reports success even when command fails; check stderr at .moon/cache/states/<project>/<task>/stderr.log.
  • mutex contention — shared mutex serializes tasks; combined with deps can deadlock.
  • runInCI: 'only' — task silently skips when run locally (most surprising variant).

When to load references

Each reference file covers a specific problem domain in depth. Load them only when the diagnostic flow points you there — don't load everything upfront.

ReferenceWhen to load
references/decision-tree.mdWhen the symptom doesn't match the quick table above, or you need a systematic walk-through of all possibilities.
references/cache-issues.mdWhen the problem is clearly cache-related: unexpected hits, unexpected misses, outputs not restoring.
references/config-mistakes.mdWhen the task config is wrong: command vs script, inheritance bugs, presets, persistent tasks, affectedFiles, mutex, timeout, retries, runInCI variants, allowFailure, os.
references/environment-debug.mdWhen you need to go deeper with env vars, log levels, trace profiles, or inspection tools.

平台分布

Codex

35.67%
按下载量换算68

Claude

28.05%
按下载量换算53

Cursor

17%
按下载量换算32

Gemini CLI

9.44%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

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

安装前确认

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

继续浏览同类 Skills