science-bridge
science-bridge connects a software project built with Claude Code + GSD to Claude Science. The project gets real scientific work, such as literature reviews, guideline and rule checks, statistics and analyses on a cluster. The results land in GSD's plans, where its researchers and planners use them. Nothing is copied by hand, and no work is done twice.
It is a Claude Code plugin plus a Claude Science skill. The two apps never talk directly; they work through a small science/ folder inside the project repo.
Why this project exists
Claude Code + GSD is good at building software: it plans phases, researches, writes code and tracks decisions in .planning/. Claude Science is good at science: literature, domain rules, statistics, data analysis, with its own connectors and compute. A research-software project needs both. Out of the box they don't fit together:
| Problem without a bridge | What science-bridge does |
|---|
| No API. Claude Science can't be called by another program, so results move by copy and paste. | A file handoff. Claude Science writes findings to science/inbox/, and Claude Code picks them up. A person only types one sentence in each app. |
| Duplicated work. Claude Science doesn't know what the project already researched, decided or built. | Claude Science reads the whole repo read-only (code, .planning/, git history). Before every task it runs a duplicate-work check and builds on what exists, citing it in builds_on. |
| Lost results. A good answer stays in a chat that the planners never see. | ingest routes each finding into GSD (note, todo or seed) with GSD's own /gsd-capture, and archives it. The injected science-context skill makes GSD's researcher and planner agents read and cite archived findings, and tells the executor, debugger and verifier to queue a question when they hand a decision or a blocker back. |
| Questions don't travel. Planning hits a gap, and nobody asks the expert. | A question queue (SQ-001, SQ-002 …) in .planning/research/questions.md. You or GSD agents add questions; Claude Science answers them; archiving ticks them off, with partial answers kept open. With auto-consult on, Claude Code sends new questions itself (through Claude in Chrome) at the next GSD step, even during /gsd-autonomous, and waits for the answer before planning on it. It also queues questions on its own initiative: when it hits a hard problem, and before it asks you to decide. |
| No cluster access. Claude Science can't log in to clusters that need interactive multi-factor login. | Compute handoff. Claude Science writes a proposal with a run spec, Claude Code runs it on the cluster, and the outputs come back to science/runs/ for Claude Science to read. |
| Fragile setup. Wrong folder grants, a stale skill, a write grant that's too wide: you notice too late. | A self-test in Claude Science, plus verify in Claude Code, checks every part of the setup and says how to fix each failure. |
Features
Setup and checks
-
setup: one idempotent command creates or upgrades science/. It auto-fills the project brief from .planning/PROJECT.md and REQUIREMENTS.md (and refills it on a later run while you haven't edited it, so setup can run before GSD), migrates old policies with every value kept, and wires up GSD.
-
cs-setup: prints the one-time Claude Science checklist (skill zip, the two folder grants, the instructions text) for this project.
-
Self-test and verify check:
- the skill version;
- repo and git readable;
- repo root not writable;
- inbox writable (through Claude Science's
host.save_to_folder, which is how files reach a granted folder when its sandbox refuses direct writes);
- the same open questions on both sides;
- compute reachable.
Every failure comes with a fix.
-
Skill versioning. The project instructions tell Claude Science to stop if its skill is older than the project needs.
-
Session-start hints in Claude Code. They tell you what is waiting: findings, open questions, a self-test, an outdated plugin or skill, or redundant outbox copies.
Working with Claude Science
- Read-only repo access (
repo-readonly), plus a do_not_read list for files it must never open, such as sealed test sets.
- A mandatory duplicate-work check before every task, across archive,
.planning/, code, git history and earlier runs.
- The question queue (
ask, requests), with partial answers (partial: true) that keep an item open with a progress link.
- A validated finding format (
science-finding/v0.1), checked by the same validator on both sides. Large tables travel as attachments.