Skip to content

docs: add AGENTS.md and CLAUDE.md documentation#563

Merged
chinameok merged 5 commits intomasterfrom
add-agents-docs
Feb 24, 2026
Merged

docs: add AGENTS.md and CLAUDE.md documentation#563
chinameok merged 5 commits intomasterfrom
add-agents-docs

Conversation

@chinameok
Copy link
Contributor

@chinameok chinameok commented Feb 24, 2026

Add new documentation files for agents and Claude-related content.

Summary by CodeRabbit

  • New Features

    • Backup flow: added optional resource-filtering (included/excluded namespace & cluster resources), advanced label selector modes, clearer PVC/volume behavior, and improved scheduling steps.
  • Documentation

    • Added a comprehensive AI coding agent guide and a short companion note referencing it.
    • Reworked backup documentation for a filter-driven configuration flow and clearer messaging.
  • Chores

    • Updated ignore rules to exclude local agent artifacts.

Add new documentation files for agents and Claude-related content.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 20dd4d1 and ecbc65b.

📒 Files selected for processing (1)
  • docs/en/configure/backup/application/backup-app.mdx

Walkthrough

Adds AGENTS.md and CLAUDE.md, updates .gitignore to ignore agent artifacts, and expands backup documentation with optional resource-filtering and label-selector configuration in the backup UI flow.

Changes

