360 Secure SkillHub
360 安全技能中心

oops

面向构建中断、测试失败、状态过期和环境漂移的故障修复技能,按复现、诊断、修复、验证、提交流程处理用户项目与 Noodle 内部状态;优先排查状态、环境、配置和持久化文件,强调根因而非症状。

poteto
热度 0.00
最近更新 2026-10-19 06:44:38
分类:开发依赖:代码执行 / 读写文件应用场景:调试排错 / DevOps / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add poteto/noodle/oops
Metadata
name
oops
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'.
schedule
When infrastructure failures are detected (build breaks, test failures, stale Noodle state)

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