/airas:setup-repositoryfrom airas
Creates an AIRAS experiment repository from a template, clones it locally, configures branch protection, and sets GitHub Actions secrets for provenance tracking.
Ships in airas. 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.
None: SKILL.md is the whole skill.
prepare_repository — pass the visibility settled at the start of
the flow: is_private=False unless the user asked for private,
because on GitHub's free plan branch protection (step 2 below) is
only available on public repositories; returns clone_url;
clone it locally with git. Requires GH_PERSONAL_ACCESS_TOKEN
(~/.airas/credentials.json) with
admin rights on the repository.
It also protects main in the same call. Without branch
protection, a red CI run can simply be pushed past, and every
guarantee in the record becomes advisory.
Read warnings and branch_protected in the result. A failed
protection does not abort the creation, so a repository can come
back usable and unenforced. If branch_protected is false, say so
to the user rather than continuing as though the record were
protected. The repair is to run prepare_repository again once the
cause is fixed (admin rights, a public repository): it is safe on the
repository it already created and redoes only what is missing.
set_github_actions_secrets — copies the keys in
~/.airas/credentials.json into the repository's Actions secrets. It
refuses when GH_PERSONAL_ACCESS_TOKEN or SEYVAL_API_KEY is missing
locally: without the first Publish Paper cannot push the PDF, and
without the second the provenance cross-check degrades to a skip
rather than a failure, so an unprovisioned repository looks like it
is passing. The same key names reach every dispatched run as
AIRAS_SECRET_NAMES, so the observation hook can redact their values.
Run it again whenever a key is added or rotated.
Work through a staging ref, not by pushing to main. A commit
reaches the protected branch only once the record gate is green on
that exact sha, and the check cannot run on a commit nobody has
pushed. Start every piece of work from the current main
(git pull --ff-only origin main): Publish Paper commits the built
PDF onto main after each paper, so a branch that was not brought up
to date can no longer fast-forward onto it. Then push local main
to a scratch ref, wait for the gate, then fast-forward:
git push origin main:verify # the gate runs on this sha
# green
git push origin main:main # the same sha, fast-forwarded
No local branch is needed — required checks are evaluated per
commit, not per branch. Never squash or rebase to get a commit onto
main: both rewrite commits, and verification asks whether each
run's recorded commit is an ancestor of HEAD.
Look over the clone: the .github/ workflows, Makefile and empty
src/ stubs are what the experiment code will be held to. The
contract itself — run-id naming, CLI shape, sanity/pilot/full
semantics, the files you may touch — is stated in
write-experiment-code, not in the repository.
The repository is the home of all research state. Everything
produced from here on (sources, hypothesis, declarations, results)
goes into .research/record.json through the record tools and is
committed as it is made, so a fresh session restores from the clone
alone.
Output: a pushed clone, ready to receive research state, from which a fresh session can continue without this conversation.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub airas-org/airas --plugin airas9 skills in this plugin
/analyze-resultsRead imported experiment results, author the analysis, and produce the figures (verifiable charts and method diagrams). Use to analyze experiment outputs or make the paper's figures./auto-researchEnd-to-end automated research with the AIRAS integrity flow — the paper is preregistered (claims, criteria and expected results frozen in git, on top of the experiment code) before any pilot or full run, and every reported number is realized and verified from run outputs afterwards. This skill holds only the ordering and the rules that span steps; each step's contract lives in its own skill. Use when the user wants to run an AIRAS research project start to finish, or asks where in the flow they are or what comes next./hypothesize-and-designRead the fetched papers in .research/sources/, then author a falsifiable research hypothesis and an experimental design that fixes run ids, metrics, models, datasets and the compute environment. Use to create or rework a hypothesis and its experimental design./preregister-paperWrite the preregistration paper (prereg main.tex) for a research repository whose hypothesis, experimental design and experiment code already exist, before any pilot or full run. Hypothesis, predictions and design are written in full as numbered claims with criteria and predicted intervals; Results and Discussion stay stubs until experiments fill them, and every experimental number is an \airasval placeholder. Use when the user wants the paper declared before experiments (the AIRAS integrity flow), asks for a prereg PDF, or says 事前登録 / preregister / "write the paper first"./publish-paperTake a frozen AIRAS paper from experiment results to the paper of record — realize every stated number from declared values, compile and verify locally until green, then push and let CI re-run the verification, handing the user the CI-built PDF artifact and report. Use after experiments to fill, check, and publish the paper, or just to check whether the numbers hold up (stop before pushing)./run-experimentsExecute committed experiment code on the chosen compute platform (GitHub Actions or Seyval) and bring the outputs back into the repository with provenance. Use to run, monitor, or re-run experiments in an AIRAS experiment repository.Other plugins' skills for the same job