Agent Skills › fmaclen/canutin › failure-discipline

failure-discipline

GitHub

规范 CI 失败时的错误诊断与推送纪律,强调先读日志再修复、单次推送后验证、连续失败上报及避免浪费 CI 资源。

.agents/skills/failure-discipline/SKILL.md fmaclen/canutin

Trigger Scenarios

CI 运行失败 本地质量检查报错 需要提交代码前

Install

npx skills add fmaclen/canutin --skill failure-discipline -g -y
More Options

Non-standard path

npx skills add https://github.com/fmaclen/canutin/tree/master/.agents/skills/failure-discipline -g -y

Use without installing

npx skills use fmaclen/canutin@failure-discipline

指定 Agent (Claude Code)

npx skills add fmaclen/canutin --skill failure-discipline -a claude-code -g -y

安装 repo 全部 skill

npx skills add fmaclen/canutin --all -g -y

预览 repo 内 skill

npx skills add fmaclen/canutin --list

SKILL.md

Frontmatter
{
    "name": "failure-discipline",
    "description": "Error diagnosis rules, push discipline, CI cost awareness"
}

Failure Discipline

Read the Error Before Fixing

After a failed CI run or local quality error, read the actual error output and identify the specific message. Do not push a speculative code fix.

One Push, One Verify

Never push again until you've confirmed the previous push either succeeded or you've identified why it failed.

Two Strikes, Report

If two consecutive pushes fail for the same reason, stop and report the error to the human. You are likely missing context that isn't in the codebase.

Each Push Is Expensive

Every push to a PR branch triggers the full Playwright suite across desktop and mobile. That is a long run and consumes CI minutes. Unnecessary pushes waste time and create noise.

CI Is a Limited Resource

If CI is failing on infrastructure issues (PocketBase dev server not starting, GitHub Actions runner allocation failures, paraglide messages not compiled), do not re-trigger. Report the issue to the human and wait.

Agent Behavior

  • DO read CI logs and PocketBase logs before diagnosing failures
  • DO verify each push succeeded before moving on
  • DO stop and report after two consecutive failures
  • DO verify locally before pushing - see verify
  • DON'T push speculative fixes — diagnose from logs first
  • DON'T re-trigger CI when it fails on infrastructure issues
  • DON'T change test files or timeouts when debugging CI flakiness

See Also

Version History

  • 28eb754 Current 2026-09-23 01:21

Same Skill Collection

.agents/skills/architecture/SKILL.md
.agents/skills/auth-system/SKILL.md
.agents/skills/code-quality/SKILL.md
.agents/skills/code-review/SKILL.md
.agents/skills/deployment/SKILL.md
.agents/skills/failures-and-logs/SKILL.md
.agents/skills/frontend-design/SKILL.md
.agents/skills/issue-writing/SKILL.md
.agents/skills/local-servers/SKILL.md
.agents/skills/pb-import/SKILL.md
.agents/skills/pb-migrate/SKILL.md
.agents/skills/pocketbase/SKILL.md
.agents/skills/realtime/SKILL.md
.agents/skills/setup/SKILL.md
.agents/skills/svelte5/SKILL.md
.agents/skills/testing/SKILL.md
.agents/skills/verify/SKILL.md
.agents/skills/commits-and-prs/SKILL.md

Metadata

Files
0
Version
b491bd7
Hash
ce8deca4
Indexed
2026-09-23 01:21

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-28 18:35
浙ICP备14020137号-1