Agent skill

Takt

by nrslib in nrslib/takt

TAKT ワークフローエンジン。codex exec でサブエージェントを起動し、ワークフロー YAML(steps / initialstep)に従って マルチエージェントオーケストレーションを実行する。

MITAuto-check passedAgent Workflows

Install Takt

skills CLI
$ npx skills add nrslib/takt --skill takt -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nrslib/takt takt --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nrslib/takt.git skills-src && mkdir -p .claude/skills && cp -r skills-src/builtins/skill-codex .claude/skills/takt && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
takt
GitHub stars
1.4k
Token cost
~1.7k tokens
SKILL.md length
605 words
Files
4 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

TAKT ワークフローエンジン。codex exec でサブエージェントを起動し、ワークフロー YAML(steps / initialstep)に従って マルチエージェントオーケストレーションを実行する。

  • Works in 2 steps: ~/.agents/skills/takt/references/engine.m… → ~/.agents/skills/takt/references/yaml-sch…
  • Agent Workflows work in your project
  • SKILL.md covers 引数の解析, 事前準備: リファレンスの読み込み, あなたの役割: Team Lead and 手順(この順序で厳密に実行せよ), plus 1 more section
  • Calls codex

What it does

Takt is an agent skill from nrslib/takt. TAKT ワークフローエンジン。codex exec でサブエージェントを起動し、ワークフロー YAML(steps / initialstep)に従って マルチエージェントオーケストレーションを実行する。

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `agents/openai.yaml`, `references/engine.md` and `references/yaml-schema.md`).

It sits in Agent Workflows. The repository describes itself as: TAKT Agent Koordination Topology - Define how AI agents coordinate, where humans intervene, and what gets recorded — in YAML. The licence is MIT.

When your agent uses it

  • Agent Workflows work in your project

Example prompts

  • “/takt”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. ~/.agents/skills/takt/references/engine.md - プロンプト構築、レポート管理、ループ検出の詳細
  2. ~/.agents/skills/takt/references/yaml-schema.md - ワークフロー YAML の構造定義

What it can do on your machine

Read from SKILL.md and the folder at commit 69e1a74. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • codex

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Takt loads about 1.7k tokens when it runs, and up to ~8.7k if it reads all its reference files. Until then it costs about 27 tokens; SKILL.md has 605 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nrslib/takt at commit 69e1a74, republished under its MIT licence (© nrslib). 605 words, ~1,740 tokens.

Download SKILL.mdSave it as .claude/skills/takt/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
takt
description
TAKT ワークフローエンジン。codex exec でサブエージェントを起動し、ワークフロー YAML(steps / initial_step)に従って マルチエージェントオーケストレーションを実行する。

TAKT Workflow Engine

引数の解析

$ARGUMENTS を以下のように解析する:

$takt {workflow} [permission] {task...}
  • 第1トークン: ワークフロー名または YAML ファイルパス(必須)
  • 第2トークン: 権限モード(任意)。以下のキーワードの場合は権限モードとして解釈する:
    • --permit-full - codex exec --sandbox danger-full-access
    • --permit-edit - codex exec --full-auto
    • 上記以外 → タスク内容の一部として扱う
  • 残りのトークン: タスク内容(省略時は AskUserQuestion でユーザーに入力を求める)
  • 権限モード省略時のデフォルト: default(codex exec (オプションなし))

例:

  • $takt coding FizzBuzzを作って → coding ワークフロー、default 権限
  • $takt coding --permit-full FizzBuzzを作って → coding ワークフロー、danger-full-access
  • $takt /path/to/custom.yaml 実装して → カスタムYAML、default 権限

事前準備: リファレンスの読み込み

手順を開始する前に、以下の2ファイルを Read tool で読み込む:

  1. ~/.agents/skills/takt/references/engine.md - プロンプト構築、レポート管理、ループ検出の詳細
  2. ~/.agents/skills/takt/references/yaml-schema.md - ワークフロー YAML の構造定義

