/rseng-agent-skills:rseng-documentationfrom rseng-agent-skills
Guides researchers on documenting research software at every level: README, code comments/docstrings, API/CLI help, project files (INSTALL, CONTRIBUTING, LICENSE, CITATION, changelog), hosted docs via Read the Docs, and narrative Research Software Stories.
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 creating or improving any documentation for research software: a README, in-code comments and docstrings, API/CLI references, project files like CONTRIBUTING or CHANGELOG, a hosted documentation site, or a narrative Research Software Story. Good documentation makes software understandable, reusable, and sustainable - it tells others (and your future self) what the software does, how to use it, and how to contribute.
Decide which level the user needs before writing, because audience and content differ:
Both matter; keep them consistent. Installation and usage often straddle the line and serve users and developers alike, so link between the two rather than duplicating.
Cross-cutting rules for all documentation:
The README is the entry point and the project's homepage on GitHub or GitLab. Place it in the project root as plain text or Markdown so it ships with the code. Aim for three qualities: understandability, usability, and attribution.
Include these sections, adapting depth to the audience:
For research software also document how to reproduce or replicate the experiments, add citation information, and describe links to related publications and datasets.
Extra tactics: add badges for at-a-glance status (see the howfairis list); run SOMEF to detect missing README parts (it flags gaps, it does not grade). If AI assists in drafting a README, hold it to the same accuracy bar - verify every command, requirement, and citation before publishing.
Match documentation type to purpose and audience - user, developer, and deployment documentation each target different readers, so tailor content accordingly; personas help.
Document as you code:
Write meaningful error messages that state when and where the error happened, what went wrong, the software state, and how to fix it or where to look.
Include usage examples, a quickstart for a fast path to experimentation, and a fuller step-by-step tutorial. Move examples to a dedicated section if they clutter the main docs.
Document any CLI or API: describe usage, subcommands, options, arguments,
and environment variables with examples. Implement a help command so users
succeed without external docs. Tools: Click for Python CLIs, the OpenAPI
Specification and Swagger for REST APIs.
Automate generation from annotated source where you can:
Beyond the README, a well-documented project provides these root-level files or clearly linked pointers:
Organize it for the reader: identify the audience, state the purpose, structure information logically, keep it current, make it easy to find and navigate (e.g. GitHub Pages), and include enough detail - environment, data, example workflows - for others to reproduce results.
A build story (docs/BUILD-STORY.md - the choices behind the project, written as teaching material for new developers) rounds out the developer docs from tier 2 up; rseng-trainer carries the practice.
Architecture, API and data-flow diagrams belong in the developer docs as diagrams-as-code (Mermaid renders inline on forges and doc sites; sources committed, exports regenerated) - what to draw and how to keep it honest is rseng-software-design's diagram practice.
When a project needs a browsable docs site, generate static pages with Sphinx or MkDocs and publish them. Read the Docs is a common host that integrates with GitHub/GitLab and rebuilds via CI:
sphinx-quickstart or mkdocs new) and push it
with the code..readthedocs.yaml
(config version 2) at the repo root declaring the Python
environment and the builder.https://<your-project>.readthedocs.io/.A Research Software Story captures the context around a project rather than how to run it: the scientific problem, the community, and the practices and tools that sustain it - the who, what, why, where, when, and how. It helps onboard newcomers, explains the project to leaders and funders, and, through the act of writing, surfaces gaps the team had not noticed.
Guide the user through the template sections - the problem addressed, the communities involved, the technical nature, dependencies, development practices, onboarding, tooling, documentation/FAIR/openness, and sustainability/governance. Emphasise clarity over technical depth; a reader should grasp the project without reading the code. Any version-zero draft counts - two or three sentences per section, written directly, drawn out by interviewing a teammate through the template, or drafted via interviewer-mode LLM prompting that prefers the interviewee's own words and never invents missing facts. Refine afterward, checking that processes are captured and linked tools and tutorials exist and work.
Good project documentation answers every question a newcomer, reviewer or future maintainer brings - check for ALL of these and flag the gaps, proportionate to tier:
Follow the ecosystem's documentation standard rather than inventing style:
Documentation completeness can be measured, not just felt: docstring coverage tools (interrogate for Python and equivalents elsewhere) report the fraction of public functions, classes and modules that carry documentation, and documentation coverage against community conventions is an explicit quality indicator. Run it read-only first, set a ratchet at the current value in CI so coverage cannot regress, and target the PUBLIC surface - private helpers earn docstrings when non-obvious, not by quota. The number locates gaps; whether a given docstring actually helps remains a human judgment (rseng-software-metrics covers the measurement discipline and its gaming hazards).
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
Three short reads, in order
research-software, readme, docstrings, sphinx, mkdocs, read-the-docs
67 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.npx claudepluginhub fdiblen/rseng-agent-skills --plugin rseng-agent-skillsOther plugins' skills for the same job