agentleFS
apacheapache/doris-website/AGENTS.md

doris-website

AGENTS.md137 starsChanged 14 months agoApache-2.0View on GitHub

This is the codebase for the Apache Doris website and documentation site, built with Docusaurus. The current English docs live under docs/, active versioned docs live under versioned_docs/, Chinese localized docs live under i18n/zh-CN/docusaurus-plugin-content-docs/, community docs live under community/, Chinese localized community docs live under i18n/zh-CN/docusaurus-plugin-content-docs-community/, blog posts live under blog/, and the site UI/configuration lives under src/, static/, config/, docusaurus.config.js, sidebars.ts, sidebarsCommunity.json, versioned_sidebars/, and versions.json. For review tasks, if the PR involves changes to the website's basic framework and…

  • 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 31,439 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

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

15 rules. About 1 is common, 8 are distinctive, and 6 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the existing structure and writing style in the touched area.

    line 9
  2. Very specific:

    Treat sidebars.ts, sidebarsCommunity.json, versioned_sidebars/, versions.json, and docusaurus.config.js as the authoritative sources for …

    line 10
  3. Very specific:

    Keep Docusaurus metadata correct.

    line 14
  4. Distinctive:

    Prefer targeted edits over broad rewrites.

    line 15
  5. Distinctive:

    When touching React, TypeScript, styling, or site configuration, preserve the existing visual language and implementation patterns already …

    line 16
  6. Very specific:

    Treat src/scss/_variables.scss and src/components/brand-theme/ as the authoritative sources for global brand themes and theme switching.

    line 17
  7. Very specific:

    When touching community docs, remember that navigation is controlled separately by sidebarsCommunity.json and Chinese localized community …

    line 19
  8. Distinctive:

    When conducting code review, including automated AI review and self-review, you must follow this file as the review guide.

    line 23
  9. Very specific:

    If any page path, filename, heading anchor, slug, or sidebar item changed, are related links, redirects, and navigation references in …

    line 30
  10. Distinctive:

    If the change touches Docusaurus config, React components, styling, or build scripts, does it match existing repository conventions and …

    line 31
  11. Very specific:

    Doc moves / renames / deletions: check references from docs/, versioned_docs/, i18n/, community/, sidebars.ts, sidebarsCommunity.json, and …

    line 38
  12. Distinctive:

    Frontend changes: check responsive layout, hydration/build safety, accessibility basics, visual consistency with the existing site, and …

    line 39
  13. Common:

    Build or workflow changes: check trigger conditions, required permissions, secret usage, checkout depth, and whether the workflow can …

    line 40
  14. Distinctive:

    If you submit a review summary, keep it concrete and actionable.

    line 42
  15. Distinctive:

    Every SQL function doc must contain the following sections in order: Description, Syntax, Parameters, Return Value, Example.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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

AGENTS.md — Apache Doris Website

This is the codebase for the Apache Doris website and documentation site, built with Docusaurus. The current English docs live under docs/, active versioned docs live under versioned_docs/, Chinese localized docs live under i18n/zh-CN/docusaurus-plugin-content-docs/, community docs live under community/, Chinese localized community docs live under i18n/zh-CN/docusaurus-plugin-content-docs-community/, blog posts live under blog/, and the site UI/configuration lives under src/, static/, config/, docusaurus.config.js, sidebars.ts, sidebarsCommunity.json, versioned_sidebars/, and versions.json.

For review tasks, if the PR involves changes to the website's basic framework and display, you need to verify from the code level whether the changes are reasonable and comply with various front-end standards and best practices. If the PR is about submitting document content, you need to assess whether the content is reasonable and complete, ensuring it does not cause any confusion or ambiguity from the user's perspective. In summary, your principle is: first follow the standards mentioned in this document for the review, but the ultimate goal is to ensure a complete and seamless user experience with the documentation.

Repository Conventions

  • Follow the existing structure and writing style in the touched area. Keep terminology, heading hierarchy, front matter shape, and file placement consistent with neighboring files.
  • Treat sidebars.ts, sidebarsCommunity.json, versioned_sidebars/, versions.json, and docusaurus.config.js as the authoritative sources for navigation, active versions, and routing. Do not rely on older README tree examples when they disagree with the current repository layout.
  • Preserve stable URLs whenever possible. When moving, renaming, or deleting docs, review inbound links, sidebar references, redirects, and versioned or localized counterparts that may also need updates.
  • The current active docs versions are defined in versions.json. In the current repository state they are 4.x, 3.x, and current; 2.1, 2.0, and 1.2 are archived as PDFs on /archived-docs. Many docs changes intentionally update the same topic across docs/, versioned_docs/, and the mirrored i18n/zh-CN trees together. Review missing mirror updates against the actual touched page set and nearby history, and treat them as issues when the repository context shows those mirrors are expected to stay aligned.
  • Archived source snapshots for 2.1, 2.0, and 1.2, including English and Chinese docs, sidebars, and translation metadata, live under archived_docs/ with their original relative paths. Keep these snapshots unchanged during routine documentation work, and do not recreate their former directories in versioned_docs/, versioned_sidebars/, or i18n/. They are retained for historical redirects and PDF exports.
  • Keep Docusaurus metadata correct. When editing docs or blog files, verify any relevant front matter fields such as title, description, slug, keywords, sidebar_position, and tags.
  • Prefer targeted edits over broad rewrites. Avoid reformatting unrelated content, reordering large sections, or changing tone across a whole file unless the task explicitly requires it.
  • When touching React, TypeScript, styling, or site configuration, preserve the existing visual language and implementation patterns already used in this repository.
  • Treat src/scss/_variables.scss and src/components/brand-theme/ as the authoritative sources for global brand themes and theme switching.
  • New pages and major visual sections must use the semantic global theme tokens defined in src/scss/_variables.scss instead of hard-coded brand colors. If a new semantic color role is required, define it consistently for every supported theme. Verify that the page remains readable and visually coherent after switching themes; embedded or iframe-based content must receive the same theme tokens through the existing theme bridge.
  • When touching community docs, remember that navigation is controlled separately by sidebarsCommunity.json and Chinese localized community content lives under i18n/zh-CN/docusaurus-plugin-content-docs-community/.

