AGENTS.md@frontend/packages/reactA

AGENTS.md@frontend/packages/react from volcengine/openviking is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add volcengine/openviking/frontend/packages/react/AGENTS.md@git:20261105.2fc2f72

Pins git:20261105.2fc2f72 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
volcengine/openviking
Path
frontend/packages/react/AGENTS.md
Versions recorded
3
Latest version
git:20261105.2fc2f72, committed Nov 5, 2026
First version recorded
Nov 4, 2026
Size
5,178 bytes
Repository stars
41,589
License
AGPL-3.0

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# React Agent Guide

适用于 `frontend/packages/react/**`,同时遵循 [Frontend Agent Guide](../../AGENTS.md) 和更深目录的规则。

## 公开导出

- 目录以 `index.ts` 作为唯一出口,包根入口 `src/index.ts` 只从这里取。
- 根入口只导出各组件、各业务模块的组件本体与主 Props 类型(`<组件名>Props`),作为最常用的快捷方式。
- 子类型、回调参数类型、行与选项等数据结构、句柄与文案包,一律只从 `components/<组件>`、`modules/<模块>` 子路径导出。根入口不聚合它们。
- 依赖可选 peer 的组件不进入根入口:`FilePreview` 的类型引用 `@ark-design/ui`,放进根声明会让该可选 peer 对只用其他根导出的消费者变成必需。
- 新增或调整导出时,同步维护 `package.json` 的 `exports`、Rslib 入口与声明路径,并从真实打包产物验证根入口与各子路径都能解析。

## useEffect 使用门槛

- 新增或修改组件、自定义 Hook 时,非必要不使用 `useEffect`。只有需要在渲染提交后,将组件与明确的外部系统保持同步,且更直接的声明式 API、事件处理或已有专用 Hook 无法满足时,才允许使用。
- 外部系统包括浏览器订阅、非 React 控件和网络服务;组件内部的 props、state 及其派生值不是外部系统。“挂载后执行”“依赖变化时执行”或“只运行一次”本身不能证明必要性。
- 不得通过改名、封装自定义 Hook 或替换为 `useLayoutEffect` 绕过本规则。按 React 官方的 [You Might Not Need an Effect](https://react.dev/learn/you-might-not-need-an-effect) 判断是否可以移除 Effect。

## 优先选择替代方式

| 场景                                                             | 应采用的方式                                                                                                                      |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add volcengine/openviking/frontend/packages/react/AGENTS.md@sha256:088ecbbf55ee7cde

The line at the top of this page pins the label git:20261105.2fc2f72, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_5kojgjbgdrxhf42y.svg)](https://markdownregistry.com/a/art_5kojgjbgdrxhf42y)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Nov 4, 2026 and Nov 5, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20261105.2fc2f72 latest2026-11-05 2fc2f72 5,178 BA view · diff
git:20261104.0b713a52026-11-04 0b713a5 4,379 BA view · diff
git:20261104.e6437c92026-11-04 e6437c9 4,359 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (5178 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

volcengine/openviking · 41,589 stars · license AGPL-3.0 · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_5kojgjbgdrxhf42y
GET https://markdownregistry.com/api/v1/resolve?ref=volcengine/openviking/frontend/packages/react/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/088ecbbf55ee7cdeaef21dc4a3ebbb9a3a3b9a7bbf928f1e4bd6ba9d93a610bc

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from volcengine/openviking

openviking-memory SKILL.md skill
volcengine/openviking · agent-plugins/skills/openviking-memory/SKILL.md · Recall and persist long-term memory through the OpenViking MCP tools. Use at the start of any substantive task (coding…
git:20261014.46e15a2 · audit A · 41,589 stars
openviking-skills SKILL.md skill
volcengine/openviking · agent-plugins/skills/openviking-skills/SKILL.md · Find, use, create, install, share, update, and migrate agent skills stored in OpenViking (viking://~/skills and…
git:20261102.88c72b9 · audit A · 41,589 stars
ov-experience-memory SKILL.md skill
volcengine/openviking · agent-plugins/skills/ov-experience-memory/SKILL.md · Retrieve and apply OpenViking Experience memories through the Agent runtime's generic OpenViking search and read tools…
git:20261001.0fabc5e · audit A · 41,589 stars
ov-kanban SKILL.md skill
volcengine/openviking · agent-plugins/skills/ov-kanban/SKILL.md · Work through tasks on a kanban board stored in OpenViking (viking://agent/kanban/<board>/, one markdown file per task)…
git:20260929.5b23459 · audit A · 41,589 stars
ov-memory-troubleshoot SKILL.md skill
volcengine/openviking · agent-plugins/skills/ov-memory-troubleshoot/SKILL.md · Diagnose OpenViking memory issues by tracing backward from a memory file to its archive memory_diff.json and, when…
git:20260910.e03ce0a · audit A · 41,589 stars
ov-resources SKILL.md skill
volcengine/openviking · agent-plugins/skills/ov-resources/SKILL.md · Search and read documents, repos, URLs, and other resources stored in OpenViking under viking://resources/. Use…
git:20261102.88c72b9 · audit A · 41,589 stars
experience_loader SKILL.md skill
volcengine/openviking · benchmark/tau2/train/experience_loader_template/SKILL.md · Load relevant OpenViking experience memories via case-linked experience candidates before solving a task.
git:20260703.fd73dcf · audit A · 41,589 stars
cron SKILL.md skill
volcengine/openviking · bot/workspace/skills/cron/SKILL.md · Schedule reminders and recurring tasks.
git:20260228.006a06f · audit A · 41,589 stars
github-proxy SKILL.md skill
volcengine/openviking · bot/workspace/skills/github-proxy/SKILL.md · GitHub 国内访问加速 skill,使用 githubproxy.cc 代理加速 GitHub 仓库克隆、文件下载、Raw 文件访问等操作。使用场景:(1) 需要 git clone GitHub 仓库时加速,(2) 下载…
git:20260228.006a06f · audit A · 41,589 stars
github SKILL.md skill
volcengine/openviking · bot/workspace/skills/github/SKILL.md · Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and…
git:20260228.006a06f · audit A · 41,589 stars
opencode SKILL.md skill
volcengine/openviking · bot/workspace/skills/opencode/SKILL.md · Monitor and manage your OpenCode tasks using helper scripts.
git:20260309.c4cdb5f · audit A · 41,589 stars
skill-creator SKILL.md skill
volcengine/openviking · bot/workspace/skills/skill-creator/SKILL.md · Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
git:20260228.006a06f · audit A · 41,589 stars

Every file in volcengine/openviking

Browse by kind, by grade A, or by owner.