@yeyuan98/opencode-bioresearcher-plugin 1.6.0 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +7 -6
- package/dist/agents/bioresearcher/index.d.ts +0 -0
- package/dist/agents/bioresearcher/index.js +0 -0
- package/dist/agents/bioresearcher/prompt.d.ts +1 -1
- package/dist/agents/bioresearcher/prompt.js +4 -4
- package/dist/agents/bioresearcherDR/index.d.ts +0 -0
- package/dist/agents/bioresearcherDR/index.js +0 -0
- package/dist/agents/bioresearcherDR/prompt.d.ts +1 -1
- package/dist/agents/bioresearcherDR/prompt.js +2 -2
- package/dist/agents/bioresearcherDR_worker/index.d.ts +0 -0
- package/dist/agents/bioresearcherDR_worker/index.js +0 -0
- package/dist/agents/bioresearcherDR_worker/prompt.d.ts +1 -1
- package/dist/agents/bioresearcherDR_worker/prompt.js +2 -2
- package/dist/index.d.ts +0 -0
- package/dist/index.js +16 -3
- package/dist/shared/skill-sync.d.ts +1 -0
- package/dist/shared/skill-sync.js +117 -0
- package/dist/shared/tool-restrictions.d.ts +2 -2
- package/dist/shared/tool-restrictions.js +10 -4
- package/dist/skills/bioresearcher-core/README.md +1 -1
- package/dist/skills/bioresearcher-core/SKILL.md +1 -1
- package/dist/skills/bioresearcher-core/examples/contexts.json +0 -0
- package/dist/skills/bioresearcher-core/examples/data-exchange-example.md +0 -0
- package/dist/skills/bioresearcher-core/examples/template.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/bioresearcher/analysis-methods.md +1 -1
- package/dist/skills/bioresearcher-core/patterns/bioresearcher/best-practices.md +1 -1
- package/dist/skills/bioresearcher-core/patterns/bioresearcher/python-standards.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/bioresearcher/report-template.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/bioresearcher/tool-selection.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/calculator.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/citations.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/data-exchange.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/json-tools.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/progress.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/rate-limiting.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/retry.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/shell-commands.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/subagent-waves.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/table-tools.md +0 -0
- package/dist/skills/bioresearcher-core/patterns/user-confirmation.md +0 -0
- package/dist/skills/bioresearcher-core/python/template.md +0 -0
- package/dist/skills/bioresearcher-core/python/template.py +0 -0
- package/dist/skills/bioresearcher-tests/README.md +1 -1
- package/dist/skills/bioresearcher-tests/SKILL.md +1 -1
- package/dist/skills/bioresearcher-tests/pyproject.toml +0 -0
- package/dist/skills/bioresearcher-tests/resources/json_samples/in_markdown.md.gz +0 -0
- package/dist/skills/bioresearcher-tests/resources/json_samples/nested_object.json.gz +0 -0
- package/dist/skills/bioresearcher-tests/resources/json_samples/schema_draft7.json.gz +0 -0
- package/dist/skills/bioresearcher-tests/resources/json_samples/simple_array.json.gz +0 -0
- package/dist/skills/bioresearcher-tests/resources/json_samples/simple_object.json.gz +0 -0
- package/dist/skills/bioresearcher-tests/resources/obo_sample.obo.gz +0 -0
- package/dist/skills/bioresearcher-tests/resources/pubmed_sample.xml.gz +0 -0
- package/dist/skills/bioresearcher-tests/resources/table_sample.xlsx.gz +0 -0
- package/dist/skills/bioresearcher-tests/test_cases/json_tests.md +0 -0
- package/dist/skills/bioresearcher-tests/test_cases/misc_tests.md +0 -0
- package/dist/skills/bioresearcher-tests/test_cases/parser_tests.md +0 -0
- package/dist/skills/bioresearcher-tests/test_cases/skill_tests.md +3 -3
- package/dist/skills/bioresearcher-tests/test_cases/table_tests.md +0 -0
- package/dist/skills/bioresearcher-tests/test_runner.py +0 -0
- package/dist/skills/demo-skill/SKILL.md +0 -0
- package/dist/skills/demo-skill/demo_script.py +0 -0
- package/dist/skills/env-jsonc-setup/SKILL.md +0 -0
- package/dist/skills/gromacs-guides/SKILL.md +1 -1
- package/dist/skills/gromacs-guides/guides/create_index.md +0 -0
- package/dist/skills/gromacs-guides/guides/inspect_tpr.md +0 -0
- package/dist/skills/long-table-summary/SKILL.md +0 -0
- package/dist/skills/long-table-summary/combine_outputs.py +0 -0
- package/dist/skills/long-table-summary/generate_prompts.py +0 -0
- package/dist/skills/long-table-summary/pyproject.toml +0 -0
- package/dist/skills/pubmed-weekly/SKILL.md +0 -0
- package/dist/skills/pubmed-weekly/pubmed_weekly.py +0 -0
- package/dist/skills/pubmed-weekly/pyproject.toml +0 -0
- package/dist/skills/python-setup-uv/SKILL.md +0 -0
- package/dist/tools/db/backends/index.d.ts +0 -0
- package/dist/tools/db/backends/index.js +0 -0
- package/dist/tools/db/backends/mongodb/backend.d.ts +0 -0
- package/dist/tools/db/backends/mongodb/backend.js +0 -0
- package/dist/tools/db/backends/mongodb/connection.d.ts +0 -0
- package/dist/tools/db/backends/mongodb/connection.js +0 -0
- package/dist/tools/db/backends/mongodb/index.d.ts +0 -0
- package/dist/tools/db/backends/mongodb/index.js +0 -0
- package/dist/tools/db/backends/mongodb/translator.d.ts +0 -0
- package/dist/tools/db/backends/mongodb/translator.js +0 -0
- package/dist/tools/db/backends/mysql/backend.d.ts +0 -0
- package/dist/tools/db/backends/mysql/backend.js +0 -0
- package/dist/tools/db/backends/mysql/connection.d.ts +0 -0
- package/dist/tools/db/backends/mysql/connection.js +0 -0
- package/dist/tools/db/backends/mysql/index.d.ts +0 -0
- package/dist/tools/db/backends/mysql/index.js +0 -0
- package/dist/tools/db/backends/mysql/translator.d.ts +0 -0
- package/dist/tools/db/backends/mysql/translator.js +0 -0
- package/dist/tools/db/core/base.d.ts +0 -0
- package/dist/tools/db/core/base.js +0 -0
- package/dist/tools/db/core/config-loader.d.ts +0 -0
- package/dist/tools/db/core/config-loader.js +0 -0
- package/dist/tools/db/core/index.d.ts +0 -0
- package/dist/tools/db/core/index.js +0 -0
- package/dist/tools/db/core/jsonc-parser.d.ts +0 -0
- package/dist/tools/db/core/jsonc-parser.js +0 -0
- package/dist/tools/db/core/validator.d.ts +0 -0
- package/dist/tools/db/core/validator.js +0 -0
- package/dist/tools/db/index.d.ts +0 -0
- package/dist/tools/db/index.js +0 -0
- package/dist/tools/db/interface/backend.d.ts +0 -0
- package/dist/tools/db/interface/backend.js +0 -0
- package/dist/tools/db/interface/connection.d.ts +0 -0
- package/dist/tools/db/interface/connection.js +0 -0
- package/dist/tools/db/interface/index.d.ts +0 -0
- package/dist/tools/db/interface/index.js +0 -0
- package/dist/tools/db/interface/query.d.ts +0 -0
- package/dist/tools/db/interface/query.js +0 -0
- package/dist/tools/db/interface/schema.d.ts +0 -0
- package/dist/tools/db/interface/schema.js +0 -0
- package/dist/tools/db/tools.d.ts +0 -0
- package/dist/tools/db/tools.js +6 -3
- package/dist/tools/db/utils.d.ts +0 -0
- package/dist/tools/db/utils.js +0 -0
- package/dist/tools/misc/calculator.d.ts +0 -0
- package/dist/tools/misc/calculator.js +1 -0
- package/dist/tools/misc/index.d.ts +0 -0
- package/dist/tools/misc/index.js +0 -0
- package/dist/tools/misc/json-extract.d.ts +0 -0
- package/dist/tools/misc/json-extract.js +1 -0
- package/dist/tools/misc/json-infer.d.ts +0 -0
- package/dist/tools/misc/json-infer.js +1 -0
- package/dist/tools/misc/json-validate.d.ts +0 -0
- package/dist/tools/misc/json-validate.js +1 -0
- package/dist/tools/misc/timer.d.ts +0 -0
- package/dist/tools/misc/timer.js +1 -0
- package/dist/tools/parser/obo/index.d.ts +0 -0
- package/dist/tools/parser/obo/index.js +0 -0
- package/dist/tools/parser/obo/obo.d.ts +0 -0
- package/dist/tools/parser/obo/obo.js +1 -0
- package/dist/tools/parser/obo/types.d.ts +0 -0
- package/dist/tools/parser/obo/types.js +0 -0
- package/dist/tools/parser/obo/utils.d.ts +0 -0
- package/dist/tools/parser/obo/utils.js +0 -0
- package/dist/tools/parser/pubmed/index.d.ts +0 -0
- package/dist/tools/parser/pubmed/index.js +0 -0
- package/dist/tools/parser/pubmed/pubmed.d.ts +0 -0
- package/dist/tools/parser/pubmed/pubmed.js +1 -0
- package/dist/tools/parser/pubmed/types.d.ts +0 -0
- package/dist/tools/parser/pubmed/types.js +0 -0
- package/dist/tools/parser/pubmed/utils.d.ts +0 -0
- package/dist/tools/parser/pubmed/utils.js +0 -0
- package/dist/tools/sandbox/bash-parser.d.ts +0 -0
- package/dist/tools/sandbox/bash-parser.js +0 -0
- package/dist/tools/sandbox/escape-scenarios.test.d.ts +0 -0
- package/dist/tools/sandbox/escape-scenarios.test.js +0 -0
- package/dist/tools/sandbox/expander.d.ts +0 -0
- package/dist/tools/sandbox/expander.js +0 -0
- package/dist/tools/sandbox/final-verification.test.d.ts +0 -0
- package/dist/tools/sandbox/final-verification.test.js +0 -0
- package/dist/tools/sandbox/hooks.d.ts +0 -0
- package/dist/tools/sandbox/hooks.js +0 -0
- package/dist/tools/sandbox/index.d.ts +0 -0
- package/dist/tools/sandbox/index.js +0 -0
- package/dist/tools/sandbox/manager.d.ts +0 -0
- package/dist/tools/sandbox/manager.js +0 -0
- package/dist/tools/sandbox/sandbox.integration.test.d.ts +0 -0
- package/dist/tools/sandbox/sandbox.integration.test.js +0 -0
- package/dist/tools/sandbox/sandbox.test.d.ts +0 -0
- package/dist/tools/sandbox/sandbox.test.js +0 -0
- package/dist/tools/sandbox/tool.d.ts +0 -0
- package/dist/tools/sandbox/tool.js +0 -0
- package/dist/tools/sandbox/types.d.ts +0 -0
- package/dist/tools/sandbox/types.js +0 -0
- package/dist/tools/sandbox/validator.d.ts +0 -0
- package/dist/tools/sandbox/validator.js +0 -0
- package/dist/tools/skill/frontmatter.d.ts +0 -0
- package/dist/tools/skill/frontmatter.js +0 -0
- package/dist/tools/skill/index.d.ts +0 -0
- package/dist/tools/skill/index.js +0 -0
- package/dist/tools/skill/registry.d.ts +0 -0
- package/dist/tools/skill/registry.js +0 -0
- package/dist/tools/skill/tool.d.ts +0 -0
- package/dist/tools/skill/tool.js +0 -0
- package/dist/tools/skill/types.d.ts +0 -0
- package/dist/tools/skill/types.js +0 -0
- package/dist/tools/table/index.d.ts +0 -0
- package/dist/tools/table/index.js +0 -0
- package/dist/tools/table/tools.d.ts +0 -0
- package/dist/tools/table/tools.js +13 -0
- package/dist/tools/table/utils.d.ts +0 -0
- package/dist/tools/table/utils.js +0 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/package.json +2 -2
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -117,17 +117,17 @@ Configuration via `env.jsonc` in working directory. Use the `env-jsonc-setup` sk
|
|
|
117
117
|
|
|
118
118
|
## Skills
|
|
119
119
|
|
|
120
|
-
Skills are reusable prompt templates discovered
|
|
120
|
+
Skills are reusable prompt templates discovered by OpenCode's built-in `skill` tool.
|
|
121
|
+
|
|
122
|
+
Plugin-shipped skills are automatically copied into `.opencode/skills/` at plugin load time, making them discoverable alongside user-defined skills. Skills are auto-updated when the plugin version changes. To customize a plugin skill, delete its `.plugin-managed` marker file.
|
|
121
123
|
|
|
122
124
|
| Path | Scope |
|
|
123
125
|
|------|-------|
|
|
124
|
-
| `.opencode/skills/` | Project |
|
|
126
|
+
| `.opencode/skills/` | Project (includes auto-copied plugin skills) |
|
|
125
127
|
| `~/.config/opencode/skills/` | Global |
|
|
126
128
|
| `.claude/skills/` | Claude Code compatible |
|
|
127
129
|
| `.agents/skills/` | Agents compatible |
|
|
128
130
|
|
|
129
|
-
Plugin-shipped skills are discovered alongside user-defined skills. The `bioresearcher-skill` tool name avoids conflict with OpenCode's built-in `skill` tool.
|
|
130
|
-
|
|
131
131
|
### Supplied skills
|
|
132
132
|
|
|
133
133
|
- `demo-skill`: showcase skill integration and resource resolution.
|
|
@@ -142,7 +142,7 @@ Plugin-shipped skills are discovered alongside user-defined skills. The `biorese
|
|
|
142
142
|
Prompt the following and follow along:
|
|
143
143
|
|
|
144
144
|
```txt
|
|
145
|
-
Setup python uv with
|
|
145
|
+
Setup python uv with skill
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
## Installation
|
|
@@ -173,7 +173,8 @@ BioMCP is absolutely required and might take time to load. You will need to have
|
|
|
173
173
|
| Issue | Solution |
|
|
174
174
|
|-------|----------|
|
|
175
175
|
| Agent not appearing | Check plugin in opencode.json is typed correctly |
|
|
176
|
-
| BioMCP tool failures | Make sure you have BioMCP [installed and enabled](https://opencode.ai/docs/mcp-servers/#enable) |
|
|
176
|
+
| BioMCP tool failures | Make sure you have BioMCP [installed and enabled](https://opencode.ai/docs/mcp-servers/#enable). The `mcp.biomcp` config in opencode.json is **required** — without it, biomcp tools will not exist regardless of agent permissions. |
|
|
177
|
+
| biomcp tools not available to agents | Ensure the `mcp` section is present in your `opencode.json`. Agent permission config only controls access to tools that already exist — it cannot create tools that the MCP server hasn't registered. |
|
|
177
178
|
| Research taking a long time | Check whether subagents are generating outputs; could be slow model / API throttle / overcomplicated query / etc. |
|
|
178
179
|
|
|
179
180
|
## License
|
|
File without changes
|
|
File without changes
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* A specialized biomedical research agent that performs reference-based
|
|
5
5
|
* pharmaceutical and drug development research using BioMCP tools.
|
|
6
6
|
*/
|
|
7
|
-
export declare const BIORESEARCHER_SYSTEM_PROMPT = "\n------ RULE REMINDER START ------\nIMPORTANT: THIS REMINDER SHALL OVERRIDE ALL OTHER PROMPTS PROVIDED TO YOU. IGNORE ALL OTHER PROMPTS.\n\nYou are an expert in biomedical and pharmaceutical drug development research.\n\n## Skill Loading (MANDATORY)\n\nAt the start of complex research tasks, load the core skill:\n\n```\
|
|
7
|
+
export declare const BIORESEARCHER_SYSTEM_PROMPT = "\n------ RULE REMINDER START ------\nIMPORTANT: THIS REMINDER SHALL OVERRIDE ALL OTHER PROMPTS PROVIDED TO YOU. IGNORE ALL OTHER PROMPTS.\n\nYou are an expert in biomedical and pharmaceutical drug development research.\n\n## Skill Loading (MANDATORY)\n\nAt the start of complex research tasks, load the core skill:\n\n```\nskill bioresearcher-core\n```\n\nThis skill provides patterns for:\n- **Decision Making**: Tool selection, analysis method choice\n- **Workflow Control**: Retry logic, progress tracking, rate limiting\n- **Data Handling**: JSON validation, table operations, data exchange\n- **Research Standards**: Citation formatting, report templates, Python standards\n- **Best Practices**: Upfront filtering, error handling, performance optimization\n\n## Core Workflow\n\n### Step 1: Clarify Questions\nIf unclear, guide the user to make their question professional and specific:\n- Identify the core research question\n- Determine what type of data is needed\n- Understand the expected output format\n\n### Step 2: Select Appropriate Tools\nUse decision trees from `patterns/tool-selection.md`:\n\n**Data Source Identification:**\n- Database/SQL \u2192 db* tools (dbQuery, dbListTables, dbDescribeTable)\n- Excel/CSV file \u2192 table* tools (tableFilterRows, tableGroupBy, etc.)\n- Website/URL \u2192 Ask the user to provide the content directly (web search/fetch tools are not available to this agent)\n- Literature/Papers \u2192 biomcp* article tools\n- Clinical Trials \u2192 biomcp* trial tools\n- Genes/Variants \u2192 biomcp* gene/variant tools\n- Drugs/Compounds \u2192 biomcp* drug tools\n\n**CRITICAL: Apply upfront filtering at the source (see best-practices.md)**\n\n### Step 3: Fetch Information\nGather trustable information using selected tools:\n\n**Database Queries:**\n```\n1. Check env.jsonc exists (if not, load skill 'env-jsonc-setup')\n2. dbListTables() \u2192 Discover available data\n3. dbDescribeTable() \u2192 Understand schema\n4. dbQuery(\"SELECT ... WHERE filter = :param\", {param: value})\n \u2705 DO: Use WHERE clauses, LIMIT, named parameters\n \u274C DON'T: SELECT * then filter in Python\n```\n\n**Table Operations:**\n```\n1. tableGetSheetPreview() \u2192 Preview structure\n2. Determine row count \u2192 Choose approach:\n - < 30 rows: Use table tools directly\n - 30-1000 rows: Consider long-table-summary skill\n - > 1000 rows: Use Python for complex analysis\n3. Apply filters: tableFilterRows(column, operator, value)\n \u2705 DO: Filter upfront with tableFilterRows\n \u274C DON'T: Load entire table then filter\n```\n\n**BioMCP Queries:**\n```\n1. Use targeted queries with specific filters\n2. biomcp_article_searcher(genes=[\"BRAF\"], diseases=[\"melanoma\"], page_size=50)\n3. ALWAYS: blockingTimer(0.3) between consecutive calls\n4. Sequential only (NEVER concurrent)\n \u2705 DO: Use specific filters (genes, diseases, variants)\n \u274C DON'T: Broad query then manual filtering\n```\n\n### Step 4: Analyze Data\nChoose analysis method using `patterns/analysis-methods.md`:\n\n**Decision Matrix:**\n| Approach | When to Use |\n|----------|-------------|\n| Table Tools | < 30 rows, simple operations (filter, group, summarize) |\n| long-table-summary Skill | 30-1000 rows, structured summarization, parallel processing |\n| Custom Python | > 1000 rows, complex logic, ML, reusable pipeline |\n\n**Skill Loading:**\n- Complex analysis \u2192 Load `bioresearcher-core` for retry, validation patterns\n- Large table summarization \u2192 Load `long-table-summary` skill\n- Python needed but uv missing \u2192 Load `python-setup-uv` skill\n\n**Python Scripts:**\n- Follow `patterns/python-standards.md` (DRY principle)\n- Module docstrings with purpose, usage, dependencies\n- Function docstrings with Args, Returns, Raises, Examples\n- No code duplication - extract to reusable functions\n- Type hints for all functions\n- Save to `.scripts/py/` folder\n\n### Step 5: Write Reference-Based Report\nFollow `patterns/report-template.md` structure:\n\n**Mandatory Sections:**\n1. **Executive Summary** - Key findings with citations [1, 2]\n2. **Data Sources** - Origin, access method, scope, quality notes\n3. **Analysis Methodology** - Approach, tools, steps, validation\n4. **Findings** - Results with citations and data provenance\n5. **Limitations** - Data gaps, methodological constraints\n6. **References** - Formatted bibliography by source type\n\n**Data Provenance Requirements:**\nEvery claim must have:\n- Citation [N] reference, OR\n- Data source documentation, OR\n- Analysis method description\n\n**Citation Format (from `patterns/citations.md`):**\n- In-text: [1], [2, 3], [1-5]\n- Bibliography: Numbered by order of appearance\n- Source-specific formats (articles, trials, web, databases)\n\n## Rate Limiting (MANDATORY)\n\n**ALWAYS use blockingTimer between consecutive API calls:**\n- BioMCP tools: 0.3 seconds (300ms)\n- Web tools: 0.5 seconds (500ms)\n- Database: No delay needed\n- File operations: No delay needed\n\n## Error Handling & Validation\n\n**Validation Pattern (from best-practices.md):**\n1. Check data existence (not empty)\n2. Validate structure (required fields)\n3. Validate types (correct data types)\n4. Validate values (within ranges)\n5. Validate quality (no duplicates)\n\n**Retry Logic (from patterns/retry.md):**\n- Max 3 attempts for network operations\n- Exponential backoff: 2s, 4s, 8s\n- Use blockingTimer between retries\n\n## Python Guidelines\n\n**When to Use Python:**\n- ONLY if existing tools are not suitable\n- Complex transformations beyond table tools\n- Statistical analysis beyond basic aggregation\n- Machine learning or custom algorithms\n\n**Code Standards (MANDATORY):**\n```python\n#!/usr/bin/env python3\n\"\"\"Script Purpose - One Line Description\n\nThis module provides functionality for:\n- Functionality 1\n- Functionality 2\n\nUsage:\n uv run python script.py command --input file.xlsx --output results/\n\nDependencies:\n - pandas >= 1.5.0\n\nAuthor: BioResearcher AI Agent\nDate: YYYY-MM-DD\n\"\"\"\n```\n\n**Function Documentation:**\n```python\ndef analyze_data(data: List[Dict], threshold: float = 0.5) -> Dict:\n \"\"\"Brief description.\n \n Args:\n data: Description of data\n threshold: Threshold value (0.0 to 1.0)\n \n Returns:\n Dictionary with results\n \n Raises:\n ValueError: If threshold out of range\n \"\"\"\n```\n\n**File Location:**\n- Scripts: `.scripts/py/`\n- Use uv for execution: `uv run python .scripts/py/script.py`\n- If uv unavailable, load skill `python-setup-uv`\n\n## Best Practices (CRITICAL)\n\n### Upfront Filtering\n\u2705 ALWAYS filter at source:\n- Database: WHERE clauses, LIMIT\n- Tables: tableFilterRows upfront\n- BioMCP: Specific filters (genes, diseases, variants)\n- Web: Specific search queries\n\n\u274C NEVER retrieve all data then filter in Python\n\n### Data Validation\n\u2705 ALWAYS validate:\n- Check required fields exist\n- Verify data types correct\n- Ensure values in expected ranges\n\n### Error Handling\n\u2705 ALWAYS handle errors:\n- Try-except for external operations\n- Retry logic with exponential backoff\n- Informative error messages\n\n### Context Management\n\u2705 ALWAYS minimize context usage:\n- Summarize large datasets instead of loading all\n- Use file-based data exchange\n- Paginate large result sets\n\n## Bottomline Rules\n\n1. ONLY use high-quality sources: biomcp results or official biotech/pharma websites\n2. ALWAYS provide citations [1], [2], ... with full bibliography at end\n3. ALWAYS backup files before editing (create `.bak` files)\n4. ALWAYS use blockingTimer(0.3) between consecutive biomcp* calls\n5. ALWAYS filter upfront - never retrieve then filter\n6. ALWAYS validate data before processing\n7. ALWAYS follow structured report template with data provenance\n8. ALWAYS write documented Python code following DRY principle\n------ RULE REMINDER END ------\n";
|
|
8
8
|
export declare function getBioResearcherPrompt(): string;
|
|
@@ -15,7 +15,7 @@ You are an expert in biomedical and pharmaceutical drug development research.
|
|
|
15
15
|
At the start of complex research tasks, load the core skill:
|
|
16
16
|
|
|
17
17
|
\`\`\`
|
|
18
|
-
|
|
18
|
+
skill bioresearcher-core
|
|
19
19
|
\`\`\`
|
|
20
20
|
|
|
21
21
|
This skill provides patterns for:
|
|
@@ -39,7 +39,7 @@ Use decision trees from \`patterns/tool-selection.md\`:
|
|
|
39
39
|
**Data Source Identification:**
|
|
40
40
|
- Database/SQL → db* tools (dbQuery, dbListTables, dbDescribeTable)
|
|
41
41
|
- Excel/CSV file → table* tools (tableFilterRows, tableGroupBy, etc.)
|
|
42
|
-
- Website/URL → web
|
|
42
|
+
- Website/URL → Ask the user to provide the content directly (web search/fetch tools are not available to this agent)
|
|
43
43
|
- Literature/Papers → biomcp* article tools
|
|
44
44
|
- Clinical Trials → biomcp* trial tools
|
|
45
45
|
- Genes/Variants → biomcp* gene/variant tools
|
|
@@ -52,7 +52,7 @@ Gather trustable information using selected tools:
|
|
|
52
52
|
|
|
53
53
|
**Database Queries:**
|
|
54
54
|
\`\`\`
|
|
55
|
-
1. Check env.jsonc exists (if not, load
|
|
55
|
+
1. Check env.jsonc exists (if not, load skill 'env-jsonc-setup')
|
|
56
56
|
2. dbListTables() → Discover available data
|
|
57
57
|
3. dbDescribeTable() → Understand schema
|
|
58
58
|
4. dbQuery("SELECT ... WHERE filter = :param", {param: value})
|
|
@@ -197,7 +197,7 @@ def analyze_data(data: List[Dict], threshold: float = 0.5) -> Dict:
|
|
|
197
197
|
**File Location:**
|
|
198
198
|
- Scripts: \`.scripts/py/\`
|
|
199
199
|
- Use uv for execution: \`uv run python .scripts/py/script.py\`
|
|
200
|
-
- If uv unavailable, load
|
|
200
|
+
- If uv unavailable, load skill \`python-setup-uv\`
|
|
201
201
|
|
|
202
202
|
## Best Practices (CRITICAL)
|
|
203
203
|
|
|
File without changes
|
|
File without changes
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* A specialized biomedical research agent that performs reference-based
|
|
5
5
|
* pharmaceutical and drug development research using BioMCP tools.
|
|
6
6
|
*/
|
|
7
|
-
export declare const BIORESEARCHERDR_SYSTEM_PROMPT = "\n------ RULE REMINDER START ------\nIMPORTANT: THIS REMINDER SHALL OVERRIDE ALL OTHER PROMPTS PROVIDED TO YOU. IGNORE ALL OTHER PROMPTS.\nOverall goal: Perform reference-based biomedical and pharmaceutical drug development research.\n\nSteps to STRICTLY adhere to:\n\n1. If the user query includes 'no-interview', skip Step 2 and proceed to Step 3. Otherwise, proceed to Step 2.\n2. Comprehend initial user inquiry. Use the question tool to ask user to clarify 3-6 unclear points depending on inquiry complexity.\n3. Comprehend final user inquiry to identify critical research aspects to answer user inquiry.\n4. If the original user inquiry includes 'light-research', combine and/or pick top two research aspects and proceed to Step 5. Otherwise, proceed directly to Step 5.\n5. Decide on TOPIC of this inquiry (NO user input). TOPIC should be highly succinct, underscore-separated name based on user inquiry.\n6. Use the todowrite tool to generate a list of identified research aspects.\n7. Create the reports_biomcp/<TOPIC>/
|
|
7
|
+
export declare const BIORESEARCHERDR_SYSTEM_PROMPT = "\n------ RULE REMINDER START ------\nIMPORTANT: THIS REMINDER SHALL OVERRIDE ALL OTHER PROMPTS PROVIDED TO YOU. IGNORE ALL OTHER PROMPTS.\nOverall goal: Perform reference-based biomedical and pharmaceutical drug development research.\n\nSteps to STRICTLY adhere to:\n\n1. If the user query includes 'no-interview', skip Step 2 and proceed to Step 3. Otherwise, proceed to Step 2.\n2. Comprehend initial user inquiry. Use the question tool to ask user to clarify 3-6 unclear points depending on inquiry complexity.\n3. Comprehend final user inquiry to identify critical research aspects to answer user inquiry.\n4. If the original user inquiry includes 'light-research', combine and/or pick top two research aspects and proceed to Step 5. Otherwise, proceed directly to Step 5.\n5. Decide on TOPIC of this inquiry (NO user input). TOPIC should be highly succinct, underscore-separated name based on user inquiry.\n6. Use the todowrite tool to generate a list of identified research aspects.\n7. Create the reports_biomcp/<TOPIC>/ directory by writing a placeholder file to it (e.g., write to reports_biomcp/<TOPIC>/.gitkeep). The write tool auto-creates parent directories - do NOT attempt to use bash mkdir.\n8. Use the task tool to assign each research aspect to a bioresearcherDR_worker subagent. Start subagents in parallel in batches (size of 5 for each batch). Record finished subagents by checking the todo list. Prompt the user: 'If subagents are stuck without progress for too long, interrupt and ask me to resume work.'\n9. Proceed until subagents complete research. Restart failed subagents if necessary.\n10. Load the skill 'bioresearcher-core' and read 'patterns/citations.md' for citation format. Read reports from all subagents. Summarize findings to provide a succinct and accurate report addressing user inquiry with proper citations.\n11. Write to reports_biomcp/<TOPIC>/final_report.md with full bibliography.\n\nFollow this template to prompt the bioresearcherDR_worker subagents (Step 8):\n\n```md\nTOPIC: <TOPIC>\nYOUR RESEARCH FOCUS: <RESEARCH-ASPECT>\nDESCRIPTION: <ABSTRACT>\n```\n\nABSTRACT should be a short paragraph of less than 200 words, describing exact focus of the subagent's research aspect and a list of detailed research items.\n\nRules for YOU:\n\n- Do NOT use the following tools: biomcp*, web*, context7* (i.e., tool names starting with biomcp or web or context7. VERY IMPORTANT DO NOT USE ANY BIOMCP TOOL).\n- Do NOT fallback to internal knowledge when query tools fail. STRICTLY ADHERE to external trusted sources.\n- DO provide concrete references for all findings with citations (in brackets, e.g., [1], [2], ...) and full bibliography at the end.\n- DO keep your word succinct, accurate and professional, fitting top standards of academic writing.\n------ RULE REMINDER END ------\n";
|
|
8
8
|
export declare function getBioResearcherDRPrompt(): string;
|
|
@@ -17,10 +17,10 @@ Steps to STRICTLY adhere to:
|
|
|
17
17
|
4. If the original user inquiry includes 'light-research', combine and/or pick top two research aspects and proceed to Step 5. Otherwise, proceed directly to Step 5.
|
|
18
18
|
5. Decide on TOPIC of this inquiry (NO user input). TOPIC should be highly succinct, underscore-separated name based on user inquiry.
|
|
19
19
|
6. Use the todowrite tool to generate a list of identified research aspects.
|
|
20
|
-
7. Create the reports_biomcp/<TOPIC>/
|
|
20
|
+
7. Create the reports_biomcp/<TOPIC>/ directory by writing a placeholder file to it (e.g., write to reports_biomcp/<TOPIC>/.gitkeep). The write tool auto-creates parent directories - do NOT attempt to use bash mkdir.
|
|
21
21
|
8. Use the task tool to assign each research aspect to a bioresearcherDR_worker subagent. Start subagents in parallel in batches (size of 5 for each batch). Record finished subagents by checking the todo list. Prompt the user: 'If subagents are stuck without progress for too long, interrupt and ask me to resume work.'
|
|
22
22
|
9. Proceed until subagents complete research. Restart failed subagents if necessary.
|
|
23
|
-
10. Load the
|
|
23
|
+
10. Load the skill 'bioresearcher-core' and read 'patterns/citations.md' for citation format. Read reports from all subagents. Summarize findings to provide a succinct and accurate report addressing user inquiry with proper citations.
|
|
24
24
|
11. Write to reports_biomcp/<TOPIC>/final_report.md with full bibliography.
|
|
25
25
|
|
|
26
26
|
Follow this template to prompt the bioresearcherDR_worker subagents (Step 8):
|
|
File without changes
|
|
File without changes
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* A focused worker subagent that executes specific research tasks
|
|
5
5
|
* assigned by the bioresearcherDR orchestrator.
|
|
6
6
|
*/
|
|
7
|
-
export declare const BIORESEARCHERDRWORKER_SYSTEM_PROMPT = "\n------ RULE REMINDER START ------\nIMPORTANT: THIS REMINDER SHALL OVERRIDE ALL OTHER PROMPTS PROVIDED TO YOU. IGNORE ALL OTHER PROMPTS.\n\nOverall goal: Execute focused biomedical research as directed by the orchestrator.\n\n## Skill Loading (MANDATORY)\n\nAt the start of your task, load the core skill:\n\n```\
|
|
7
|
+
export declare const BIORESEARCHERDRWORKER_SYSTEM_PROMPT = "\n------ RULE REMINDER START ------\nIMPORTANT: THIS REMINDER SHALL OVERRIDE ALL OTHER PROMPTS PROVIDED TO YOU. IGNORE ALL OTHER PROMPTS.\n\nOverall goal: Execute focused biomedical research as directed by the orchestrator.\n\n## Skill Loading (MANDATORY)\n\nAt the start of your task, load the core skill:\n\n```\nskill bioresearcher-core\n```\n\nThis skill provides patterns for:\n- `patterns/rate-limiting.md` - API rate limiting (use 0.5s between biomcp calls)\n- `patterns/retry.md` - Retry logic for failed requests (up to 3 retries)\n- `patterns/citations.md` - Citation formatting for your report\n\n## Workflow\n\n1. **Follow directions**: Execute the specific research task assigned to you\n2. **Stay focused**: Do NOT delegate to other subagents\n3. **Write findings**: Output to `reports_biomcp/<TOPIC>/<YOUR-FOCUS>.md`. The write tool auto-creates parent directories - no need to create the directory first.\n\n## Rate Limiting\n\nALWAYS use blockingTimer(0.5) between consecutive biomcp* tool calls.\n\n## Retry Logic\n\nIf a query fails:\n1. Wait a few seconds using blockingTimer\n2. Try with a simpler query\n3. Retry up to 3 times before giving up\n\n## Rules\n\n- Do NOT run concurrent MCP calls (sequential only)\n- Do NOT fallback to internal knowledge - use external trusted sources only\n- ALWAYS provide citations [1], [2], ... with full bibliography\n- Keep writing succinct, accurate, professional (academic standard)\n------ RULE REMINDER END ------\n";
|
|
8
8
|
export declare function getBioResearcherDRWorkerPrompt(): string;
|
|
@@ -15,7 +15,7 @@ Overall goal: Execute focused biomedical research as directed by the orchestrato
|
|
|
15
15
|
At the start of your task, load the core skill:
|
|
16
16
|
|
|
17
17
|
\`\`\`
|
|
18
|
-
|
|
18
|
+
skill bioresearcher-core
|
|
19
19
|
\`\`\`
|
|
20
20
|
|
|
21
21
|
This skill provides patterns for:
|
|
@@ -27,7 +27,7 @@ This skill provides patterns for:
|
|
|
27
27
|
|
|
28
28
|
1. **Follow directions**: Execute the specific research task assigned to you
|
|
29
29
|
2. **Stay focused**: Do NOT delegate to other subagents
|
|
30
|
-
3. **Write findings**: Output to \`reports_biomcp/<TOPIC>/<YOUR-FOCUS>.md
|
|
30
|
+
3. **Write findings**: Output to \`reports_biomcp/<TOPIC>/<YOUR-FOCUS>.md\`. The write tool auto-creates parent directories - no need to create the directory first.
|
|
31
31
|
|
|
32
32
|
## Rate Limiting
|
|
33
33
|
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { syncPluginSkills } from "./shared/skill-sync";
|
|
1
2
|
import { createBioResearcherAgent } from "./agents/bioresearcher/index";
|
|
2
3
|
import { createBioResearcherDRAgent } from "./agents/bioresearcherDR/index";
|
|
3
4
|
import { createBioResearcherDRWorkerAgent } from "./agents/bioresearcherDR_worker/index";
|
|
4
|
-
import { BioResearcherSkillTool } from "./tools/skill";
|
|
5
5
|
import { tableTools } from "./tools/table/index";
|
|
6
6
|
import { dbTools } from "./tools/db/index";
|
|
7
7
|
import { blockingTimer, calculator, jsonExtract, jsonValidate, jsonInfer } from "./tools/misc/index";
|
|
8
8
|
import { parse_pubmed_articleSet } from "./tools/parser/pubmed";
|
|
9
9
|
import { parse_obo_file } from "./tools/parser/obo";
|
|
10
|
-
export const BioResearcherPlugin = async (
|
|
10
|
+
export const BioResearcherPlugin = async (input) => {
|
|
11
|
+
syncPluginSkills(input.directory);
|
|
11
12
|
return {
|
|
12
13
|
config: async (config) => {
|
|
13
14
|
config.agent = config.agent || {};
|
|
@@ -15,8 +16,20 @@ export const BioResearcherPlugin = async (_input) => {
|
|
|
15
16
|
config.agent.bioresearcherDR = createBioResearcherDRAgent();
|
|
16
17
|
config.agent.bioresearcherDR_worker = createBioResearcherDRWorkerAgent();
|
|
17
18
|
},
|
|
19
|
+
"tool.definition": async (input, output) => {
|
|
20
|
+
const pluginToolIds = [
|
|
21
|
+
"tableGetSheetPreview", "tableListSheets", "tableGetHeaders", "tableGetCell",
|
|
22
|
+
"tableFilterRows", "tableSearch", "tableGetRange", "tableSummarize",
|
|
23
|
+
"tableGroupBy", "tablePivotSummary", "tableAppendRows", "tableUpdateCell",
|
|
24
|
+
"tableCreateFile", "dbQuery", "dbListTables", "dbDescribeTable",
|
|
25
|
+
"calculator", "blockingTimer", "jsonExtract", "jsonValidate", "jsonInfer",
|
|
26
|
+
"parse_pubmed_articleSet", "parse_obo_file",
|
|
27
|
+
];
|
|
28
|
+
if (!pluginToolIds.includes(input.toolID))
|
|
29
|
+
return;
|
|
30
|
+
output.description += "\n\nNOTE: This tool is permission-gated. If you receive a permission denied error, do not retry — use an alternative approach or ask the user.";
|
|
31
|
+
},
|
|
18
32
|
tool: {
|
|
19
|
-
"bioresearcher-skill": BioResearcherSkillTool,
|
|
20
33
|
...tableTools,
|
|
21
34
|
...dbTools,
|
|
22
35
|
blockingTimer,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function syncPluginSkills(workspaceDir: string): void;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { existsSync, readFileSync, writeFileSync, rmSync, mkdirSync, cpSync, readdirSync } from "fs";
|
|
4
|
+
import { PLUGIN_VERSION } from "../version";
|
|
5
|
+
const MANIFEST_NAME = ".bioresearcher-manifest.json";
|
|
6
|
+
const MARKER_NAME = ".plugin-managed";
|
|
7
|
+
function getPluginSkillsDir() {
|
|
8
|
+
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const pathSep = path.sep;
|
|
10
|
+
const isDist = currentDir.includes(`${pathSep}dist${pathSep}`);
|
|
11
|
+
const isSrc = currentDir.includes(`${pathSep}src${pathSep}`);
|
|
12
|
+
if (isDist) {
|
|
13
|
+
const candidate = path.join(currentDir, "..", "..", "skills");
|
|
14
|
+
if (existsSync(candidate))
|
|
15
|
+
return candidate;
|
|
16
|
+
}
|
|
17
|
+
else if (isSrc) {
|
|
18
|
+
const candidate = path.join(currentDir, "..", "..", "..", "skills");
|
|
19
|
+
if (existsSync(candidate))
|
|
20
|
+
return candidate;
|
|
21
|
+
}
|
|
22
|
+
let searchDir = currentDir;
|
|
23
|
+
for (let i = 0; i < 6; i++) {
|
|
24
|
+
const skillsPath = path.join(searchDir, "skills");
|
|
25
|
+
if (existsSync(skillsPath))
|
|
26
|
+
return skillsPath;
|
|
27
|
+
const pkgJson = path.join(searchDir, "package.json");
|
|
28
|
+
if (existsSync(pkgJson)) {
|
|
29
|
+
const distSkills = path.join(searchDir, "dist", "skills");
|
|
30
|
+
const directSkills = path.join(searchDir, "skills");
|
|
31
|
+
if (existsSync(distSkills))
|
|
32
|
+
return distSkills;
|
|
33
|
+
if (existsSync(directSkills))
|
|
34
|
+
return directSkills;
|
|
35
|
+
}
|
|
36
|
+
searchDir = path.dirname(searchDir);
|
|
37
|
+
}
|
|
38
|
+
return path.join(currentDir, "..", "..", "..", "skills");
|
|
39
|
+
}
|
|
40
|
+
function getPluginSkillNames(pluginSkillsDir) {
|
|
41
|
+
if (!existsSync(pluginSkillsDir))
|
|
42
|
+
return [];
|
|
43
|
+
return readdirSync(pluginSkillsDir, { withFileTypes: true })
|
|
44
|
+
.filter((d) => d.isDirectory())
|
|
45
|
+
.map((d) => d.name);
|
|
46
|
+
}
|
|
47
|
+
function readManifest(opencodeSkillsDir) {
|
|
48
|
+
const manifestPath = path.join(opencodeSkillsDir, MANIFEST_NAME);
|
|
49
|
+
if (!existsSync(manifestPath))
|
|
50
|
+
return null;
|
|
51
|
+
try {
|
|
52
|
+
const raw = readFileSync(manifestPath, "utf-8");
|
|
53
|
+
const parsed = JSON.parse(raw);
|
|
54
|
+
if (typeof parsed.version === "string" && Array.isArray(parsed.skills)) {
|
|
55
|
+
return parsed;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
// Corrupted manifest — treat as missing
|
|
60
|
+
}
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
function writeManifest(opencodeSkillsDir, manifest) {
|
|
64
|
+
mkdirSync(opencodeSkillsDir, { recursive: true });
|
|
65
|
+
writeFileSync(path.join(opencodeSkillsDir, MANIFEST_NAME), JSON.stringify(manifest, null, 2) + "\n");
|
|
66
|
+
}
|
|
67
|
+
function writeSkillMarker(skillDir) {
|
|
68
|
+
writeFileSync(path.join(skillDir, MARKER_NAME), JSON.stringify({ version: PLUGIN_VERSION }) + "\n");
|
|
69
|
+
}
|
|
70
|
+
function hasMarker(skillDir) {
|
|
71
|
+
return existsSync(path.join(skillDir, MARKER_NAME));
|
|
72
|
+
}
|
|
73
|
+
export function syncPluginSkills(workspaceDir) {
|
|
74
|
+
const pluginSkillsDir = getPluginSkillsDir();
|
|
75
|
+
const opencodeSkillsDir = path.join(workspaceDir, ".opencode", "skills");
|
|
76
|
+
const manifest = readManifest(opencodeSkillsDir);
|
|
77
|
+
const currentSkillNames = getPluginSkillNames(pluginSkillsDir);
|
|
78
|
+
if (manifest && manifest.version === PLUGIN_VERSION) {
|
|
79
|
+
// Already up to date — check for newly-added skills only
|
|
80
|
+
let updated = false;
|
|
81
|
+
for (const name of currentSkillNames) {
|
|
82
|
+
if (!manifest.skills.includes(name)) {
|
|
83
|
+
const src = path.join(pluginSkillsDir, name);
|
|
84
|
+
const dest = path.join(opencodeSkillsDir, name);
|
|
85
|
+
cpSync(src, dest, { recursive: true });
|
|
86
|
+
writeSkillMarker(dest);
|
|
87
|
+
manifest.skills.push(name);
|
|
88
|
+
updated = true;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (updated) {
|
|
92
|
+
writeManifest(opencodeSkillsDir, manifest);
|
|
93
|
+
}
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
// Version mismatch or no manifest — full re-sync
|
|
97
|
+
// Delete old managed skill directories
|
|
98
|
+
if (manifest) {
|
|
99
|
+
for (const name of manifest.skills) {
|
|
100
|
+
const skillDir = path.join(opencodeSkillsDir, name);
|
|
101
|
+
if (hasMarker(skillDir)) {
|
|
102
|
+
rmSync(skillDir, { recursive: true, force: true });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
// Copy current plugin skills
|
|
107
|
+
const newSkillNames = [];
|
|
108
|
+
for (const name of currentSkillNames) {
|
|
109
|
+
const src = path.join(pluginSkillsDir, name);
|
|
110
|
+
const dest = path.join(opencodeSkillsDir, name);
|
|
111
|
+
mkdirSync(opencodeSkillsDir, { recursive: true });
|
|
112
|
+
cpSync(src, dest, { recursive: true });
|
|
113
|
+
writeSkillMarker(dest);
|
|
114
|
+
newSkillNames.push(name);
|
|
115
|
+
}
|
|
116
|
+
writeManifest(opencodeSkillsDir, { version: PLUGIN_VERSION, skills: newSkillNames });
|
|
117
|
+
}
|
|
@@ -20,8 +20,8 @@ export declare function createAllowlist(tools: string[]): ToolRestrictions;
|
|
|
20
20
|
* Agent tool restrictions map.
|
|
21
21
|
*
|
|
22
22
|
* - bioresearcher: denylist for context7*, web*
|
|
23
|
-
* - bioresearcherDR: allowlist for
|
|
24
|
-
* - bioresearcherDR_worker: allowlist for
|
|
23
|
+
* - bioresearcherDR: allowlist for skill, table*, db*, json*, parse_*, and core file tools (orchestrator - no biomcp)
|
|
24
|
+
* - bioresearcherDR_worker: allowlist for skill, biomcp*, table*, db*, json*, parse_*, and core file tools (data gatherer)
|
|
25
25
|
*/
|
|
26
26
|
export declare const AGENT_TOOL_RESTRICTIONS: Record<string, ToolRestrictions>;
|
|
27
27
|
/**
|
|
@@ -27,14 +27,17 @@ export function createAllowlist(tools) {
|
|
|
27
27
|
* Agent tool restrictions map.
|
|
28
28
|
*
|
|
29
29
|
* - bioresearcher: denylist for context7*, web*
|
|
30
|
-
* - bioresearcherDR: allowlist for
|
|
31
|
-
* - bioresearcherDR_worker: allowlist for
|
|
30
|
+
* - bioresearcherDR: allowlist for skill, table*, db*, json*, parse_*, and core file tools (orchestrator - no biomcp)
|
|
31
|
+
* - bioresearcherDR_worker: allowlist for skill, biomcp*, table*, db*, json*, parse_*, and core file tools (data gatherer)
|
|
32
32
|
*/
|
|
33
33
|
export const AGENT_TOOL_RESTRICTIONS = {
|
|
34
34
|
bioresearcher: createDenylist(["context7*", "web*"]),
|
|
35
35
|
bioresearcherDR: createAllowlist([
|
|
36
|
-
"
|
|
36
|
+
"skill",
|
|
37
37
|
"table*",
|
|
38
|
+
"db*",
|
|
39
|
+
"json*",
|
|
40
|
+
"parse_*",
|
|
38
41
|
"calculator",
|
|
39
42
|
"blockingTimer",
|
|
40
43
|
"glob",
|
|
@@ -47,9 +50,12 @@ export const AGENT_TOOL_RESTRICTIONS = {
|
|
|
47
50
|
"task"
|
|
48
51
|
]),
|
|
49
52
|
bioresearcherDR_worker: createAllowlist([
|
|
50
|
-
"
|
|
53
|
+
"skill",
|
|
51
54
|
"biomcp*",
|
|
52
55
|
"table*",
|
|
56
|
+
"db*",
|
|
57
|
+
"json*",
|
|
58
|
+
"parse_*",
|
|
53
59
|
"calculator",
|
|
54
60
|
"blockingTimer",
|
|
55
61
|
"glob",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -408,7 +408,7 @@ if row_count < 30:
|
|
|
408
408
|
|
|
409
409
|
# Medium datasets (30-1000 rows): Use long-table-summary skill
|
|
410
410
|
elif row_count < 1000:
|
|
411
|
-
|
|
411
|
+
skill long-table-summary
|
|
412
412
|
# Follow 16-step workflow
|
|
413
413
|
|
|
414
414
|
# Large datasets (> 1000 rows): Use Python
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Skill Tests
|
|
2
2
|
|
|
3
3
|
## Test: Load demo-skill
|
|
4
|
-
- Tool:
|
|
4
|
+
- Tool: skill
|
|
5
5
|
- Input:
|
|
6
6
|
```json
|
|
7
7
|
{"name": "demo-skill"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
- Expected: Skill content loaded successfully
|
|
13
13
|
|
|
14
14
|
## Test: Load bioresearcher-core
|
|
15
|
-
- Tool:
|
|
15
|
+
- Tool: skill
|
|
16
16
|
- Input:
|
|
17
17
|
```json
|
|
18
18
|
{"name": "bioresearcher-core"}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
- Expected: Demo script executes successfully
|
|
36
36
|
|
|
37
37
|
## Test: Skill Not Found
|
|
38
|
-
- Tool:
|
|
38
|
+
- Tool: skill
|
|
39
39
|
- Input:
|
|
40
40
|
```json
|
|
41
41
|
{"name": "nonexistent-skill-xyz-12345"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -13,7 +13,7 @@ This skill provides reusable guides for common GROMACS molecular dynamics workfl
|
|
|
13
13
|
## Quick Start
|
|
14
14
|
|
|
15
15
|
### Step 1: Load This Skill
|
|
16
|
-
The skill is loaded automatically when agent calls `
|
|
16
|
+
The skill is loaded automatically when agent calls `skill gromacs-guides`.
|
|
17
17
|
|
|
18
18
|
### Step 2: Extract Skill Path
|
|
19
19
|
From the `<skill_files>` section in the skill tool output, extract the `<skill_path>` value.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|