Agents Md Entryのロゴ

Agents Md Entry

組織
modem-dev
agents-md-entry

Evaluate an open source project's AGENTS.md and produce a corpus entry for the /agents-md directory. Use when adding a project to the directory, refreshing an existing entry, or running a batch of candidate repositories.

概要

公開者modem-dev
リポジトリossrules
スキル名agents-md-entry
スター
65
フォーク
2
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    modem-devがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルAgents Md EntryをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/modem-dev/ossrules/tree/main/.claude/skills/agents-md-entry
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/modem-dev/ossrules.git /tmp/ossrules
mkdir -p .claude/skills
cp -r /tmp/ossrules/.claude/skills/agents-md-entry .claude/skills/agents-md-entry
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAgents Md Entryを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にAgents Md Entryを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Agents Md Entryは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Adding a project to the instruction library

An entry consists of content/projects/<slug>.json, its avatar in public/logos/<slug>.png, and generated pinned documents under public/files/<slug>/. The directory, project pages, and technique filters derive from the corpus; adding a project does not require a new page implementation.

This is written to be run independently, one project per run, so the work can be fanned out. Do not read the other entries before writing yours — the analysis should come from the file in front of you, not from matching the house voice of entries someone else wrote.

Instruction sources

Accept either AGENTS.md or CLAUDE.md. Inspect Git tree modes to distinguish a real symlink from an ordinary file containing an import or prose reference. Resolve symlinks within the same repository commit and analyze the actual target. Set instructionFile to the repository-relative path of the analyzed source (for example CLAUDE.md or .agents/AGENTS.md); omitted means root AGENTS.md. Check .agents/AGENTS.md, .agents/CLAUDE.md, and .claude/CLAUDE.md as well as root files, and inspect the tree for other nested instructions before concluding that a project has none. A folder location alone does not establish precedence. Store references as repository-relative paths, resolving links against the instruction file’s own directory. Use that filename in every fetch, last-change lookup, measurement, and quote check below.

When both files contain independent instructions, retain both. Choose the source for the editorial analysis explicitly; do not combine their measurements or imply that one tool's instructions override another's. sourcePath on a technique can attribute an excerpt to another vendored document at the same commit.

The sync script discovers root and nested instruction files, records symlinks, identical content, and explicit CLAUDE imports, and preserves unavailable targets. A tiny import wrapper is a relationship to its source, not a separate substantive analysis. Never fetch private local files or follow a target outside the snapshot.

The rule that matters most

Every quote is verbatim. Character for character, from the real file, on the repository's default branch. Paraphrase belongs in body, never inside a quote. One misquote makes the whole directory untrustworthy, so the last step below verifies them mechanically rather than by eye.

Voice

Describe what the file does. Do not rate it.

Write thisNot this
"Lists thirteen metaphorical words that may not appear.""Has a brilliant section on plain language."
"The rule names the exact files it applies to.""This is the best example in the collection."
"39 lines: build commands, three directories, two absolute rules.""Proof that a short AGENTS.md can be great."

No superlatives, no ranking against other entries, no "unusually", "genuinely", "clearest", "most". A reader decides whether a technique suits their repo; the entry gives them what it is. steal is the one place that is prescriptive, because a takeaway is advice by definition — keep it actionable and drop the adjectives.

Site copy rules in the root AGENTS.md apply: no em dashes or filler.

Procedure

1. Confirm the repository and get the canonical file

Resolve renames first. sst/opencode now lives at anomalyco/opencode, and denoland/fresh at freshframework/fresh; raw URLs still redirect, so a fetch succeeding does not mean the owner is current. Search the repo to get the current full_name, stargazers_count, language and default_branch.

Fetch from the default branch, not main by habit. Storybook's default is next and its main carried an older file; Omarchy's is quattro.

bash
curl -sSL -o /tmp/<slug>.md \
  "https://raw.githubusercontent.com/<owner>/<repo>/<default-branch>/AGENTS.md"

If the file is under about 40 lines of build commands with nothing else, it is thin material for an entry. Say so rather than padding it.

2. Record the upstream commit

The entry pins the revision it was written against, which is what the "last updated" link points at and what makes staleness detectable later. The REST API is blocked in some environments; a blobless clone is not, and takes seconds:

bash
d=$(mktemp -d)
git clone -q --filter=blob:none --no-checkout --single-branch \
  --branch <default-branch> "https://github.com/<owner>/<repo>" "$d"
