setup-repository

setup-repository is a skill for Claude Code from airas-org/airas. It costs 40 tokens per session (851 once invoked), scanned A, original, MIT.

A setup workflow that creates an AIRAS experiment repository and prepares it for controlled research work. The repository stores the experiment code, results, and research records.

In plain words
What is it for?
Use it to create and clone a research repository, configure automated checks, and confirm whether its required protections are active.
Why use it?
It removes the manual work of creating the repository and configuring its secrets and protected main branch.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the airas plugin — 9 skills, 3 hooks, 1 MCP server shipped together

Good fit Use it to create and clone a research repository, configure automated checks, and confirm whether its required protections are active.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/airas-org/airas/setup-repository
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add airas-org/airas --skill setup-repository
Clone the repo
git clone --depth 1 https://github.com/airas-org/airas

Made for: Claude Code.

Or install airas, the plugin that ships this one along with the rest of its 9 skills, 3 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-repository

README.md
[![agentmods](https://agentmods.dev/badge/skills/airas-org/airas/setup-repository/github.svg)](https://agentmods.dev/skills/airas-org/airas/setup-repository)
Your own site
<a href="https://agentmods.dev/skills/airas-org/airas/setup-repository"><img src="https://agentmods.dev/badge/skills/airas-org/airas/setup-repository/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-repository

Your own site · 80×15
<a href="https://agentmods.dev/skills/airas-org/airas/setup-repository"><img src="https://agentmods.dev/badge/skills/airas-org/airas/setup-repository.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 11
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Rogue Agent · line 3
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00851
Opus 5.5 $0.00016 $0.00340
Sonnet 5.5 $0.00008 $0.00170
Haiku 4.5 $0.00004 $0.00085

Measured 1mo ago against content hash a50ed15df157, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup-repository scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/airas/skills/setup-repository/SKILL.md · 71 lines

What it actually says

Set up the experiment repository

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +4 lines a50ed15df157
  2. 1mo ago Changed · +3 lines aa7e3399648c
  3. 1mo ago Changed · +2 lines 226b50033a13
  4. 1mo ago Changed · +2 lines 7acc4ab69584
  5. 1mo ago Changed aa19e665a92a
  6. 2mo ago First seen · 60 lines · 40 tokens per session scan A 166e20be5ada

Subscribe to this mod's changes

setup-repository is a skill published in the GitHub repository airas-org/airas (39 stars, last pushed 21d ago), licensed MIT. It adds 40 tokens to every session and 851 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

setup-repository compared with skills from other repositories

setup-repository next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setup-repositoryairas-org/airasSkill3921d agoMITA40Claude Code
research-prooftonyblu331/research-proofSkill525mo agoMITA101Claude Code
proof-checkerwanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA87Claude Code
auto-paper-improvement-loopwanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA67Claude Code
paper-writewanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA50Claude Code
research-litwanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA48Claude Code
paper-illustrationwanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA67Claude Code