Skip to content
TopicTracker
出典 HackerNews原文を表示
翻訳言語翻訳言語

Claude.mdは自分で書くな

Claudeの指示ファイル(Claude.md)を手動で作成するのではなく、プロジェクトの実コードやドキュメントから自動生成する方法を解説。開発者が手書きするとメンテナンスがおろそかになりがちだが、自動生成すればプロジェクトの現状を常に反映した最新の指示ファイルを保てると説く。

背景メモ

- Anthropic社のClaude(大規模言語モデル)には、ユーザーが「Claude.md」というカスタム指示ファイルを設定できる機能がある。このファイルに書き込んだルールや行動指針を、Claudeが応答のたびに参照する仕組みだ。 - 本記事の主張は、「このClaude.mdを自分で手書きしてはいけない」というもの。人間が自分で書くと、あいまいだったり、矛盾していたり、実効性の低い指示になりがちだからだ。 - 代わりに著者は、**Claude自身にClaude.mdを生成させる**手法を提案している。まず雑にやりたいことを伝え、Claudeに「あなたが従うべき指示書を書いて」と頼む。その後、実際のタスクを実行させ、問題があれば指示書を修正させるというサイクルを回す。 - この手法は「メタプロンプティング」や「自己改善型エージェント」の一種で、LLMの能力を引き出す実践的なテクニックとして知られている。Anthropic社はこうしたワークフローを公式ガイドでも推奨している。

関連記事

  • Newer Claude models sometimes invent extra keys in tool call arguments, breaking validation in Pi's edit tool. The author suspects post-training for Claude Code's forgiving harness makes alternative schemas fail. This suggests closed RL training can degrade general tool-use reliability.

  • Simon Willison released llm-coding-agent 0.1a0, an experimental coding agent built on his LLM library. The agent provides tools for reading, editing, searching files and executing commands, and ships with a Python API and CLI. It was developed using Claude Code (Fable 5) via TDD with a spec-first approach, and is available as a slop-alpha on PyPI.

  • Truth Social remains an outlet primarily for Trump's own posts, while other administration officials continue using X. The platform functions as a blog-like channel for Trump's messages rather than a genuine social network competitor.