fix-failed-build

fix-failed-build is a skill for Claude Code, Codex from theonedev/tod. It costs 17 tokens per session (477 once invoked), scanned A, original, MIT.

A procedure for investigating and fixing a failed OneDev build, where OneDev is a service for hosting code and running automated builds.

In plain words
What is it for?
Use it when given a failed-build reference and a matching repository checkout, with no issue or pull-request context available.
Why use it?
It provides a defined sequence for identifying the failed build and checking the current project and branch before changing code. It stops when required information or a safe starting condition is missing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when given a failed-build reference and a matching repository checkout, with no issue or pull-request context available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/theonedev/tod/fix-failed-build
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add theonedev/tod --skill fix-failed-build
Clone the repo
git clone --depth 1 https://github.com/theonedev/tod

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-failed-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/theonedev/tod/fix-failed-build/github.svg)](https://agentmods.dev/skills/theonedev/tod/fix-failed-build)
Your own site
<a href="https://agentmods.dev/skills/theonedev/tod/fix-failed-build"><img src="https://agentmods.dev/badge/skills/theonedev/tod/fix-failed-build/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-failed-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/theonedev/tod/fix-failed-build"><img src="https://agentmods.dev/badge/skills/theonedev/tod/fix-failed-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 477 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00477
Opus 5.5 $0.00007 $0.00191
Sonnet 5.5 $0.00003 $0.00095
Haiku 4.5 $0.00002 $0.00048

Measured 16d ago against content hash ce06f4ff8105, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix-failed-build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/fix-failed-build/SKILL.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fix a failed OneDev build

Use configured tod and the build reference from the prompt. Ask for the reference if it is missing. Keep the current checkout. Verify that git symbolic-ref --short HEAD identifies a branch and that tod project current identifies the build's project.

Diagnose the failure

Read tod build get <build> and tod build get-log <build>. Check the project and commitHash in the build detail against the checkout. Use the failing commit as evidence and verify that the fix applies to the current branch before editing.

If the log says a required dependency failed, get that build's detail.

  • Cancelled dependency. Report it as the blocker and stop.
  • Failure on the same commit. Diagnose that build instead, following further required dependency failures as needed.
  • Failure on a different commit. Report the dependency as the cause of the current failure and stop.

For these failure lines, take the exact report name inside the brackets. Preserve spaces and casing, and quote the name as one argument. Read the report before deciding on a fix.

  • [<report>]: found problems with severity <severity> or higher → tod build get-code-problems <build> "<report>" <severity>.
  • [<report>]: <count> not passed test cases → tod build get-unit-test-report <build> "<report>". To download a referenced artifact, add --artifact <artifact-path> > <output-file>.

Use tod build get-changes-since-success <build> if the previous successful build helps explain the failure. Inspect .onedev-buildspec.yml for job configuration problems and run tod build get-spec-schema before changing it.

Leave the fix in the checkout

Make and verify the fix locally. Use git status --short to confirm what changed. Leave edits unstaged and uncommitted, with any push or OneDev comment outside this workflow.

If no edit is appropriate, explain why. Stop on an unmet precondition or an unrecoverable error and report the failing command and error when applicable.

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · -55 lines · -8 tokens per session ce06f4ff8105
  2. 3mo ago First seen · 105 lines · 25 tokens per session scan A 2765962c5d60

Subscribe to this mod's changes

fix-failed-build is a skill published in the GitHub repository theonedev/tod (17 stars, last pushed 5d ago), licensed MIT. It adds 17 tokens to every session and 477 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

fix-failed-build compared with skills from other repositories

fix-failed-build next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fix-failed-buildtheonedev/todSkill175d agoMITA17Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill343todayApache-2.0A112Claude Code
performance-verificationvalkor-ai/loomSkill1.6kyesterdayApache-2.0A45Claude Code, Codex
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex