AutoSci: Skill for Claude Code

.claude/skills/refine/SKILL.md

refine is a skill for Claude Code from skyllwt/AutoSci. It costs 31 tokens per session (2,442 once invoked), scanned A, original, MIT.

A repeated review-and-fix process for research work such as ideas, proposals, experiment plans, and paper drafts. Each round gets structured feedback, applies changes, updates the wiki, and reviews the result again.

In plain words
What is it for?
Use it on a wiki page or file to track score changes, fix identified issues, update related wiki entities, and produce an improvement report.
Why use it?
It turns review comments into successive revisions and stops when the work reaches a chosen score or the round limit is reached.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

This is skyllwt/AutoSci's own configuration. It tells Claude Code how to work on AutoSci itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AutoSci configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 tools/research_wiki.py rebuild-context-brief wiki/.

About the project

AutoSci is an AI research platform organized around a wiki, with an agent that supports stages of scientific work such as reading, experimentation, writing, and retaining knowledge across projects. It is for people building or using AI-assisted research workflows, with Claude Code, Codex, and OpenCode adaptations available. The catalogue add-ons extend those agent-specific workflows.

skyllwt/AutoSci · 1,706 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to skyllwt/AutoSci. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/skyllwt/AutoSci/main/.claude/skills/refine/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/skyllwt/AutoSci

Made for: Claude Code.

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 refine

README.md
[![agentmods](https://agentmods.dev/badge/skills/skyllwt/autosci/refine/github.svg)](https://agentmods.dev/skills/skyllwt/autosci/refine)
Your own site
<a href="https://agentmods.dev/skills/skyllwt/autosci/refine"><img src="https://agentmods.dev/badge/skills/skyllwt/autosci/refine/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 refine

Your own site · 80×15
<a href="https://agentmods.dev/skills/skyllwt/autosci/refine"><img src="https://agentmods.dev/badge/skills/skyllwt/autosci/refine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,442 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 pass 7 Sept 2026
SkillSpector: 1 finding, up to low

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 →

  • low Excessive Agency · line 201
    Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.
    Fix: Limit the skill's scope to its documented purpose. Remove instructions that enable the agent to perform actions outside its stated functionality.
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.00031 $0.02442
Opus 5.5 $0.00012 $0.00977
Sonnet 5.5 $0.00006 $0.00488
Haiku 4.5 $0.00003 $0.00244

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

Security

Grade A, and why

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

.claude/skills/refine/SKILL.md · 233 lines

How it starts

The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/refine

General-purpose multi-round iterative improvement loop for any research artifact (idea, proposal, experiment plan, paper draft). Each round calls /review for structured feedback → parses actionable items → Claude fixes the artifact → updates wiki entities → re-reviews, until the score reaches the target or the maximum rounds are exhausted. Outputs an improvement history and the final review score.

Inputs

  • artifact: the artifact to improve, one of:
    • slug of a wiki page (searched in ideas/experiments/methods/outputs/)
    • file path (e.g. wiki/outputs/paper-draft-v1.md)
  • --max-rounds N (optional, default 4): maximum iteration rounds
  • --target-score N (optional, default 8): target review score (1-10); stop when reached
  • --difficulty (optional, default hard): difficulty level passed to /review
  • --focus (optional): review focus passed to /review

Outputs

  • Improved artifact (wiki page or file, updated in place)
  • Wiki entity updates (if review finds ideas/methods needing strengthening or identifies gaps)
  • REFINE_REPORT (output to terminal):
    • Score trajectory across all rounds
    • Cumulative list of fixed issues
    • Final review score and verdict
    • Unresolved issues (if any)

Wiki Interaction

Reads

  • wiki/ideas/*.md — if artifact is an idea
  • wiki/experiments/*.md — if artifact is an experiment plan
  • wiki/methods/*.md — methods referenced by the review
  • wiki/papers/*.md — papers referenced by the review
  • wiki/outputs/*.md — if artifact is a paper draft or output
  • wiki/graph/context_brief.md — global context passed to /review
  • wiki/graph/open_questions.md — check whether new gaps need recording

Writes

  • wiki/ideas/{slug}.md — if artifact is an idea, fix issues found by review
  • wiki/experiments/{slug}.md — if artifact is an experiment plan
  • wiki/methods/{slug}.md — if review flags a method gap (e.g. missing source_papers, weak Procedure)
  • wiki/outputs/*.md — if artifact is a paper draft or output
  • wiki/graph/edges.jsonl — if new relationships are discovered during fixes
  • wiki/graph/context_brief.md — rebuild after each round if wiki changes were made
  • wiki/graph/open_questions.md — rebuild after each round if wiki changes were made
  • wiki/log.md — append operation log

Read the full file on GitHub · 233 lines

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. 2mo ago First seen · 233 lines · 31 tokens per session scan A da78a43b202e

Subscribe to this mod's changes

refine is a skill published in the GitHub repository skyllwt/AutoSci (1,706 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 2,442 once invoked, about $0.0001 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-08-30.

Related

refine compared with skills from other repositories

refine next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refineskyllwt/AutoSciSkill1.7k1mo agoMITA31Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143ktodayMITA103Claude Code