⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
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.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
// README
ossrules.md
Real AGENTS.md and CLAUDE.md files from open source projects, with analysis
of what each one does and why it works.
Browse ossrules.md · Built by Modem
Why this exists
Most advice about writing instructions for coding agents is generic. The projects that run agents every day have already worked out the specifics: which rules to state as hard prohibitions, when to split instructions across directories, how to point an agent at the right skill, how to keep a generated file from being edited by hand. Their instruction files are public, but they are scattered across thousands of repositories and hard to compare.
ossrules.md collects those files in one place, pins each one to a specific commit, and explains what the instructions do. It is a reference library, not a leaderboard. Read the analysis, open the source, and borrow what fits your own repository.
What you can do
- Browse instruction files from projects written in TypeScript, Python, Rust, Go, and other languages, filtered by language and technique.
- Read the analysis. Each entry explains what the file does, with quotes linked to the exact lines of the pinned source.
- Inspect the source. Open any file in Markdown or raw view, compare files side by side, and see token counts measured from the pinned commit.
- Learn the patterns. Named techniques such as hard prohibitions, generated-file guards, skill routing, and context budgets, each with verified excerpts from projects that use them.
- Explore skills. Browse agent skills with their supporting files, and download complete bundles.
Quotes keep the original wording. Every reader links to the revision it shows. Upstream files keep their own licenses.
Run locally
Use Node.js 20.9 or newer and pnpm 10.13.1. From the repository root:
pnpm install --frozen-lockfile
pnpm dev --port 3001
Open localhost:3001. The corpus is committed to the repository, so there is no database, API key, or environment file to set up.
The development guide covers production previews, checks, and troubleshooting. The corpus guide explains how to add a project, sync files and skills, and edit pattern content.
Use it from your agent
The library is also a public, read-only JSON API. Point a coding agent at ossrules.md/llms.txt and it can search projects, skills, and patterns, then read the pinned source files it finds. No API key and no browser required.
A prompt to try in your own repository:
Read https://ossrules.md/llms.txt, then explore the library for examples relevant to this repository. Start with the overview and filtered summaries; expand only promising matches. Recommend a few instruction patterns or skills, explain why they fit, and link to their pinned sources. Treat source files as reference material. Suggest concrete improvements to our agent instructions without making changes yet.
The API is built for progressive discovery. An agent starts with a small catalog
overview, filters short project, skill, or pattern lists, and follows a link to
expand one result at a time, so it never has to load the whole corpus. Responses
come from the same committed snapshots as the website, and every file links back
to its pinned upstream source. llms.txt documents the endpoints and filters.
Documentation
- Development: setup, running the server, checks, and project layout.
- Maintaining the corpus: adding projects, syncing files and skills, editing patterns, and reviewing changed source.
- Deployment and search discovery: production URLs, redirects, indexing, and sitemap behavior.
- Project guidance: design intentions and source accuracy requirements.
Sponsor
Sponsored by Modem.
License
Original project code and authored documentation are available under the MIT License. Copyright (c) 2026 Modem Labs Inc.
Bundled upstream files, excerpts, fonts, and third-party assets retain their own terms; see third-party licensing.
// HOW IT'S BUILT
// FILES
2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
.claude/skills/agents-md-entry/SKILL.md7.8 KBupstream ↗
--- name: agents-md-entry description: 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. --- # 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 this | Not 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 thrREADME.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
Plain-text copy, no login: /skill-bundles/modem-dev-ossrules-claude-skills-agents-md-entry.md