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

teamcity-first-green-build

Skill2 starsChanged 2 months agoApache-2.0View on GitHub

Use when setting up, updating, or repairing TeamCity CI for a repository, then iterating through builds until the first successful build or a proven blocker.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to set up TeamCity CI for a repository and drive it to the first successful build.

    line 8
  2. Distinctive:

    Read and follow the canonical workflow:

    line 13
  3. Distinctive:

    Read shared guidance only when relevant:

    line 17
  4. Distinctive:

    Before inspecting files, querying TeamCity, using local environment context, or making any write, the assistant must visibly ask the user …

    line 27
  5. Distinctive:

    Do not infer these values from prior runs, environment variables, command history, tool names, cached context, or repository files.

    line 33
  6. Distinctive:

    Before any TeamCity write, also make sure the following facts are known:

    line 46
  7. Distinctive:

    If the configured TeamCity server and the authenticated access point to different servers, stop.

    line 53
  8. Distinctive:

    Prefer TeamCity Pipelines or YAML over Kotlin DSL unless the repository already uses Kotlin DSL successfully or the user explicitly asks …

    line 58
  9. Distinctive:

    Prefer personal builds for validation.

    line 64
  10. Distinctive:

    Stop on proven blockers such as missing VCS authorization, missing TeamCity permissions, incompatible build environments, or unavailable …

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Use this skill to set up TeamCity CI for a repository and drive it to the first successful build.

Load First

Read and follow the canonical workflow:

  • workflows/first-green-build.md

Read shared guidance only when relevant:

  • shared/project-inspection.md for local repository inspection.
  • shared/build-step-selection.md for choosing TeamCity build steps and the required build status service messages.
  • shared/token-safety.md when credentials are involved.
  • shared/build-log-debugging.md when diagnosing failed builds.

Mandatory First Response

Before inspecting files, querying TeamCity, using local environment context, or making any write, the assistant must visibly ask the user to confirm:

  • The exact TeamCity server name or URL.
  • The target parent project name or ID. _Root is valid.

Do not infer these values from prior runs, environment variables, command history, tool names, cached context, or repository files. If both values are not present in the user's current request, stop and ask for them in the next assistant message.

Prerequisites

At the start of every task, before repository inspection, TeamCity discovery, or writes, ask for or confirm:

  • The exact TeamCity server name or URL being targeted.
  • The target parent project name or ID. _Root is valid.

Before any TeamCity write, also make sure the following facts are known:

  • Authenticated TeamCity access for that same server.
  • The local repository URL and build root.
  • A safe way to keep tokens and VCS credentials out of commands, logs, saved prompts, generated files, and final reports.

If the configured TeamCity server and the authenticated access point to different servers, stop. Do not substitute another server.

Default Behavior

  • Prefer TeamCity Pipelines or YAML over Kotlin DSL unless the repository already uses Kotlin DSL successfully or the user explicitly asks for Kotlin DSL.
  • Inspect existing TeamCity objects before creating new ones.
  • Preserve checked-in TeamCity YAML topology unless the user asks for a reduced first pass.
  • Prefer personal builds for validation.
  • Iterate only while each rerun has new evidence or a concrete fix.
  • Stop on proven blockers such as missing VCS authorization, missing TeamCity permissions, incompatible build environments, or unavailable external services.

Final Report

Report only facts that were checked:

  • TeamCity server and parent project ID.
  • Repository URL and project root.
  • Existing, created, updated, or selected TeamCity object.
  • Important TeamCity operations performed.
  • First failed build ID and root cause, if one was observed.
  • First successful build ID, if one was observed.
  • Remaining manual prerequisites or blockers.

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.