TDD Workflow
hellangleZ/burn-in-cceverywhere-ralph
A skill your agent uses when writing new features, fixing bugs, or refactoring code.
A skill your agent uses when writing non-subsystem tests in assisted-service.
$ npx skills add openshift/assisted-service --skill assisted-service-writing-unit-tests -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install openshift/assisted-service assisted-service-writing-unit-tests --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/openshift/assisted-service.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/assisted-service-writing-unit-tests .claude/skills/assisted-service-writing-unit-tests && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "assisted-service-writing-unit-tests" agent skill from https://github.com/openshift/assisted-service/tree/master/.agents/skills/assisted-service-writing-unit-tests into .claude/skills/assisted-service-writing-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assisted-service-writing-unit-tests", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/openshift/assisted-service/tree/master/.agents/skills/assisted-service-writing-unit-testsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add openshift/assisted-service --skill assisted-service-writing-unit-tests -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install openshift/assisted-service assisted-service-writing-unit-tests --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openshift/assisted-service.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/assisted-service-writing-unit-tests .agents/skills/assisted-service-writing-unit-tests && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "assisted-service-writing-unit-tests" agent skill from https://github.com/openshift/assisted-service/tree/master/.agents/skills/assisted-service-writing-unit-tests into .agents/skills/assisted-service-writing-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assisted-service-writing-unit-tests", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add openshift/assisted-service --skill assisted-service-writing-unit-tests -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install openshift/assisted-service assisted-service-writing-unit-tests --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openshift/assisted-service.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/assisted-service-writing-unit-tests .cursor/skills/assisted-service-writing-unit-tests && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "assisted-service-writing-unit-tests" agent skill from https://github.com/openshift/assisted-service/tree/master/.agents/skills/assisted-service-writing-unit-tests into .cursor/skills/assisted-service-writing-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assisted-service-writing-unit-tests", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/openshift/assisted-service.git --path .agents/skills/assisted-service-writing-unit-tests--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add openshift/assisted-service --skill assisted-service-writing-unit-tests -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install openshift/assisted-service assisted-service-writing-unit-tests --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openshift/assisted-service.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/assisted-service-writing-unit-tests .gemini/skills/assisted-service-writing-unit-tests && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "assisted-service-writing-unit-tests" agent skill from https://github.com/openshift/assisted-service/tree/master/.agents/skills/assisted-service-writing-unit-tests into .gemini/skills/assisted-service-writing-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assisted-service-writing-unit-tests", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install openshift/assisted-service assisted-service-writing-unit-testsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add openshift/assisted-service --skill assisted-service-writing-unit-tests -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/openshift/assisted-service.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/assisted-service-writing-unit-tests .github/skills/assisted-service-writing-unit-tests && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "assisted-service-writing-unit-tests" agent skill from https://github.com/openshift/assisted-service/tree/master/.agents/skills/assisted-service-writing-unit-tests into .github/skills/assisted-service-writing-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assisted-service-writing-unit-tests", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add openshift/assisted-service --skill assisted-service-writing-unit-tests -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install openshift/assisted-service assisted-service-writing-unit-tests --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openshift/assisted-service.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/assisted-service-writing-unit-tests .opencode/skills/assisted-service-writing-unit-tests && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "assisted-service-writing-unit-tests" agent skill from https://github.com/openshift/assisted-service/tree/master/.agents/skills/assisted-service-writing-unit-tests into .opencode/skills/assisted-service-writing-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assisted-service-writing-unit-tests", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
assisted-service-writing-unit-testsA skill your agent uses when writing non-subsystem tests in assisted-service.
Assisted Service Writing Unit Tests is an agent skill from openshift/assisted-service. Use when writing non-subsystem tests in assisted-service.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Unit testing. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit e8f87d7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
goFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Assisted Service Writing Unit Tests loads about 1.9k tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 605 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from openshift/assisted-service at commit e8f87d7, republished under its Apache-2.0 licence (© openshift). 605 words, ~1,933 tokens.
.claude/skills/assisted-service-writing-unit-tests/SKILL.md (or your agent's skills folder).Unit tests in assisted-service use Ginkgo/Gomega BDD framework with gomock for mocking. Core principle: Every gomock controller MUST call ctrl.Finish() in AfterEach to verify mock expectations.
Without ctrl.Finish(), tests pass even when mocks aren't called correctly - silent failures that hide bugs. Tests run against real PostgreSQL (suite or per-test) with automatic cleanup.
| Scenario | Pattern |
|---|---|
| Testing with mocks | Create controller in BeforeEach, call ctrl.Finish() in AfterEach |
| Testing without mocks | Use It() blocks directly or table-driven tests |
| Database per test | PrepareTestDB() in BeforeEach, DeleteTestDB() in AfterEach |
| Database for suite | InitializeDBTest() in BeforeSuite, TerminateDBTest() in AfterSuite |
| Event verification | eventstest.NewEventMatcher with matchers |
| OCP version in tests | Use hardcoded strings or common.TestDefaultConfig — do not use TestVersion() |
digraph mock_decision {
"Testing interface deps?" [shape=diamond];
"Need verify calls or control returns?" [shape=diamond];
"Use gomock mocks" [shape=box];
"Use real implementation" [shape=box];
"Testing interface deps?" -> "Need verify calls or control returns?" [label="yes"];
"Testing interface deps?" -> "Use real implementation" [label="no"];
"Need verify calls or control returns?" -> "Use gomock mocks" [label="yes"];
"Need verify calls or control returns?" -> "Use real implementation" [label="no"];
}digraph db_decision {
"Tests share data?" [shape=diamond];
"Tests modify DB state?" [shape=diamond];
"Suite-level DB" [shape=box];
"Per-test DB" [shape=box];
"Tests share data?" -> "Suite-level DB" [label="yes"];
"Tests share data?" -> "Tests modify DB state?" [label="no"];
"Tests modify DB state?" -> "Per-test DB" [label="yes"];
"Tests modify DB state?" -> "Suite-level DB" [label="no"];
}Covers: Non-subsystem tests in internal/ and pkg/ with gomock, Ginkgo/Gomega, database, events.
Does NOT cover: Subsystem tests (subsystem/), E2E, external service integration, performance tests. Subsystem tests use different patterns, including common.TestVersion() for OCP versions.
Test files: *_test.go (same package). Suites: *_suite_test.go.
Every Describe/Context creating a gomock controller needs ctrl.Finish() in AfterEach. No exceptions.
Without ctrl.Finish():
.Times(N) - Expected call count NOT checked.MaxTimes(0) - Unexpected calls NOT caught.Do() / .DoAndReturn() - Mock behavior runs without verificationBeforeEach(func() {
ctrl = gomock.NewController(GinkgoT())
mockHandler = eventsapi.NewMockHandler(ctrl)
})
AfterEach(func() {
ctrl.Finish() // REQUIRED - verifies all EXPECT() constraints
})Why this matters: Missing ctrl.Finish() causes silent test failures - tests pass even when mocks aren't called correctly. Real bugs found in commit 338133e05 MGMT-23548.
Letter = Spirit: Following the pattern exactly IS following the spirit. This isn't ritual - it's how gomock verification works.
Suite-level (shared DB, read-only tests):
BeforeSuite(func() { common.InitializeDBTest() })
AfterSuite(func() { common.TerminateDBTest() })Per-test (isolated DB, tests modify state):
BeforeEach(func() { db, dbName = common.PrepareTestDB() })
AfterEach(func() { common.DeleteTestDB(db, dbName) })Use eventstest.NewEventMatcher with specific matchers:
mockEvents.EXPECT().SendHostEvent(gomock.Any(), eventstest.NewEventMatcher(
eventstest.WithNameMatcher(eventgen.HostStatusUpdatedEventName),
eventstest.WithHostIdMatcher(host.ID.String())))Matchers: WithNameMatcher, WithHostIdMatcher, WithClusterIdMatcher, WithInfraEnvIdMatcher, WithSeverityMatcher
DescribeTable (simple cases):
DescribeTable("FunctionName",
func(input string, valid bool) { /* test logic */ },
Entry("descriptive case 1", "value1", true),
Entry("descriptive case 2", "value2", false))Struct array (complex scenarios):
tests := []struct{name, input string; valid bool}{
{name: "case 1", input: "val1", valid: true}}
for _, t := range tests { It(t.name, func() { /* ... */ }) }Ginkgo hierarchy: Describe("Component") → Context("when X") → It("should Y")
Isolation: No shared state between It blocks. Use BeforeEach for setup.
Gomock matchers: .Times(N), .MaxTimes(0), .AnyTimes(), gomock.Any()
Do not use common.TestVersion() in non-subsystem tests. TestVersion() resolves versions dynamically from data files and is designed for subsystem tests (subsystem/), which run against the real service. Non-subsystem tests mock version data and should use hardcoded version strings directly.
Correct patterns:
OpenshiftVersion: swag.String("4.14"),Or use the package-level defaults from internal/common/test_configuration.go:
OpenshiftVersion: swag.String(common.OpenShiftVersion),
ReleaseVersion: common.ReleaseVersion,
ReleaseImageUrl: common.ReleaseImageURL,See docs/dev/test-versions.md for the TestVersion() API used in subsystem tests.
These thoughts mean STOP - fix the issue:
ctrl.Finish() in AfterEachgomock.NewController but no ctrl.Finish() → Silent failurescommon.TestVersion() outside subsystem/ → Wrong pattern; use hardcoded strings or common.TestDefaultConfigIf you're rationalizing shortcuts due to time pressure, the test will be broken. No exceptions.
| Mistake | Symptom | Fix |
|---|---|---|
Missing ctrl.Finish() | Tests pass when mocks not called | Add ctrl.Finish() in AfterEach |
| Shared variables between tests | Flaky tests, race conditions | Move initialization to BeforeEach |
Missing GinkgoT() | Controller doesn't report failures | Use gomock.NewController(GinkgoT()) |
| Generic Entry names | "test 1", "test 2" in output | Descriptive: "valid IPv4 CIDR" |
| Wrong DB pattern | Pollution between tests | Suite-level for reads, per-test for writes |
| No event matchers | Generic gomock.Any() for events | Use eventstest.NewEventMatcher with specific matchers |
Using TestVersion() | Wrong abstraction for non-subsystem tests | Use hardcoded strings or common.TestDefaultConfig |
Check every test file:
gomock.NewController has ctrl.Finish() in AfterEachBeforeEach)PrepareTestDB()TestVersion() usage — use hardcoded strings or common.TestDefaultConfiggo test -v ./path/to/packageRed flags: Missing ctrl.Finish() → silent failures. Shared variables → flaky tests.
© openshift, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/assisted-service-writing-unit-tests of openshift/assisted-service.
Open the folder on GitHubat commit e8f87d7
Assisted Service Writing Unit Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Assisted Service Writing Unit Tests this skillopenshift/assisted-service | 138 | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| TDD WorkflowhellangleZ/burn-in-cceverywhere-ralph | 112 | 11 repos | ~2.4k | Automated safety check: Pass | None | |
| Testing OpenLogi UIAprilNEA/OpenLogi | 23k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Go Testingcxuu/golang-skills | 173 | 1 repos | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Contractssamchon/nestia | 2.2k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Cohesion Over TestabilityEpicenterHQ/epicenter | 4.8k | — | ~2k | Automated safety check: Pass | Custom licence |
hellangleZ/burn-in-cceverywhere-ralph
A skill your agent uses when writing new features, fixing bugs, or refactoring code.
AprilNEA/OpenLogi
Verifies OpenLogi's native GPUI interface with focused tests, the component gallery and a mock agent, choosing the evidence that fits each change.
cxuu/golang-skills
A skill your agent uses when writing, reviewing, or improving Go test code — including table-driven tests, subtests, parallel tests, test helpers, test doubles, and assertions with cmp.Diff.
samchon/nestia
Defines self-acknowledgments for production declarations and tests.
EpicenterHQ/epicenter
Collapse test-shaped production boundaries while preserving behavior and coverage.
liaohch3/claude-tap
Tests JavaScript embedded in an HTML file in two layers: pytest checks of the logic ported to Python, and Playwright runs in a real browser for the DOM.
openshift/assisted-service
Build and code-generate assisted-service using skipper with podman.
Categories
A skill your agent uses when writing non-subsystem tests in assisted-service. Assisted Service Writing Unit Tests is an agent skill from openshift/assisted-service. Use when writing non-subsystem tests in assisted-service.
Assisted Service Writing Unit Tests fits situations like: writing non-subsystem tests in assisted-service; tasks that involve Unit testing.
Run `npx skills add openshift/assisted-service --skill assisted-service-writing-unit-tests -a claude-code`. Or copy the skill folder (.agents/skills/assisted-service-writing-unit-tests in openshift/assisted-service) into .claude/skills/assisted-service-writing-unit-tests in your project. Claude Code loads it when a task matches its description.
Run `npx skills add openshift/assisted-service --skill assisted-service-writing-unit-tests -a codex`. Or copy the skill folder (.agents/skills/assisted-service-writing-unit-tests in openshift/assisted-service) into .agents/skills/assisted-service-writing-unit-tests in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openshift/assisted-service --skill assisted-service-writing-unit-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/assisted-service-writing-unit-tests, .gemini/skills/assisted-service-writing-unit-tests, .github/skills/assisted-service-writing-unit-tests and .opencode/skills/assisted-service-writing-unit-tests in your project.
Going by SKILL.md and its folder, Assisted Service Writing Unit Tests needs the command-line tools its instructions call (go).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Assisted Service Writing Unit Tests is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Assisted Service Writing Unit Tests: TDD Workflow (hellangleZ/burn-in-cceverywhere-ralph, 112 stars), Testing OpenLogi UI (AprilNEA/OpenLogi, 23k stars), Go Testing (cxuu/golang-skills, 173 stars) and Contracts (samchon/nestia, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
openshift (a GitHub organization) maintains it in openshift/assisted-service, which has 138 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 10, 2026.
Source: openshift/assisted-service on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.