Agent skill

bioinforw-data-plotting

Recommend and adapt scientific plotting templates from a local Bioinforw or NGplot catalog for research data visualization. Use when Codex needs to choose a chart type from `catalog_enriched.jsonl`, refresh `embedding_input.jsonl`, return top-k templates with Python/R code paths, map user columns to template-required columns, or turn a research plotting request into an executable plotting starting point.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/cihebi2/codex_skills/tree/main/bioinforw-data-plotting

SKILL.md

Bioinforw Data Plotting

Overview

Prefer the local template catalog before inventing a chart from scratch. Start by matching the user's data and analysis goal to existing templates, then adapt the selected Python or R example code to the user's columns and file paths.

Workflow

  1. Discover the local catalog. Prefer bioinforw_ngplot_dump/catalog_enriched.jsonl. If the user workspace does not contain one, fall back to the bundled asset catalog under assets/bioinforw_ngplot_dump/.
  2. Refresh embedding_input.jsonl when it is missing or stale. Use scripts/build_embedding_input.py. The script can auto-discover the dump root from the current workspace.
  3. Convert the user request into a structured query when possible. Capture analysis goal, table count, variable roles, grouping, statistical annotation needs, must-have visual features, and families to avoid. Use references/request-format.md.
  4. Rank templates with scripts/recommend_bioinforw_templates.py. Prefer JSON output for downstream use.
  5. Return the best matches with:
    • template id and name
    • resolved chart_family and original source_chart_family
    • ranking reasons
    • python_path, r_path, svg_path, preview_path, and data_paths
  6. If the user wants an actual figure, open the selected template's python_example.py or R_example.R, map the user's columns to required_columns, and modify that code in the current repo instead of rewriting everything.
  7. If no template fits, state that clearly and explain the nearest matching families instead of forcing an unrelated chart.

Query Construction

  • Record the user's scientific question first: comparison, distribution, trend, correlation, composition, hierarchy, network, geography, or significance.
  • Normalize variables into roles such as group, category, measurement, time, source, target, geo, or p_value.
  • Prefer a structured JSON query when the user provides schema details. Fall back to raw text only when the request is underspecified.
  • Penalize templates that conflict with hard constraints such as 不分组, missing statistics, wrong table count, or banned families.

Commands

Run from the user's workspace root when possible.

powershell
python C:\Users\ciheb\.codex\skills\bioinforw-data-plotting\scripts\build_embedding_input.py
python C:\Users\ciheb\.codex\skills\bioinforw-data-plotting\scripts\recommend_bioinforw_templates.py --query-file .\bioinforw_ngplot_dump\recommend_query_example.json --top-k 8 --format json

Pass an explicit path when the catalog is not under the current working directory.

Resources

  • scripts/build_embedding_input.py: Regenerate embedding_input.jsonl from catalog_enriched.jsonl.
  • scripts/recommend_bioinforw_templates.py: Score templates against natural-language or structured requests and return reusable code paths.
  • references/request-format.md: Structured query fields, examples, and response expectations.
  • assets/bioinforw_ngplot_dump/: Bundled 345-template snapshot with catalog_enriched.jsonl, embedding_input.jsonl, local index page, preview images, rendered SVGs, example Python/R code, and example input data.

Expand your agent's capabilities with these related and highly-rated skills.

cihebi2/codex_skills

lsky-uploader

Upload files to the self-hosted Lsky image bed (https://lsky.xueguo.us/api/v1), fetch the returned URLs/Markdown snippets, and manage albums or strategies via the REST API. Use this skill whenever you need to programmatically push screenshots/assets to Lsky and return shareable links inside Codex.

0 0
Explore
cihebi2/codex_skills

tox-paper-extractor

End-to-end OA literature pipeline for toxicity/peptide experimental data. Use to discover candidates (Europe PMC), download OA full text + supplementary (PDF/JATS XML/PMC OA packages), extract traceable raw records (tables/supp → raw_extractions.csv + raw_experimental_records.csv + extracted_tables), generate monitoring reports, and screen records for training readiness (units/aggregation/censoring).

0 0
Explore
cihebi2/codex_skills

dl-paper-code-blog

Craft long-form, Chinese blog posts that connect deep-learning papers with their code repositories using the auto-collected bundle (materials_manifest, paper_text, figures, repo_context, lsky cache). Use this skill whenever a user provides such a bundle and wants a TL;DR, method deep dive, experiment analysis, reproduction guide, and media assets.

0 0
Explore
mattpocock/skills

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

111,310 9,758
Explore
mattpocock/skills

handoff

Compact the current conversation into a handoff document for another agent to pick up.

111,310 9,758
Explore
mattpocock/skills

edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

111,310 9,758
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results