メインコンテンツへスキップ
Droidをより速く、より賢く、より少ない反復で動作させたいですか?これら4つのパワー機能が、良い結果を卓越した結果に変換します。各テクニックはトークンを節約し、ツール呼び出しを減らし、より良いコードを提供します。

Fewer Tool Calls

IDE plugin provides real-time context so Droid sees what you see

Better First Attempts

Spec Mode explores before coding, preventing false starts

Consistent Quality

AGENTS.md captures your standards once, applies them always

Self-Correcting Code

Linters and tests let Droid fix issues before you even see them

Factory IDE Plugin — リアルタイムコンテキスト認識

DroidにFactory IDE pluginをインストールするようにしてください。Factory IDE pluginはMCPサーバーとして機能し、Droidに開発環境の即座の認識を与えます。どのファイルを見ているかを説明したり、エラーメッセージをコピーしたりする必要がありません。Droidはあなたが見ているものを正確に見ることができます。 Droidが自動的に取得するもの:
  • 開いているファイルと選択された行
  • VSCodeのエラーハイライトと診断情報
  • プロジェクト構造とアクティブなターミナル出力
  • あなたのカーソル位置と最近の編集
プラグインなしの場合:
"Fix 'Property user does not exist on type AuthContext' error in auth.ts"
プラグインありの場合:
"Fix error"
プラグインは、やり取りのカテゴリ全体を排除します。Droidはコンテキストを知り、あなたが見るエラーを見て、最小限の入力からあなたの意図を理解します。
Quick setup: Install the Factory extension from VSCode marketplace.

Spec Mode — まず探索と計画、次にコーディング

複雑な機能は実装前に探索が必要です。Spec Modeは、Droidがコードを1行も書く前にコードベースを徹底的に調査することで、コストのかかる失敗を防ぎます。
1

Activate Spec Mode

Press Shift+Tab when starting complex work
2

Describe your goal

Write 1-2 sentences about what you want or provide fully-featured existing technical specs.
3

Droid explores

Searches relevant files, understands patterns, identifies dependencies
4

Review the plan

Get a detailed specification with implementation steps before any changes
5

Approve and execute

Only after you approve does Droid start making changes
以下に最適:
  • 2つ以上のファイルに触れる機能
  • アーキテクチャの変更
  • 馴染みのないコードベース
  • セキュリティに敏感な作業
Spec Modeなしでは、Droidは実装に早すぎるタイミングでジャンプし、あなたが望む正確な方法で作業を行わない可能性があります。Spec Modeがあれば、詳細な仕様を取得し、多くのトークンが無駄になる前にパスを修正する機会を得ます。
Spec Mode isn’t just for features—use it for complex debugging, refactoring, or any task where understanding comes before doing.

AGENTS.md — あなたの設定、記憶される

AGENTS.mdは、あなたのコーディング標準、プロジェクト規約、個人的な設定を1つの場所に集約します。Droidは全てのタスクに対してこれを自動的に読み込みます。 文書化すべき内容:
カテゴリ
コードスタイル”function宣言ではなくアロー関数を使用”
“ネストした条件文よりもearly returnsを優先”
テスト”新しいエンドポイントには全て統合テストが必要”
“テストデータにはfixtureではなくfactoryを使用”
アーキテクチャ”サービスは対応するインターフェースと共にsrc/servicesに配置”
“全てのデータベースクエリはrepositoryパターンを使用”
ツール”タスク完了前にnpm run verifyを実行”
scripts/deploy.shでデプロイ、手動コマンドは決して使わない”
避けるべき間違い”.envファイルは決してコミットしない”
“any!型注釈を使用しない”
シンプルに始めて、時間をかけて進化させる: プロジェクトルートにAGENTS.mdを作成:
# Project Guidelines

## Testing
- Run `npm test` before completing any feature
- New features need unit tests
- API changes need integration tests

## Code Style  
- Use TypeScript strict mode
- Prefer composition over inheritance
- Keep functions under 20 lines

## Common Commands
- Lint: `npm run lint:fix`
- Test: `npm test`
- Build: `npm run build`
Droidが間違いを繰り返したり、何かを2回説明したりするたびに、それをAGENTS.mdに追加してください。数週間以内に、あなたの作業方法を正確に知るパーソナライズされたアシスタントを手に入れることができます。
Pro tip: Include examples of good code from your project. “Follow the pattern in src/services/UserService.ts” gives Droid a concrete template.

Agent Readiness — ツールに教育を任せる

プロジェクトを自己修正可能にします。DroidがCI/CDパイプラインと同じ検証ツールを実行できるとき、あなたが指摘するのを待つ代わりに、問題を即座に修正します。

Linters

ESLint, Pylint catch style issues instantly

Type Checkers

TypeScript, mypy prevent type errors before runtime

Fast Tests

Unit tests that run in seconds provide immediate feedback

Pre-commit Hooks

Husky, pre-commit ensure consistency before commits
Critical: Keep verification fast. Slow tests will make the end-to-end work slower.

最大の効果を得るための4つ全ての組み合わせ

これらの機能は相乗効果があります。IDE pluginがコンテキストを提供 → Spec Modeがそのコンテキストを使ってより良い計画を立てる → AGENTS.mdが一貫した実装を保証 → Agent readinessが問題を即座にキャッチします。
Getting started? Install the IDE plugin first—it’s the fastest path to better results. Then add AGENTS.md with just your test commands. Build from there.