Vignette: Share skills and use them in ellmer

未关闭
#231 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
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

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

posit-dev/btw 的其他 Issue

查看 posit-dev/btw 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。