code-science

code-science is a skill for Claude Code, Codex from beita6969/ScienceClaw. It costs 106 tokens per session (1,410 once invoked), scanned A, original, MIT.

A set of practices for writing scientific software and keeping computational research reproducible. Reproducible research means another person can rerun the code with the documented environment, data, and settings and obtain comparable results.

In plain words
What is it for?
Use it to organize Python or R research projects, manage raw and processed data, record dependency versions and random seeds, use version control, and plan notebooks, tests, figures, and results.
Why use it?
It reduces confusion caused by untracked dependencies, changed raw data, undocumented random choices, and notebooks that cannot be rerun reliably. It also gives research code a clearer structure for testing and sharing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to organize Python or R research projects, manage raw and processed data, record dependency versions and random seeds, use version control, and plan notebooks, tests, figures, and results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/beita6969/scienceclaw/code-science
About the project

ScienceClaw is an agent system for scientific work that completes tasks as typed, executable workflows and turns replay-verified improvements into reusable skills and operators. It is intended for AI-assisted research across natural and social science disciplines. The catalogue entries are its skills and instruction for use with the system.

beita6969/ScienceClaw · 1,034 stars · on GitHub · scienceclaw.science

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 beita6969/ScienceClaw --skill code-science
Clone the repo
git clone --depth 1 https://github.com/beita6969/ScienceClaw

Made for: Claude Code, Codex.

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 code-science

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/beita6969/scienceclaw/code-science"><img src="https://agentmods.dev/badge/skills/beita6969/scienceclaw/code-science.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,410 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
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.00106 $0.01410
Opus 5.5 $0.00042 $0.00564
Sonnet 5.5 $0.00021 $0.00282
Haiku 4.5 $0.00011 $0.00141

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

Security

Grade A, and why

code-science 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 3mo 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.

skills/code-science/SKILL.md · 193 lines

How it starts

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

Scientific Programming

Best practices for research software and reproducible computation.

Project Structure

project/
├── README.md              # Project overview, how to reproduce
├── LICENSE                 # MIT, Apache 2.0, or GPL
├── requirements.txt       # or environment.yml (conda)
├── setup.py / pyproject.toml
├── data/
│   ├── raw/               # Never modify raw data
│   ├── processed/         # Cleaned/transformed data
│   └── external/          # Third-party data
├── src/ or scripts/
│   ├── data_processing.py
│   ├── analysis.py
│   ├── models.py
│   └── visualization.py
├── notebooks/             # Exploratory analysis
│   ├── 01_eda.ipynb
│   ├── 02_modeling.ipynb
│   └── 03_figures.ipynb
├── results/
│   ├── figures/
│   └── tables/
├── tests/
└── docs/

Reproducibility Checklist

  1. Environment: Pin all dependencies with versions

    pip freeze > requirements.txt
    # or conda
    conda env export > environment.yml
    
  2. Random seeds: Set and document all random seeds

    import numpy as np
    import random
    SEED = 42
    np.random.seed(SEED)
    random.seed(SEED)
    # torch.manual_seed(SEED)
    # tf.random.set_seed(SEED)
    
  3. Data versioning: Use DVC or git-lfs for large data

    dvc init
    dvc add data/raw/dataset.csv
    git add data/raw/dataset.csv.dvc
    
  4. Configuration: Separate config from code

    # config.yaml
    # experiment:
    #   learning_rate: 0.001
    #   batch_size: 32
    #   epochs: 100
    import yaml
    with open('config.yaml') as f:
        config = yaml.safe_load(f)
    
  5. Logging: Record all experiments

    import logging
    logging.basicConfig(level=logging.INFO, 
                        format='%(asctime)s %(levelname)s: %(message)s',
                        filename='experiment.log')
    

Parallel Computing

# Multiprocessing (CPU-bound)
from multiprocessing import Pool
import numpy as np

def process_chunk(data):
    return heavy_computation(data)

with Pool(processes=8) as pool:
    results = pool.map(process_chunk, data_chunks)

# Concurrent futures (simpler API)
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor

with ProcessPoolExecutor(max_workers=8) as executor:
    results = list(executor.map(process_func, items))

# For I/O-bound tasks (API calls, file reading)
with ThreadPoolExecutor(max_workers=20) as executor:
    results = list(executor.map(fetch_data, urls))

Read the full file on GitHub · 193 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. 3mo ago First seen · 193 lines · 106 tokens per session scan A b7b6bf230bba

Subscribe to this mod's changes

code-science is a skill published in the GitHub repository beita6969/ScienceClaw (1,034 stars, last pushed 7d ago), licensed MIT. It adds 106 tokens to every session and 1,410 once invoked, about $0.0004 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

code-science compared with skills from other repositories

code-science next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-sciencebeita6969/ScienceClawSkill1.0k7d agoMITA106Claude Code, Codex
biopythonsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A76Claude Code, Codex
scanpysynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A68Claude Code, Codex
structure-predictionsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A42Claude Code, Codex
biomcpgenomoncology/biomcpSkill68719d agoMITA70Claude Code
biomcp-researchgenomoncology/biomcpSkill68719d agoMITA36Claude Code
biological-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A59Claude Code