Skip to content

Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.

Improve token discovery for Modal

Timothy Kassisf93d13b08e14
diff --git a/scientific-skills/modal/SKILL.md b/scientific-skills/modal/SKILL.md
index 60fb9d2c..d130ecd2 100644
--- a/scientific-skills/modal/SKILL.md
+++ b/scientific-skills/modal/SKILL.md
@@ -43,18 +43,24 @@ uv pip install modal
### Authenticate
+Prefer existing credentials before creating new ones:
+
+1. Check whether `MODAL_TOKEN_ID` and `MODAL_TOKEN_SECRET` are already present in the current environment.
+2. If not, check for those values in a local `.env` file and load them if appropriate for the workflow.
+3. Only fall back to interactive `modal setup` or generating fresh tokens if neither source already provides credentials.
+
```bash
modal setup
```
-This opens a browser for authentication. For CI/CD or headless environments, set environment variables:
+This opens a browser for authentication. For CI/CD or headless environments, use environment variables:
```bash
export MODAL_TOKEN_ID=<your-token-id>
export MODAL_TOKEN_SECRET=<your-token-secret>
```
-Generate tokens at https://modal.com/settings
+If tokens are not already available in the environment or `.env`, generate them at https://modal.com/settings
Modal offers a free tier with $30/month in credits.