analyze-r-package
Skill10 starsChanged 3 months agoMITView on GitHub
Analyze R/Bioconductor package structure to extract key information about its purpose, exports, and characteristics
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- instructions/claude.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- adr-authorSkill
- bioc-howtoSkill
- bioc-pkg-devSkill
- bioc-pkg-finderSkill
- bioc-pkg-reviewSkill
- build-check-bioccheckSkill
- check-bioconductor-skillsSkill
- create-package-instructionsSkill
- create-skillSkill
- document-skillSkill
- improve-code-coverageSkill
- migrate-datapkg-to-zenodoSkill
- security-audit-r-packageSkill
- update-package-instructionsSkill
- update-r-newsSkill
- validate-skillSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Detect Data Access Patterns: Search R/ source files for remote data access (ExperimentHub, AnnotationHub, DuckDB, AWS S3, HuggingFace, …
- Very specific: line 33
Analyze Testing: Check tests/testthat/ structure, file count, and remote vs local test data.
- Very specific: line 34
List Vignettes: Check vignettes/ for .Rmd files, extracting titles and purposes.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
analyze-r-package
Analyze an R/Bioconductor package to understand its structure, purpose, and key characteristics.
Usage
Invoke this skill when you want to understand an R package's architecture:
- "Analyze this R package"
- "Tell me about this package structure"
Prerequisites
- Working directory is an R package root (contains DESCRIPTION file)
- Package has standard R structure (R/, NAMESPACE, etc.)
Process
- Read Package Metadata: Analyze
DESCRIPTIONfor name, purpose, version, dependencies, and classify its type (Data, Analysis, Infrastructure, Utility) based onbiocViews. - Identify Exports: Parse
NAMESPACEfor exported functions and (if present) S4 classes/methods. Categorize exports broadly (Data access, Processing, Visualization, Utility). - Examine Directory Structure: Note the presence of
data/,inst/extdata/,vignettes/,tests/testthat/, andsrc/. - Detect Data Access Patterns: Search
R/source files for remote data access (ExperimentHub, AnnotationHub, DuckDB, AWS S3, HuggingFace, etc.) vs local data access. - Identify Classes: List R class definitions (S3, S4, R6, S7) and their properties/slots/fields.
- Read README: Extract high-level purpose and key features.
- Analyze Testing: Check
tests/testthat/structure, file count, and remote vs local test data. - List Vignettes: Check
vignettes/for.Rmdfiles, extracting titles and purposes.
Output Format
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]Examples
Example: Data Package Analysis
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 downloadIntegration
This analysis output is consumed by create-package-instructions and update-package-instructions.
See also: create-package-instructions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

