Logo vun Adopt Tiering

Adopt Tiering

Communautéit
rustyrazorblade
adopt-tiering

One-time migration that splits a repo's existing test suite into a fast unit tier and a slow integration tier — for a repo whose own spec-flow/TESTING.md policy chooses that split, not an assumption the pipeline makes. Classify tests by evidence (container/I-O/timing) and let the compiler + test timings arbitrate, physically separate them (Gradle source set + classpath scoping, or Rust src/ vs tests/ + nextest profiles), wire the CI failures artifact, and open a PR. Run once per repo. See docs/workflow.md ("Test policy"). Never merges.

Iwwersiicht

Editeurrustyrazorblade
Repositoryskills
Skill-Nummadopt-tiering
Stären
44
Forks
9
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum rustyrazorblade op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Adopt Tiering an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/rustyrazorblade/skills/tree/main/plugins/spec-flow/skills/adopt-tiering
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rustyrazorblade/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/spec-flow/skills/adopt-tiering .claude/skills/adopt-tiering
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Adopt Tiering an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Adopt Tiering automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Adopt Tiering net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

adopt-tiering — split an existing suite into unit / integration tiers

You are the PM/lead in the main session. Bring a repo that does not yet separate fast unit tests from slow integration tests onto that split (see Test policy in docs/workflow.md). This is a one-time migration per repo, and it applies only where the repo's own spec-flow/TESTING.md chooses the tiered policy. spec-flow assumes no split and ships no runtime default, so that file is the whole of the policy. Check it first, and say so plainly if it points somewhere else. The migration produces one review-ready PR and never merges.

This is repo infrastructure, not a feature — so it is not tied to a GitHub issue and does not go through groom → activate → implement. Move into a dedicated worktree using Claude Code's own isolation rather than creating one by hand — call the EnterWorktree tool (or simply ask to "work in a worktree") with a name like adopt-test-tiering. All work happens inside that worktree from here on; its branch name is whatever Claude Code assigns, not something this skill picks — that's fine, this migration isn't correlated back to anything by branch name the way an issue's work is.

Why the split has to be structural

The tiering model only holds if the boundary is enforced, not conventional: the unit tier must be fast by construction (no container, no I/O), so a container test must be unable to live in it. For Gradle that means classpath scoping (Testcontainers/JDBC only on the integration source set); for Rust it means integration tests live in tests/ binaries the unit default-filter excludes.

