
2026/01/17 7:15
## Install.md LLM実行可能ファイルのインストール規格。
RSS: https://news.ycombinator.com/rss
要約▶
Japanese Translation:
install.md は、AI アシスタントがソフトウェアインストール手順を自動的に読み取り実行できる軽量 Markdown フォーマットであり、手動設定を排除します。
ファイルはプロジェクトルートまたは
/docs ディレクトリに配置されるべきです。Mintlify は https://<your-docs-url>/install.md で自動生成しますが、開発者は必要に応じて上書きや無効化を行うことができます。典型的な install.md はヘッダー(製品名)、説明ブロッククオート、アクションプロンプト(「[Product] をインストールしてほしい」)、OBJECTIVE、DONE WHEN の基準、TODO チェックリスト、詳細ステップセクション(コードブロック付き)および EXECUTE NOW コール・トゥ・アクションを含みます。
このフォーマットは言語非依存であり、バイナリ、パッケージ、スクリプトのいずれもサポートします。ステップ内の条件付きロジックにより、npm/pnpm、macOS/Linux、Arch Linux などの環境に適応できます。
Mintlify のツールは既存ドキュメントからインストール知識を自動検出し、エージェント向けの install.md を合成・ホストします。開発者はメインドキュメントを煩雑にせずにエッジケース処理を組み込むことが可能です。
ユーザーは
curl -fsSL https://www.example.com/docs/install.md | claude のような簡単なコマンドでファイルを取得し、任意の LLM に貼り付けるか、オートノーマルエージェントへ直接パイプして実行し、ステップごとの承認を選択できます。仕様はオープンソース(spec: installmd.org, GitHub: github.com/mintlify/install-md)であり、カスタマイズ可能です。開発者はバージョン固有ファイルのホスティングや検出ロジックの追加を行えます。
セキュリティ上の配慮として、ファイルは人間が読める形式で、ステップごとの承認を許可し、自然言語で結果を明示するため、
curl | bash スクリプトに比べて隠れた悪意ある動作を減らします。多くの設定オプションを必要とする高度な統合の場合は専用ウィザードがまだ優先されることがありますが、それ以外では install.md がほぼすべてのメリットを提供し、エンジニアリング労力を削減します。
任意で、
llms.txt ファイルを install.md と併用してインストール中に追加情報やトラブルシューティング情報を提供できます。本文
LLM 実行可能インストール手順を提供する /install.md
ファイルの標準化提案
/install.md概要
ソフトウェアのインストールは AI に任せるべきです。
人間は説明書を読む時間とコマンド実行に時間を費やしますが、エージェントは明確なタスク記述を受ければ 自律的に 手順を実行できます。
install.md は、開発者が LLM が理解し、ユーザー環境に適応し、必要なら各ステップの承認を求めることができるインストール手順を書きやすくするためのフォーマットです。
なぜ重要か
エージェントはドキュメントよりも速く成長します。プロダクトドキュメントはまだ人間向けで、インストールなどの日常作業を自動化するときに摩擦が生じます。は、インストールを機械可読・エージェントフレンドリーなレシピへ変換することで、そのギャップを埋めます。install.md
仕組み
- プロジェクトのルートまたは
ディレクトリに/docs
ファイル を追加します。install.md - ユーザーはファイルを LLM に貼り付けるか、URL から直接パイプ (
) で渡します。curl -fsSL https://example.com/install.md | claude - LLM が手順を読み取り、OS・パッケージマネージャ等の環境を検知し、設定に合わせて実行(必要なら各ステップ前に承認要求)。
- ファイルは人間が読めるため、実行前に何が起こるかを正確に確認できます。
例 URL:
https://<your-docs-url>/install.md
オプション上書き: Mintlify の自動生成ファイルを上書きしたい場合は独自のを追加します。install.md
install.md の構成
| セクション | 目的 |
|---|---|
| ヘッダー | 小文字・ハイフンでつなげた H1 見出し(例:) |
| 説明 | ブロック引用で製品を要約 () |
| アクションプロンプト | LLM への直接指示 (“I want you to install [Product] for me. Execute all the steps below autonomously.”) |
| OBJECTIVE | インストールで達成すべきこと |
| DONE WHEN | 成功判定基準(例:期待される出力を返すコマンド) |
| TODO | 実行可能なステップの Markdown チェックリスト |
| Step Sections | 各ステップの詳細手順とコードブロック |
| EXECUTE NOW | TODO リストと目的に触れた実行呼びかけ |
サンプル install.md
install.md# mintlify > Documentation and setup instructions for mintlify I want you to install Mintlify CLI for me. Execute all the steps below autonomously. OBJECTIVE: Install the Mintlify CLI and set up a local documentation preview environment. DONE WHEN: Local documentation server is running and accessible at http://localhost:3000. ## TODO - [ ] Verify Node.js v20.17.0+ is installed - [ ] Install the Mintlify CLI globally - [ ] Create a new documentation project - [ ] Start the local development server - [ ] Verify the preview is accessible at localhost:3000 ## Prerequisites You need to have Node.js v20.17.0 or higher installed. Verify your Node.js version: ```bash node --version
You must also have Git installed:
git --version
Install the CLI
You need to install the Mintlify CLI globally using npm or pnpm.
Using npm:
npm i -g mint
Using pnpm:
pnpm add -g mint
Verify the installation:
mint --version
Create a new documentation project
You must create a new documentation project using the CLI. This clones the starter kit into your specified directory:
mint new docs
The CLI will prompt you for a project name and theme. You can also specify these directly:
mint new docs --name my-project --theme linden
Navigate into your new project directory:
cd docs
Start the local preview server
You need to start the development server to preview your documentation locally:
mint dev
Your documentation preview is now available at
http://localhost:3000.
If port 3000 is already in use, you can specify a custom port:
mint dev --port 3333
Alternatively, run without global installation using npx:
npx mint dev
Verify the preview
Open your browser and navigate to http://localhost:3000 to confirm the documentation site is running.
Update the CLI
If you need to update to the latest version:
mint update
Or reinstall with the latest version:
npm i -g mint@latest
Additional CLI commands
Check for broken links in your documentation:
mint broken-links
Check for accessibility issues:
mint a11y
Validate an OpenAPI specification:
mint openapi-check <openapi-file-or-url>
EXECUTE NOW: Complete the above TODO list to achieve: Local documentation server is running and accessible at http://localhost:3000.
--- ## `llms.txt` との統合 `install.md` は自然に `llms.txt` と連携します。 `llms.txt` が LLM にソフトウェアを理解させるのに役立ち、`install.md` がインストール方法を伝えます。 `install.md` で `llms.txt` を参照すれば、トラブルシューティングや設定詳細、必要な追加コンテキストを LLM が取得できます。 --- ## 利点 | 対象 | 得られるもの | |------|--------------| | **開発者** | 一度インストール手順を書けば、すべての環境に適応。メインドキュメントを汚さずエッジケースをエンコード可能。ウィザード保守不要。 | | **ユーザー** | 単一コマンドでソフトウェアをインストール、または LLM にファイルを貼り付けて実行。人間が読めるステップを事前に確認できる。 | | **エージェント** | 予測可能な場所 (`/install.md`)。明確な成功基準付きの構造化フォーマット。モデルへのクリーンな Markdown 入力。 | --- ## オープンソース仕様 - **Spec**: `installmd.org` - **GitHub**: `github.com/mintlify/install-md` 実際に使っていただく中でカバーされていないケースがあれば、issue を立てるか PR を送ってください。この標準は現場のフィードバックを受けながら進化します。