agentleFS
sunnnybalasunnnybala/Rstack/CLAUDE.md

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

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

    When the user's request matches a research skill, invoke it:

    line 81
  2. Very specific:

    Check novelty of idea → /novelty-check

    line 85
  3. Very specific:

    Run ML experiments → /experiment

    line 86
  4. Very specific:

    Write/format paper → /write-paper

    line 88
  5. Distinctive:

    Use natural language for logic and state, not shell variables between blocks

    line 125
  6. Distinctive:

    Keep bash blocks self-contained

    line 126
  7. Distinctive:

    Use AskUserQuestion for all non-trivial decisions

    line 128
  8. Very specific:

    When not off, skill events are logged to ~/.rstack/analytics/skill-usage.jsonl (local, inspectable).

    line 158

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 outdated

Testing

# 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 guide

Skill 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)

FileWritten byFormat
idea.mduser or /researchMarkdown
lit-review.md/lit-reviewMarkdown
refined-idea.md/novelty-checkMarkdown
novelty-assessment.md/novelty-checkMarkdown
experiment-plan.md/experimentMarkdown
train.py/experimentPython
requirements.txt/experimentText
results/run-NNN//experimentMixed (metrics.json, figures/, logs)
analysis//analyze-resultsPNG, PDF, .tex, .json
paper.tex/write-paperLaTeX
paper.bib/write-paperBibTeX
paper.pdf/write-paperPDF

Plumbing (.rstack/)

FileWritten byFormat
lit-review.jsonl/lit-reviewJSONL (versioned, "v":1)
experiments.jsonl/experimentJSONL (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-tools for skills that need web access

Config keys

KeyDefaultUsed by
compute_preferredmodal/experiment preamble
venuearxiv/write-paper, /research
experiment_checkpoint3/experiment (ask user every N runs)
proactivetrueroot SKILL.md routing
telemetryoffpreamble, rstack-telemetry-log (off/anonymous/community)
modal_installed(set by /setup)/setup status tracking
modal_authenticated(set by /setup)/setup status tracking
modal_default_gpuA100/experiment cloud submission
latex_compilertectonic/write-paper compilation
update_checktruepreamble (disable version check notifications)
auto_upgradefalserstack-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 dashboard

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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.