Generate a local proposal for the function field of a bio.tools entry. Starting from a bio.tools ID and a pinned Git commit, the skill traces user-facing workflows, maps their operations and data to EDAM, validates the JSON, and independently reviews the result. Each emitted term can be traced to source lines at the pinned commit. The workflow reads source statically and makes no changes to bio.tools.
1. Install the dependencies. Use Python 3.10+ and Git. Run these commands from the repository root.
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
test -e .env || cp .env.example .envSet BATCH_BASE_URL to an OpenAI-compatible API base URL (typically ending in /v1), BATCH_MODEL to your provider's model ID, and UCLOUD_INFERENCE_TOK to your token. The endpoint must support tool calls and JSON text responses. Environment variables take precedence over .env. OPENAI_BASE_URL and OPENAI_API_KEY are also accepted.
2. Choose a frozen EDAM and biotoolsSchema snapshot. Use the directory containing manifest.json, EDAM.owl, biotoolsj.json, and edam-index.json as --snapshot. If you already have those files in resources/, use --snapshot resources. On a fresh checkout, obtain the official OWL and schema versions you want to use, then freeze them into a new directory. Snapshot setup
3. Run a tool and open the comparison.
SNAP=resources/batch-01 # Change to resources if that directory holds your snapshot.
python scripts/run_batch.py omicsq --snapshot "$SNAP"Use the exact run directory printed by the command. The directory uses the registry's canonical ID casing, so omicsq can produce results/OmicsQ/run-NNN. After review, open comparison.html inside that directory to see the original and curated functions, linked source evidence, and the findings for terms present only in the registry.
| Task | Option |
|---|---|
| Run multiple tools | Pass a text file with one bio.tools ID per line to scripts/run_batch.py. |
| Run a tool again | Add --force. The batch driver otherwise skips a tool with an existing local result. |
| Use a verified repository and revision | Add --pin 'REPO_URL::REVISION[::SCOPE]'. For mixed repositories, prepare and pin each run, then use tools/campaign.py. |
| Prepare the registry entry for manual source selection | Add --skip-pin. Continue with tools/prepare.py pin and tools/run.py. |
| Include secondary modes | Use --profile extended. The default core profile focuses on primary functionality. |
| Collect scientific parameters | Use --profile parameters for a separate parameter pass alongside core extraction. |
| Choose a separate review model | Set --review-model MODEL_ID. Otherwise the extraction model reviews in a fresh context. |
| Change the uncached input budget | Add --input-budget 500000, or supply another token count. The default is 350,000. |
The batch driver automatically pins HEAD when the entry lists a single supported public repository. That records an exact commit with registry version alignment marked unknown. With zero or multiple candidates it leaves the run prepared for manual pinning. For reproducible comparisons, reuse the same snapshot and pin the same verified commit. Source preparation
| Location in a new run | What to look for |
|---|---|
biotools.json |
Final local annotation after validation and independent review. Use the function field when updating an entry manually. |
provenance.json |
Pinned commit, claim-to-term links, evidence, parameters, unresolved claims, review findings, and run status. |
comparison.html |
Human-readable comparison generated automatically after review. Run python scripts/compare.py "$RUN" to regenerate it for an existing run. |
drafts/ |
Candidate JSON, functions.tsv, claims.tsv, evidence.tsv, mappings.tsv, and parameters.tsv when collected. |
audit/ |
Source and run metadata, inspection ledgers, validation, review, token usage, failure details, and any registry refinement history. |
For parameters, open the Parameters section of the comparison or the parameters array in provenance.json. The records include the declared default where available and link to generic function IDs and source evidence. A run with parameter extraction disabled shows parameter_status: "not_requested". Existing flat runs use the same filenames at their original locations.
- Extracts claims from bounded excerpts of the pinned source. It groups operations that share a user-facing workflow and keeps separately useful modes or exports distinct. Extraction starts without the existing EDAM annotations.
- Maps the claims against frozen EDAM in a fresh context. Claims without a defensible term remain visible in provenance.
- Builds and validates the candidate against the original OWL and biotoolsSchema.
- Reviews the candidate and checks registry-only terms against pinned source. The report distinguishes supported terms, terms with no evidence in the inspected source, and terms the reviewer could not check.
- Refines automatically when verified registry-only findings justify a more precise or missing annotation. The runner adopts the rebuilt candidate only after fresh validation and independent review.
For Codex or a shell agent, start at SKILL.md. The runbook covers manual stages, prepared runs, and evidence handling.
- Partial means the annotation passed the local gate with limitations, such as unresolved mappings, incomplete coverage, or unknown alignment with the registry version.
- Blocked means a stage could not finish. Check
audit/failure.jsonandprovenance.jsonfor the cause. The batch summary atresults/batch-summary.jsonlrecords outcomes of batch attempts. - Review failed means independent review found a material problem. Inspect
audit/review.jsonand revise the drafts in a fresh run before rebuilding and reviewing.
If a run has a validated candidate and review was interrupted before saving a review, resume from that candidate:
python tools/run.py --run "$RUN" --snapshot "$SNAP" \
--model YOUR_MODEL_ID --resume-review| Limit | Where to change it |
|---|---|
| Total uncached input | --input-budget, default 350,000. Cached input is excluded when the provider reports cache usage. The budget is checked before each request. |
| Output per response | MAX_COMPLETION in tools/run.py, default 8,192 tokens. |
| Pinned source excerpts | BUDGETS in tools/source_inspect.py, measured in bytes. Review starts with 40,000 bytes. |
Read provider-reported usage with python tools/token_usage.py "$RUN/audit/usage.jsonl". A source-inspection limit is independent of the model token budget. Recovery details
python -m unittest discover -s tests -vThe suite uses synthetic Git, OWL, and schema fixtures with mocked API responses. It checks construction, evidence validation, review, refinement, and output layout.