spliceailookup-link
AGENTS.md0 starsChanged 5 months agoMITView on GitHub
Shared repository instructions for agentic coding tools working in spliceailookup-link. spliceailookup-link is an MCP server for splice-impact prediction. It wraps the Broad Institute SpliceAI Lookup backends (the same SpliceAI / Pangolin / SAI-10k predictions the website at spliceailookup.broadinstitute.org surfaces) plus an Ensembl-VEP-backed variant resolver. FastAPI is a thin host providing /health only; the MCP facade is the product. Primary areas: - spliceailookup_link/ - Python package: MCP facade, HTTP clients, services, models, transports, server management - spliceailookup_link/mcp/ - hand-authored MCP facade…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ci-failure-triageSkill
- code-quality-reviewSkill
- dependency-cve-sweepSkill
- fastapi-route-changeSkill
- fleet-standard-adoptionSkill
- mcp-tool-changeSkill
- release-readinessSkill
- security-reviewSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Use this file for shared repo-wide agent guidance.
- Distinctive: line 44
Keep CLAUDE.md lean and Claude-specific.
- Very specific: line 45
Prefer Makefile targets over ad hoc commands.
- Very specific: line 46
Use uv.lock as the dependency lock source of truth.
- Distinctive: line 52
Do not revert or overwrite changes you did not make unless explicitly asked.
- Distinctive: line 53
Keep edits scoped; avoid unrelated refactors.
- Very specific: line 54
Put tests under tests/; do not create alternate test roots.
- Distinctive: line 55
Use ASCII unless a file already requires non-ASCII content.
- Distinctive: line 56
Treat the SpliceAI Lookup APIs as external research data services.
- Very specific: line 58
Keep live upstream calls out of default local CI.
- Very specific: line 97
Use uv for dependency management.
- Distinctive: line 100
Keep MCP tool behavior and service behavior covered by unit tests.
- Distinctive: line 103
Default the image command to the unified FastAPI host plus MCP HTTP.
- Distinctive: line 120
Treat failing checks as real issues unless you have clear evidence otherwise.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AGENTS.md
Shared repository instructions for agentic coding tools working in spliceailookup-link.
Project
spliceailookup-link is an MCP server for splice-impact prediction. It wraps the
Broad Institute SpliceAI Lookup backends (the same SpliceAI / Pangolin / SAI-10k
predictions the website at spliceailookup.broadinstitute.org surfaces) plus an
Ensembl-VEP-backed variant resolver. FastAPI is a thin host providing /health
only; the MCP facade is the product.
Primary areas:
spliceailookup_link/- Python package: MCP facade, HTTP clients, services, models, transports, server managementspliceailookup_link/mcp/- hand-authored MCP facade (tools, resources, errors)spliceailookup_link/api/- httpx clients for the scoring APIs and Ensembl VEPtests/- unit (deterministic, respx-mocked) and integration (live) testsdocs/- API contract, architecture, MCP connection docsdocs/superpowers/specs/- design specs;docs/superpowers/plans/- plansdocker/- Dockerfile + Compose
Upstream contract (load-bearing facts)
- Scoring:
GET {spliceai|pangolin}-{37|38}-xwkwwwxdwq-uc.a.run.app/{spliceai|pangolin}/with query paramsvariant(chrom-pos-ref-alt),hg(37|38),distance,mask(0|1),bc(basic|comprehensive), optionalraw,variant_consequence. - Errors are returned as HTTP 200 with an
errorfield in the JSON body, not as HTTP error codes. The client MUST inspect the body. Map "Unable to parse variant" -> invalid_input; "did not return any scores" -> not_found; 5xx / timeout -> upstream_unavailable. - SAI-10k consequence prediction is embedded under
sai10kPredictionsin the SpliceAI response (no separate endpoint). - Resolver: Ensembl VEP
/vep/human/hgvs/<hgvs>?vcf_string=1returnsvcf_string(= chrom-pos-ref-alt) andmost_severe_consequence. - Upstream is "interactive use only, several requests per user per minute" and individual calls can take 30s+. Keep MAX_CONCURRENCY low, timeouts generous, caching aggressive, and carry the research-use disclaimer everywhere.
Source Of Truth
- Use this file for shared repo-wide agent guidance.
- Keep
CLAUDE.mdlean and Claude-specific; it references this file. - Prefer
Makefiletargets over ad hoc commands. - Use
uv.lockas the dependency lock source of truth. - For multi-step work, write/update the spec in
docs/superpowers/specs/and the plan indocs/superpowers/plans/before broad edits.
Working Rules
- Do not revert or overwrite changes you did not make unless explicitly asked.
- Keep edits scoped; avoid unrelated refactors. Prefer existing patterns.
- Put tests under
tests/; do not create alternate test roots. - Use ASCII unless a file already requires non-ASCII content.
- Treat the SpliceAI Lookup APIs as external research data services. Keep MCP tools research-use scoped; never imply clinical decision support.
- Keep live upstream calls out of default local CI. Tests requiring API
availability must be marked
integration. - MCP tool names, schemas, resources, and response modes are owned by
spliceailookup_link/mcp/. REST is intentionally minimal (/healthonly).
Commands
Required before claiming completion: make ci-local.
Useful: make install lock format lint lint-fix lint-loc typecheck test
test-fast test-integration test-cov dev run-prod docker-build docker-up.
Fleet Deploy Contract
docker/docker-compose.npm.yml is the file the GeneFoundry fleet controller
(strato_v6_docker_npm) deploys and validates. The service it declares must set
user: "<uid>:<gid>" numerically -- this image's own value, read from
docker/Dockerfile (currently 999:999), never copied from a sibling -link
repo.
user must NOT appear in the Compose files listed in container-release.json
(docker/docker-compose.yml, docker/docker-compose.prod.yml) -- the shared
release gate (container_release.py validate-compose) forbids it there.
Guard test: tests/unit/test_deploy_overlay_user.py asserts both halves of the
contract (numeric user in the npm overlay, no user in the release Compose
files).
Release checklist this repo enforces: bump pyproject.toml version, run
uv lock, add a CHANGELOG.md heading ## [x.y.z] - YYYY-MM-DD, bump
CITATION.cff version: -- no test here ties date-released to the CHANGELOG
date (CITATION.cff is regenerated externally by genefoundry-router), so update
version: only and leave date-released as-is -- tag vx.y.z, then approve the
release environment gate (it can fire twice) via gh api
repos/berntpopp/spliceailookup-link/actions/runs/<id>/pending_deployments
(status: waiting is the gate).
Coding Standards
- Use
uvfor dependency management; never directpipinstalls. - Modern Python typing:
list[str],dict[str, int],str | None. - Format and lint with Ruff; type check with mypy targeting Python 3.12.
- Keep MCP tool behavior and service behavior covered by unit tests.
- Preserve MCP tool names and response schemas unless the task calls for a breaking change.
- Default the image command to the unified FastAPI host plus MCP HTTP.
File Size Discipline
Hard cap: 600 lines per Python module in spliceailookup_link/.
Enforced by make lint-loc (wired into
ci-local and pre-commit). Tests are exempt. When a file approaches 500 lines,
plan a cohesive split (one module per responsibility) and keep facades/tool
names stable so call sites do not churn. Grandfather exceptions in
.loc-allowlist with an explicit ceiling only as a tracked temporary measure.
Testing Notes
make testruns deterministic unit tests fromtests/unit/.make test-integrationruns live SpliceAI/Pangolin/VEP tests; may fail when the upstream rate-limits or cold-starts.make ci-localruns formatting, linting, line-budget, type checking, tests.- Treat failing checks as real issues unless you have clear evidence otherwise.
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.

