create-package-instructions
Skill10 starsChanged 3 months agoMITView on GitHub
Create complete AI instruction documentation for an R/Bioconductor package in .github/instructions/
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- instructions/claude.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- adr-authorSkill
- analyze-r-packageSkill
- bioc-howtoSkill
- bioc-pkg-devSkill
- bioc-pkg-finderSkill
- bioc-pkg-reviewSkill
- build-check-bioccheckSkill
- check-bioconductor-skillsSkill
- 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
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Create complete AI instruction documentation for an R/Bioconductor package in .github/instructions/.
- Very specific: line 34
Create Directory: Ensure .github/instructions/ exists.
- Very specific: line 37
Ensure .github/instructions/ is NOT ignored in .gitignore.
- Very specific: line 38
Add ^\.github/instructions$ to .Rbuildignore.
- Very specific: line 44
Instructions exist: Ask user to overwrite or use update-package-instructions.
- Distinctive: line 45
Template not found: Verify templates directory exists.
≈ “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
create-package-instructions
Create complete AI instruction documentation for an R/Bioconductor package in .github/instructions/.
Usage
Invoke this skill when you want to generate AI-friendly documentation for an R package:
- "Create instructions for this package"
- "Create .github/instructions for this R package"
Prerequisites
- Working directory is an R package root (contains DESCRIPTION file).
Process
- Run Package Analysis: Invoke
analyze-r-packageto understand the package structure. - Determine Required Instruction Files: Based on the analysis, select the appropriate templates from
templates/package-instructions/:00-overview.md.template(Always)10-data-access.md.template(If Type: Remote or Hybrid)20-development.md.template(Always)30-testing-and-docs.md.template(Always)40-vignettes.md.template(If Vignettes > 0)INDEX.md.template(Always)
- Create Directory: Ensure
.github/instructions/exists. - Create Files from Templates: Perform variable substitution for each
{{VARIABLE_NAME}}using the analysis output (refer totemplates/package-instructions/README.mdfor mappings). Write the results to.github/instructions/. - Update Package Config:
- Ensure
.github/instructions/is NOT ignored in.gitignore. - Add
^\.github/instructions$to.Rbuildignore.
- Ensure
- Provide Summary: Inform the user about the files created, documented functions, and next steps.
Error Handling
- Analysis fails: Propagate error, provide guidance.
- Instructions exist: Ask user to overwrite or use
update-package-instructions. - Template not found: Verify templates directory exists.
Integration
- Uses:
analyze-r-package - Works with:
update-package-instructions
Related: See analyze-r-package, update-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.

