ClaudeMods
☰
EN
● — online · Views — times
SponsorsSubmit a project
Tutorial resources · by たつ | 仕事に活かせるAI活用術|フォロバ100

First, let's clarify the difference between a one-off prompt and an assigned role (agent). A one-off prompt passes all context with each input. Who it acts as, what it bases decisions on,

A post that clarifies the difference between one-off prompts and the assigned role (agent) approach, and explains how to fix context in Claude Code's definition file (name, description, tools, model).

た
たつ | 仕事に活かせるAI活用術|フォロバ100@tatsu_kawata

まず、単発のプロンプトと担当(エージェント)の違いを整理します。 単発のプロンプトは、入力のたびに文脈を全部渡す方式です。誰として動くのか、何を根拠にするのか、どんな形で出すのか。毎回あなたが口で運びます。 担当を決める方式では、その文脈を定義ファイルに固定して、毎回渡すのは用件だけにします。違いは賢さではなく、文脈をどこに置くかです。 Claude Codeの場合、定義ファイルの先頭には name、description、tools、model を書きます。nameは呼び名、descriptionはいつ呼ばれるべきかの説明、toolsはできることの範囲、modelはどのくらいの重さで考えさせるかです。この下に担当範囲や守るべきルールを続ければ、前置きがそのまま資産として残ります。

Translated

About this mod

First, let's clarify the difference between a one-off prompt and an assigned role (agent). A one-off prompt is a method where you pass all the context with every input. Who it acts as, what it bases decisions on, what form the output takes. You carry all of that verbally each time.

With the approach of assigning a role, you fix that context in a definition file, and the only thing you pass each time is the request. The difference isn't intelligence—it's where you put the context.

In the case of Claude Code, at the top of the definition file you write name, description, tools, and model. name is what it's called, description explains when it should be invoked, tools is the scope of what it can do, and model is how heavily it should think. If you continue below that with the scope of responsibility and rules to follow, the preamble remains as an asset just as it is.

Installation

See the original source for installation instructions.

Original text / README

まず、単発のプロンプトと担当(エージェント)の違いを整理します。 単発のプロンプトは、入力のたびに文脈を全部渡す方式です。誰として動くのか、何を根拠にするのか、どんな形で出すのか。毎回あなたが口で運びます。

担当を決める方式では、その文脈を定義ファイルに固定して、毎回渡すのは用件だけにします。違いは賢さではなく、文脈をどこに置くかです。

Claude Codeの場合、定義ファイルの先頭には name、description、tools、model を書きます。nameは呼び名、descriptionはいつ呼ばれるべきかの説明、toolsはできることの範囲、modelはどのくらいの重さで考えさせるかです。この下に担当範囲や守るべきルールを続ければ、前置きがそのまま資産として残ります。

Similar projects