skills/43-wentorai-research-plugins/skills/research/deep-research/kosmos-scientist-guide/SKILL.md
Claude Code-driven autonomous AI Scientist for discovery
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research kosmos-scientist-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Kosmos is a Claude Code-driven AI Scientist framework that automates the scientific discovery process — from hypothesis generation through literature review, experiment design, code implementation, result analysis, and paper writing. It uses Claude Code as the execution engine with structured prompts that guide it through the full scientific method. Designed for ML/AI researchers automating experiment pipelines.
Research Question
↓
Literature Review (search + synthesize)
↓
Hypothesis Generation (testable predictions)
↓
Experiment Design (variables, controls, metrics)
↓
Implementation (code, data pipeline)
↓
Execution (run experiments)
↓
Analysis (statistics, visualization)
↓
Interpretation (findings, limitations)
↓
Paper Draft (LaTeX manuscript)
# CLAUDE.md for Kosmos AI Scientist
## Research Protocol
You are an AI Scientist conducting rigorous research.
Follow the scientific method strictly:
1. **Literature Review**: Search for related work before
proposing anything new. Use OpenAlex API.
2. **Hypothesis**: State falsifiable hypotheses clearly.
3. **Experiment Design**: Define independent/dependent
variables, controls, evaluation metrics.
4. **Implementation**: Write clean, reproducible code.
Set random seeds. Log all hyperparameters.
5. **Analysis**: Run statistical tests. Report confidence
intervals, not just point estimates.
6. **Honesty**: Report negative results. Acknowledge
limitations. Never fabricate data.
## Tools Available
- Python 3.11+ with PyTorch, NumPy, SciPy
- LaTeX (pdflatex + bibtex)
- OpenAlex API for literature
- W&B for experiment tracking (optional)
# Kosmos automates literature search
# The AI Scientist searches, reads, and synthesizes
# Guided prompt pattern:
"""
Search for papers on: [TOPIC]
1. Find 20+ relevant papers from last 3 years
2. Read abstracts and identify key methods
3. Create a summary table:
| Paper | Method | Dataset | Key Result |
4. Identify gaps in current research
5. Propose novel directions based on gaps
"""
# Structured experiment specification
experiment_spec = {
"hypothesis": "Sparse attention patterns learned via "
"Gumbel-Softmax outperform fixed patterns "
"on long-sequence tasks",
"independent_vars": ["attention_pattern_type"],
"dependent_vars": ["accuracy", "throughput", "memory"],
"controls": {
"model_size": "same parameter count",
"training_data": "same dataset and splits",
"hyperparams": "same learning rate schedule",
},
"datasets": ["Long Range Arena", "PG-19"],
"baselines": ["full_attention", "local_window",
"linformer", "performer"],
"metrics": {
"primary": "accuracy",
"secondary": ["wall_clock_time", "peak_memory"],
},
"statistical_tests": ["paired_t_test", "bootstrap_ci"],
"seed_runs": 5,
}
# The AI Scientist writes and runs experiment code
# Pattern: iterative implementation with testing
"""
Implement the experiment:
1. Write model code with unit tests
2. Write training loop with logging
3. Run small-scale validation (1 epoch, subset)
4. Verify metrics are computed correctly
5. Run full experiments (all seeds, all baselines)
6. Save results to results/ directory
"""
# Results structure
# results/
# ├── config.json # Full hyperparameters
# ├── metrics.csv # All run metrics
# ├── figures/ # Generated plots
# └── checkpoints/ # Model checkpoints
# Automated analysis and writing
"""
Analyze results and write paper:
1. Compute mean ± std across seeds
2. Run statistical significance tests
3. Generate publication-quality figures
4. Write LaTeX paper with:
- Introduction (motivation + contributions)
- Related Work (from literature review)
- Method (formal description)
- Experiments (setup + results + analysis)
- Conclusion (summary + limitations + future)
5. Verify all citations are real (OpenAlex/CrossRef)
"""
### Guardrails
- Never fabricate or manipulate experimental data
- Report all results including negative ones
- Acknowledge limitations explicitly
- Verify all citations against real databases
- Include compute cost and environmental impact
- Flag when results are inconclusive
- Human review required before submission
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.