edit-build-spec

edit-build-spec is a skill for Claude Code, Codex from theonedev/tod. It costs 38 tokens per session (631 once invoked), scanned A, original, MIT.

A guide for creating or updating a OneDev CI/CD build specification, which tells OneDev how to build and test a project automatically.

In plain words
What is it for?
Use it to modify .onedev-buildspec.yml after inspecting the project and to fetch its schema, validate the specification, and update it when necessary.
Why use it?
It checks the file against OneDev's current rules before and after editing, reducing configuration errors.

Skill for Claude CodeCodex

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

Good fit Use it to modify .onedev-buildspec.yml after inspecting the project and to fetch its schema, validate the specification, and update it when necessary.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/theonedev/tod/edit-build-spec
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 edit-build-spec
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 edit-build-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/theonedev/tod/edit-build-spec.svg)](https://agentmods.dev/skills/theonedev/tod/edit-build-spec)
Your own site
<a href="https://agentmods.dev/skills/theonedev/tod/edit-build-spec"><img src="https://agentmods.dev/badge/skills/theonedev/tod/edit-build-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 631 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.00038 $0.00631
Opus 5 $0.00019 $0.00316
Sonnet 5 $0.00008 $0.00126
Haiku 4.5 $0.00004 $0.00063

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

Security

Grade A, and why

edit-build-spec 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 8d 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/edit-build-spec/SKILL.md · 67 lines

How it starts

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

Edit OneDev CI/CD spec

Author or update .onedev-buildspec.yml for the current OneDev project.

Prerequisites

  • tod is installed and configured.
  • The current directory is the project root where .onedev-buildspec.yml belongs.

Workflow

  1. Fetch the spec schema first. Before editing anything, get the authoritative spec schema so the generated YAML matches the server's expectations:
    tod build get-spec-schema
    
  2. If a CI/CD spec already exists, validate and upgrade it first:
    tod build check-spec
    
    This both validates and upgrades the file to the latest version when needed.
  3. Inspect the project. Read the files you need (package manifests, language version files, Dockerfiles, etc.) to understand what image and commands the job should use.
  4. Edit .onedev-buildspec.yml applying the user's instruction and the rules below.
  5. Validate again after editing:
    tod build check-spec
    
    Keep iterating until tod build check-spec succeeds.

Authoring rules

When writing or modifying .onedev-buildspec.yml:

  1. A checkout step is generally needed to clone repository into job working directory
  2. Always call tod build get-spec-schema first so the YAML you produce matches the spec schema.
  3. If a command step is used, enable "run in container" unless the user explicitly asks otherwise.
  4. Different steps run in isolated environments and only share the job working directory. Installing dependencies in one step and running commands that rely on them in another will not work. Keep them in a single step unless the user explicitly wants them separated.
  5. If a cache step is used:
    1. Place it before the step that builds or tests the project.
    2. If the project has lock files (package.json, pom.xml, etc.):
      1. Configure checksum files using these lock files.
      2. Configure the upload strategy as UPLOAD_IF_NOT_HIT.
  6. To pass files between jobs, have the producing job publish them with the publish-artifact step, and let consuming jobs pull them in via a job dependency.
  7. Call tod build check-spec before editing an existing CI/CD spec to make sure it is valid and up to date.
  8. Inspect the relevant project files to decide which docker image and commands to use when the user asks you to set up build or test steps.
  9. Call tod build check-spec again after editing so the final spec is confirmed valid.

Read the full file on GitHub · 67 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. 8d ago First seen · 67 lines · 38 tokens per session scan A c35e2055938d

Subscribe to this mod's changes

edit-build-spec is a skill published in the GitHub repository theonedev/tod (14 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 631 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

import-prom-rule

Bulk import of a Prometheus alert rule YAML file (create a whole set of rules at once). Dedicated to handling a remote URL or local YAML text, automatically parsing the three formats groups / a plain rules array / a single rule. ⚠️ Do not use this skill for single-rule creation — when the user describes a single alert…

ccfos/nightingale · 125 tokens

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

configure-env-variables

Configures environment variables for Power Pages site settings to support ALM across environments. Creates environment variable definitions in Dataverse, guides the user through linking site settings to those variables via the Power Pages Management app, adds the variables to the solution, and generates a…

microsoft/power-platform-skills · 119 tokens

atmos-profiles

Atmos profiles: profile directories, --profile and ATMOSPROFILE activation, profile merge behavior, environment switching, and routing profile-specific auth/toolchain/config overrides.

cloudposse/atmos · 35 tokens

webhook-management

Configure and validate CCAM webhook targets across supported chat, incident, automation, and generic providers. Use when listing provider requirements, creating or updating a target, scoping it to alert rules, sending a test notification, reviewing delivery history, or deleting a target.

hoangsonww/Claude-Code-Agent-Monitor · 56 tokens

monorepo-management

Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.

wshobson/agents · 54 tokens