Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/classmethod/tsumiki/direct-setupgit clone --depth 1 https://github.com/classmethod/tsumikiWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00044 | $0.01810 |
| Opus 5 | $0.00022 | $0.00905 |
| Sonnet 5 | $0.00009 | $0.00362 |
| Haiku 4.5 | $0.00004 | $0.00181 |
Grade A, and why
direct-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.
direct-setup
目的
DIRECTタスクの設定作業を実行します。設計文書に基づいて環境構築、設定ファイル作成、依存関係のインストールなどを行います。
前提条件
- タスクIDが提供されている
- 関連する設計文書が存在する
- 必要な権限と環境が準備されている
実行内容
-
追加ルールの読み込み
docs/ruleディレクトリが存在する場合は読み込みdocs/rule/directディレクトリが存在する場合は読み込みdocs/rule/direct/setupディレクトリが存在する場合は読み込み- 各ディレクトリ内のすべてのファイルを読み込み、追加ルールとして適用
-
技術スタック定義の読み込み
docs/tech-stack.mdが存在する場合は読み込み- 存在しない場合は
CLAUDE.mdから技術スタックセクションを読み込み - どちらも存在しない場合は
.claude/commands/tech-stack.mdのデフォルト定義を使用
-
設計文書の確認
- 読み込んだ技術スタック定義に基づいて関連ファイルを特定
- Task tool (subagent_type: Explore, thoroughness: medium) を使用して関連設計文書や設定パターンを探索
docs/design/{要件名}/architecture.mdをReadツールで読み込みdocs/design/{要件名}/database-schema.sqlをReadツールで読み込み- その他関連する設計文書をReadツールで読み込み
-
設定作業の実行
- Task tool (subagent_type: Explore, thoroughness: quick) を使用して既存の設定ファイルや環境変数を探索
- 環境変数の設定
- 設定ファイルの作成・更新
- 依存関係のインストール
- データベースの初期化
- サービスの起動設定
- 権限の設定
-
作業記録の作成
- 実行したコマンドの記録
- 変更した設定の記録
- 遭遇した問題と解決方法の記録
出力先
作業記録は docs/implements/{要件名}/{TASK-ID}/ ディレクトリに以下のファイルとして作成されます:
setup-report.md: 設定作業実行記録
README.mdへの記録
開発環境の構築や運用に関する重要な情報は、必ずREADME.mdにも記録してください:
記録すべき内容
- 新しい環境変数の設定方法
- 追加した依存関係とそのインストール方法
- データベースの初期化手順
- 新しいサービスの起動方法
- 設定ファイルの場所と説明
- トラブルシューティング情報(エラーと解決方法)
記録方法
- 既存のセクションに追記する場合は、適切な箇所を見つけて追記
- 新しいセクションが必要な場合は、適切な位置に新規セクションを作成
- コマンド例は必ずコードブロックで記載
- 重要な注意事項は明確に記載
記録例
セットアップセクションへの追加
### 6. {新しいサービス名}のセットアップ
\`\`\`bash
cd {ディレクトリ}
{インストールコマンド}
{起動コマンド}
\`\`\`
開発コマンドセクションへの追加
### {サービス名}
\`\`\`bash
# {コマンドの説明}
{コマンド}
\`\`\`
トラブルシューティングセクションへの追加
### {問題の概要}
\`\`\`bash
# 問題の確認方法
{確認コマンド}
# 解決方法
{解決コマンド}
\`\`\`
出力フォーマット例
<setup_report_format>
# {TASK-ID} 設定作業実行
## 作業概要
- **タスクID**: {TASK-ID}
- **作業内容**: {設定作業の概要}
- **実行日時**: {実行日時}
- **実行者**: {実行者}
## 設計文書参照
- **参照文書**: {参照した設計文書のリスト}
- **関連要件**: {REQ-XXX, REQ-YYY}
## 実行した作業
### 1. 環境変数の設定
```bash
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 216 lines · 44 tokens per session scan A b4f7e111d20c
direct-setup is a command published in the GitHub repository classmethod/tsumiki (974 stars, last pushed 25d ago), licensed MIT. It adds 44 tokens to every session and 1,810 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.