OpenROAD Module Test Adder
The-OpenROAD-Project/OpenROAD
Adds integration or unit tests to an OpenROAD module: writes the Tcl test, generates golden files and registers it in both CMake and Bazel.
Conventions for writing and reviewing unit and integration tests of Git::Repository facade methods in the ruby-git project, covering setup, cases, grouping and scope.
$ npx skills add ruby-git/ruby-git --skill facade-test-conventions -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ruby-git/ruby-git facade-test-conventions --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/ruby-git/ruby-git.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/facade-test-conventions .claude/skills/facade-test-conventions && 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 "facade-test-conventions" agent skill from https://github.com/ruby-git/ruby-git/tree/main/.github/skills/facade-test-conventions into .claude/skills/facade-test-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "facade-test-conventions", 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/ruby-git/ruby-git/tree/main/.github/skills/facade-test-conventionsType 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 ruby-git/ruby-git --skill facade-test-conventions -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ruby-git/ruby-git facade-test-conventions --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ruby-git/ruby-git.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/facade-test-conventions .agents/skills/facade-test-conventions && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "facade-test-conventions" agent skill from https://github.com/ruby-git/ruby-git/tree/main/.github/skills/facade-test-conventions into .agents/skills/facade-test-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "facade-test-conventions", 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 ruby-git/ruby-git --skill facade-test-conventions -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ruby-git/ruby-git facade-test-conventions --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ruby-git/ruby-git.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/facade-test-conventions .cursor/skills/facade-test-conventions && 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 "facade-test-conventions" agent skill from https://github.com/ruby-git/ruby-git/tree/main/.github/skills/facade-test-conventions into .cursor/skills/facade-test-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "facade-test-conventions", 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/ruby-git/ruby-git.git --path .github/skills/facade-test-conventions--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 ruby-git/ruby-git --skill facade-test-conventions -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ruby-git/ruby-git facade-test-conventions --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ruby-git/ruby-git.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/facade-test-conventions .gemini/skills/facade-test-conventions && 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 "facade-test-conventions" agent skill from https://github.com/ruby-git/ruby-git/tree/main/.github/skills/facade-test-conventions into .gemini/skills/facade-test-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "facade-test-conventions", 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 ruby-git/ruby-git facade-test-conventionsInstalls 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 ruby-git/ruby-git --skill facade-test-conventions -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ruby-git/ruby-git.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/facade-test-conventions .github/skills/facade-test-conventions && 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 "facade-test-conventions" agent skill from https://github.com/ruby-git/ruby-git/tree/main/.github/skills/facade-test-conventions into .github/skills/facade-test-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "facade-test-conventions", 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 ruby-git/ruby-git --skill facade-test-conventions -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ruby-git/ruby-git facade-test-conventions --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ruby-git/ruby-git.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/facade-test-conventions .opencode/skills/facade-test-conventions && 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 "facade-test-conventions" agent skill from https://github.com/ruby-git/ruby-git/tree/main/.github/skills/facade-test-conventions into .opencode/skills/facade-test-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "facade-test-conventions", 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.
facade-test-conventionsConventions for writing and reviewing unit and integration tests of Git::Repository facade methods in the ruby-git project, covering setup, cases, grouping and scope.
This skill sets the conventions for testing the facade methods in the `Git::Repository` modules under `lib/git/repository/`. You attach it to a Copilot Chat session together with the spec files to write or review and, ideally, the matching facade module so that delegation contracts and option forwarding can be checked. It builds on a baseline RSpec unit testing standards skill.
The reference covers unit tests (a setup pattern, the cases to cover, expectations for command invocation, what not to test and how to group examples) and integration tests (when to write them, when to skip them, how to group them, and what they do and do not assert). The output differs for scaffolding new facade tests and for reviewing existing ones. Related skills cover facade implementation, YARD documentation and command-class tests.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit f3bf20f. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are ruby).
From 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.
Git Facade Test Conventions loads about 4.2k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 1,668 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 ruby-git/ruby-git at commit f3bf20f, republished under its MIT licence (© ruby-git). 1,668 words, ~4,155 tokens.
.claude/skills/facade-test-conventions/SKILL.md (or your agent's skills folder).Conventions for writing and reviewing unit and integration tests for facade
methods on Git::Repository::* modules.
Attach this file to your Copilot Chat context, then invoke with the spec file(s) to write or review. Include the corresponding facade module for context. Examples:
Using the Facade Test Conventions skill, scaffold tests for Git::Repository::Staging.Facade Test Conventions review: spec/unit/git/repository/committing_spec.rb.Git::Commands::* classes the facade callsThe invocation needs the unit and/or integration spec file(s) to review. Including
the corresponding facade module file (lib/git/repository/<topic>.rb) provides
useful context for verifying delegation contracts and option forwarding.
Prerequisite: Read the entire RSpec Unit Testing Standards skill (line 1 through EOF) before beginning. It defines the baseline Rules 1–28 that this skill extends.
Facade unit tests verify the orchestration contract between the facade method
and the components it calls (Git::Commands::*, Git::Parsers::*,
Git::ExecutionContext::Repository). They do not run real git.
The collaborators (commands, parsers) are stubbed via instance_double. The unit
test asserts:
@execution_context.#call is invoked with the expected positional and keyword
arguments (verifying argument pre-processing).RSpec.describe Git::Repository::Staging do
let(:execution_context) { instance_double(Git::ExecutionContext::Repository) }
let(:described_instance) { Git::Repository.new(execution_context: execution_context) }
let(:command_result) { instance_double(Git::CommandLine::Result, stdout: '') }
let(:add_command) { instance_double(Git::Commands::Add) }
let(:add_result) { command_result }
before do
allow(Git::Commands::Add).to receive(:new).with(execution_context).and_return(add_command)
end
describe '#add' do
# ...
end
endThe shared command_result let provides a default empty-stdout result; each
per-command alias (add_result, branch_list_result, ...) lets individual
tests override stdout in isolation — e.g.
let(:add_result) { instance_double(Git::CommandLine::Result, stdout: 'fixture output') }
in a nested context — without affecting other tests in the file.
Setup invariants:
Git::Repository, not the module itself.
Modules are mixed into the class; tests must exercise the class to reflect
real call sites.execution_context is an instance_double(Git::ExecutionContext::Repository)
— never a double('ExecutionContext'). The one exception is a facade whose
behavior under test is deriving a new context (dup_with): there a real
Git::ExecutionContext::Repository is allowed because it is a value object
with no disk access, and a stub of dup_with would re-implement it. Say so
in a comment on the let.allow(Klass).to receive(:new).with(execution_context).and_return(...)
so the facade's command construction (with the right execution context) is
verified by the stub.no_edit: true, etc.).expect ... receive(:call).with(...).ordered to assert ordering and
intermediate-result wiring.Git::Parsers::* class,
stub the parser and assert it is called with the command's stdout. Assert the
facade returns what the parser returned.Git::CommandLine::Result return — when the facade's contract is to
return the command's Git::CommandLine::Result directly (not .stdout and
not a parser output), assert eq(<command>_result) to verify pass-through.<METHOD>_ALLOWED_OPTS
constant and calls Git::Repository::Internal.assert_valid_opts!, test that
an unknown key raises ArgumentError and a known key is forwarded.**opts where applicable).Use the standard rspec-mocks form (no command-specific helper exists for the facade layer):
it 'delegates to Git::Commands::Add#call with the given path' do
expect(add_command).to receive(:call).with('path/to/file.rb').and_return(add_result)
described_instance.add('path/to/file.rb')
endFor command + parser orchestration (single command whose stdout is fed to a
parser), use .ordered to assert the call sequence:
it 'lists branches then parses the output' do
expect(branch_list_command).to(
receive(:call)
.with(all: true, format: Git::Parsers::Branch::FORMAT_STRING)
.and_return(branch_list_result)
.ordered
)
expect(Git::Parsers::Branch).to(
receive(:parse_list)
.with(branch_list_result.stdout)
.and_return(parsed_branches)
.ordered
)
expect(described_instance.branch_list).to eq(parsed_branches)
endFor genuinely multi-command orchestration (the facade calls more than one
command), chain .ordered across each command's #call, wiring intermediate
results through as needed:
it 'saves the stash then lists stashes' do
expect(stash_save_command).to(
receive(:call).with(message: 'wip').and_return(stash_save_result).ordered
)
expect(stash_list_command).to(
receive(:call).and_return(stash_list_result).ordered
)
expect(described_instance.stash_save_and_list(message: 'wip')).to eq(parsed_stashes)
endspec/unit/git/commands/<command>_spec.rb. The facade unit test should
stub #call and assert the keyword arguments the facade passes — not assert
on the CLI tokens that reach git.spec/unit/git/parsers/.Git::ExecutionContext::Repository. Use instance_double, except for the
derived-context case named under "Setup invariants".#initialize of the facade module. The module is mixed into
Git::Repository; constructor coverage belongs to repository_spec.rb.One describe '#<method_name>' block per facade method. Inside, use flat
context blocks per argument variation. Optional sections at the end (in order)
when present:
context 'option whitelisting' —
Git::Repository::Internal.assert_valid_opts! raises on unknown keys and
forwards known keys unchanged (no slice — the assertion is the only
enforcement mechanism)context 'deprecation handling' — Git::Deprecation.warn assertions and
key-rewrite testscontext 'input validation' — ArgumentError raised by the facade itself
(not by the command)context 'signature compatibility' — for legacy-contract methods, exercises
required call shapes (legacy positional hash and/or keyword-arg / **opts forms)The exit code section that command specs use does not apply to facade specs — exit-status handling is the command's concern; the facade's tests assume the command either returns a result or raises.
Facade integration tests run real git in a temp repository and verify the end-to-end Ruby return value of the facade method.
Each integration spec file tests one facade module (one
spec/integration/git/repository/<topic>_spec.rb). Inside, group by facade
method.
Facade integration tests are the exception, not the default. Most facade behavior is already covered end-to-end by the underlying command's own integration tests; re-running real git through the facade re-exercises the same code path without adding signal.
Write a facade integration test only when the facade adds behavior that is not exercised by any single command's integration tests:
Skip for everything else, including:
Git::Repository::Staging#add,
#reset).raise_error(Git::FailedError)) — these test
the command's error wrapping, not the facade.When skipping, document why with a code comment in the spec file or a #
header in spec/integration/git/repository/<topic>_spec.rb explaining which
methods are covered exclusively by command integration tests.
Mirror the Command Test Conventions integration grouping. Use a multi-command or post-processing facade method — single-command delegators do not warrant integration tests (see When to skip integration tests):
The shared context (e.g. 'in an empty repository') provides repo,
repo_dir, and execution_context helpers. Stage any required repository state
in a before block inside the spec itself.
RSpec.describe Git::Repository::Stashing, :integration do
include_context 'in an empty repository' # provides repo, repo_dir, and execution_context helpers
let(:described_instance) { Git::Repository.new(execution_context: execution_context) }
before do
write_file('README.md', 'initial')
repo.add('README.md')
repo.commit('Initial commit')
write_file('README.md', 'work in progress')
repo.add('README.md')
end
describe '#stash_save_and_list' do
it 'returns the new stash entry after saving' do
result = described_instance.stash_save_and_list(message: 'wip')
expect(result).to all(be_a(Git::StashInfo))
expect(result.first.message).to include('wip')
end
end
endOne context 'when the command succeeds' block (or just it blocks directly
under describe) per facade method, with one or more variations that exercise
the orchestration sequence or post-processing. Do not add a context 'when the command fails' block — error wrapping is the command's concern and is
covered by command integration tests.
When reviewing existing facade tests, add these checks:
legacy-contract, unit tests cover required call shapes.lib/git/repository/<topic>.rb) plus the underlying Git::Commands::* and
Git::Parsers::* files the facade calls.Produce the unit and (when applicable) integration spec files following the patterns above. Then self-verify by running every checklist item in the Reference section against your output.
Provide:
issue table
| Check | Status | Issue |
|---|
corrected snippets for failing checks
Self-verify before concluding — re-run the reference against your proposed snippets until all checks pass.
Branch workflow: Implement any new or updated tests on a feature branch. Never commit or push directly to
main— open a pull request when changes are ready to merge.
© ruby-git, MIT. 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 .github/skills/facade-test-conventions of ruby-git/ruby-git.
Open the folder on GitHubat commit f3bf20f
Git Facade Test Conventions 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 |
|---|---|---|---|---|---|---|
| Git Facade Test Conventions this skillruby-git/ruby-git | 1.8k | — | ~4.2k | Automated safety check: Pass | MIT | |
| OpenROAD Module Test AdderThe-OpenROAD-Project/OpenROAD | 3.2k | — | ~1.8k | Automated safety check: Pass | BSD-3-Clause | |
| Write Testsgrafana/synthetic-monitoring-app | 171 | — | ~1.2k | Automated safety check: Pass | AGPL-3.0 | |
| Write Test389ds/389-ds-base | 294 | — | ~1.8k | Automated safety check: Pass | Custom licence | |
| Web3 Testingwshobson/agents | 40k | 11 repos | ~2k | Automated safety check: Pass | MIT | |
| Verify Changesh0x91b/dev-3.0 | 307 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 |
The-OpenROAD-Project/OpenROAD
Adds integration or unit tests to an OpenROAD module: writes the Tcl test, generates golden files and registers it in both CMake and Bazel.
grafana/synthetic-monitoring-app
Write Jest integration and unit tests for the Grafana Synthetic Monitoring app using React Testing Library, MSW, and src/test helpers.
389ds/389-ds-base
Add or extend a pytest integration test for 389 Directory Server under dirsrvtests/.
wshobson/agents
Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking.
h0x91b/dev-3.0
How to test and verify work in the dev-3.0 repo — which vitest config covers what, how to write a test that fits the house style, mocking Electrobun RPC and i18n providers, what coverage is actually…
fullstackhero/dotnet-starter-kit
Write tests for an FSH feature — xUnit + Shouldly + NSubstitute + AutoFixture, with naming and AAA conventions.
ruby-git/ruby-git
Addresses unresolved pull request review threads and suppressed (low-confidence) Copilot review comments on the current branch, folds each fix into the…
ruby-git/ruby-git
Assesses what an API change would break before it is made, finds every usage, documents the impact and plans a deprecation or migration path.
ruby-git/ruby-git
Diagnoses and fixes failing GitHub Actions runs by identifying the failure, fetching only the relevant logs, finding the root cause and reproducing it locally.
ruby-git/ruby-git
Scaffolds and reviews `Git::Commands::*` classes in the ruby-git library, with unit tests, integration tests and YARD docs, using the Base command architecture.
ruby-git/ruby-git
Workflow for updating gem dependencies and fixing CVEs in the ruby-git project: assess with bundle outdated and audit, edit the gemspec, test, then commit with conventional messages.
ruby-git/ruby-git
Migrates a direct command call in Ruby Git's Git::Lib to a Git::Commands class, as part of a Strangler Fig redesign, with a plan, legacy tests and a pull request.
Categories
Conventions for writing and reviewing unit and integration tests of Git::Repository facade methods in the ruby-git project, covering setup, cases, grouping and scope. This skill sets the conventions for testing the facade methods in the `Git::Repository` modules under `lib/git/repository/`. You attach it to a Copilot Chat session together with the spec files to write or review and, ideally, the matching facade module so that delegation contracts and option forwarding can be checked.
Git Facade Test Conventions fits situations like: scaffolding specs for a new Git::Repository facade module; auditing existing facade specs for gaps and over-testing; deciding whether a facade method needs an integration test.
Run `npx skills add ruby-git/ruby-git --skill facade-test-conventions -a claude-code`. Or copy the skill folder (.github/skills/facade-test-conventions in ruby-git/ruby-git) into .claude/skills/facade-test-conventions in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ruby-git/ruby-git --skill facade-test-conventions -a codex`. Or copy the skill folder (.github/skills/facade-test-conventions in ruby-git/ruby-git) into .agents/skills/facade-test-conventions 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 ruby-git/ruby-git --skill facade-test-conventions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/facade-test-conventions, .gemini/skills/facade-test-conventions, .github/skills/facade-test-conventions and .opencode/skills/facade-test-conventions in your project.
SKILL.md names no scripts, command-line tools or credentials: Git Facade Test Conventions is instructions for the agent only. Our summary lists: The ruby-git repository with its RSpec suite; The RSpec Unit Testing Standards skill.
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.
Git Facade Test Conventions is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.2k tokens (SKILL.md is roughly 17k 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 Git Facade Test Conventions: OpenROAD Module Test Adder (The-OpenROAD-Project/OpenROAD, 3.2k stars), Write Tests (grafana/synthetic-monitoring-app, 171 stars), Write Test (389ds/389-ds-base, 294 stars) and Web3 Testing (wshobson/agents, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ruby-git (a GitHub organization) maintains it in ruby-git/ruby-git, which has 1,799 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 2, 2026.
Source: ruby-git/ruby-git on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.