Code Review

When conducting code review, including automated AI review and self-review, you must follow this file as the review guide. There is no separate review skill in this repository.

During review, you must individually provide conclusions for each applicable critical checkpoint below:

  • What is the goal of the current change? Does the implementation actually satisfy that goal?
  • Is the change as small, clear, and focused as possible?
  • Does it preserve documentation information architecture correctly? Check affected current docs, active versioned docs, localized docs, blog/community pages, sidebars, and config references when applicable.
  • If any page path, filename, heading anchor, slug, or sidebar item changed, are related links, redirects, and navigation references in sidebars.ts, sidebarsCommunity.json, versioned_sidebars/, i18n/, and config updated consistently?
  • If the change touches Docusaurus config, React components, styling, or build scripts, does it match existing repository conventions and avoid breaking desktop or mobile behavior?
  • What validation covers the change? State which checks are applicable and whether the change is sufficiently verified.
  • Based on the code and content context, are there any other correctness, usability, accessibility, SEO, or maintainability issues?

Review emphasis by change type:

  • Documentation changes: check factual consistency, active version/locale consistency, broken relative links, heading hierarchy, front matter, sidebar placement, and whether examples or commands still match surrounding docs. If only one version or locale is changed, determine from the surrounding files and recent history whether the asymmetry is intentional or incorrect.
  • Doc moves / renames / deletions: check references from docs/, versioned_docs/, i18n/, community/, sidebars.ts, sidebarsCommunity.json, and versioned_sidebars/; verify redirect behavior and moved-link handling.
  • Frontend changes: check responsive layout, hydration/build safety, accessibility basics, visual consistency with the existing site, and correct use of semantic global theme tokens across all supported themes.
  • Build or workflow changes: check trigger conditions, required permissions, secret usage, checkout depth, and whether the workflow can operate on pull requests safely.

If you submit a review summary, keep it concrete and actionable. If no issue is found, explicitly say so.

Documentation Standards

For documentation, you need to put yourself in the user's perspective, ensuring that after reading the documentation, you can fully understand the usage and meaning of the feature without any ambiguity or confusion. Any defects that hinder this goal are worth pointing out.

Ensure complete consistency in the Chinese and English expressions. If the same function differs in behavior due to redesign or bugfix in different versions, it must be clearly stated in the documentation. If no such statement is made, the expression of the same function must remain completely consistent across different versions. (This point is ignored for versions 2.1 and earlier.)

SQL Function Documentation Standards

Every SQL function doc must contain the following sections in order: Description, Syntax, Parameters, Return Value, Example. Additional sections such as Alias or Usage Notes may follow Description when applicable.

  • Description: one concise paragraph stating what the function does. State NULL-handling behavior here if it is a defining characteristic of the function.
  • Syntax: a single fenced sql code block with the full formal syntax. Include all overloads and optional clauses. Use <angle_bracket> notation for placeholders.
  • Parameters: a Markdown table with columns Parameter and Description. Mark optional parameters explicitly. State accepted types and constraints per parameter.
  • Return Value: state the return type and describe what the value represents. Always document NULL return conditions.
  • Example: provide a self-contained, runnable example. Cover: the normal/representative case, any significant optional parameter or overload, and the NULL-input behavior. Each query must be followed by its expected output in a fenced text block. Determine whether all possible typical and special inputs that may cause uncertainty among users are described with examples and coverage.

Feature Documentation Standards

Feature docs (load methods, table types, catalog connectors, admin operations, etc.) are the primary reference for users performing a task. Each doc should cover:

  • Overview paragraph: what the feature is and when to use it. State key constraints (size limits, protocol, atomicity guarantees) upfront.
  • Quick start / Basic usage: a minimal end-to-end example a user can run immediately. Must include prerequisite setup (table DDL, permissions) before the main command.
  • Parameters / Options reference: a table or structured list of all user-facing parameters. Include type, default value, whether required, and a concrete description of effect.
  • Examples: cover the most common real-world scenarios, not just the simplest case. Each example must show the full command and its expected output or result. If a feature has multiple modes or formats (e.g., CSV vs JSON, with/without auth), show at least the representative variants.
  • Error handling and caveats: note known failure modes, behavioral edge cases, and version-specific differences that a user is likely to hit.
  • Best practices: How should the addition of this feature be weighed, and under what circumstances should it be used?

This content is not immutable. You should always aim to help users thoroughly and clearly understand the corresponding functions, allowing for flexible adjustments based on actual circumstances.

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.