ワンクリックで
analyze-r-package
Analyze R/Bioconductor package structure to extract key information about its purpose, exports, and characteristics
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Analyze R/Bioconductor package structure to extract key information about its purpose, exports, and characteristics
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Verify that waldronlab/ai-agent-skills are available and help users find the right skill
Update existing AI instruction documentation when an R/Bioconductor package changes
Validate that a skill conforms to the ai-agent-skills repository standards
Create complete AI instruction documentation for an R/Bioconductor package in .github/instructions/
Help create a new AI agent skill through collaborative Q&A
Automate documentation updates to SKILLS.md after creating or modifying a skill
| name | analyze-r-package |
| description | Analyze R/Bioconductor package structure to extract key information about its purpose, exports, and characteristics |
| version | 1.0.0 |
| category | r-packages |
| tags | ["r-packages","analysis","bioconductor","documentation"] |
| author | waldronlab |
Analyze an R/Bioconductor package to understand its structure, purpose, and key characteristics.
Invoke this skill when you want to understand an R package's architecture:
DESCRIPTION for name, purpose, version, dependencies, and classify its type (Data, Analysis, Infrastructure, Utility) based on biocViews.NAMESPACE for exported functions and (if present) S4 classes/methods. Categorize exports broadly (Data access, Processing, Visualization, Utility).data/, inst/extdata/, vignettes/, tests/testthat/, and src/.R/ source files for remote data access (ExperimentHub, AnnotationHub, DuckDB, AWS S3, HuggingFace, etc.) vs local data access.tests/testthat/ structure, file count, and remote vs local test data.vignettes/ for .Rmd files, extracting titles and purposes.Produce a structured markdown summary:
## Package Analysis: [Package Name]
### Classification
- **Type**: [Data/Analysis/Infrastructure/Utility]
- **Purpose**: [1-2 sentence summary]
- **Version**: [version number]
### Key Exports ([count] total)
- **Data Access Functions**: [list]
- **Data Processing Functions**: [list]
- **Utility Functions**: [list]
### Data Access Pattern
- **Type**: [None / Local Only / Remote / Hybrid]
- **Technologies**: [e.g., ExperimentHub, DuckDB]
### Classes
- [ClassName] - [Type: S3/S4/R6/S7] - [description]
### Documentation & Testing
- **Vignettes**: [List with titles]
- **Testing**: [Framework, count, data types]
### Special Characteristics
[List notable patterns that should be documented]
### Dependencies of Note
[List key Bioconductor or specialized packages]
User: "Analyze this R package"
Agent: (Analyzes parkinsonsMetagenomicData repository)
## Package Analysis: parkinsonsMetagenomicData
### Classification
- **Type**: Data Package
- **Purpose**: Provides uniformly processed gut microbiome data via remote parquet files accessed through DuckDB.
- **Version**: 0.99.0
### Key Exports (18 total)
**Data Access Functions** (5):
- `returnSamples()` - Main high-level data retrieval function
- `loadParquetData()` - Load filtered data from DuckDB connection
**Discovery Functions** (5):
- `parquet_colinfo()` - Inspect column structure
- `biobakery_files()` - List available data types
### Data Access Pattern
- **Type**: Hybrid (Remote primary, Local for testing)
- **Technologies**: DuckDB for remote parquet access, TreeSummarizedExperiment output
### Documentation & Testing
**Vignettes** (4):
1. codebook.Rmd - Data Codebook
2. full-workflow.Rmd - Comprehensive tutorial
**Testing**:
- Framework: testthat (3 files)
- Test data: inst/extdata/ (parquet, TSV, RDS)
### Special Characteristics
- Uses DuckDB for efficient remote parquet file querying without full download
This analysis output is consumed by create-package-instructions and update-package-instructions.
See also: create-package-instructions