Fleet Coreのロゴ

Fleet Core

コミュニティ
larcane97
fleet-core

Shared rules for the clausona fleet skills (superset-fleet, herdr-fleet, orca-fleet, tmux-fleet). Load it only when one of those skills tells you to; it is not a task on its own.

概要

公開者larcane97
リポジトリclausona
スキル名fleet-core
スター
57
フォーク
11
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    larcane97がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルFleet CoreをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/larcane97/clausona/tree/main/plugins/fleet-core/skills/fleet-core
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/larcane97/clausona.git /tmp/clausona
mkdir -p .claude/skills
cp -r /tmp/clausona/plugins/fleet-core/skills/fleet-core .claude/skills/fleet-core
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFleet Coreを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にFleet Coreを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Fleet Coreは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Fleet rules shared by every runner

A fleet is one main session (Claude Code or Codex) that splits work into tasks and runs each task as a worker: a separate Claude Code or Codex session in its own git worktree, on a clausona profile. A profile is one account or one API endpoint, with its own sign-in and limits. Profiles of one tool share plugins and settings. csn is short for clausona.

The runner skill that loaded this one (Superset, herdr, Orca or tmux) says how to create worktrees, start workers, read them and remove them. This skill says everything else.

Shells. Commands here are written for a POSIX shell. Claude Code runs them in Bash, on Windows too (Git Bash). Codex on Windows runs PowerShell: there, read "$(cat <file>)" as (Get-Content -Raw <file>), $(command -v clausona) as (Get-Command clausona).Source, and <cmd> </dev/null as $null | <cmd>. ~ is your home directory: %USERPROFILE% on Windows. The shell can be zsh, which does not split an unquoted variable into words: loop over paths written out one by one, not over a variable holding several.

Hidden variables in Codex. A Codex config can pass your commands only a few environment variables: [shell_environment_policy] with inherit = "core" or "none", usually in ~/.codex/config.toml. Then CODEX_HOME, and the variables a runner sets in its terminals such as herdr's HERDR_*, look unset even when they are set. When one you need is unset in Codex, look for that setting. If it is there, tell the user: the fix is to start this Codex session again with -c shell_environment_policy.inherit=all added to its command, which changes that session only.

1. Profiles and the main session

clausona list --json lists the profiles.

  • Every profile has name, tool (claude or codex) and configDir.
  • A subscription profile has quota.state, quota.session.usedPercent (5H) and quota.weekly.usedPercent (7D). It can also have quota.scoped: the most used window of a limit on one model, named in its label. Claude's are weekly; a Codex one can be its 5-hour window, and windowSeconds says which.
  • An API profile has kind: "api" and model instead. These exist for Claude Code only.

The main tool is the tool you run in: claude in Claude Code, codex in Codex. The main profile is the one whose configDir equals $CLAUDE_CONFIG_DIR (or ~/.claude when it is unset) in Claude Code, or $CODEX_HOME (or ~/.codex) in Codex. It coordinates and is never a worker. (isActive in the list is something else: the profile clausona use picked.) If Codex hides CODEX_HOME (Shells), you cannot tell which profile you run on: ask the user, unless they said.

2. Settings

Read ~/.clausona/fleet.json. If it does not exist, read ~/.clausona/superset-fleet.json, its older name. The keys:

  • workers: the only profiles that may be workers, for example ["claude:work", "claude:glm"]. It also bounds checkers (section 10) and hand-overs (section 9).
  • routing: the user's own rules, in words, for example "claude:glm never edits files under src/".
  • maxUsage: the usage threshold in section 3, in percent. The default is 90.
  • retire: ask (the default) or auto (section 11).
  • permissions: how workers run, per tool, for example {"claude": "acceptEdits", "codex": "on-request", "codexSandbox": "workspace-write"}. claude is a Claude Code permission mode. codex is the Codex approval policy passed to -a: on-request or never (Codex rejects other values on its command line). codexSandbox is the Codex sandbox: workspace-write (the default) or danger-full-access. Section 4 says what each means for commits.

