Communityコーディング&開発github.com

agents-md-starter

リポジトリのルールファイル(AGENTS.md、CLAUDE.md)を作成・更新し、Claude Code、Codex、Cursor、Gemini CLI などのAIエージェント間で共通のプロジェクトルールを共有できるようにします。

agents-md-starter とは?

このスキルは、リポジトリに `AGENTS.md` を作成または更新し、複数のAIエージェントツール(Claude Code, Codex, Cursor, Gemini CLI)が同一のプロジェクトルールを参照できるようにします。具体的には、リポジトリをスキャンして使用言語、パッケージマネージャー、実際のビルド/テスト/リントコマンド、フレームワーク、ディレクトリ構成、既存のルールファイル(.cursorrules, CLAUDE.md など)を検出。その後、検証済みのコマンドのみを含む簡潔なルールファイルを生成します。このスキルは、ユーザーが「プロジェクトルールを設定して」「Claude CodeとCodexで同じルールを使いたい」「エージェントをリポジトリにオンボードする」などと依頼した際に有効です。生成された AGENTS.md は全ツールの単一情報源となり、Claude Code は `@AGENTS.md` インポートを含む CLAUDE.md を読み込み、Cursor や Gemini CLI も AGENTS.md を直接参照するよう設定されます。

対応✓Claude Code✓Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/getpaidskills/skills/tree/HEAD/skills/agents-md-starter

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

agents-md-starter は何をしますか?

出力: リポジトリルートに AGENTS.md(単一情報源)と、@AGENTS.md を含む CLAUDE.md(Claude Code が CLAUDE.md を読み込み、@path インポートをサポート)を作成します。ファイル内のコマンドはすべて正常に実行されているか、未検証であることが明示されている必要があります。

ステップ1 — スキャン

python3 scripts/scan_repo.py /path/to/repo            # 人間向けサマリー
python3 scripts/scan_repo.py /path/to/repo --json     # JSON形式の情報
python3 scripts/scan_repo.py /path/to/repo --draft > AGENTS.draft.md   # テンプレート埋め込み

検出するもの:ファイル数による言語、ロックファイルからのパッケージマネージャー、package.json のスクリプト、Makefile ターゲット、pyproject.toml のツール(pytest, ruff, mypy, uv/poetry)、Go/Rust/Java のビルドファイル、フレームワーク(Next.js, Astro, Vite, Django, FastAPI, Rails…)、モノレポワークスペース、CI ワークフロー、環境変数ファイルの例、既存のエージェントルールファイル。リポジトリのコードは実行しません。