git -C "$d" log -1 --format='%H|%cI' -- AGENTS.md
rm -rf "$d"

That gives lastCommit.sha (full 40 characters) and lastCommit.date (convert to UTC ISO 8601). Set evaluatedAt to today's date in YYYY-MM-DD.

3. Measure the file

Every number in file is measured. Never estimate, and never adjust a stale number by eye — re-run this:

bash
pnpm measure:files --file /tmp/<slug>.md

Use the shared measurement command rather than counting fence markers. Fenced code blocks are parsed as Markdown, so opening and closing fences count once. Lines include a final unterminated line; bullet lines count raw - or * list prefixes, not inferred rules. To correct measurements for existing entries at their pinned revisions, run pnpm measure:files --write. This does not change commits or analysis dates; review authored copy that repeats affected counts.

docLinks counts relative links out to other files in the same repo. A high count relative to length is what distinguishes a router from a self-contained file.

4. Read the whole file

Read it end to end before writing anything. The entry's value is that a reader can skip the original, which only holds if you did not skim it.

While reading, look for what this file does that a generic one would not:

  • rules aimed at agent behavior rather than at the codebase
  • a rule with its reason attached, especially where the reason is non-obvious
  • prohibitions, and what happens when the user asks anyway
  • anything about the file's own maintenance, or its precedence against other files
  • limits on the change rather than on the code
  • places the file admits a gap: a slow suite, a blind test, a known footgun

5. Get the avatar

bash
curl -sL -o public/logos/<slug>.png \
  "https://avatars.githubusercontent.com/<owner>?s=160"

Use avatars.githubusercontent.com/<owner>, not github.com/<owner>.png, which can be proxy-blocked. Confirm it is a real PNG with file.

6. Write the entry

Write content/projects/<slug>.json. The filename stem and slug must match.

jsonc
{
    "slug": "ghostty",                    // kebab-case, matches filename and avatar
    "name": "Ghostty",                    // as the project writes it
    "owner": "ghostty-org",               // current GitHub owner
    "repo": "ghostty",
    "tagline": "...",                     // what the project is, one line, for readers who have not heard of it
    "language": "Zig",                    // GitHub's primary language, exact spelling
    "stars": 61058,                       // integer snapshot
    "defaultBranch": "main",
    "lastCommit": { "sha": "<40 chars>", "date": "2026-04-08T17:34:52Z" },
    "evaluatedAt": "2026-09-14",   // the day you wrote this analysis
    "file": { "bytes": 0, "lines": 0, "words": 0, "headings": 0, "bullets": 0, "codeBlocks": 0, "docLinks": 0 },
    "references": [               // documents the file routes to; [] when self-contained
        { "path": "docs/testing.md", "label": "Testing" },
        { "path": "AGENTS.md", "kind": "pattern", "label": "the nearest nested AGENTS.md" }
    ],
    "hook": "...",                        // one sentence, shown in the directory row
    "summary": "...",                     // two or three sentences: what kind of document this is
    "patterns": ["hard-prohibition"],     // ids from the taxonomy, see below
    "techniques": [
        {
            "title": "...",               // names the move, not a verdict on it
            "body": "...",                // two to four sentences: what it does and the reason the file gives
            "quote": "...",               // optional, VERBATIM
            "pattern": "hard-prohibition" // optional, when this technique is an instance of a taxonomy entry
        }
    ],
    "steal": ["..."],                     // three to five takeaways, each actionable in another repo
    "outline": ["..."]                    // the file's own top-level sections, in order
}

Aim for four to six techniques. Fewer than three usually means the file was skimmed; more than seven usually means routine content was included.

hook is the one line most readers see. Make it specific to this file. Good hooks name a number, a structure, or a rule: "42 lines that open with the precedence order between instruction sources." A hook that would fit any project is a wasted row.

7. Choose technique ids

Valid ids are the PATTERNS array in components/agents-md-data.ts. Read it before tagging; the validator rejects unknown ids.

Tag a technique only when the file genuinely does that thing. An over-tagged entry makes the filter useless, which is the one thing the taxonomy is for. If a recurring move has no id and you have seen it in two or more projects, propose adding it to PATTERNS rather than forcing it into a near-match — a new id is a separate, deliberate change, not a side effect of adding a project.

8. Download the files the entry reads

