oops

GitHub

修复构建失败、测试错误及环境状态异常等基础设施故障。遵循复现、诊断、修复、验证和提交流程,优先排查环境与配置问题,定位根因并消除回归风险。

.agents/skills/oops/SKILL.md poteto/noodle

触发场景

构建中断 测试失败 状态陈旧或损坏 环境漂移 系统突发故障

安装

npx skills add poteto/noodle --skill oops -g -y
更多选项

非标准路径

npx skills add https://github.com/poteto/noodle/tree/main/.agents/skills/oops -g -y

不安装直接使用

npx skills use poteto/noodle@oops

指定 Agent (Claude Code)

npx skills add poteto/noodle --skill oops -a claude-code -g -y

安装 repo 全部 skill

npx skills add poteto/noodle --all -g -y

预览 repo 内 skill

npx skills add poteto/noodle --list

SKILL.md

Frontmatter
{
    "name": "oops",
    "schedule": "When infrastructure failures are detected (build breaks, test failures, stale Noodle state)",
    "description": "Infrastructure fix for broken builds, failed tests, stale state, and environment drift. Covers both user-project and Noodle-internal failures. Triggers when builds break, tests fail, state is stale, or environment drifts. Use on 'oops', 'fix the build', 'tests are failing', 'something broke', 'broken build'."
}

Oops

Fix infrastructure failures. Applies to both user-project code and Noodle-internal state.

Fix flow

Reproduce -> Diagnose -> Fix -> Verify -> Commit

1. Reproduce

Run the failing command. Capture exact error output. If intermittent, run multiple times to confirm.

2. Diagnose

Suspect state before code. Check in this order:

  1. Noodle state — .noodle/ files, queue consistency, config validity
  2. Environment — Go version, missing deps, stale caches, tmux session health
  3. Config — .noodle.toml (project root), .agents/skills/ structure, brain/ integrity
  4. Persistent files — lock files, temp files, incomplete writes
  5. Code — only after ruling out state and environment

Principles

  • [[fix-root-causes]]
  • [[prove-it-works]]

Noodle-internal checklist:

  • .noodle/ state files: corrupt, stale, or inconsistent?
  • Queue state: orphaned tasks, stuck sessions?
  • Config: valid TOML, referenced paths exist?
  • tmux sessions: zombie processes, detached sessions?

3. Fix

Trace to root cause. Never paper over symptoms.

After fixing, grep for the same pattern elsewhere — the bug may exist in multiple locations.

4. Verify

Run the original failing command. Confirm it passes. Run related tests to check for regressions.

5. Commit

Commit message describes the root cause, not symptoms.

# Good: fix(queue): stale lock file prevented task dequeue after crash
# Bad:  fix: tasks not running

版本历史

  • 82d2921 当前 2026-11-19 21:08

同 Skill 集合

.agents/skills/adversarial-review/SKILL.md
.agents/skills/ast-grep/SKILL.md
.agents/skills/brain/SKILL.md
.agents/skills/codex/SKILL.md
.agents/skills/commit/SKILL.md
.agents/skills/debugging/SKILL.md
.agents/skills/execute/SKILL.md
.agents/skills/find-skills/SKILL.md
.agents/skills/frontend-design/SKILL.md
.agents/skills/go-best-practices/SKILL.md
.agents/skills/interaction-design/SKILL.md
.agents/skills/make-interfaces-feel-better/SKILL.md
.agents/skills/meditate/SKILL.md
.agents/skills/noodle/SKILL.md
.agents/skills/plan/SKILL.md
.agents/skills/quality/SKILL.md
.agents/skills/react-best-practices/SKILL.md
.agents/skills/refine/SKILL.md
.agents/skills/reflect/SKILL.md
.agents/skills/review/SKILL.md
.agents/skills/ruminate/SKILL.md
.agents/skills/schedule/SKILL.md
.agents/skills/skill-creator/SKILL.md
.agents/skills/testing/SKILL.md
.agents/skills/todo/SKILL.md
.agents/skills/unslop/SKILL.md
.agents/skills/worktree/SKILL.md
examples/minimal/.agents/skills/execute/SKILL.md
examples/minimal/.agents/skills/schedule/SKILL.md
examples/multi-skill/.agents/skills/execute/SKILL.md
examples/multi-skill/.agents/skills/schedule/SKILL.md
skills/skill-creator/SKILL.md
.agents/skills/ts-best-practices/SKILL.md
examples/multi-skill/.agents/skills/deploy/SKILL.md
examples/multi-skill/.agents/skills/test/SKILL.md

元信息

文件数
0
版本
82d2921
Hash
6a8a6ab4
收录时间
2026-11-19 21:08

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-22 19:26
浙ICP备14020137号-1