The core objectives of this skill are:
When the user expresses intent to extract an analysis workflow:
.pdf files via Glob): use it directly, inform the user which file is being usedThis skill includes a built-in scripts/extract_pdf.py Python script for PDF text extraction (depends on the PyMuPDF library, pre-installed in the environment).
PDF Reading Strategy (two complementary methods):
Method A — Direct Read tool (preferred):
Use the Read tool to directly read the PDF file. Some environments support PDF rendering and can directly obtain text content.
Method B — Python script full-text extraction (recommended/fallback): If Read tool output is insufficient, or more complete text is needed, use Bash to run the extraction script:
python3 scripts/extract_pdf.py <pdf_path> <output_txt_path>The script extracts text from all PDF pages and saves it as a .txt file with page number markers. Then use the Read tool to read the generated txt file.
Recommended workflow:
The extracted analysis workflow should be at the macro pipeline level, identifying the major analysis stages in the paper, with each stage including:
Notes during extraction:
The output process is: first generate a Markdown intermediate file, then convert to .docx format using scripts/generate_docx.py for user delivery.
Write a structured summary document in Chinese Markdown format, saved as analysis_workflow_summary.md (as an intermediate file).
Document structure as follows (adjust according to actual paper content; it is not necessary to strictly follow this structure, but ensure it is structured):
# Literature Analysis Workflow Summary
**Literature Information**: [Title], [Journal/Year] (note if identifiable from the PDF)
## Analysis Pipeline Overview
Use a flowchart or bullet points to briefly describe the overall analysis pipeline, giving readers an at-a-glance understanding.
## Stage 1: [Stage Name]
### Purpose
### Data Source
### Methods/Tools
### Key Parameters/Filtering Criteria
### Main Output Results
## Stage 2: [Stage Name]
...
## Key Validation Strategies
- Internal validation:
- External validation:
- Other validation:
## Reusable Analysis Patterns
Extract generalizable analysis approaches (e.g., "differential screening → LASSO dimensionality reduction → multivariate regression model building → multi-dataset validation" as a universal pattern)Use the built-in script to convert Markdown to a professionally formatted .docx file:
python3 scripts/generate_docx.py analysis_workflow_summary.md .The script generates analysis_workflow_summary.docx, including:
code inline format renderingAfter outputting the .docx, also display a core content summary in the conversation (no need to show the full text; provide the pipeline overview and key findings, guiding the user to view the .docx file).
After outputting the summary, proactively ask the user:
Would you like a customized analysis plan designed for another disease or phenotype using this analysis workflow? If so, please provide the disease/phenotype name you are interested in.
If the user provides a disease/phenotype name:
Based on the workflow extracted in Step 2, design an adapted plan stage by stage for the new disease/phenotype.
Output process: first generate custom_analysis_plan_[disease_name].md intermediate file, then convert to .docx:
python3 scripts/generate_docx.py custom_analysis_plan_[disease_name].md .Adaptation principles:
Output format similar to Step 3, but with added "Adaptation Notes":
# Customized Analysis Plan: [New Disease/Phenotype Name]
## Based on Literature Workflow: [Original Paper Analysis Pipeline Name]
### Stage 1: [Stage Name] → Adapted Plan
- **Original method**:
- **Adaptation recommendations**:
- **Recommended databases/tools**:
- **Notes**:
....md intermediate file (can be cleaned before output), then use scripts/generate_docx.py to convert to .docx format. The final deliverable to the user is the .docx file. Intermediate .md files can be kept or deleted as neededscripts/extract_pdf.py via Bash to extract full text. The extraction script depends on PyMuPDF, pre-installed in the environment. Be especially careful when extracting information from the Methods and Results sections — these are the essence of the analysis workflowThis skill accepts requests that match the documented purpose of bioinfo_analysis_plan and include enough context to complete the workflow safely.
Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
bioinfo_analysis_planonly handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
63c61d3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.