direct-setup

A setup command for DIRECT development tasks that follows design documents to configure the environment and project. It can create settings, install dependencies, initialize a database, and prepare services to run.

In plain words
What is it for?
Use it when a task has a task ID and design documents, to prepare configuration, environment variables, dependencies, databases, service startup, permissions, and setup documentation.
Why use it?
It gathers the relevant project rules and design information first, reducing setup mistakes and leaving a record of what was changed.

Command

Install

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.

agentmods
npx agentmods add commands/classmethod/tsumiki/direct-setup
Clone the repo
git clone --depth 1 https://github.com/classmethod/tsumiki
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,810 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce 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

Measured yesterday against content hash b4f7e111d20c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

legacy/commands/direct-setup.md · 216 lines

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が提供されている
  • 関連する設計文書が存在する
  • 必要な権限と環境が準備されている

実行内容

  1. 追加ルールの読み込み

    • docs/rule ディレクトリが存在する場合は読み込み
    • docs/rule/direct ディレクトリが存在する場合は読み込み
    • docs/rule/direct/setup ディレクトリが存在する場合は読み込み
    • 各ディレクトリ内のすべてのファイルを読み込み、追加ルールとして適用
  2. 技術スタック定義の読み込み

    • docs/tech-stack.md が存在する場合は読み込み
    • 存在しない場合は CLAUDE.md から技術スタックセクションを読み込み
    • どちらも存在しない場合は .claude/commands/tech-stack.md のデフォルト定義を使用
  3. 設計文書の確認

    • 読み込んだ技術スタック定義に基づいて関連ファイルを特定
    • Task tool (subagent_type: Explore, thoroughness: medium) を使用して関連設計文書や設定パターンを探索
    • docs/design/{要件名}/architecture.md をReadツールで読み込み
    • docs/design/{要件名}/database-schema.sql をReadツールで読み込み
    • その他関連する設計文書をReadツールで読み込み
  4. 設定作業の実行

    • Task tool (subagent_type: Explore, thoroughness: quick) を使用して既存の設定ファイルや環境変数を探索
    • 環境変数の設定
    • 設定ファイルの作成・更新
    • 依存関係のインストール
    • データベースの初期化
    • サービスの起動設定
    • 権限の設定
  5. 作業記録の作成

    • 実行したコマンドの記録
    • 変更した設定の記録
    • 遭遇した問題と解決方法の記録

出力先

作業記録は docs/implements/{要件名}/{TASK-ID}/ ディレクトリに以下のファイルとして作成されます:

  • setup-report.md: 設定作業実行記録

README.mdへの記録

開発環境の構築や運用に関する重要な情報は、必ずREADME.mdにも記録してください:

記録すべき内容

  • 新しい環境変数の設定方法
  • 追加した依存関係とそのインストール方法
  • データベースの初期化手順
  • 新しいサービスの起動方法
  • 設定ファイルの場所と説明
  • トラブルシューティング情報(エラーと解決方法)

記録方法

  1. 既存のセクションに追記する場合は、適切な箇所を見つけて追記
  2. 新しいセクションが必要な場合は、適切な位置に新規セクションを作成
  3. コマンド例は必ずコードブロックで記載
  4. 重要な注意事項は明確に記載

記録例

セットアップセクションへの追加
### 6. {新しいサービス名}のセットアップ
\`\`\`bash
cd {ディレクトリ}
{インストールコマンド}
{起動コマンド}
\`\`\`
開発コマンドセクションへの追加
### {サービス名}
\`\`\`bash
# {コマンドの説明}
{コマンド}
\`\`\`
トラブルシューティングセクションへの追加
### {問題の概要}

\`\`\`bash
# 問題の確認方法
{確認コマンド}

# 解決方法
{解決コマンド}
\`\`\`

出力フォーマット例

<setup_report_format>

# {TASK-ID} 設定作業実行

## 作業概要

- **タスクID**: {TASK-ID}
- **作業内容**: {設定作業の概要}
- **実行日時**: {実行日時}
- **実行者**: {実行者}

## 設計文書参照

- **参照文書**: {参照した設計文書のリスト}
- **関連要件**: {REQ-XXX, REQ-YYY}

## 実行した作業

### 1. 環境変数の設定

```bash

Read the full file on GitHub · 216 lines

Changes

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.

  1. yesterday First seen · 216 lines · 44 tokens per session scan A b4f7e111d20c

Subscribe to this mod's changes

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.