Cohort / File(s) Summary
AI Agent Guide
AGENTS.md
New comprehensive agent guidance: project context, MDX/docs conventions, build/verification commands, frontmatter and filename rules, immutable/auto-generated file restrictions, Definition of Done, and uncertainty/interaction policies.
Agent Pointer
CLAUDE.md
New single-line directive instructing readers to treat AGENTS.md as an extension of this file.
Repository Ignore Rules
.gitignore
Added ignore patterns: .claude/*, .agents/*, and skills-lock.json.
Backup docs
docs/en/configure/backup/application/backup-app.mdx
Reworked Backup Resources flow: consolidated basic info, added Included/Excluded Namespace & Cluster Resources, introduced Label Selectors (matchLabels / matchExpressions) with operator semantics and OR-linking note, clarified PVC/defaultVolumesToFsBackup behavior, adjusted scheduling/advanced/export messaging and step order.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐇 I nibble lines and tidy trails,
New guides and notes in careful scales.
CLAUDE points the path I roam,
Ignore the crumbs, make docs feel home.
A rabbit cheers for clearer trails! 🌿

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: adding two new documentation files (AGENTS.md and CLAUDE.md) and updating .gitignore.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-agents-docs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
AGENTS.md (2)

45-58: Add a language to the fenced code block (MD040).

Markdownlint requires a language for fenced blocks; use text (or bash if appropriate) to avoid lint failures.

♻️ Proposed fix
-```
+```text
 acp-docs/
 ├── docs/
 │   ├── en/                 # 英文文档(主语言,修改的首选目标)
 │   ├── zh/                 # 中文文档(通过翻译流程生成,禁止脱离英文版单独修改逻辑)
 │   ├── public/             # 全局静态资源
 │   │   └── logo.svg
 │   └── shared/             # 共享配置文件(如 CRD, OpenAPI, 暂由人工维护)
 ├── theme/                  # 主题定制
 ├── scripts/                # 工具脚本
 ├── doom.config.yml         # 框架核心配置
 └── package.json

-```
+```
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` around lines 45 - 58, The fenced code block in AGENTS.md is
missing a language specifier (MD040); update the opening fence for the directory
tree to include a language (e.g., change the opening "```" to "```text" or
"```bash") so the block is lint-compliant and keep the matching closing "```";
target the fenced block that contains the acp-docs/ directory tree.

94-96: Optional wording tweak for readability.

Consider replacing “关于 …” with “对于 …” or rephrase to avoid the ambiguous prepositional phrase.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` around lines 94 - 96, Update the sentence that currently uses the
ambiguous prepositional phrase "关于 `Tabs`, `Steps`, `CodeBlock`, `Highlight`
等可用组件的详细用法,请参考关联的 **MDX 组件 Skill**" to improve readability by replacing "关于"
with "对于" or rephrasing it; for example, change it to "对于 `Tabs`, `Steps`,
`CodeBlock`, `Highlight` 等可用组件的详细用法,请参考关联的 **MDX 组件 Skill**" or an equivalent
phrasing that clearly introduces the referenced components and the MDX 组件 Skill.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@AGENTS.md`:
- Around line 45-58: The fenced code block in AGENTS.md is missing a language
specifier (MD040); update the opening fence for the directory tree to include a
language (e.g., change the opening "```" to "```text" or "```bash") so the block
is lint-compliant and keep the matching closing "```"; target the fenced block
that contains the acp-docs/ directory tree.
- Around line 94-96: Update the sentence that currently uses the ambiguous
prepositional phrase "关于 `Tabs`, `Steps`, `CodeBlock`, `Highlight`
等可用组件的详细用法,请参考关联的 **MDX 组件 Skill**" to improve readability by replacing "关于"
with "对于" or rephrasing it; for example, change it to "对于 `Tabs`, `Steps`,
`CodeBlock`, `Highlight` 等可用组件的详细用法,请参考关联的 **MDX 组件 Skill**" or an equivalent
phrasing that clearly introduces the referenced components and the MDX 组件 Skill.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f3ab994 and 0b361dc.

📒 Files selected for processing (2)
  • AGENTS.md
  • CLAUDE.md

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 24, 2026

Deploying alauda-container-platform with  Cloudflare Pages  Cloudflare Pages

Latest commit: ecbc65b
Status: ✅  Deploy successful!
Preview URL: https://4c0f7024.alauda-container-platform.pages.dev
Branch Preview URL: https://add-agents-docs.alauda-container-platform.pages.dev

View logs

Chao Zhou and others added 2 commits February 24, 2026 12:23
Add documentation for four new resource filtering fields in the application
backup UI:

- Included Namespace Resources: Select specific namespace-scoped resource types
- Included Cluster Resources: Whitelist for cluster-scoped resources
- Excluded Namespace Resources: Exclude specific namespace-scoped resource types
- Label Selectors: Filter resources by matchLabels and matchExpressions

These options allow users to refine backup scope, particularly useful for
scenarios like excluding large datasets (e.g., ClickHouse) from PVC backups.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Rewrite AGENTS.md in English with clearer structure and formatting
- Add sections for Project Context, Core Principles, Build Commands,
  Documentation Guidelines, Immutable Files, and Definition of Done
- Add .gitignore entries for Claude Code skill directories:
  - .claude/
  - .agents/
  - skills-lock.json

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/en/configure/backup/application/backup-app.mdx`:
- Around line 71-78: Clarify the label selector section: state that "OR logic"
applies only when the UI maps to Velero's orLabelSelectors (which accepts
multiple LabelSelectors joined by OR) and note that orLabelSelectors and the
single labelSelector are mutually exclusive in a backup; update the paragraph
mentioning "Multiple selectors are combined with OR logic" to reference
orLabelSelectors explicitly and add a short note that a single labelSelector
uses AND logic. Also correct the matchLabels table to show that Value is
required per Kubernetes' map[string]string, or if the UI treats a missing value
as an "exists" match, document that behavior explicitly and explain that the UI
translates that case into matchExpressions rather than a plain matchLabels
entry.
- Around line 71-78: Update the documentation to clarify that "Multiple
selectors are combined with OR logic" only applies when using the Velero API
field spec.orLabelSelectors (v1.10+); state that the standard spec.labelSelector
/ single selector uses AND semantics and ensure the UI description explicitly
maps to spec.orLabelSelectors if OR is intended. Also correct the matchLabels
table: change "Value | string (optional)" to required (map[string]string
requires both key and value) or, if the UI allows key-only matching, document
that this is a UI-specific deviation and show the correct Kubernetes alternative
using matchExpressions with operator: Exists; reference matchLabels,
matchExpressions, operator: Exists, spec.labelSelector, and
spec.orLabelSelectors so the author knows which fields to adjust.
- Around line 88-90: Update the note to clarify that the annotation
backup.velero.io/backup-volumes-excludes only prevents filesystem-level backups
of volumes (when defaultVolumesToFsBackup causes PVCs to be backed up), but does
not prevent volumes from being captured by configured volume snapshot
mechanisms; mention defaultVolumesToFsBackup and the annotation name
(backup.velero.io/backup-volumes-excludes) so readers understand the distinction
between FS backup exclusion and snapshot-based backups.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0b361dc and 141e394.

📒 Files selected for processing (3)
  • .gitignore
  • AGENTS.md
  • docs/en/configure/backup/application/backup-app.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • AGENTS.md

….mdx

- Fix matchLabels Value field from (optional) to (required) per Kubernetes spec
- Clarify backup-volumes-excludes annotation behavior (filesystem vs snapshot)
- Refactor excessive ::: directives from 9 to 3 per Doom framework standards
- Convert low-priority directives to plain text/bold/lists for better readability
- Add guidance for using matchExpressions with Exists operator

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
docs/en/configure/backup/application/backup-app.mdx (1)

60-81: Label Selectors section correctly addresses all prior review feedback.

The orLabelSelectors OR-logic clarification, mutual exclusivity note, corrected matchLabels Value requirement, Exists operator guidance, and PVC filesystem-vs-snapshot distinction are all accurately documented.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/en/configure/backup/application/backup-app.mdx` around lines 60 - 81,
The review text contains redundant review markers—remove the duplicate
approval/comment artifacts so the documentation change stands with a single
approval note; specifically, in the "Label Selectors" section and surrounding
review text referencing orLabelSelectors, matchLabels, matchExpressions,
defaultVolumesToFsBackup, and the backup.velero.io/backup-volumes-excludes
annotation, delete the extraneous "[approve_code_changes]" and
"[duplicate_comment]" tokens (leaving the content and clarifications intact).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/en/configure/backup/application/backup-app.mdx`:
- Around line 46-48: Update the warning block string that currently reads "To
ensure reliability and integrity, do not back up database data (for example,
MySQL-PXC, Redis). Use Data Services for database backups." to use consistent
wording with the earlier warning by changing "integrity" to "data integrity" so
it reads "To ensure reliability and data integrity, do not back up database data
(for example, MySQL-PXC, Redis). Use Data Services for database backups." This
targets the :::warning block text in backup-app.mdx.

---

Duplicate comments:
In `@docs/en/configure/backup/application/backup-app.mdx`:
- Around line 60-81: The review text contains redundant review markers—remove
the duplicate approval/comment artifacts so the documentation change stands with
a single approval note; specifically, in the "Label Selectors" section and
surrounding review text referencing orLabelSelectors, matchLabels,
matchExpressions, defaultVolumesToFsBackup, and the
backup.velero.io/backup-volumes-excludes annotation, delete the extraneous
"[approve_code_changes]" and "[duplicate_comment]" tokens (leaving the content
and clarifications intact).

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 141e394 and 20dd4d1.

📒 Files selected for processing (1)
  • docs/en/configure/backup/application/backup-app.mdx

- Remove duplicate database backup warning (already present in document header)
- Add blank line between Scheduled and Advanced configuration sections
- Further reduce ::: directives from 3 to 2 for better compliance with Doom standards

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@chinameok chinameok merged commit 3d38236 into master Feb 24, 2026
3 checks passed
@chinameok chinameok deleted the add-agents-docs branch February 24, 2026 09:07
@coderabbitai coderabbitai bot mentioned this pull request Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant