0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SKILL.md は 220 行で切られる前提で書く — LLM 指示ファイルの運用記録

0
Last updated at Posted at 2026-06-16

本記事は AetherEchoes の元記事の要約です。全文・事故の時系列・全指針は初出をご覧ください。
初出: https://aether-echoes.com/posts/skill-md-220-lines-truncation-redesign

要点:SKILL.md は「末尾まで読まれない」前提で書く

haru0416 さんの観測記事(Zenn)で、Codex CLI が 441 行の SKILL.md のうち先頭 220 行しか context に入れていなかった、という実コマンドログが共有されました。これは「LLM のコンテキスト窓が足りない」のではなく、ツール側がファイルを途中で打ち切っているという話です。Claude Code でも同種の挙動を踏みやすい。

AetherEchoes では auto-publish の 6 スキル(pick / write / verify / video / breaking / カテゴリ別)でまさに同じ事故を踏んでいました。実際 2026-05-20 から 2 日間、breaking スロットが pick 段で停止し続けた一因が「末尾に書いた指示が読まれていなかった」ことでした。

書き直しで採用した指針(抜粋)

  • 1 ファイル 200 行以内にする(220 行で切られる前提で逆算)
  • 鉄則・禁止事項は必ず冒頭に置く(末尾は読まれない前提)
  • 共通ロジックは別ファイルに切り出して参照(本体を薄く保つ)

残りの指針と、事故の詳細な振り返り・before/after は初出記事にまとめています。


LLM 向けの指示ファイル(SKILL.md / AGENTS.md 等)を書く人の参考になればと思います。全文はこちら:

👉 https://aether-echoes.com/posts/skill-md-220-lines-truncation-redesign

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?