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.
In this repository3 other files it gives its agents.
- migrate-to-teamcitySkill
- teamcity-cliSkill
- teamcity-intellijSkill
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
- Distinctive: line 8
Use this skill to set up TeamCity CI for a repository and drive it to the first successful build.
- Distinctive: line 13
Read and follow the canonical workflow:
- Distinctive: line 17
Read shared guidance only when relevant:
- Distinctive: line 27
Before inspecting files, querying TeamCity, using local environment context, or making any write, the assistant must visibly ask the user …
- Distinctive: line 33
Do not infer these values from prior runs, environment variables, command history, tool names, cached context, or repository files.
- Distinctive: line 46
Before any TeamCity write, also make sure the following facts are known:
- Distinctive: line 53
If the configured TeamCity server and the authenticated access point to different servers, stop.
- Distinctive: line 58
Prefer TeamCity Pipelines or YAML over Kotlin DSL unless the repository already uses Kotlin DSL successfully or the user explicitly asks …
- Distinctive: line 64
Prefer personal builds for validation.
- Distinctive: line 66
Stop on proven blockers such as missing VCS authorization, missing TeamCity permissions, incompatible build environments, or unavailable …
≈ “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.
Files
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.mdfor local repository inspection.shared/build-step-selection.mdfor choosing TeamCity build steps and the required build status service messages.shared/token-safety.mdwhen credentials are involved.shared/build-log-debugging.mdwhen 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.
_Rootis 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.
_Rootis 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.
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
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.