あなたの役割: Team Lead

あなたは Team Lead(オーケストレーター) である。 ワークフロー YAML に定義された状態遷移に従って step を実行する。

禁止事項
  • 自分で作業するな - コーディング、レビュー、設計、テスト等は全てサブエージェントに委任する
  • タスクを自分で分析して1つの実装にまとめるな - step を1つずつ順番に実行せよ
  • step をスキップするな - 必ず initial_step から開始し、Rule 評価で決まった次の step に進む
  • "yolo" をワークフロー名と誤解するな - "yolo" は YOLO(You Only Live Once)の俗語で「無謀・適当・いい加減」という意味。「yolo ではレビューして」= 「適当にやらずにちゃんとレビューして」という意味であり、ワークフロー作成の指示ではない
あなたの仕事は4つだけ
  1. ワークフロー YAML を読んで遷移を理解する
  2. 各 step のプロンプトを構築する(references/engine.md 参照)
  3. Write tool + Bash tool (codex exec) でサブエージェントを起動して作業を委任する
  4. サブエージェントの出力から Rule 評価を行い、次の step を決定する

重要: ユーザーが明示的に指示するまで git commit を実行してはならない。実装完了 ≠ コミット許可。

ツールの使い分け(重要)
やること使うツール説明
プロンプト一時保存Write toolstep 名を含めない安全なランダム名(例: /tmp/takt-prompt-{timestamp}-{uuid}.md)で書き出す
サブエージェント起動Bash toolcodex exec {権限オプション} - < /tmp/... を実行

手順(この順序で厳密に実行せよ)

手順 1: ワークフロー解決と読み込み

引数の第1トークンからワークフロー YAML ファイルを特定して Read で読む。

第1トークンがない場合(ワークフロー名未指定): → ユーザーに「ワークフロー名を指定してください。例: $takt coding タスク内容」と伝えて終了する。

ワークフロー YAML の検索順序:

  1. .yaml / .yml で終わる、または / を含む → ファイルパスとして直接 Read
  2. 名前解決:
    • ~/.takt/workflows/{name}.yaml (ユーザーカスタム、優先)
    • ~/.agents/skills/takt/workflows/{name}.yaml (Skill 同梱ビルトイン)
  3. 見つからない場合: 上記ディレクトリを Glob で列挙し、AskUserQuestion で選択させる

YAML から以下を抽出する(→ references/yaml-schema.md 参照):

  • name, max_steps, initial_step, steps 配列
  • workflow_config(runtime.prepare などの process 準備。provider / model / options は runtime.yaml)
  • セクションマップ: personas, policies, instructions, output_contracts, knowledge
手順 2: セクションリソースの事前読み込み

ワークフロー YAML のセクションマップ(personas:, policies:, instructions:, output_contracts:, knowledge:)から全ファイルパスを収集する。 パスは ワークフロー YAML ファイルのディレクトリからの相対パス で解決する。

例: ワークフローが ~/.agents/skills/takt/workflows/default.yaml にあり、personas: に coder: ../facets/personas/coder.md がある場合 → 絶対パスは ~/.agents/skills/takt/facets/personas/coder.md

ファセット本文に {{include:<kind>/<name>}} がある場合は、同じ言語の facets/partials/<kind>/<name>.md を Read で取得し、参照先の include も再帰的に展開してからプロンプトへ結合する。 参照先が存在しない場合、または include が循環する場合はエラーとして扱い、別言語の partial へフォールバックしない。

重複を除いて Read で全て読み込む。読み込んだ内容はサブエージェントへのプロンプト構築に使う。

手順 3: 初期化

initial_step の名前を確認し、steps から該当する step 定義を取得する。 以下の変数を初期化する:

  • iteration = 1
  • current_step = 上記 initial の step 定義
  • previous_response = ""
  • permission_mode = コマンドで解析された権限モード("danger-full-access" / "full-auto" / "default")
  • step_history = [](遷移履歴。Loop Monitor 用)

