agentleFS
KyuuKyuuStoneKyuuKyuuStone/claude-code-heihei/docs/AGENTS.md

claude-code-heihei

AGENTS.md5 starsChanged 3 months agoMITView on GitHub

These rules apply to docs/ changes in addition to the root instructions. Two audiences, nothing else. If a page serves neither, it does not belong here. Internal process artefacts (migration task lists, validation checklists, design proposals, release runbooks) are not documentation. Keep them out of docs/, or fold the durable part into internals/contributing.md. Four top-level sections: start/, desktop/, cli/, internals/. Adding a fifth means registering it in the sections array of site/scripts/generate-docs-manifest.mjs. docs/en/ mirrors the Chinese tree file for file.…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository4 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Put a space between Chinese characters and adjacent Latin letters or digits: 「一枚 6 位码」, 「回填 App ID」.

    line 35
  2. Very specific:

    Run bun run check:docs when selected by bun run check:impact.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Documentation Instructions

These rules apply to docs/ changes in addition to the root instructions.

Who the docs are for

Two audiences, nothing else. If a page serves neither, it does not belong here.

  • People using the app — start/, desktop/. No prior code knowledge assumed.
  • People reading the source — internals/, cli/. Architecture, implementation, contributing.

Internal process artefacts (migration task lists, validation checklists, design proposals, release runbooks) are not documentation. Keep them out of docs/, or fold the durable part into internals/contributing.md.

Structure

Four top-level sections: start/, desktop/, cli/, internals/. Adding a fifth means registering it in the sections array of site/scripts/generate-docs-manifest.mjs.

docs/en/ mirrors the Chinese tree file for file. Keep Chinese pages and their docs/en/ counterparts aligned.

Frontmatter (required on every page)

---
title: 连接模型服务
nav_title: 连接模型      # sidebar label, ≤12 CJK characters
description: 一句话说明这篇讲什么。       # feeds search and SEO meta
order: 2                # position inside the section; index.md uses 0
---

The site renders the first paragraph after the H1 as a lede — write it as a normal paragraph, not a blockquote.

Chinese typography

Put a space between Chinese characters and adjacent Latin letters or digits: 「一枚 6 位码」, 「回填 App ID」. Nothing in the render pipeline inserts it for you, so it has to be in the source. Punctuation needs no space.

Screenshots

Product screenshots live in docs/images/app/ as PNG/JPG, roughly 1920–2560px wide, captured from a real build. Never ship a screenshot from an older UI generation; re-capture instead. Redact tokens, QR codes, API keys and paired account names before committing. Cap feature pages at roughly three screenshots.

Step-by-step setup walkthroughs are the exception: the local-model download guide embeds site links, and a couple of pages keep a small number of console screenshots. Judge those by whether a reader could follow along without them.

Routes are file paths

docs/start/install.md publishes to /start/install. Renaming a file changes a public URL, so add the old path to LEGACY_ROUTES in site/src/content/docs.js and to legacyRoutes in site/scripts/prepare-static-output.mjs.

Checks

  • Run bun run check:docs when selected by bun run check:impact. It installs the isolated site/ dependency tree, builds the React site, then validates every local link and image.
  • Release instructions must stay consistent with scripts/release.ts, .github/workflows/release-desktop.yml, and the versioned release-notes convention.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.