Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AGENTS.md

  • In Markdown, image files must be placed in images/ located in the same directory as the Markdown file.
  • File names in docs/ must use kebab-case (except for AGENTS.md, ID formats such as <XXX-ID>.md, and actual API endpoint names under specs/api/).
  • Documents in docs/ (except for AGENTS.md) must include frontmatter with name (filename), description (1-line summary), timestamp (date in YYYY-MM-DD format), and ai (authorship level: none [human only], ai-assisted [human written, AI proofread], ai-coauthored [human designed, AI written], or ai-generated [AI created]).
  • References (links) to <workspace> (.local/workspace/) are strictly forbidden in docs/.
  • Files under wiki/ (wiki files) must NOT be referenced (linked) from documents in docs/.
  • As a general rule, references (links) from tracked documents (追跡対象) to non-tracked documents (非追跡対象) are prohibited.
  • Documents classified into layers (L1 to L5) must restrict outgoing links to the same layer and adjacent layers (within ±1 layer: $L_{n-1} \sim L_{n+1}$). Links spanning 2 or more layers are prohibited. Documents outside the layer definition (e.g. guides, tools, decision records) are exempt.
  • Based on the Single Source of Truth (SSOT) principle, exactly one canonical (primary) source file must exist for each piece of information, and all other occurrences (ledgers, dashboards, indices) must be views and references.
  • Diagrams must be created using Mermaid unless otherwise specified.
  • For directory layout and available guides, refer to directory-structure.md.
  • For the overall development process and guide map, refer to document-development-guide.md.

文書インデックス

AI エージェントおよび開発者が、設計書、ガイドライン、台帳など各種ドキュメントの役割、配置、参照先への誘導を管理・参照するためのインデックスです(定義ファイル: docs/documents.md, docs/documents.project.md)。 mq を活用した段階的開示(Progressive Disclosure)に対応しており、mise タスクを実行することでセクション一覧の取得および個別詳細の抽出が可能です。

  • 一覧取得: mise run aidev:index:documents-sections
  • 詳細抽出: mise run aidev:index:documents-section "<AIDEV-DOCUMENT-ID>: <description>"

定義済みID形式リスト

ID形式ID例概要使用場所
<USECASE-ID>USECASE-001ユースケース IDdocs/usecases/, docs/backlog/usecase.md
<M-ID(1)>M-1マイルストーン ID(1 桁連番)docs/plan.md
<PHASE-ID>PHASE-001フェーズ IDdocs/plan.md
<F-ID(1)>F-1機能・feature ID(1 桁連番)docs/usecases/, docs/backlog/
<SPEC-ID>SPEC-001機能仕様書 IDspecs/
<SPEC-I-ID>SPEC-I-001増分機能仕様書 IDコンポーネント配下の specs/incremental/
<SPEC-C-NAME>SPEC-C-error-handling共通仕様 ID / ファイル名増分仕様書からの参照
<TRACK-ID>TRACK-001Track / サブスライス IDdocs/backlog/implementations/
<ISSUE-ID>ISSUE-001課題・不具合 ID各コンポーネントの backlog/issues/, backlog/status.tsv
<TODO-ID>TODO-001TODO ID各コンポーネントの backlog/todos/, backlog/status.tsv
<DR-ID>DR-001意思決定記録 IDdocs/decision-records/
<AIDEV-TOOL-ID(1)>AIDEV-TOOL-1共通ツール・アクション ID(1 桁連番)docs/tools.md
<AIDEV-DOCUMENT-ID(1)>AIDEV-DOCUMENT-1文書 ID(1 桁連番)docs/documents.md
<AIDEV-ACTION-ID(1)>AIDEV-ACTION-1アクション ID(1 桁連番)docs/actions.md
<TOOL-ID(1)>TOOL-1プロジェクト固有ツール・アクション ID(1 桁連番)docs/tools.project.md