実行ディレクトリ: いずれかの step に report フィールドがある場合、.takt/runs/{YYYYMMDD-HHmmss}-{slug}/ を作成し、以下を配置する。

  • reports/(レポート出力)
  • context/knowledge/(Knowledge スナップショット)
  • context/policy/(Policy スナップショット)
  • context/previous_responses/(Previous Response 履歴 + latest.md)
  • logs/(実行ログ)
  • meta.json(run メタデータ)

レポート出力先パスを report_dir 変数(.takt/runs/{slug}/reports)として保持する。

次に 手順 4 に進む。

手順 4: サブエージェント起動

iteration が max_steps を超えていたら → 手順 7(ABORT: イテレーション上限)に進む。

current_step のプロンプトを構築する(→ references/engine.md のプロンプト構築を参照)。

プロンプト構築の要素:

  1. ペルソナ: persona: キー → personas: セクション → .md ファイル内容
  2. ポリシー: policy: キー → policies: セクション → .md ファイル内容(複数可)
  3. 実行コンテキスト: cwd, ワークフロー名, step 名, イテレーション情報
  4. ナレッジ: knowledge: キー → knowledge: セクション → .md ファイル内容
  5. インストラクション: instruction: キー → instructions: セクション → .md ファイル内容(テンプレート変数展開済み)
  6. タスク/前回出力/レポート指示/タグ指示: 自動注入

通常 step の場合(parallel フィールドなし):

  1. Write tool でプロンプトを一時ファイルに保存する。
    • step 名や substep 名をファイル名に含めず、/tmp/takt-prompt-{timestamp}-{uuid}.md のような安全なランダム名を使う
  2. Bash tool で codex exec を実行する。
    • --permit-full の場合: codex exec --sandbox danger-full-access - < "$tmp_prompt_file"
    • --permit-edit の場合: codex exec --full-auto - < "$tmp_prompt_file"
    • デフォルト: codex exec - < "$tmp_prompt_file"
  3. stdout をサブエージェント出力として扱う。
  4. 手順 5 に進む。

parallel step の場合:

  1. parallel 配列の各サブステップ用プロンプトをそれぞれ安全なランダム名(例: /tmp/takt-parallel-{timestamp}-{uuid}.md)で保存する。
  2. 1つのメッセージで、サブステップ数分の Bash tool (codex exec) を並列実行する。
  3. 全 stdout を収集して 手順 5 に進む。
bash
# 例: 2サブステップを並列実行
codex exec --full-auto - < "$tmp_prompt_file_1"
codex exec --full-auto - < "$tmp_prompt_file_2"
Show full SKILL.md (182 more words)Show less
手順 5: レポート抽出と Loop Monitor

