SKILL.mdファイルを作成すると、Droidがそれをツールキットに追加します。Droidは関連する場合にスキルを使用するか、/skill-nameで直接呼び出すことができます。
Custom slash commands have been merged into skills. A file at
.factory/commands/review.md and a skill at .factory/skills/review/SKILL.md both create /review and work the same way. Your existing .factory/commands/ files keep working. Skills add optional features: a directory for supporting files, frontmatter to control who can invoke them, and the ability for Droids to load them automatically when relevant.- 柔軟な呼び出し – あなたとDroid の両方がスキルを呼び出せます。
/skill-nameと入力するか、Droidに使用するタイミングを決めさせることができます。 - 組み合わせ可能 – より大きなワークフローの一部として連鎖させることができます
- トークン効率 – 軽量で焦点を絞っており、未使用のツールや繰り返しの指示で肥大化していません
- ワークフロー – 段階的な指示(例:「URLに移動し、スクリーンショットを取り、データを抽出する」)
- 専門知識 – ドメインの知識と慣例(例:「デザインシステムでフロントエンド機能を実装する方法」)
- 両方 – 指示 + ツール + ベストプラクティスをまとめたもの
browser– CDPツールでChromeを自動化(ナビゲート、スクリーンショット、JS評価)linear– CLIツールでLinearの課題を管理(リスト、ステータス更新、チーム移動)frontend-ui-integration– チームの慣例に従った型付きReactフローの実装
スキルとは何か?
スキルは以下を含むディレクトリ(例:.factory/skills/frontend-ui-integration/)です:
- YAMLフロントマターとmarkdown指示を含む
SKILL.mdまたはskill.mdx - オプションのサポートファイル(スクリプト、スキーマ、チェックリスト)
スキルファイル形式
スキルはYAMLフロントマターを持つMarkdownで定義されます。小さく焦点を絞ったスキルは、短いSKILL.mdだけで済みます:
スキルの保存場所
スキルは、少数の既知の場所から発見されます:| スコープ | 場所 | 目的 |
|---|---|---|
| ワークスペース | <repo>/.factory/skills/ | チームメートと共有するプロジェクトスキル;gitにチェックイン。 |
| 個人 | ~/.factory/skills/ | マシン上でプロジェクト間を移動する個人的なスキル。 |
| 互換性 | <repo>/.agent/skills/ | .agentフォルダ慣例との互換性のために発見。 |
- ワークスペース:
<repo>/.factory/skills/<skill-name>/SKILL.md - 個人:
~/.factory/skills/<skill-name>/SKILL.md
-
ルートに単一の共有スキルフォルダを保持:
-
またはプロジェクト毎の
.factoryフォルダを追加し、スキルを各サブプロジェクトと一緒に配置:
フロントマターリファレンス
スキルはSKILL.mdファイルの上部で---マーカー間のYAMLフロントマターフィールドをサポートします:
| フィールド | 必須 | デフォルト | 説明 |
|---|---|---|---|
name | いいえ | ディレクトリ名 | スキルの表示名。小文字、数字、ハイフンのみ。 |
description | 推奨 | — | スキルの機能と使用タイミング。Droidがスキルを適用するタイミングを決めるために使用。 |
user-invocable | いいえ | true | falseに設定すると/スラッシュコマンドメニューから隠します。ユーザーが直接呼び出すべきでないバックグラウンド知識に使用。 |
disable-model-invocation | いいえ | false | trueに設定するとDroidがこのスキルを自動読み込みしません。/skill-nameで手動でトリガーしたいワークフローに使用。 |
スキルを呼び出せる人の制御
デフォルトでは、あなたとDroidの両方が任意のスキルを呼び出せます。/skill-nameと入力して直接呼び出すことができ、Droidは会話に関連する場合に自動的に読み込めます。2つのフロントマターフィールドでこれを制限できます:
-
disable-model-invocation: true: あなただけがスキルを呼び出せます。/deployや/send-notificationのような副作用があるワークフローや、タイミングを制御したいワークフローに使用します。コードが準備できて見えるからといって、Droidがデプロイを決定することは望ましくありません。 -
user-invocable: false: Droidだけがスキルを呼び出せます。コマンドとして実行可能でないバックグラウンド知識に使用します。legacy-system-contextスキルは古いシステムの動作を説明します。Droidは関連する場合にこれを知っているべきですが、/legacy-system-contextはユーザーが取る意味のあるアクションではありません。
呼び出しサマリー
| フロントマター | ユーザーが/invoke可能 | Droidが呼び出し可能 |
|---|---|---|
| (デフォルト) | はい | はい |
disable-model-invocation: true | はい | いいえ |
user-invocable: false | いいえ | はい |
クイックスタート
Create a skill folder
Under your repo, create a directory in
.factory/skills/, for example
.factory/skills/frontend-ui-integration/.Add SKILL.md or skill.mdx
Inside the folder, create
SKILL.md or skill.mdx with YAML frontmatter
(name, description) and markdown instructions that define the
capability, inputs, and success criteria.Add supporting files (optional)
Co-locate any types, schemas, or checklists the Droid should use when the
skill is active (for example
types.ts, schemas/, or
rollout-checklist.md).スキルと他の設定の違い
スキルはDroidの動作を形作る他の方法と並行して機能します:- カスタムDroid – どのモデルとツールを使用し、どの自律レベルで使用するかを定義;これらは完全なエージェント設定です。
- レガシースラッシュコマンド(
.factory/commands/) – ユーザーが呼び出すマクロで、まだ動作しますがスキルに置き換えられました。スキルは同じ/command機能に加えて、オプションのDroid呼び出しとサポートファイルを提供します。 - MCPサーバー – 外部システム(API、データベース、SaaSツール)をツールとして公開;これらはリソースの接続に関するもので、ワークフローのエンコーディングではありません。
- 作業の実行方法(エンジニアリングプレイブック)を再利用可能な機能としてパッケージ化
- 柔軟な呼び出しをサポート – あなた(
/skill-name経由)とDroidの両方がトリガーでき、誰が何を呼び出せるかのfine-grained control - 発見可能で組み合わせ可能 – Droidは計画内で複数のスキルを連鎖できます
- ツール、カスタムDroid、MCPサーバーの上に位置し、それらを安全にオーケストレーション
- MCPを使用して内部デプロイAPIを公開
- カスタムDroidを使用してCIで許可されるツール/モデルを定義
- スキルを使用してそのAPIとDroid設定を使った「カナリアデプロイメントを安全にロールアウトする方法」をエンコード
エンタープライズコードベースでスキルが重要な理由
スキルは以下が必要なエンタープライズ環境で特に価値があります:- Droidがフロントエンド実装、サービス統合、データクエリ、内部ツールを実行する方法を標準化
- チームの慣例、安全ルール、SLAを一度エンコードし、プロジェクト間で再利用
- 自動化を発見可能、監査可能、共有可能にする(git経由)、単なる「一つのチャットで起こったこと」ではなく
ベストプラクティス
Keep each skill narrow and outcome-focused
Keep each skill narrow and outcome-focused
Design skills around a single responsibility (e.g., “implement a typed
React UI for an existing endpoint”), not “build the whole feature”.
Define a crisp success criterion: what artifacts should exist when the
skill finishes (files changed, tests added, docs updated, approvals
gathered). Prefer several small skills composed by a Droid over one giant
“do everything” skill.
Make inputs explicit and structured
Make inputs explicit and structured
Document required inputs: repo path, services involved, APIs, schemas,
feature flag names, etc. Use structured fields (JSON snippets, bullet
lists, tables) instead of long prose when describing APIs or data models.
For security-sensitive workflows, include explicit “never do”
constraints and escalation conditions.
Encode team conventions and guardrails
Encode team conventions and guardrails
Bake in your testing, observability, and rollout requirements so the
skill always follows them. Reference your existing AGENTS.md, runbooks,
and design docs instead of inlining everything. Require proof
artifacts: tests, screenshots, log queries, or links to dashboards
depending on the domain.
Design for enterprise constraints
Design for enterprise constraints
Assume large monorepos, multiple services, and layered approvals. Be
explicit about which directories Droids may touch, which
languages/frameworks are in-bounds, and which are not. Include guidance for
cross-team dependencies – when to stub, when to coordinate with
another team, and when to stop and ask.
Make skills composable
Make skills composable
Prefer idempotent skills: safe to rerun on the same branch/PR. Design
skills to produce machine-parseable output where possible (for example,
a short summary block that other skills can consume). Keep skills
stateless beyond the current branch: no hidden assumptions about prior
runs.
Operate with verification and safety
Operate with verification and safety
Always include a “Verification” section that lists commands Droids
must run before completing the skill. Call out fallbacks when
verification fails (rollback steps, feature flags, or canary paths). For
production-adjacent skills, require that Droids open PRs but never
merge without human review.
クックブック
クックブックは、一般的なエンタープライズソフトウェアワークフローを対象とした意見のあるスキルテンプレートを提供します。 7つのスキルファミリーに焦点を当てています:- Frontend implementation skills – 既存のAPIと統合するUIサーフェスの構築
- Integration skills for complex codebases – 大きなmonorepoでのサービスの拡張または配線
- Internal data querying skills – 内部分析またはデータサービスへの安全で監査可能なアクセス
- Internal tools skills – 開発者と運用者のワークフローを改善する小さくても堅牢な内部アプリの構築
- Vibe coding skills – 完全なモダンWebアプリケーションをゼロから迅速にプロトタイピングし構築(Lovable/Bolt/v0の代替)
- AI data analyst skills – 包括的なデータ分析、可視化、統計モデリング(データアナリストツールの代替)
- Product management skills – PRD、機能分析、PMワークフローの支援(PMツール拡張)
- Browser automation skills – CDP経由でChromeを起動し、ライブタブをナビゲートし、DOM状態を評価し、MCPサーバーを実行せずにスクリーンショットまたはセレクターを収集
Frontend UI integration
Implement typed, tested frontend flows against existing backend APIs using
your design system, routing, and testing conventions.
Service integration in complex codebases
Extend or wire backend services in a shared monorepo while respecting
ownership boundaries, observability, and rollout requirements.
Internal data querying
Safely query internal analytics and data services, producing reproducible
queries and shareable analysis artifacts.
Internal tools
Build or extend internal-facing tools (admin panels, consoles, utilities)
with strong RBAC, audit logging, and operational safeguards.
Vibe coding
Rapidly prototype and build complete modern web applications from scratch
using React, Next.js, Vue, or other frameworks. Local-first alternative to
Lovable, Bolt, and v0.
AI data analyst
Perform comprehensive data analysis, statistical modeling, and create
publication-quality visualizations using Python and the full data science
ecosystem.
Product management
Assist with product management workflows including writing PRDs, analyzing
features, synthesizing research, and planning roadmaps.
Browser automation
Launch Chrome with remote debugging, drive tabs, evaluate DOM state, and
capture screenshots or selectors without deploying extra infrastructure.
SKILL.mdまたはskill.mdx– メインのスキル仕様references.md– コードベースに既に存在する型、API、モジュールへのリンクとポインターschemas/– スキルによって参照されるJSON/YAMLスキーマまたはOpenAPIスニペット(信頼できるソースのサービスコードではない)checklists.md– 再利用可能な検証またはロールアウトチェックリスト
