Vignette: Turn report writing into a reusable task

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

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

評価

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

調査の方向性

Start by reading the existing configuration, btw-md, and custom-agents vignettes, then verify btw_task(), task-file front matter, prompt/context handling, and client/tool modes against the current source. Develop a bounded report-writing example that works interactively and as a delegated tool, and render it in a fresh session with provider-dependent interactions marked non-executing.

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

説明

documentation

Goal and audience

Extend the ideas in the configuration and custom-agents vignettes by teaching reusable tasks with btw_task(). The example should be a report-writing task that helps create the report in the first place, rather than another report-review task. This complements the existing custom-agents example: create the report with a reusable task, then potentially review it with the previously introduced agents.

The audience is R users/developers who want to launch a defined workflow themselves or offer it as a tool to another chat. The destination is one parameterized task usable interactively and as a tool.

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.

  • Briefly show the finished task experience, possibly using a built-in task to introduce the concept.
  • Develop a report-writing workflow: gather the report's purpose, available data/results, audience, and desired output, then help draft the report. Choose a concrete, bounded example before writing.
  • Move the repeated instructions into a task Markdown file.
  • Configure the client and tools with the familiar front matter.
  • Parameterize the prompt with {{ variable }} placeholders.
  • Distinguish named template arguments from unnamed R objects supplied as context.
  • Run the task interactively in the app or console.
  • Return a configured client with mode = "client".
  • Offer the same task to another chat with mode = "tool".
  • Explain tasks versus custom subagents and the transition from a human-guided workflow to a delegated job. In tool mode, the task must proceed without interviewing the user; show how the necessary inputs are supplied or assumptions handled.

Suggested boundaries

Link back to configuration and custom-agent explanations rather than reteaching them. Task files are passed explicitly; do not present them as automatically discovered custom agents. Avoid making a complex agent team necessary to understand tasks.

Writing guidance

Build on btw-md and custom-agents while making the report-writing example useful on its own. Verify APIs, mode behavior, and prompt/context handling against source. Render in a fresh session; mark provider-dependent interactions as non-executing where appropriate, and do not invent 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 を短くまとめたダイジェスト。