Vignette: Share skills and use them in ellmer

Aperta
#231 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
68/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
r
Ambito
ai, documentation

Direzione di ricerca

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().

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
R
Stelle
150
Fork
13
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/btw

Tutte le issue di posit-dev/btw

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.