Agent skill

Cpp Test

by GPlates in GPlates/GPlates

Conventions for adding or modifying C++ unit tests in GPlates (GoogleTest, src/unit-test/).

Custom licenceAuto-check passedTesting & QA

Install Cpp Test

skills CLI
$ npx skills add GPlates/GPlates --skill cpp-test -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install GPlates/GPlates cpp-test --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/GPlates/GPlates.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/cpp-test .claude/skills/cpp-test && rm -rf skills-src

Use ~/.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/

Facts

Skill name
cpp-test
GitHub stars
154
Token cost
~696 tokens
SKILL.md length
331 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
Custom licence

At a glance

Conventions for adding or modifying C++ unit tests in GPlates (GoogleTest, src/unit-test/).

  • Works in 3 steps: Create or extend a file in… → Add the file to the srcs list in… → Rebuild gplates-unit-test — per-case…
  • Asked to write a C++ test
  • SKILL.md covers Mechanics, Rules and Scope guidance
  • Calls cmake and git

What it does

Cpp Test is an agent skill from GPlates/GPlates. Conventions for adding or modifying C++ unit tests in GPlates (GoogleTest, src/unit-test/). Use when asked to write a C++ test, add coverage for C++ code, or review an existing test.

Its SKILL.md is about 700 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. It works with C++. The repository describes itself as: GPlates is a program for visualising and manipulating plate tectonic reconstructions. PyGPlates is a Python package containing the core plate reconstruction functionality in…

When your agent uses it

  • Asked to write a C++ test
  • Add coverage for C++ code
  • Review an existing test

Example prompts

  • “Use the cpp-test skill to convention for adding or modifying C++ unit tests in GPlates (GoogleTest, src/unit-test/)”
  • “/cpp-test”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Create or extend a file in src/unit-test/ using TEST() / TEST_F().
  2. Add the file to the srcs list in src/unit-test/CMakeLists.txt.
  3. Rebuild gplates-unit-test — per-case discovery via gtest_discover_tests() is automatic

What it can do on your machine

Read from SKILL.md and the folder at commit e845347. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • cmake
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cpp Test loads about 696 tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 331 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~696

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.

Safety

Auto-check passed

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.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 331 words (~696 tokens).

“Authoritative reference: @docs/design/testing/README.md. This skill covers the mechanics and the rules that are easy to violate.”

— opening of SKILL.md by GPlates, Custom licence
name
cpp-test

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/cpp-test of GPlates/GPlates.

Open the folder on GitHubat commit e845347

Compare with similar skills

Cpp Test 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.

Cpp Test compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cpp Test this skillGPlates/GPlates154—~696Automated safety check: PassCustom licence
OpenROAD Module Test AdderThe-OpenROAD-Project/OpenROAD3.2k—~1.8kAutomated safety check: PassBSD-3-Clause
Code Testing Extensionsmicrosoft/testfx1k2 repos~930Automated safety check: PassMIT
Test Smell Detectionmicrosoft/testfx1k—~5.3kAutomated safety check: PassMIT
FortranMindrally/skills267—~2.3kAutomated safety check: PassApache-2.0
Test Case ReducerArabelaTso/Skills-4-SE253—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • 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.

    3.2k GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Code Testing Extensions

    microsoft/testfx

    Official

    Provides file paths to language-specific extension files for the code-testing pipeline.

    1k GitHub starsUsed in 2 repos~930 tokens
    Testing & QAAuto-check passed
  • Test Smell Detection

    microsoft/testfx

    Official

    Deep-dive audit using the full testsmells.org 19-smell academic catalog for tests in any language.

    1k GitHub stars~5.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Fortran

    Mindrally/skills

    Best practices for modern Fortran (2003/2008+) scientific and numerical computing, covering modules, explicit interfaces, kind parameters, memory safety, and testing.

    267 GitHub stars~2.3k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Test Case Reducer

    ArabelaTso/Skills-4-SE

    Automatically reduces bug-triggering test cases to minimal form while preserving the failure.

    253 GitHub stars~2.5k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Automatically updates regression tests based on interval analysis to maintain coverage of key program intervals.

    253 GitHub stars~2.7k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed

More from GPlates/GPlates

  • API Docstring

    GPlates/GPlates

    Conventions for writing or reviewing pyGPlates Python API docstrings (signature-first line, type fields, overloads, math markup).

    154 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Build Gplates

    GPlates/GPlates

    Configure, build and test the GPlates desktop application. An agent skill from GPlates/GPlates.

    154 GitHub stars~750 tokensUpdated today
    Auto-check passed
  • Build Pygplates

    GPlates/GPlates

    Configure, build and test pyGPlates. An agent skill from GPlates/GPlates.

    154 GitHub stars~698 tokensUpdated today
    Auto-check passed
  • Docs Build

    GPlates/GPlates

    Build the pyGPlates Python API documentation (Sphinx, docs-pygplates).

    154 GitHub stars~620 tokensUpdated today
    Auto-check passed
  • Release Wheel

    GPlates/GPlates

    Walk through publishing a pyGPlates release to PyPI - version bump, release tag, and the approval gate.

    154 GitHub stars~1.8k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Cpp Test

What does Cpp Test do?

Conventions for adding or modifying C++ unit tests in GPlates (GoogleTest, src/unit-test/). Cpp Test is an agent skill from GPlates/GPlates. Conventions for adding or modifying C++ unit tests in GPlates (GoogleTest, src/unit-test/).

When should I use Cpp Test?

Cpp Test fits situations like: asked to write a C++ test; add coverage for C++ code; review an existing test.

How do I install Cpp Test in Claude Code?

Run `npx skills add GPlates/GPlates --skill cpp-test -a claude-code`. Or copy the skill folder (.claude/skills/cpp-test in GPlates/GPlates) into .claude/skills/cpp-test in your project. Claude Code loads it when a task matches its description.

How do I install Cpp Test in Codex?

Run `npx skills add GPlates/GPlates --skill cpp-test -a codex`. Or copy the skill folder (.claude/skills/cpp-test in GPlates/GPlates) into .agents/skills/cpp-test in your project. Codex loads it when a task matches its description.

Can I use Cpp Test in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GPlates/GPlates --skill cpp-test -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cpp-test, .gemini/skills/cpp-test, .github/skills/cpp-test and .opencode/skills/cpp-test in your project.

What does Cpp Test need to run?

Going by SKILL.md and its folder, Cpp Test needs the command-line tools its instructions call (cmake and git).

Does Cpp Test access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Cpp Test safe to install?

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.

What licence does Cpp Test use?

Cpp Test has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Cpp Test use?

About 696 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cpp Test?

Skills that share tags, products or a category with Cpp Test: OpenROAD Module Test Adder (The-OpenROAD-Project/OpenROAD, 3.2k stars), Code Testing Extensions (microsoft/testfx, 1k stars), Test Smell Detection (microsoft/testfx, 1k stars) and Fortran (Mindrally/skills, 267 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cpp Test?

GPlates (a GitHub organization) maintains it in GPlates/GPlates, which has 154 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 6, 2026.

Source: GPlates/GPlates on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.