Agent skill

API Docstring

by GPlates in GPlates/GPlates

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

Custom licenceAuto-check passedDevelopment

Install API Docstring

skills CLI
$ npx skills add GPlates/GPlates --skill api-docstring -a claude-code

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

GitHub CLI
$ gh skill install GPlates/GPlates api-docstring --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/api-docstring .claude/skills/api-docstring && 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
api-docstring
GitHub stars
154
Token cost
~1k tokens
SKILL.md length
472 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
Custom licence

At a glance

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

  • Works in 8 steps: 100% markup-free. No :class:/:meth:… → Hybrid syntax: prose where unambiguous… → Top-level union separator is , or. | is… → …
  • Editing a docstring in src/api/.cc
  • SKILL.md covers Where docstrings live, Two consumers, one style, Signature and body and Overloads, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

API Docstring is an agent skill from GPlates/GPlates. Conventions for writing or reviewing pyGPlates Python API docstrings (signature-first line, type fields, overloads, math markup). Use whenever adding or editing a docstring in src/api/.cc or src/qt-resources/python/api/.py, or reviewing one.

Its SKILL.md is about 1k 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 Development, covering Technical documentation. It works with Python. 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

  • Editing a docstring in src/api/.cc
  • Src/qt-resources/python/api/.py

Example prompts

  • “Use the api-docstring skill to convention for writing or reviewing pyGPlates Python API docstrings (signature-first line, type fields, overloads…”
  • “/api-docstring”

Requirements

  • Python 3

Workflow steps

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

  1. 100% markup-free. No :class:/:meth: roles, no literals , no *emphasis*.
  2. Hybrid syntax: prose where unambiguous (list of GeometryOnSphere), Python brackets when
  3. Top-level union separator is , or. | is only used inside brackets
  4. Never / as a union separator — Sphinx does not split on it, so neither half links. Write
  5. No conditionals. "(if *return_x* is True)" belongs in :returns:, where roles and
  6. Real Python type names, singular — str not string/strings, int not integer,
  7. Field order and spelling: :returns: (prose, optional) directly before :rtype:. Spell
  8. Enum-value lists keep the values un-italicised; "returns the default argument" is written

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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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

API Docstring loads about 1k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 472 words of instructions outside code blocks.

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

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 472 words (~1,042 tokens).

“Read @docs/pygplates/README.md — it is the authoritative reference and this skill is a summary of its "Docstring conventions" and "Math markup" sections. Read process_docstring in docs/pygplates/conf.py.in before changing docstring layout (as opposed to wording).”

— opening of SKILL.md by GPlates, Custom licence
name
api-docstring

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/api-docstring of GPlates/GPlates.

Open the folder on GitHubat commit e845347

Compare with similar skills

API Docstring 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.

API Docstring compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
API Docstring this skillGPlates/GPlates154—~1kAutomated safety check: PassCustom licence
Adk Sample Creatorgoogle/adk-python22k—~1.3kAutomated safety check: PassApache-2.0
Crafting Effective Readmescumbucadev/cinemaempoa1465 repos~669Automated safety check: PassGPL-3.0
Acquire Codebase Knowledgegithub/awesome-copilot40k1 repos~2.3kAutomated safety check: PassMIT
Docs Conventionsflet-dev/flet17k—~1.6kAutomated safety check: PassApache-2.0
DDNS Provider DevelopmentNewFuture/DDNS4.7k—~558Automated safety check: PassMIT

Similar skills

  • Adk Sample Creator

    google/adk-python

    Official

    Creates a new sample agent in the ADK Python repository — the sample directory, its agent.py, and its README.md — following the conventions the existing samples already use.

    22k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Crafting Effective Readmes

    cumbucadev/cinemaempoa

    A skill your agent uses when writing or improving README files.

    146 GitHub starsUsed in 5 repos~669 tokens
    DevelopmentAuto-check passed
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    DevelopmentAuto-check passed
  • Docs Conventions

    flet-dev/flet

    A skill your agent uses when writing or reviewing Flet documentation, including Python docstrings (Google style, reST roles, admonitions), Markdown docs (cross-references, images, code examples)…

    17k GitHub stars~1.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Adds or changes a DNS provider in the DDNS project while keeping its code, schemas, tests and Chinese and English docs consistent.

    4.7k GitHub stars~558 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Mkdocs

    jeka-dev/jeka

    MkDocs documentation project reference covering CLI commands, mkdocs.yml configuration, Material theme setup, and plugin integration.

    176 GitHub stars~2k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed

More from GPlates/GPlates

  • Build Gplates

    GPlates/GPlates

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

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

    GPlates/GPlates

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

    154 GitHub stars~698 tokensUpdated yesterday
    Auto-check passed
  • Cpp Test

    GPlates/GPlates

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

    154 GitHub stars~696 tokensUpdated yesterday
    Auto-check passed
  • Docs Build

    GPlates/GPlates

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

    154 GitHub stars~620 tokensUpdated yesterday
    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 yesterday
    Auto-check passed

Works with

Categories

Questions about API Docstring

What does API Docstring do?

Conventions for writing or reviewing pyGPlates Python API docstrings (signature-first line, type fields, overloads, math markup). API Docstring is an agent skill from GPlates/GPlates. Conventions for writing or reviewing pyGPlates Python API docstrings (signature-first line, type fields, overloads, math markup).

When should I use API Docstring?

API Docstring fits situations like: editing a docstring in src/api/.cc; src/qt-resources/python/api/.py.

How do I install API Docstring in Claude Code?

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

How do I install API Docstring in Codex?

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

Can I use API Docstring 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 api-docstring -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-docstring, .gemini/skills/api-docstring, .github/skills/api-docstring and .opencode/skills/api-docstring in your project.

What does API Docstring need to run?

SKILL.md names no scripts, command-line tools or credentials: API Docstring is instructions for the agent only. Our summary lists: Python 3.

Does API Docstring access the network?

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.

Is API Docstring 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 API Docstring use?

API Docstring 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 API Docstring use?

About 1k tokens (SKILL.md is roughly 4.2k 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 API Docstring?

Skills that share tags, products or a category with API Docstring: Adk Sample Creator (google/adk-python, 22k stars), Crafting Effective Readmes (cumbucadev/cinemaempoa, 146 stars), Acquire Codebase Knowledge (github/awesome-copilot, 40k stars) and Docs Conventions (flet-dev/flet, 17k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains API Docstring?

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.