Vignette: Share skills and use them in ellmer

オープン
#231 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
68/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
r
領域
ai, documentation

調査の方向性

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

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
R
スター
150
フォーク
13
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

posit-dev/btw のほかの issue

posit-dev/btw の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。