ホーム / Skills / 開発効率化 / Caveman 簡潔回答
開発効率化

Caveman 簡潔回答

Julius BrusseeApache-2.0Skill の言語: 英語
ライセンス確認済みスクリプトなし
デモ実行記録 · claude-opus-5-5 · 2026年10月
Talk like caveman from now on. My Node.js API returns `Error: connect ECONNREFUSED 127.0.0.1:5432` on startup inside Docker Compose, but Postgres runs fine and I can connect to it from my laptop with psql. What is wrong and how do I fix it?
Skill: caveman

127.0.0.1 inside API container means the API container itself, not Postgres. Postgres runs in its own container. From inside Docker Compose, reach it by its service name. Your laptop works because the port is published to the host's localhost.

Fix: point the host at the Compose service name.

services:
  db:
    image: postgres:16
    environment:
      POSTGRES_PASSWORD: secret
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 2s
      retries: 15
  api:
    build: .
    environment:
      DATABASE_URL: postgres://postgres:secret@db:5432/postgres
    depends_on:
      db:
        condition: service_healthy

Use db (your service name) as the host, in DATABASE_URL or PGHOST. Don't hardcode localhost in code.

The healthcheck plus condition: service_healthy is a second fix. Plain depends_on only waits for the container to start, not for Postgres to accept connections. Without the healthcheck you can still get ECONNREFUSED on cold start, even with the right host.

Other causes to check:

  • API runs on the host, not in Compose: localhost:5432 is correct there. Make sure ports: ["5432:5432"] is set on db.
  • API in a different Compose project or network: put both on a shared network, or use host.docker.internal:5432.
  • Postgres listening only on a unix socket: the official image already listens on *. Only custom configs need listen_addresses = '*'.

Check the connection from inside the API container: docker compose exec api sh -c 'nc -zv db 5432'.

Real run recorded with claude-code / claude-opus-5-5. Output is shown verbatim, unmodified.

できること

コーディングエージェントの返答を簡潔なスタイルにします。まず答えを示し、あいさつ、ぼかした言い回し、要約の繰り返し、締めの申し出を省きます。コード、コマンド、ファイルパス、数値、エラー文字列は一字一句そのままです。

仕組み

  1. /caveman、または "talk like caveman"、"be brief"、"less tokens" などで有効になり、"stop caveman" か "normal mode" と言うまで続きます。
  2. 9 つのルールに従います。結論から書く、儀礼的な言葉を省く、短い語を使う、冠詞は省いてよいが否定語は省かない、1 文に 1 つの内容、技術的な内容は原文のまま、ツール実行中の発言は最小限、ユーザーの言語で答える、「原始人」を演じない。
  3. セキュリティ警告、取り消せない操作、手順の説明、ユーザーが混乱しているとき、そしてコード、コミット、ドキュメントなどチャットの外に残る文章では、通常の文章に戻ります。

向いている場面

ターミナルでの日々のコーディングで、短く直接的な回答がほしいとき。

知っておきたいこと

作者自身の計測(1 回の実行、10 問)では、モデルに「簡潔に答えて」と指示した場合と比べて、回答の長さの中央値は約 3% 短いだけでした。トークンを大きく節約する道具ではなく、回答を直接的にするスタイルと考えてください。/ultracave、/megacave モードとステータス表示は Caveman プラグイン全体の機能で、このパッケージには含まれません。

補足とリスク

指示だけのファイルです。スクリプトはなく、ネットワーク接続もファイルの書き込みも行いません。 パッケージには元リポジトリの README、LICENSE、NOTICE も含まれます。 指示文に出てくる /caveman ultra、/caveman wenyan、/caveman status は Caveman の別の Skill やフックに依存しており、このパッケージには含まれていません。

SKILL.md 原文パッケージ内 4 ファイル