Rstack
CLAUDE.md69 starsChanged 8 months agoMITView on GitHub
When the user's request matches a research skill, invoke it: Work products go at the project root. Internal plumbing goes in .rstack/.
In this repository9 other files it gives its agents.
- analyze-resultsSkill
- experimentSkill
- lit-reviewSkill
- novelty-checkSkill
- researchSkill
- rstack-upgradeSkill
- setupSkill
- rstackSkill
- write-paperSkill
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 81
When the user's request matches a research skill, invoke it:
- Very specific: line 85
Check novelty of idea → /novelty-check
- Very specific: line 86
Run ML experiments → /experiment
- Very specific: line 88
Write/format paper → /write-paper
- Distinctive: line 125
Use natural language for logic and state, not shell variables between blocks
- Distinctive: line 126
Keep bash blocks self-contained
- Distinctive: line 128
Use AskUserQuestion for all non-trivial decisions
- Very specific: line 158
When not off, skill events are logged to ~/.rstack/analytics/skill-usage.jsonl (local, inspectable).
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
RStack development
Commands
./setup # install: create symlinks, config, detect compute
bash setup # same, explicit bash invocation
bin/rstack-config get venue # read a config value
bin/rstack-config set venue icml # write a config value
bin/rstack-config list # show all config
bin/rstack-compute-detect # check Modal, GPU, LaTeX availability
bin/rstack-preflight train.py # 30s CPU dry-run of experiment code
bin/rstack-analytics # usage dashboard (last 7 days)
bin/rstack-analytics 30d # last 30 days
bin/rstack-analytics all # all time
bin/rstack-telemetry-log --skill qa --duration 60 --outcome success --session-id test-1 # log event
bin/rstack-gen-preambles # regenerate SKILL.md preamble/epilogue sections
bin/rstack-gen-preambles --check # dry-run: exit 1 if any SKILL.md is outdatedTesting
# Validate all skills have correct frontmatter
for f in */SKILL.md; do head -20 "$f" | grep "^name:" || echo "MISSING name: in $f"; done
# Test config read/write
RSTACK_STATE_DIR=/tmp/rstack-test bin/rstack-config set venue neurips
RSTACK_STATE_DIR=/tmp/rstack-test bin/rstack-config get venue # should print: neurips
# Test setup script
bash setup # should complete without errors
# Integration test: run /lit-review on a real topic
# (requires Claude Code session)Project structure
rstack/
├── setup # Install script (symlinks + config)
├── bin/ # CLI utilities
│ ├── rstack-config # YAML config read/write
│ ├── rstack-slug # Project slug from git remote
│ ├── rstack-compute-detect # Modal + GPU + LaTeX detection
│ ├── rstack-preflight # 30s CPU dry-run for experiments
│ ├── rstack-telemetry-log # Append telemetry event to local JSONL
│ ├── rstack-telemetry-sync # Background sync to Supabase
│ ├── rstack-analytics # Local usage dashboard
│ └── rstack-gen-preambles # Template generator for SKILL.md sections
├── _shared/ # Shared reference files
│ ├── preamble.sh # Reference preamble (each skill inlines its own)
│ ├── epilogue.sh # Reference epilogue (telemetry finalization)
│ ├── compute.md # Modal CLI reference + artifact contract
│ └── venues.md # arXiv formatting rules (v1)
├── lit-review/SKILL.md # Literature review skill
├── novelty-check/SKILL.md # Novelty assessment + idea refinement
├── experiment/SKILL.md # Cloud experiment execution (Modal)
├── analyze-results/SKILL.md # Figures, tables, statistics
├── write-paper/SKILL.md # Venue-formatted LaTeX paper writing
├── research/SKILL.md # Orchestrator: chains all skills
├── setup-skill/SKILL.md # Interactive provider configuration
├── templates/arxiv/ # arXiv LaTeX template
├── SKILL.md # Root routing skill
├── ETHOS.md # Research philosophy
├── ARCHITECTURE.md # Why RStack is built this way
├── CONTRIBUTING.md # How to add skills
├── supabase/ # Telemetry backend
│ ├── config.sh # Public Supabase project config
│ ├── migrations/ # Database schema
│ ├── functions/ # Edge functions
│ └── verify-rls.sh # RLS smoke test
├── test/ # Test scripts
├── CHANGELOG.md # Release notes
└── README.md # User guideSkill routing
When the user's request matches a research skill, invoke it:
- Research idea + full pipeline →
/research - Find papers, literature survey →
/lit-review - Check novelty of idea →
/novelty-check - Run ML experiments →
/experiment - Generate figures/tables →
/analyze-results - Write/format paper →
/write-paper - Configure providers →
/setup
State files
Work products go at the project root. Internal plumbing goes in .rstack/.
Work products (project root)
| File | Written by | Format |
idea.md | user or /research | Markdown |
lit-review.md | /lit-review | Markdown |
refined-idea.md | /novelty-check | Markdown |
novelty-assessment.md | /novelty-check | Markdown |
experiment-plan.md | /experiment | Markdown |
train.py | /experiment | Python |
requirements.txt | /experiment | Text |
results/run-NNN/ | /experiment | Mixed (metrics.json, figures/, logs) |
analysis/ | /analyze-results | PNG, PDF, .tex, .json |
paper.tex | /write-paper | LaTeX |
paper.bib | /write-paper | BibTeX |
paper.pdf | /write-paper |
Plumbing (.rstack/)
| File | Written by | Format |
lit-review.jsonl | /lit-review | JSONL (versioned, "v":1) |
experiments.jsonl | /experiment | JSONL (versioned, append-only) |
Writing SKILL templates
SKILL.md files are prompt templates read by Claude, not bash scripts. Each bash code block runs in a separate shell. Variables do not persist between blocks.
Rules (same as GStack):
- Use natural language for logic and state, not shell variables between blocks
- Keep bash blocks self-contained
- Express conditionals as English decision steps
- Use AskUserQuestion for all non-trivial decisions
- Include WebSearch in
allowed-toolsfor skills that need web access
Config keys
| Key | Default | Used by |
compute_preferred | modal | /experiment preamble |
venue | arxiv | /write-paper, /research |
experiment_checkpoint | 3 | /experiment (ask user every N runs) |
proactive | true | root SKILL.md routing |
telemetry | off | preamble, rstack-telemetry-log (off/anonymous/community) |
modal_installed | (set by /setup) | /setup status tracking |
modal_authenticated | (set by /setup) | /setup status tracking |
modal_default_gpu | A100 | /experiment cloud submission |
latex_compiler | tectonic | /write-paper compilation |
update_check | true | preamble (disable version check notifications) |
auto_upgrade | false | rstack-upgrade (auto-upgrade on session start) |
Telemetry
Three tiers: off (default), anonymous, community.
bin/rstack-config set telemetry community # enable with stable device ID
bin/rstack-config set telemetry anonymous # enable without device ID
bin/rstack-config set telemetry off # disable all telemetry
bin/rstack-analytics # view local usage dashboardWhen not off, skill events are logged to ~/.rstack/analytics/skill-usage.jsonl (local, inspectable).
Events sync to Supabase in background (rate-limited, 5 min) when a URL is configured.
Local-only fields (_repo_slug, _branch) are stripped before sending.
Error messages are sanitized client-side (paths and secrets stripped) before writing to JSONL.
Installation ID (UUID) is only generated when the user chooses community tier.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