When a permissions value you need is missing, use what a worker config or the profile's own settings already set (Claude Code's permissions.defaultMode; Codex's approval_policy and sandbox_mode in its config.toml, only when they hold one of the values above), and say which mode the workers get. If nothing sets one, ask the user once, and save the answer to fleet.json when they agree.

When the user asks to change a default ("never use claude:personal for workers", "always retire finished workers"), update that key in ~/.clausona/fleet.json and keep its other keys. If only superset-fleet.json exists, first copy its keys into a new fleet.json, then change the key. Say which file you wrote.

3. Choosing profiles

What the user says in this conversation comes first, then the settings file, then these defaults:

  • Same tool. Workers use the main tool. A profile of the other tool is a worker only when the user names it in this conversation, or workers lists it.
  • Not the main profile (section 1).
  • Skip profiles near or past their limits. Never use a subscription profile whose quota.state is not ok, or whose 5H or 7D usage is at maxUsage or more. If its quota.scoped is at maxUsage or more, do not run the model in its label there.
  • Prefer headroom. Pick the profile with the most room left, and spread the workers so no one profile carries most of them.
  • Send wide, mechanical work to API profiles, with small, explicit briefs: the file, the function, the change, and the command that checks it. Long exploratory briefs overflow their context.
  • Checkers (section 10) run on a third profile of the main tool: neither the worker's nor the main one.

If the user picks a profile these defaults would skip, such as one past its limits or the main profile itself, use it and say what it risks.

Before starting, show the coordinator table (section 6) with each task's profile. If neither the request nor the settings named a profile (in workers or routing), wait for the user's OK. Otherwise, or if the user said to start right away, start at once. A request names profiles when it gives a profile for any task, or says which accounts to use ("use my Claude accounts for the rest"); the tasks it leaves open take the defaults above, and you still start at once.

4. Launch arguments

A worker always starts as clausona run <profile> -- <args>. Never start a bare claude or codex. A runner may set CLAUDE_CONFIG_DIR or CODEX_HOME in its terminals (Orca does), and only clausona run puts the worker on the profile you chose. The command line holds the profile and flags only, never the brief.

Claude Code workers:

  • --permission-mode <permissions.claude>.
  • --strict-mcp-config, unless the task needs an MCP server. Without it, a worktree below a .mcp.json stops at Claude Code's "new MCP servers found" question, and the servers' tool definitions take up context.
  • --model <id> and --effort <level> when the plan sets them. Profiles share settings.json, so a worker without them runs the main session's default model.
  • API profiles also get --tools=Bash,Read,Edit,Write,Grep,Glob, to keep tool definitions out of a small context window.

Codex workers:

  • -s <permissions.codexSandbox> -a <permissions.codex>. In workspace-write, Codex keeps .git read-only and has no network, so a worker must ask before it commits and again before it pushes: with on-request the user approves each one (section 8), and with never both fail. A Codex worker commits and pushes on its own only in danger-full-access, which turns the sandbox off; that is the user's call. When you ask the user for a Codex policy, say this.
  • -c check_for_update_on_startup=false. Otherwise Codex can open with an update question whose highlighted answer runs a global npm install.
  • -c 'mcp_servers={}', unless the task needs an MCP server: a worker would otherwise start every server in the shared config.
  • --disable hooks, unless the runner skill says otherwise. With hooks on, Codex can stop at "Hooks need review", and trusting hooks is the user's call, never a worker's.
  • -m <model> and -c model_reasoning_effort=<level> when the plan sets them.

Folder trust. Claude Code and Codex both ask once whether to trust a folder, and both key the answer to the repository root, not the worktree: a worktree of a repo the profile already trusts starts without asking. When a worker shows the question for the repository you are working in, answer "trust" as the runner skill says. That is the repo the user asked you to work on.