bash
pnpm sync:files -- --slug <slug>

This writes public/files/<slug>/ — a copy of the AGENTS.md and of every reference, taken at the entry's pinned commit, plus a manifest.json and the repository's detected license. The site serves these so a reader can open any of them without leaving the page, and so the file on screen is the same revision the analysis describes.

Never hand-write anything under that directory. It is generated, and the validator fails when it disagrees with the entry.

Read what the run prints. A path reported as not resolving is a finding, not a mistake to correct: it means the AGENTS.md names a document the repository does not contain. Leave the path exactly as the file writes it — the site renders it as unresolved, which is the honest result. Only fix it if you transcribed it wrong in step 6.

9. Verify

bash
npx tsx scripts/validate-agents-md.ts   # schema, slug/filename match, avatar, vendored files, duplicate repos
pnpm typecheck
pnpm build                              # the corpus is read at build time

Then verify the quotes mechanically. Nothing else catches a near-miss:

bash
python3 - <<'PY'
import json, re, sys
slug = "<slug>"
entry = json.load(open(f"content/projects/{slug}.json"))
source = open(f"/tmp/{slug}.md", encoding="utf-8").read()
norm = lambda t: re.sub(r"\s+", " ", t).strip()
bad = 0
for t in entry["techniques"]:
    q = t.get("quote")
    if q and norm(q) not in norm(source):
        bad += 1
        print("NOT VERBATIM:", q[:120])
print("mismatched:", bad)
sys.exit(1 if bad else 0)
PY

The references list

references is the documents the file tells the agent to read: markdown links to other docs, and nested instruction files named in prose (crates/AGENTS.md, .agents/skills/*/SKILL.md). It is not the repo map — a path to source code is navigation, not routing, and does not belong here.

Include .md, .rst and .mdx targets plus any AGENTS.md / CLAUDE.md / SKILL.md. Keep the markdown link text as label only when it says something the path does not. An empty array is a real answer: five of the first sixteen entries route nowhere, and that is what identifies a self-contained file.

Mark a reference "kind": "pattern" when it names a shape rather than one file — "the nearest nested AGENTS.md", "the changed provider's changelog". These have no single copy to download and nothing to open, so give them a label that says what they stand for. A path that merely happens to be broken is not a pattern; leave it as an ordinary reference and let step 8 record it as missing.

Refreshing the corpus

Entries go stale two ways, and only one is mechanical.

Mechanical. Measurements and the upstream commit can be re-derived:

bash
pnpm refresh            # report what changed upstream
pnpm refresh -- --write # apply measurements and commits, then re-download the files

--write re-runs the file sync for you, because moving an entry's pinned commit without re-downloading its files would show one revision of a document beside measurements from another. To check for that drift without changing anything:

bash
pnpm check:files        # every vendored copy still matches its pinned commit

Not mechanical. When the file itself has changed, the techniques and quotes describe a revision that no longer exists. The refresh script lists those entries; each one goes back through steps 4 to 9 above, and evaluatedAt moves to the day the analysis is rewritten. A stale analysis with fresh numbers is worse than either alone, because the numbers make it look current.

The site flags this on its own: isEntryStale compares lastCommit.date against evaluatedAt.

Cadence. Run the refresh monthly. Star counts are deliberately not touched by the script, since the GitHub API is unreachable from some environments and a wrong number is worse than a dated one; update stars and STATS_AS_OF by hand when the whole corpus is refreshed.

Running a batch

One project per run, one JSON file per run. Keep runs independent so a bad entry is one file to fix. Before starting a batch, check content/projects/ for slugs that already exist; the validator also fails on two entries claiming the same repository.

Candidate repositories need usable AGENTS.md or CLAUDE.md instructions on the default branch. Symlinks are supported when their target resolves inside the same repository snapshot. An unavailable target is recorded, not fabricated.

よくある質問

AIスキル「Agents Md Entry」では何ができますか?

Evaluate an open source project's AGENTS.md and produce a corpus entry for the /agents-md directory. Use when adding a project to the directory, refreshing an existing entry, or running a batch of candidate repositories.

TypingMindでAgents Md Entryを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Agents Md Entryはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAgents Md Entryをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/modem-dev/ossrules/tree/main/.claude/skills/agents-md-entryを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Agents Md Entryを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Agents Md Entryは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAgents Md Entryを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Agents Md Entry」は無料ですか?

はい。modem-devがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