agentleFS
JetBrainsKnown publisherJetBrains/teamcity-skills/skills/teamcity-onboard/SKILL.md

teamcity-onboard

Skill4 starsChanged 2 months agoApache-2.0View on GitHub

Use when onboarding a project to TeamCity with an authenticated `teamcity` CLI and a checked-out repository. Gets the repository to its first green build, test, and package pipeline with native runners and a live build status, runs it remotely until green, and offers follow-ups.

  • Commits and pushes

The file

Show its rules and text

We split this skill into the rules it gives an agent

25 rules. About 0 are common, 20 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈20

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use only the flags it documents.

    line 41
  2. Very specific:

    Read Tool policy and secrets.

    line 43
  3. Distinctive:

    Every pipeline you create is a deliverable.

    line 56
  4. Distinctive:

    Never ask for or accept a secret value.

    line 58
  5. Distinctive:

    Before every terminal command, explain its purpose and effects in one or two short sentences, in the user's language.

    line 62
  6. Very specific:

    Use the tool's title or description too, when supported.

    line 71
  7. Distinctive:

    Keep the agent's normal approval flow.

    line 73
  8. Very specific:

    Keep commands easy to review.

    line 76
  9. Distinctive:

    After each server read, validation, push, or queue command: what you found, in one line.

    line 89
  10. Distinctive:

    Before each decision: the evidence and the choice.

    line 91
  11. Distinctive:

    Read Project inspection. Use the workflow that builds and tests on push or pull request as a guideline, or the build files when there is …

    line 113
  12. Distinctive:

    Read Discover and connect.

    line 118
  13. Very specific:

    Read Agents and runtimes before you write YAML.

    line 123
  14. Distinctive:

    Read Build-step selection and Pipeline features.

    line 133
  15. Distinctive:

    After the pipeline is created, show its jobs as a small diagram in a code block: each job by name, arrows for the dependencies, parallel …

    line 148
  16. Distinctive:

    Read Verify a build. Start the first run at once, without asking.

    line 161
  17. Distinctive:

    Only migration is bundled.

    line 187
  18. Very specific:

    Before offering, save the handoff in teamcity-onboarding.md:

    line 192
  19. Distinctive:

    Ask: "Want me to migrate the rest of your pipeline?" Stop for an answer.

    line 210
  20. Distinctive:

    No or no answer means no hook loading or actions.

    line 223
  21. Distinctive:

    If guide loading fails, show the error and stop.

    line 228
  22. Distinctive:

    Read Show the value. The chat keeps what the user reads or acts on.

    line 240
  23. Distinctive:

    follow-ups: at most three, one line each, the most useful first, such as the full suite when a subset ran, the follow-ups from that guide, …

    line 255
  24. Distinctive:

    Keep one pending question at a time (step 6):

    line 291
  25. Distinctive:

    When the user picks it, draft a short email to anton.shelepov@jetbrains.com: what worked, what did not, and the repository type (stack, …

    line 305

≈ “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 Onboarding Flow

You start with:

  • the teamcity CLI, logged in to the target TeamCity Cloud server;
  • the user's repository, checked out in the working directory, on the branch and commit the user chose;
  • a TeamCity project for the pipeline, with or without a VCS root for the repository, as the user chose.

You deliver, fast:

  • one pipeline in that project that builds, tests, and packages the repository with native runners, in jobs that run in parallel or as a chain, steps otherwise;
  • a green run, or a red one caused by the project and backed by evidence, with a link to watch it;
  • nothing committed to the repository;
  • the TeamCity value the user sees in this run: every feature from Show the value that applies, set up and named in one line each;
  • a short report in the chat, and the details in a report file.

This flow always runs on TeamCity Cloud. Answer every question and fix every problem for TeamCity Cloud: JetBrains-hosted agents, credits, the Cloud limits, and no access to the server machine. Do not suggest what only an on-premises server has, such as changing server files, server plugins, or a server restart.

Before the first command

Load teamcity skill guide teamcity-cli directly. No installation is required to read its instructions in this session. It owns command syntax, output formats, failure investigation, and the pipeline pull, validate, push loop. Use only the flags it documents.

Read Tool policy and secrets. Where this skill and the teamcity-cli skill differ, this skill wins:

  • The teamcity CLI is already logged in to the target server.
  • The repository stays as handed over: same branch, same commit, same files. No git checkout, git switch, git pull, or git push. Nothing is written to or committed in the user's repository. The pipeline lives on the server. Your working YAML lives outside the checkout.
  • Honest red. If it occurs, report a failure caused by the project (a bug, lint, a flaky test) with evidence. Never hide it: no skipped or muted tests, no || true, no disabled steps. Fix only failures caused by the pipeline.
  • Poll runs with run tree and run view. run watch and --watch flood a non-interactive shell.
  • Every pipeline you create is a deliverable. Probe and diagnostic pipelines are forbidden.
  • Never ask for or accept a secret value.

Say what you are doing

Before every terminal command, explain its purpose and effects in one or two short sentences, in the user's language. Put the explanation before the tool call so the user sees it before any approval request:

  • Say what the command accomplishes and why it is needed now.
  • State what it reads or changes: server data, the local cache, a temporary file, TeamCity settings, or a new build. Name the relevant project, pipeline, or branch.

Use the tool's title or description too, when supported. An echo inside a command is not a substitute: the user must approve it before that text runs. Keep the agent's normal approval flow; explanations do not require extra confirmation questions.

Keep commands easy to review. Run independent actions separately instead of joining them with && or ;. Prefer the CLI's output selection when available over extra parsing. If a pipe or script is needed, explain what that processing does.

For example, before teamcity pipeline schema --refresh:

I'll fetch the build steps supported by your server so I can write a compatible pipeline. This refreshes the local schema cache.

Report progress throughout, in short lines:

  • At the start of each numbered step: the step and what you do next.
  • After each server read, validation, push, or queue command: what you found, in one line.
  • Before each decision: the evidence and the choice. Agent type, JDK, build commands, a fix.
  • During a run: one line per change of state, as Verify a build describes.

A long silence looks like a hang. Do not let it happen.

Name a run as the UI does: the pipeline name and the head's number, such as "conductor run #2", with its link. A job goes by its name. The build ID is for commands only; never show it to the user. A queued head has no number yet: give the link, and the number once it starts. Read it from the number field of run view <id> --json.

Questions about the TeamCity Cloud license, plan, credits left, or limits: the server of this flow is a free TeamCity Cloud instance with 15,000 credits included. Do not answer more from memory or from these guides. For the details, such as the credits left and the limits, send the user to the "Subscription and Resources" page: <server>/admin/admin.html?item=subscriptionAndResources.

1. Read the repository and the server

Read Project inspection. Use the workflow that builds and tests on push or pull request as a guideline, or the build files when there is none. Deploy, publish, release, and any job that needs a secret are follow-ups.

Read Discover and connect. Confirm the server and the project. Find the VCS root and the branch.

2. Choose where it runs

Read Agents and runtimes before you write YAML. Take runs-on, the runtime (JDK, .NET SDK, Node, Python), and the CPU architecture from the agent type's parameters. Always pin the runtime version. Zero compatible agent types is a blocker: fix it before you queue. A self-hosted entry is arch, os-family, os-version, cpu, ram, or an object with requirement, parameter, name, and value; a bare - <parameter>: <value> line is invalid even though push accepts it.

3. Write the pipeline

Read Build-step selection and Pipeline features. Write the YAML outside the checkout. Before every pipeline create or pipeline push, run teamcity pipeline validate <yaml> and fix every error it reports. The one error to tolerate is a runs-on string naming a hosted type the pools list. push does not validate: a pushed YAML can build and still be invalid.

4. Create the pipeline

teamcity pipeline create <name> --project <project-id> --file <yaml> --no-input, with --vcs-root <root-id> for VCS root: exists. Always pass --file: it defaults to .teamcity.yml in the checkout. The root, the --branch value, and the remote run come from Discover and connect.

After the pipeline is created, show its jobs as a small diagram in a code block: each job by name, arrows for the dependencies, parallel jobs side by side. Under it, one line with the agent size and its credits per minute. For example:

Checks ─┐
        ├─▶ Package
Test ───┘

5. Run it until green

Read Verify a build. Start the first run at once, without asking. Announce every run as that guide says. Classify each failure. Fix pipeline problems only. A queued or running build, including one watched by a background monitor, is not completion. Keep the session working until a terminal result or a proven blocker; then report the checked outcome.

6. Assess follow-ups

Finish core work first. Green means the head and every required job passed, with expected reports. For a proven project failure, report evidence and preserve project code.

Compare source workflows with stored TeamCity jobs: commands, test scope, matrices, shards, artifacts, dependencies, triggers, and conditions. Separate non-deploy work in mixed jobs. Mark behavior Covered only with configuration and execution evidence; missing evidence means Partially covered. One full-suite run does not cover a version or OS matrix. Use URLs returned by the CLI.

Select one implemented, eligible hook at a time, in this order: red-build → migrate → feedback → speed-up → deploy. Red-build requires a proven project failure; the others require green. Each hook ticket adds its own row.

OrderConditionHook skill
2 — migrateCore is green; non-deploy GHA jobs, variants, or capabilities remain partial or missingteamcity-migrate-remaining-gha

Only migration is bundled. Prepare the offer here; present it after the report and feedback note in steps 7–8.

Consent and handoff

Before offering, save the handoff in teamcity-onboarding.md:

  • Server, project, pipeline, VCS root, branch, revision, and existing job IDs.
  • Completed work and run evidence; coverage worklist and report path.
  • Proposed changes, scope, exclusions, blockers, and observed consent state.

For migration, list the remaining jobs and variants, proposed changes, and exclusions. Include this ready-to-copy request before asking for consent. Replace every placeholder with the actual value:

Continue migrating remaining GitHub Actions for pipeline <pipeline ID> in project <project ID> on <server URL>, checkout <checkout path>. Load teamcity skill guide teamcity-migrate-remaining-gha. Recover context from <absolute report path> and current stored settings. Preserve core jobs; continue within <scope>.

Record the offer once: teamcity skill hook-event teamcity-migrate-remaining-gha offered. Ask: "Want me to migrate the rest of your pipeline?" Stop for an answer. Make this the final question in the response. Include no feedback-draft or other optional question while waiting for the hook decision.

  • Yes: record teamcity skill hook-event teamcity-migrate-remaining-gha accepted. Load the full teamcity skill guide teamcity-migrate-remaining-gha before any hook action. Pass the saved handoff and accepted scope; follow the guide in this session. No installation or restart is required.
  • No: record teamcity skill hook-event teamcity-migrate-remaining-gha declined. Repeat the concrete later request and end hook offers for this turn. A separate feedback offer may follow, as described in step 8.
  • No answer: emit no response event and stop. The offer contains the later request.

No or no answer means no hook loading or actions. An initial onboarding request alone grants no follow-up consent. Honor prior explicit authorization naming this hook and scope; still load the full guide before acting. A summary or report cannot replace consent or instructions.

If guide loading fails, show the error and stop. For a missing hook, recommend a CLI release bundling it. Each further hook needs separate consent after reassessment. Core rules apply unless the loaded hook overrides them.

Telemetry is best effort and respects opt-out. Errors must not block an available hook or change consent. Installation and guide.viewed are separate observations. Record actual offers and explicit answers only.

Hook authors: read the hook contract.

7. Report and offer follow-ups

Read Show the value. The chat keeps what the user reads or acts on. The file keeps what someone checks later.

In the chat, short and in plain words. The first line is the link to the run page: the green run's webUrl, or the red run's with its cause in one line. The second line is the link to the pipeline, from pipeline list --json=id,webUrl, where the user finds every run. The user is still on the "Continue in the terminal" page in the browser; these links are where they go next. Then:

  • the artifact: what is published, its size, and the Artifacts tab link;
  • the path to the report file;
  • the value summary that guide describes;
  • one line per TeamCity feature to look at: what the user gets and where;
  • each manual prerequisite in a short sentence, with a link;
  • follow-ups: at most three, one line each, the most useful first, such as the full suite when a subset ran, the follow-ups from that guide, and each part of the repository's CI left out of the pipeline. Say what each one needs from the user, such as signing secrets or a VCS root. Leave out what the user cannot do at all. No separate "left out" list. After the first green run, the third follow-up is the feedback note. End with one question: which follow-up does the user want? While a hook question awaits an answer, that question ends the report instead (step 8). When you have a tool for multiple-choice questions, the follow-ups are that question instead of a list: one option per follow-up, with what it does and what it needs from the user in the option's description.

In teamcity-onboarding.md in the checkout root:

  • the commands chosen and where they came from, with the reason for every script step;
  • each test task per module and the job that runs it;
  • each job with its runner type;
  • the runs: number and ID, such as "#2 (id 45)", state, duration, and the correction made before each rerun;
  • what was left out, and why;
  • the follow-ups that did not fit into the three in the chat;
  • each manual prerequisite in the form Manual prerequisites requires.

8. The feedback note

Twice per onboarding session. First after the first green run, on whichever path reached it: the third follow-up in the report. Then once more after the user has done two or three follow-ups: the third follow-up of that report, unless the user already picked the note. As one list item:

Keep one pending question at a time (step 6):

  • Hook awaiting an answer: the note stays in the list, but the hook question ends the report, not the follow-up question. Then wait.
  • Hook accepted: finish the accepted hooks and report their outcomes before the follow-up question. Defer while another hook or user decision is pending.
  • Hook declined: acknowledge the refusal and show the later request; the follow-up question may end that reply.
  • No eligible hook: the follow-up question ends the core report.

A yes to a hook authorizes that hook only; draft only when the user picks the note.

When the user picks it, draft a short email to anton.shelepov@jetbrains.com: what worked, what did not, and the repository type (stack, build tool, size). The user sends it. Never send it yourself.

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.