/rseng-agent-skills:rseng-citation-metadatafrom rseng-agent-skills
Guides making research software citable with CITATION.cff, codemeta.json, DOIs, and contributor tracking. Activates on citation file creation, release preparation, or when crediting external work.
Ships in rseng-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when someone wants their research software to be cited, discovered, and formally recognised: adding a citation file, writing machine-readable metadata, getting a persistent identifier, or building an evidence base of who contributed. Software has no title page, so the information needed to cite it is often hard to find - a citation file and structured metadata are what let both humans and tools cite the exact work correctly. Advise concrete files in the repository root, not abstractions.
For most projects, recommend all four in the repository root:
CITATION.cff - machine-readable citation metadata.codemeta.json - richer discovery/interoperability metadata.CONTRIBUTORS file - human-readable team record alongside the
machine-readable ones.A software citation itself should carry: title, the specific version used, authors/creators, a DOI or other stable link, and the repository URL - the version matters for reproducibility.
The Citation File Format is a structured plaintext (YAML) format; a valid
CITATION.cff in the repo root is reused automatically by GitHub, Zenodo,
and Zotero. Do not hand-craft the syntax from
memory - point the user at the CFFINIT generator, or start from the official
example and validate with cffconvert.
Checklist of core fields to populate:
cff-version - the CFF schema version (e.g. 1.2.0).message - the "please cite as" instruction.title - the official software name.authors - each with given-names, family-names, and an orcid where
available; an author may instead be a name for an organisation.version - the release being cited.date-released - the release date.doi - the release or concept DOI once minted.repository-code - the source repository URL.license - an SPDX identifier.preferred-citation block pointing to the article and its DOI.Minimal shape to adapt (validate before committing):
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: Your Software Name
version: 1.0.0
date-released: 2026-01-15
doi: 10.5281/zenodo.1234567
repository-code: https://github.com/yourusername/your-repo
license: MIT
authors:
- given-names: First
family-names: Author
orcid: https://orcid.org/0000-0002-1825-0097
affiliation: University of Edinburgh
Tell the user to generate with CFFINIT and validate with cffconvert rather than trusting a hand-edited file.
codemeta.json is a JSON-LD metadata standard (extending Schema.org) that
travels between archives and registries - Zenodo, FigShare, InvenioRDM, and
Software Heritage can ingest it, so metadata is not re-entered when getting a
DOI. Recommend it whenever discovery,
interoperability, or DOI minting is in play. Match the type of metadata to
the goal: citation metadata for academic credit, versions and dependencies
for reproducing an analysis, keywords and descriptions for discoverability.
Field checklist for a complete record:
name, description, version - identity and release.author and contributor - each a Person with givenName,
familyName, and an ORCID as identifier.license - an SPDX URL (e.g. https://spdx.org/licenses/MIT).codeRepository and issueTracker - where the code and issues live.programmingLanguage, softwareRequirements - stack and dependencies.identifier - the software's own DOI once archived.referencePublication - the related article, with its DOI as
identifier, when there is a paper to cite.funder - as an Organization with an identifier such as a Crossref
Funder ID.keywords, dateCreated, dateModified - discovery and freshness.Generate it with the CodeMeta Generator (form-based) or SOMEF (from README and docs), then always review it by hand to add ORCID iDs and funder detail, and validate the JSON-LD. Keep it current: update on every new version or contributor.
Uniquely identifying software and each version underpins reproducibility, citation, and long-term access. Combine methods rather than treating them as alternatives:
MAJOR.MINOR.PATCH) for human-readable release
identity - apply it consistently across GitHub tags and distribution
artifacts like Docker images.If the project is registered in a repository or registry, a persistent identifier is often created automatically; the awesome-research-software- registries list helps find a suitable one.
Zenodo issues a concept DOI for the project as a whole plus a release DOI per version - cite the release DOI for reproducibility, the concept DOI to refer to the project generally.
For GitHub-hosted code:
For GitLab-hosted code, the path differs:
provide a codemeta.json, get a Zenodo token with publishing scopes, and add
eOSSR or gitlab2zenodo to the GitLab CI pipeline so a release triggers an
automatic Zenodo deposit and DOI. Note gitlab2zenodo needs a .zenodo.json
converted from codemeta.json (eossr can do this).
Software contributions - maintenance, bug fixes, review, documentation - are routinely invisible in publication-centric assessment. Making them creditable needs structured metadata linking people to specific work via persistent identifiers. Advise:
For a career or assessment case, pair quantitative reach (package-manager downloads on PyPI or CRAN, dependency graphs, citing papers) with narrative on technical complexity and scientific impact; check whether the institution or funder recognises software as an output; and add a "Credit and Recognition" section to the Software Management Plan, tracking contributions from the start rather than retrospectively.
Validate citation files in CI: the cffconvert GitHub Action checks CITATION.cff on every push, so a malformed file fails fast instead of surfacing at publication time (pattern from the NLeSC python-template).
Contributor records rot silently: people join, review, triage and document, and the citation files still name the two founders. Track contributions and suggest updates rather than waiting to be asked:
Co-authored-by: trailers and .mailmap are the machine-readable
record - names pasted into commit prose or file headers are not
(rseng-version-control-review); fix wrong-place practice at the
source before fixing citation files.CITATION.cff, codemeta.json and
CONTRIBUTORS; report who is active but unrecorded (and recorded
but never active - possibly fine, possibly a paste error).Crediting flows both ways: the sources that INFORM generated or hand-written code deserve the same rigor as the project's own citability. Whenever a website, publication, algorithm description, existing codebase, or a Q&A answer shapes code, record it in every place a future reader will look:
references entries (type, title, authors, DOI/URL)
and in the project documentation's references section, not only
in a comment.There is no file pattern that reveals an uncredited source, so no mechanical check exists - this is a discipline to apply AT GENERATION TIME, and a review question afterwards (rseng-code-review: "where did this method come from, and does the code say so?").
The generated references.md beside this file lists the source material and pointers.
Learn more (verified):
Check whether any of these applies before moving on:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fdiblen/rseng-agent-skills --plugin rseng-agent-skills67 skills in this plugin
/rseng-agent-securityCovers operating AI coding agents securely: auditing whether the agent runs sandboxed, permission and dangerous-command configuration, containerized environments, secrets kept out of context, network egress and token privileges, prompt-injection risk, and the privacy of agent use itself. Use PROACTIVELY when permission gating is broadly disabled (skip-permissions modes), when secrets are visible to the agent's shell, or when the agent processes untrusted code, issues or web content; when a project holds personal or confidential data while a cloud agent is active (what leaves the machine, retention, training use), or when the user asks how to run coding agents safely or privately. (Supply-chain security: rseng-security; disclosing agent contributions: rseng-ai-declaration.)/rseng-ai-declarationCovers declaring AI involvement with the AI Declaration Format (https://ai-declaration.org): creating and maintaining an aidecl.yaml that records which AI tools and agents were used, what each contributed, when and how much, plus the README disclosure footnote, JSON/JSON-LD export and CI validation. Machine-readable disclosure is the practice; this format is one implementation. Use PROACTIVELY when an AI assistant or agent creates or modifies a project's content - generate aidecl.yaml if missing, update it after AI-assisted changes. Also use when the user asks about AI transparency, provenance, disclosure or EU AI Act disclosure, wants to state that NO AI was used, or mentions aidecl. For concealment requests see rseng-honesty; for the human review duty see rseng-human-verification.Other plugins' skills for the same job