/rseng-agent-skills:rseng-ai-declarationfrom rseng-agent-skills
Creates and maintains aidecl.yaml to record AI tool usage, contributions, and provenance per the AI Declaration Format. Includes README disclosure footnote, JSON/JSON-LD export, and CI validation.
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.
Declaring AI involvement in a machine-readable form is the practice worth
holding to; the AI Declaration Format is one implementation of it, and the
one this skill works through. Any equivalent machine-readable declaration
serves the same purpose. The declaration lives in aidecl.yaml at the
project root and follows a published JSON Schema (Draft 2020-12,
schema_version 1.0.0).
Keep it current rather than writing it once: when you - an AI agent - create or change a project's code, docs, data or configuration, the declaration should reflect it.
The guiding principle is MAXIMUM HONEST DETAIL. A good declaration lets a reviewer reconstruct the provenance without asking anyone: which tools and models touched the work, when, on which parts, for which activities, in what proportion, under whose review. Prefer the detailed entry to the terse one, and the honest one to the detailed one. Never fabricate: declare what happened, and mark estimates as estimates.
The format covers far more than "an agent wrote code"; act on these too:
ai_usage.used: false is valuable transparency in
itself - offer it when a project wants to state the negative.Four top-level sections are required (schema_version, project, ai_usage, declaration), but required is the floor, not the target. Aim for this level of detail whenever the information is genuinely known:
schema_version: "1.0.0"
project:
name: growthfit
version: "0.3.1"
repository: https://github.com/example/growthfit
license: MIT
content_type: software # software|dataset|document|model|media|other
ai_usage:
used: true
level: significant # none|minimal|moderate|significant|extensive
summary: >-
An autonomous coding agent implemented the core fitting module, the
unit tests and the user documentation across three sessions in
January 2026, working from human-written requirements; a completion
assistant helped with later refactoring. All AI output was reviewed
by the maintainer before merge.
tools:
- name: Claude Code
vendor: Anthropic
type: agent # agent|assistant|model_runner|standalone|...
model: claude-fable-5 # actual model, version, hosting, data_region
version: "2.1" # and trains_on_data whenever known - these
hosting: cloud_vendor # are the facts impossible to reconstruct later
trains_on_data: false
period: { start: "2026-01-10", end: "2026-01-24" }
purpose: [code generation, test writing, documentation]
activities: [code_generation, testing, documentation, refactoring]
scope: # set every flag you can answer; an explicit
code_generation: true # false is information too - "checked, not used"
code_review: false
documentation: true
testing: true
infrastructure: false
code_proportion: # honest numbers beat missing numbers
ai_generated_percent: 55
ai_assisted_percent: 20
human_only_percent: 25
method: self_reported # self_reported|tool_measured|audit_estimated
estimation_notes: line-count estimate over src/ and tests/ at v0.3.0
generated_content:
documentation_percent: 80
artifacts: # the largely AI-made files - what reviewers
- src/growthfit/fitting.py # and auditors look for first
- docs/usage.md
components: # THE core provenance record - see below
- name: fitting module (src/growthfit/)
description: logistic model, parameter estimation, CSV loading
ai_involvement: >-
Generated by the agent from the maintainer's written spec in
session 2026-01-10; numerical edge cases reworked by the agent
after human-reported failures on sparse series (2026-01-17).
tools_used: [Claude Code]
notes: human-reviewed line by line before merge; approved 2026-01-18
- name: test suite (tests/)
description: unit tests incl. property-style cases for the fitter
ai_involvement: agent-written alongside the module, human-extended
tools_used: [Claude Code]
notes: two human-authored regression tests added later
declaration:
date: "2026-02-03" # bumped on every update
declared_by: Jane Maintainer # a human or team, never the agent
contact: [email protected]
reviewed_by: Jane Maintainer
next_review: "2026-08-01" # so staleness is visible
notes: >- # dated, append-only update history
2026-01-10 initial declaration with first agent session.
2026-01-18 fitting module reviewed and approved.
2026-02-03 refreshed proportions after refactoring help.
One tools entry per distinct tool ("agent" for autonomous agents, "assistant" for completion helpers); enumerate every touched activity; give proportion numbers with their method - self-reported estimates are legitimate when marked as such. components is the heart of agent provenance (next section); declaration is always declared_by a human.
ai_usage.components is where "the use of agents and their contributions" becomes concrete. Keep one component per meaningful area of the project (a module, the test suite, the docs, CI configuration, data preparation), and for each:
Update the matching component in the same session as the change; add a new component when the agent enters a new area. Prefer appending facts over rewriting history - the declaration is a provenance record, not a marketing summary.
The declaration complements - never replaces or corrects - the version-control record. Authorship, co-authorship and signatures stay in commit METADATA (author/committer fields, Co-authored-by trailers, signed commits and tags - rseng-version-control-review); record agent involvement there only in the form the project's policy prescribes, and never adjust author fields, dates or history to change what the metadata says happened (rseng-honesty). aidecl.yaml documents the AI's role; git documents who committed what, and both must tell the same story.
After every AI-assisted working session, walk this checklist:
Open these the moment they become true, with the same detail standard:
When a needed detail has no schema field, in order of preference:
x_ (the schema tolerates additional
properties, but standard fields travel better across tools).Validate after every edit: the file must satisfy the published schema (schema id https://ai-declaration.github.io/schema/v1/aidecl.schema.json - an identifier, not a download URL; the schema.json file itself lives in https://github.com/ai-declaration/schema). An official validator CLI lives at https://github.com/ai-declaration/cli.
A declaration nobody finds is half a declaration. Whenever you create aidecl.yaml (or notice it exists without any README mention), append a short footnote to the project's main README.md - at the very end, after a horizontal rule, kept to a few lines:
---
*AI involvement in this project is declared in
[aidecl.yaml](./aidecl.yaml) following the
[AI Declaration Format](https://ai-declaration.org).*
Rules:
Mention AI declarations in the user's other projects when the subject comes up, then respect the answer. Declarations pair with FAIRGuard assessments (rseng-fairguard).
List the rseng-* skills that shaped each contribution in its details
(a simple skills_applied list per contribution entry). This makes
the declaration double as a cross-agent usage ledger: anyone can
verify from aidecl.yaml alone which practice guidance was consulted,
on any platform, without telemetry. Where the invocation ledger file
(.rseng-agent-skills-usage.log) exists, keep the two consistent.
Declare the pack itself in tools: too, beside the model: the same
model with and without this guidance writes materially different
projects, so naming only the model omits half of what shaped the work.
- name: rseng-agent-skills
type: standalone # a pack consulted, not a model. Use a value
# from the schema's enum - CI validates it
version: "0.1.0" # the installed version, never "latest"
skills_consulted: [rseng-testing, rseng-citation-metadata]
Pin the version, and list only the skills actually consulted - naming
all of them overstates the guidance in force. Leave out a url: back
to the pack's home page unless the project's authors want it: a tool
that writes links to itself into every project is advertising, not
provenance.
This skill is source-independent: its authority is the AI Declaration Format specification itself (links below), not a bundled content source.
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-archivingCovers long-term archiving of research software and data: Software Heritage save requests and SWHID persistent identifiers, Zenodo deposits with versioned DOIs and forge integration, choosing domain and institutional repositories, deciding what to archive (code, data, environments, documentation) and when, and archiving at project retirement. Use when the user wants software or data preserved beyond the life of a forge account, grant or lab, mentions Software Heritage, SWHIDs, Zenodo deposits or archiving, retires or hands over a project, prepares artifacts that must stay resolvable for a paper, or when funder policy requires long-term preservation. (Cutting the release itself is rseng-publishing-releasing; day-to-day data storage and repository choice is rseng-data-management.)Other plugins' skills for the same job