agentleFS
JetBrainsKnown publisherJetBrains/teamcity-skills/skills/teamcity-first-green-build/SKILL.md

teamcity-first-green-build

Skill4 starsChanged 2 months agoApache-2.0View on GitHub

Use when creating, validating, or updating TeamCity CI for a repository and driving it through its first successful build.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    create or update the pipeline.

    line 16
  2. Distinctive:

    Stop after these checks. A required query that is unavailable or denied is a blocker.

    line 20
  3. Distinctive:

    Ask for approval when deploy, publish, migration, cleanup, external mutation, or material cost is possible or unclear.

    line 25
  4. Distinctive:

    Read the workflow router. It selects the guides needed for the task.

    line 30
  5. Very specific:

    Before any TeamCity query or write, resolve the server from the user's request and a named target parent project.

    line 35
  6. Very specific:

    Use a supplied non-_Root parent.

    line 38
  7. Very specific:

    When the request identifies a failed build or a build already queued for 60--120 seconds, read shared/build-diagnostics.md before retrying, …

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

TeamCity First Green Build

Set up TeamCity CI. Finish with a green verification build or a proven external blocker.

Choose the outcome

For an explicit configuration-only or no-build request:

  • create or update the pipeline;
  • validate and read back its saved configuration; and
  • query agent inventory once and compare each job's requirements with it.

Stop after these checks. A required query that is unavailable or denied is a blocker.

For every other request, continue until the verification build is green or an external blocker is proven. Before queueing, inspect the build's side effects. Ask for approval when deploy, publish, migration, cleanup, external mutation, or material cost is possible or unclear.

Start

Read the workflow router. It selects the guides needed for the task.

Resolve the target

Before any TeamCity query or write, resolve the server from the user's request and a named target parent project. The parent cannot be _Root.

Use a supplied non-_Root parent. If none is supplied, create a unique <repository>-CI child project under _Root and use its returned ID. Report a failed creation as a blocker. Never take the server from a prior task, an environment variable, command history, tool configuration, or repository files.

Read shared guides only when needed

  • shared/project-inspection.md — local repository inspection.
  • shared/build-step-selection.md — build steps, JVM verification, outputs, and status messages.
  • shared/jdk-selection.md — agent selection and runtime verification when a job requires a specific JDK.
  • shared/kmp-mobile.md — Kotlin Multiplatform, Android, Compose, or iOS.
  • shared/token-safety.md — credentials.
  • shared/vcs-connections-and-auth.md — VCS connections, auth, and roots.
  • shared/build-diagnostics.md — a failed, stalled, or queued verification build.

Diagnose an existing run first

When the request identifies a failed build or a build already queued for 60--120 seconds, read shared/build-diagnostics.md before retrying, changing configuration, or making another status observation. A duration reported in the request counts toward this threshold; do not restart the observation window.

Report

Report checked facts only:

  • TeamCity server and parent project ID.
  • Repository URL and project root.
  • TeamCity object and operations.
  • A server-confirmed native Pipeline URL when available. The CLI's teamcity pipeline view <pipeline-id> --web can open the page; use only its observed address. Label a /buildConfiguration/... URL as a build configuration link. If no native URL is available, report the Pipeline ID; do not construct a /pipeline/... URL from an unverified numeric ID.
  • Configuration format and validation result.
  • Verification build IDs and final states.
  • First green build ID, when observed.
  • Each manual prerequisite: owner, scope, action, known values, proof, and resume signal.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.