レポート抽出(current_step に report フィールドがある場合のみ): サブエージェント出力から ```markdown ブロックを抽出し、Write tool で {report_dir}/{ファイル名} に保存する。 詳細は references/engine.md の「レポートの抽出と保存」を参照。

Loop Monitor チェック(ワークフローに loop_monitors がある場合のみ): step_history に current_step の名前を追加する。 遷移履歴が loop_monitor の cycle パターンに threshold 回以上マッチした場合、judge サブエージェントを起動して遷移先をオーバーライドする。 詳細は references/engine.md の「Loop Monitors」を参照。

手順 6: Rule 評価

codex exec から返ってきたサブエージェント出力から matched_rule を決定する。

通常 step:

  1. rules を YAML 記述順に評価する。
  2. when(...) と all(...) / any(...) は workflow state とサブステップ結果から決定的に評価する。
  3. 最初の意味ラベル condition に到達した場合だけ、重複を除いた意味ラベル候補から一度だけ選択する。
  4. 選択したラベルと guard を使って以後も YAML 順に評価し、最初に true となった rule を選択する。
  5. どの rule も成立しない、または意味ラベル選択が不正なら rule_no_match として ABORT する。

parallel step:

  1. 各サブステップの codex exec 出力に対して、サブステップの rules で条件マッチを判定
  2. マッチした condition 文字列を記録
  3. 親 step の rules で aggregate 評価:
    • all("X"): 全サブステップが "X" にマッチしたら true
    • any("X"): いずれかのサブステップが "X" にマッチしたら true
    • all("X", "Y"): サブステップ1が "X"、サブステップ2が "Y" にマッチしたら true
  4. 親 rules を上から順に評価し、最初に true になった rule を選択

matched_rule が決まったら次に進む。

  • next = COMPLETE → 手順 7(COMPLETE)
  • next = ABORT → 手順 7(ABORT)
  • next = step 名 → previous_response 更新、iteration += 1、次 step を steps から取得して 手順 4 に戻る

どの rule にもマッチしなかったら → 手順 7(ABORT: ルール不一致) に進む。

手順 7: 終了

ユーザーに結果を報告する:

  • COMPLETE: 最後のサブエージェント出力のサマリーを表示
  • ABORT: 失敗理由を表示
  • イテレーション上限: 強制終了を通知

詳細リファレンス

ファイル内容
references/engine.mdプロンプト構築、レポート管理、ループ検出の詳細
references/yaml-schema.mdワークフロー YAML の構造定義とフィールド説明

© nrslib, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in builtins/skill-codex of nrslib/takt.

  • SKILL.md
  • agents/openai.yaml
  • references/engine.md
  • references/yaml-schema.md

Open the folder on GitHubat commit 69e1a74

Compare with similar skills

Takt next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Takt compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Takt this skillnrslib/takt1.4k—~1.7kAutomated safety check: PassMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k10 repos~4.1kAutomated safety check: NotesApache-2.0
Using Superpowersfarm-fe/farm5.6k36 repos~1.4kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers297k2 repos~5.1kAutomated safety check: PassMIT
Skill CreatorAzure/azqr79689 repos~8.2kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 10 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 36 repos~1.4k tokens
    Agent WorkflowsAuto-check passed
  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    297k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    796 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 7 repos~2.8k tokens
    Agent WorkflowsAuto-check passed

More from nrslib/takt

  • Takt

    nrslib/takt

    TAKT ワークフローエンジン。Agent Team を使ったマルチエージェントオーケストレーション。ワークフロー YAML(steps / initialstep)に従ってマルチエージェントを実行する。

    1.4k GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Categories

Questions about Takt

What does Takt do?

TAKT ワークフローエンジン。codex exec でサブエージェントを起動し、ワークフロー YAML(steps / initialstep)に従って マルチエージェントオーケストレーションを実行する。. Takt is an agent skill from nrslib/takt.

When should I use Takt?

Takt fits situations like: agent Workflows work in your project.

How do I install Takt in Claude Code?

Run `npx skills add nrslib/takt --skill takt -a claude-code`. Or copy the skill folder (builtins/skill-codex in nrslib/takt) into .claude/skills/takt in your project. Claude Code loads it when a task matches its description.

How do I install Takt in Codex?

Run `npx skills add nrslib/takt --skill takt -a codex`. Or copy the skill folder (builtins/skill-codex in nrslib/takt) into .agents/skills/takt in your project. Codex loads it when a task matches its description.

Can I use Takt in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nrslib/takt --skill takt -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/takt, .gemini/skills/takt, .github/skills/takt and .opencode/skills/takt in your project.

What does Takt need to run?

Going by SKILL.md and its folder, Takt needs the command-line tools its instructions call (codex).

Does Takt access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Takt safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Takt use?

Takt is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Takt use?

About 1.7k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7k tokens, read only when the agent opens those files.

What are the alternatives to Takt?

Skills that share tags, products or a category with Takt: MCP Server Builder (anthropics/skills, 180k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Using Superpowers (farm-fe/farm, 5.6k stars) and Executing Plans Inline (obra/superpowers, 297k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Takt?

nrslib (a GitHub user) maintains it in nrslib/takt, which has 1,403 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 11, 2026.

Source: nrslib/takt on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.