Steps

  1. Detect the runner and current layout.

    • Gradle — build.gradle.kts/build.gradle, src/test. Already tiered if a src/integrationTest source set / integrationTest JVM Test Suite exists.
    • Rust — Cargo.toml; unit tests in src/**, integration in tests/**. Already tiered if .config/nextest.toml defines the tier default-filters (see references/ci/). If the repo is already tiered, say so and stop. In a partially-tiered repo, handle only what's still mixed — this skill is idempotent.
  2. Classify the existing tests — delegate to the architect agent, then let the tooling arbitrate. Static tells give the first cut → integration tier: Testcontainers (GenericContainer, @Testcontainers), JDBC / DB drivers / a real DataSource, real sockets / HTTP clients, filesystem I/O, process spawning, Docker — anything needing a live external dependency. But you do not have to get this perfect from static analysis, because two mechanical checks arbitrate and make a misclassification either way recoverable:

    • Compilation is the enforcer. Once container/JDBC/network deps are scoped to the integration source set only (step 4), a dep-requiring test left in the unit tier won't compile — it fails loudly, it cannot silently sit there. Use this: attempt the split, and let unit-tier compile failures reclassify those tests to integration.
    • Test timings catch the rest. A test that is slow but compiles (heavy pure computation, allowed local I/O) shows up in the runner's test-time report; move the slow outliers to integration. So classify from the tells, then verify with the compiler and the timings — don't agonize over the static pass. A genuinely ambiguous test can go to unit and be corrected by a compile error / its timing, or to integration and be pulled back by CI → /spec-flow:sync-ci; both directions are recoverable. The architect returns a proposed assignment: each test → unit | integration, plus the tell that decided it.
  3. Present the plan to the owner — before moving anything. Show the proposed split as information: the integration-bound tests with the tell for each. Then list every ambiguous case as bullets, and ask about each one in its own message, in the format in Presenting to the owner in docs/workflow.md. This is a large, mechanical change; let the owner adjust the classification before any file moves.

  4. Execute the split — delegate to tdd-developer / build-engineer.

    • Gradle — create the integrationTest source set (JVM Test Suite plugin on Gradle 7.3+, or a hand-rolled source set + task below it); move the integration-classified tests to src/integrationTest/…; move Testcontainers/JDBC/network deps to integrationTestImplementation only (so a container test can't compile under src/test); wire check to depend on integrationTest. Keep ./gradlew test (unit) and ./gradlew check (all) green.
    • Rust — ensure integration-classified tests live in tests/ binaries (move out of src/ unit modules where needed); add .config/nextest.toml:
      toml
      [profile.default]   # fast local tier
      default-filter = "not (kind(test) or package(integration-tests))"
      [profile.ci]        # full suite
      default-filter = "all()"
      Confirm cargo nextest run (unit) and cargo nextest run --profile ci --run-ignored all (all) pass. Match the repo's conventions; commit in focused steps.
  5. Wire CI to the contract. Copy the matching template from ${CLAUDE_PLUGIN_ROOT}/references/ci/ (github-actions-gradle.yml or github-actions-nextest.yml) into .github/workflows/, adjusting toolchain versions and any service containers the integration tier needs. This makes CI run the full suite and upload the spec-flow-failures artifact that /spec-flow:sync-ci consumes.

  6. Gitignore the flagged set. Add .spec-flow/ to .gitignore if absent — the local flagged set must never commit.

  7. Open the PR — never merge. Push the branch and open a PR summarizing: unit vs integration counts, the tells used, anything the owner overrode, and the CI wiring added. Call out two manual owner follow-ups. This skill performs neither:

    • Enable branch protection so merge is gated on green CI — the invariant the whole tiering model relies on, and something this skill cannot reliably set itself.
    • Restate the split in the repo's own spec-flow/TESTING.md. That file is the whole of the policy, and every implementation and review agent reads it on every run. Its choice of tiering is what let this migration run, but it was written before the tiers existed. Where it still names the pre-split commands, the pipeline reads a policy the repo no longer matches.
  8. Exit the worktree. Call ExitWorktree with action: "keep" once the PR is up — "remove" would delete the branch backing the still-open PR from step 7. You're the central coordinator's own session, not a per-issue one meant to live in a worktree indefinitely; don't stay parked in this migration's worktree once the work is handed off, but the worktree/branch themselves stay on disk until the PR merges.

Rules

  • One-time, per repo; idempotent. Safe to re-run on a partially-tiered repo — only move what's still mixed.
  • Let the tooling arbitrate; don't agonize over the static pass. Scope deps so container tests can't compile under the unit tier, then let compile failures and the runner's test-time report place tests correctly. Misclassification is recoverable either way — unit-side by a compile error or the timings, integration-side by CI → /spec-flow:sync-ci.
  • Structural, not conventional. For Gradle, scope deps so a container test can't compile under src/test — not merely move files.
  • Classify → present → execute. Show the owner the split before moving files.
  • Never merge; open a PR. Enabling the green-CI merge gate (branch protection) and restating the split in the repo's spec-flow/TESTING.md are the owner's manual steps — always call both out.

Heefeg gestallte Froen

Wat mécht de KI-Skill Adopt Tiering?

One-time migration that splits a repo's existing test suite into a fast unit tier and a slow integration tier — for a repo whose own spec-flow/TESTING.md policy chooses that split, not an assumption the pipeline makes. Classify tests by evidence (container/I-O/timing) and let the compiler + test timings arbitrate, physically separate them (Gradle source set + classpath scoping, or Rust src/ vs tests/ + nextest profiles), wire the CI failures artifact, and open a PR. Run once per repo. See docs/workflow.md ("Test policy"). Never merges.

Firwat Adopt Tiering op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Adopt Tiering besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Adopt Tiering an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/rustyrazorblade/skills/tree/main/plugins/spec-flow/skills/adopt-tiering an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Adopt Tiering benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Adopt Tiering benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Adopt Tiering domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Adopt Tiering gratis?

Jo. De Skill gëtt vum rustyrazorblade ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