First run. A profile's first session can stop at one-time notices, such as an API-key profile's "Detected a custom API key" (the answer must be Yes) or a Claude in Chrome notice. Before a profile's first worker, ask the user to start it once by hand (clausona run <profile>) and answer them. If a worker's screen shows such a notice, answer it yourself only when its highlighted default is the safe choice; otherwise tell the user. A permission prompt is never such a notice.

5. Briefs

Write every brief and follow-up to a file. Never paste one into a command line: the shell would run any $( ) or backticks in it. Start each one with a word, not -.

For herdr, Orca and tmux:

  • Write the brief to <worktree>/.fleet-brief.md, and follow-ups to <worktree>/.fleet-followup-<n>.md.
  • Make sure the line /.fleet-*.md is in the file info/exclude inside the directory that git -C <worktree> rev-parse --git-common-dir prints, so these files are never committed and git status stays clean.
  • Send the worker one line: Read .fleet-brief.md in this folder and do what it says. (or the follow-up's file name).

Superset passes the brief file to its own commands (see superset-fleet).

Besides the task, every brief says:

  • Work only in this worktree and branch. When done, commit and push the branch (git push -u origin HEAD).
  • Do not start other agents: no subagents, no claude -p, no codex exec, no review skills, no background agents.
  • End with the runner's DONE or BLOCKED line (section 6).

6. The coordinator table and the worker protocol

Keep a table with one row per task: task, profile, model, workspace, worktree, branch, worker handle, and state (planned, running, waiting on the user, done, blocked, retired). Update it after every event.

For herdr, Orca and tmux, a worker's last line is exactly one of:

  • FLEET_WORKER_DONE: <one-line summary>
  • FLEET_WORKER_BLOCKED: <what it needs>

Superset uses its own envelopes, from superset:orchestrate (Claude Code) or superset-orchestrate (Codex).

7. Waiting

Never end your turn while a worker runs and nothing waits on it: no one would wake you, and the user would have to.

  • In Claude Code, run the runner's wait command for each unfinished worker as a background task. You are woken when one returns.
  • In Codex, run one wait at a time in the foreground with a timeout of three minutes, handle what it returns, and wait again.

The runner skill says how to send and wait so that a wait never returns at once on a worker that has not started its turn yet. Wait on a worker again only after you sent it something (a brief, a follow-up, or keys), or after a wait timed out while it was still working. A worker that has already stopped makes most waits return at once, so waiting on it again without either only loops.

In Codex, start every worker before you wait on any: one foreground wait at a time would otherwise start the workers one after another. The runner skill gives the Codex forms.

When a worker waits for the user (a permission prompt, or a question you passed on), use the runner's "until it works again" wait if it has one. Otherwise, read that worker's screen whenever another wait returns, or when the user says they answered. If no other worker runs, end your turn and ask the user to tell you when they have answered.

Do not write your own loop that searches screens for a phrase. The phrase may be in the brief too, in another language, or missing.

8. Reading an event

When a wait returns, find the worker's last reply, in this order: the runner's record of it, which the runner skill names; then, for a Claude Code worker, the script below; then the worker's screen (the runner skill says how). The screen alone misses finished workers:

  • Claude Code in full-screen mode keeps no scrollback, so a read returns only what the screen shows. A reply taller than that never shows whole.
  • A Claude Code worker that sits idle compacts its conversation ("Compacted while idle"), and its reply is gone from the screen. A worker you come back to late may show no DONE line although it finished long ago.

When the runner keeps no record of a Claude Code worker's reply, or the record has no DONE or BLOCKED line, run node <base>/scripts/last-reply.mjs --worktree <worktree> --config-dir <profile configDir>. <base> is this skill's base directory, the folder that holds this file. The configDir is the worker's profile's, from clausona list --json. The script prints the worker's last reply from Claude Code's own record of the session, which outlives the screen, and at, when the worker wrote it. A reply from before you last sent the worker something does not answer that. With "reply": null, why says what the script found instead: nothing since the last prompt, a turn still going, or only an earlier task's session in a worktree of the same path. It reads Claude Code sessions only: for a Codex worker, read the screen.

Then, from the reply or the screen:

  • A DONE or BLOCKED line: update the table. For DONE, go to section 10.
  • A question: answer it from what you know, or ask the user.
  • A permission prompt: never answer it yourself. Tell the user which worker waits, and for what.
  • A usage-limit or rate-limit stop that will not clear soon: section 9.
  • The folder-trust question: section 4.

9. When an account runs out

  1. Pick another profile by section 3.
  2. Start it in the same worktree (the runner skill says how). Give it the brief plus this paragraph: "A previous worker on another account stopped at its limit before finishing. Check git status and git log in this worktree, then continue the task." For herdr, Orca and tmux, write that to .fleet-brief.md again and send the one line.
  3. Close the old worker. Relabel the task for the new profile, in the same <task> · <profile> form, so the sidebar or status bar names the account that now runs it. The runner skill says how.
  4. Record the new handle in the table, and wait on it from now on.

10. Judging a worker done

A DONE line is a claim. Before marking a task completed, in its worktree:

  • git log --oneline <base>..HEAD shows the work.
  • git status --porcelain prints nothing.
  • git rev-list --count "@{u}..HEAD" prints 0: the branch is pushed (keep the quotes: PowerShell reads a bare @{ as the start of a hash table). It fails when the branch has no upstream, that is, when it was never pushed.
  • Read the diff against what the brief asked.
  • Run the brief's check commands yourself.
  • For risky changes, also run a blind checker on a third profile of the main tool, from the worktree. Write its prompt to a file: the brief's acceptance criteria, and a request for a verdict on each. Then run:
    • Claude Code: clausona run <profile> -- -p "$(cat <file>)" --model <model> --tools=Bash,Read,Grep,Glob --output-format json
    • Codex: clausona run <profile> -- exec -s read-only "$(cat <file>)" </dev/null. Keep stdin closed: codex exec otherwise waits for more input and never starts.

If something is missing, send the worker a follow-up that names each unmet criterion. In the report, keep what you checked apart from what the worker claimed.

11. Retiring workers

Retiring removes a worker's worktree and its runner workspace. A worker is retirable only when all three hold:

  1. Its task was judged complete (section 10).
  2. Its branch has an upstream, and no commits ahead of it.
  3. git status --porcelain in its worktree prints nothing.

Check 2 and 3 right before removing. Condition 2 is what keeps the work: some runners delete the local branch together with the worktree (Orca does), and then only the pushed branch remains. Remove only with the command the runner skill names, never with --force or any other option that removes a worktree holding changes. After removing, confirm the worktree directory is gone.

The retire mode is the first of these that applies:

  1. What the user said in this conversation, such as "retire them when they're done" or "keep the workers".
  2. retire in the settings.
  3. The default, ask.
  • ask: at the end, list the retirable workers and retire the ones the user approves.
  • auto: say at the start that finished workers will be retired, then retire each one as soon as it is retirable.

A worker that is not retirable is never retired; report why.

12. Final report

One line per task:

  • profile and model;
  • workspace and branch;
  • verdict: checked, or only claimed;
  • retired or kept, and why.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Fleet Core」では何ができますか?

Shared rules for the clausona fleet skills (superset-fleet, herdr-fleet, orca-fleet, tmux-fleet). Load it only when one of those skills tells you to; it is not a task on its own.

TypingMindでFleet Coreを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Fleet Coreはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFleet Coreをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/larcane97/clausona/tree/main/plugins/fleet-core/skills/fleet-coreを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Fleet Coreを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Fleet Coreは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFleet Coreを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Fleet Core」は無料ですか?

はい。larcane97がGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