Vignette: Share skills and use them in ellmer

Open
#231 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
68/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
r
Domain
ai, documentation

Research direction

Read the current source and documentation for skill discovery, installation, and ellmer integration, focusing on inst/skills/ and the public APIs btw_skill_install_package(), btw_skill_install_github(), btw_skill_install_project(), btw_tools("skills"), and btw_skill_prompt(). Trace one existing skill with a bundled resource from an R package through discovery to use by an ellmer client, and run the examples where possible in a fresh session. Done means the vignette accurately covers packaging, sharing, discovery, consumption, and the distinction between explicit integration and btw_client().

Written by the indexing model from the issue text.

Description

documentation

Goal and audience

Teach intermediate-to-advanced R developers how to distribute skills so btw can find them, and how to integrate btw's skill tools into a regular ellmer client. This includes package authors and developers building custom assistants.

The focus is packaging, sharing, discovery, and consumption, not how to author skill instructions. Follow an existing useful skill from an R package's files through discovery/distribution to use by an ellmer assistant.

Proposed coverage — reassess before drafting

This is a starting proposal, not a fixed outline or required section order. Before writing, reassess the scope, example, and teaching sequence against the current implementation, existing documentation, and reader needs. Adjust, combine, or drop items as appropriate.

  • Establish the packaging unit: a skill directory with SKILL.md and optional reference files or scripts.
  • Show the R package layout under inst/skills/.
  • Explain automatic discovery from attached packages; distinguish installation from attachment.
  • Use btw_skill_install_package() to persist package skills in a project or user location without attaching the package in every session.
  • Cover GitHub sharing via btw_skill_install_github() and dependency-based installation via btw_skill_install_project().
  • Explain project/user discovery, name conflicts, and custom search paths, linking to reference documentation for the complete location rules.
  • Register btw_tools("skills") in a plain ellmer client.
  • Use the public btw_skill_prompt() helper to advertise skills in that client's system prompt.
  • Provide file-reading capability for bundled references, and explain how bundled scripts/resources are intended to be used.
  • Contrast this explicit integration with what btw_client() handles automatically.
  • Optionally mention slash-command integration without making it a second full tutorial.

Suggested boundaries

Avoid a skill-writing workshop, the skill-creator task, and a deep custom-agent tutorial. Make the distinction between registering a skill-loading tool and advertising available skills explicit. Use public APIs in the ellmer integration example rather than internal discovery/prompt helpers.

Writing guidance

Verify package discovery and installation behavior against source. Use a concrete skill with a bundled resource to demonstrate the complete path. Run discovery/integration examples where possible; render in a fresh session and avoid invented model output.

Dominant language
R
Stars
150
Forks
13
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/btw

All issues in posit-dev/btw

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.