ステップ2 — 書き込む前に読む

  • 見つかった既存のルールファイルすべて(CLAUDE.md、.cursorrules、.cursor/rules/*.mdc、.github/copilot-instructions.md、GEMINI.md、CONTRIBUTING.md)を読みます。実際のルールは維持し、マージ・重複排除を行い、「きれいなコードを書く」のような汎用的なルールは削除します。
  • CI ワークフローを読みます。CI が実行するコマンドは、「テストが通る」を最も確実に定義します。
  • 代表的なソースファイルを2~3つ読み、実際の規約(命名、エラーハンドリング、インポートスタイル)を把握します。コードに従っていない規約をでっち上げてはいけません。

ステップ3 — コマンドを検証する

ドラフトからインストール/ビルド/テスト/リントコマンドを実行します(安全な方法で:デプロイなし、本番データベースへのマイグレーションなし、公開なし)。結果ごとに:動作すればそのまま維持、正しいバリアントが明らかな場合は修正、それ以外の場合は (未検証) とマークしユーザーに通知します。テストスイートが遅い場合はその所要時間を記録します。

ステップ4 — AGENTS.md を書く

assets/AGENTS.template.md を起点にします。良いコンテンツのためのルール:

  • 短く。 約150行以内を目指します。エージェントはすべてのタスクでこれを読みます。1行ごとにコンテキストのコストがかかります。
  • 具体的で検証可能: 「コミット前に pnpm test --filter web を実行する」は「コードをテストする」よりも優れています。
  • コマンドを最初に配置します。続いてレイアウト、規約、注意点、「禁止」ルール。
  • 自明でないことを記録します:編集してはいけない生成ファイル、テストに必要な環境変数、ローカルでスキップすべき遅いテスト、シークレットを決して置いてはいけない場所。
  • モノレポ:ルートの AGENTS.md に共通ルール、packages/x/AGENTS.md にパッケージ固有のコマンド(対応するエージェントは最も近いファイルを読みます)。

ステップ5 — 他のツールと連携する

  • Claude Code: assets/CLAUDE.template.md から CLAUDE.md を作成します(@AGENTS.md を含みます)。CLAUDE.md がすでに存在する場合は、そのルールを AGENTS.md に移動し、Claude 固有のメモをインポートの下に残します。
  • Codex: ネイティブで AGENTS.md を読みます — 他に必要なものはありません。
  • Cursor: ルートの AGENTS.md を読みます。.cursorrules の内容を AGENTS.md に移行し、ユーザーが同意したら .cursorrules(非推奨)を削除します。.cursor/rules/*.mdc はグロブスコープのルールのみ保持します。
  • Gemini CLI: デフォルトで GEMINI.md を読みます。.gemini/settings.json で "context": {"fileName": ["AGENTS.md", "GEMINI.md"]} を設定するか、AGENTS.md を指す1行の GEMINI.md を作成します。インストールされているバージョンのドキュメントでこのキーが移動していないか確認します。
  • シンボリックリンク(ln -s AGENTS.md CLAUDE.md)も機能しますが、core.symlinks がない Windows 環境では壊れます。インポートのアプローチの方が安全です。

各ツールが読み込むファイルについては references/tool-support.md を参照してください。

ステップ6 — 報告

以下のリストを報告します:作成/変更したファイル、検証したコマンド(結果付き)、未検証とマークしたコマンド、重複または汎用的として削除したルール、ユーザーの判断を仰ぐ必要があるもの(例:.cursorrules を削除するか?)。ユーザーが依頼しない限りコミットは行いません。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

getpaidskills/directory-launch-kit

Prepares a product for submission to launch platforms and directories (Product Hunt, Show HN, BetaList, Uneed, Fazier, SaaSHub, TinyLaunch, AI tool directories, agent-skill marketplaces, Reddit, V2EX and more) without submitting anything itself. Picks only the directories the product fits, writes the copy for each form within its field limits from one product.json, resizes screenshots to each platform's sizes (Product Hunt 1270x760 gallery and 240x240 thumbnail, 1200x630 OG), builds a tracker CSV, re-checks prices and rules on the live pages, and later verifies which listings went live and whether their backlinks are follow or nofollow. Use when the user asks where to launch, how to submit to Product Hunt or AI directories, wants launch copy, a directory list, backlinks, or a launch tracker.

getpaidskills/launch-checklist

Pre-launch audit for a website or SaaS - checks SEO tags (title, description, canonical, lang, Open Graph), robots.txt, sitemap.xml, favicon and apple-touch-icon, real 404 status, HTTPS redirect, legal pages (privacy, terms, refund), image alt text, page weight and response time, plus a payment self-check (webhook signature, raw body, idempotency, refunds, secrets, success-page grants), then lists the problems and fixes them in the codebase. Ships a no-dependency crawler script (audit_site.py) that produces a pass/warn/fail report. Use when the user says they are about to launch, ship, go live, submit to Product Hunt or AI directories, or asks "is my site ready", "SEO check", "why is my site not indexed", or wants a launch checklist, or asks whether their payment or webhook setup is safe.

getpaidskills/legal-pages

Drafts a Privacy Policy, Terms of Service and Refund Policy for a SaaS, digital product or website from a short questionnaire, adapted to the payment provider (Creem, Paddle, Lemon Squeezy as Merchant of Record, or Stripe/direct) and to where users are (EU/UK GDPR, California CCPA/CPRA, China PIPL notes), then renders them as Markdown, HTML or Next.js pages and links them in the footer. Output is a starting template, NOT legal advice - the user must review it and have it checked by a qualified lawyer. Use when the user needs privacy policy, terms, refund policy, legal pages, or a payment provider (Paddle/Creem/Lemon Squeezy/Stripe) review asks for them.

getpaidskills/og-image-kit

Generates Open Graph / Twitter (X) share images for every page of a website and wires up the og:* and twitter:* meta tags, then verifies the social preview. Supports Next.js App Router (opengraph-image.tsx with next/og ImageResponse), Astro (build-time PNGs via satori + resvg) and any static site (Pillow script). Use when the user asks for OG images, social share cards, link previews, "my link looks bad on X/Slack/LinkedIn/WeChat", twitter:card, or before launching a site.

関連スキル