AGENTS.md · whiteguo233/OpenBiliClaw
AGENTS.md from whiteguo233/OpenBiliClaw: 38 lines covering 项目结构与模块组织, 构建、测试与开发命令, 开发顺序与配置约定, Worktree 开发约定 and more.
Template by whiteguo233
Chalk Labs
Need help deploying AGENTS.md · whiteguo233/OpenBiliClaw?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/whiteguo233/OpenBiliClaw/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 38 lines
- File
AGENTS.md
Sections
- 项目结构与模块组织
- 构建、测试与开发命令
- 开发顺序与配置约定
- Worktree 开发约定
- 编码风格与命名约定
- 测试要求
- 提交与 Pull Request 要求
- 文档更新要求(强制)
First lines (shown under the repo's MIT license)
# Repository Guidelines ## 项目结构与模块组织 主代码位于 `src/openbiliclaw/`:`agent/` 负责编排,`bilibili/` 负责站点接入,`memory/`、`soul/`、`discovery/`、`recommendation/` 分别承载理解、发现与推荐链路。测试位于 `tests/`,命名采用 `test_*.py`。设计和路线文档集中在 `docs/`,其中 `docs/v0.1-todolist.md` 是当前 v0.1 的开发主线。浏览器插件代码单独放在 `extension/`,其中 `extension/src/` 为脚本源码,`extension/popup/` 为弹窗页面。 ## 构建、测试与开发命令 先创建虚拟环境并安装开发依赖:`pip install -e ".[dev]"`。常用检查命令如下: ```bash ruff format src/ tests/ ruff check src/ tests/ mypy src/ pytest pytest --cov=openbiliclaw ``` 本地体验 CLI 可使用 `openbiliclaw start`、`openbiliclaw profile`、`openbiliclaw recommend`。如修改配置相关逻辑,请同步验证 `openbiliclaw config-show`。`extension/` 当前未声明独立包管理脚本;若修改插件,请在 PR 中写明手动验证步骤。 ## 开发顺序与配置约定 v0.1 开发建议以 `docs/v0.1-todolist.md` 为准,按“连接 -> 理解 -> 发现 -> 推荐 -> 学习 -> 插件 -> 稳定交付”的里程碑顺序推进,避免跳过底层依赖直接做上层体验。配置样例使用 `config.example.toml`;本地调试时基于它生成 `config.toml`,并仅在本机保存 API Key、Cookie 等敏感信息。 ## Worktree 开发约定 新增功能或修复 bug 必须先使用 `git worktree add` 创建独立 worktree 和对应分支,再在该 worktree 中编码、测试和提交;不得直接在当前主工作区实现这两类变更。开始前先确认当前工作区的未提交改动,不能覆盖、丢弃或混入已有改动。任务完成后保留清晰的分支边界,并在 worktree 中完成必要验证。 ## 编码风格与命名约定 Python 统一使用 4 空格缩进、类型注解和清晰的模块边界;公开 API 与核心数据结构应补充简洁 docstring。格式化与 lint 由 Ruff 管理,静态类型检查使用 MyPy 严格模式。模块文件名使用小写下划线风格,如 `openai_provider.py`;测试函数采用 `test_<behavior>` 命名。 ## 测试要求 新增功能默认同时补充单元测试;涉及真实 B 站或模型服务的流程,优先拆成可 mock 的单元测试,并将真实调用保留为手动或集成测试。v0.1 目标覆盖率参考 `docs/v0.1-todolist.md`,保持在 70% 以上。提交前至少运行 `pytest`,改动接口、配置或类型定义时同时运行 `mypy src/` 和 `ruff check src/ tests/`。 ## 提交与 Pull Request 要求 提交信息遵循 Conventional Commits,例如 `feat: add bilibili auth status command`、`fix: validate missing api key`。PR 说明应包含:变更摘要、测试命令与结果、关联任务或文档入口;如改动 CLI 输出或插件页面,请附终端输出或截图。不要提交真实 `config.toml`、Cookie、API Key 或其他本地敏感数据。 ## 文档更新要求(强制) 每次提交、合回 main 或发版,以及任何改动接口、模块边界、数据流、配置、CLI、依赖或对外集成的变更,均强制按范围同步模块文档、变更日志、架构图、CLI 与配置文档、安装器文档;权威逐项清单见 [CLAUDE.md「Documentation Requirements」](CLAUDE.md#documentation-requirements)。 AGENTS.md 面向可能不会自动加载 CLAUDE.md 的非 Claude agent,因此本义务在此独立生效:即使未自动读取 CLAUDE.md,也必须打开上述链接并遵循清单,缺少相应文档更新的分支不得合入。
Signals
- Stars
- 3,567
- Forks
- 195
- Open issues
- 19
- Last commit (this folder)
- Aug 10, 2026 (2 months ago)
- Last release
- Oct 22, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/whiteguo233/OpenBiliClaw
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from whiteguo233
- 0.838score
release
whiteguo233
Use when releasing a version, bumping project versions, or pushing release tags.
SkillAFreshness: A★ 3.6KClaude Code +9 - 0.836score
openbiliclaw-adapter
whiteguo233
Use OpenBiliClaw's versioned Agent Bridge CLI to read multi-source recommendations, profile state, dialogue, probes, saved lists, and submit explicit feedback.
SkillAFreshness: A★ 3.6KClaude Code +9 - 0.836score
add-platform-source
whiteguo233
Add, repair, or validate an OpenBiliClaw platform source across fetching, account signals, discovery, and user surfaces.
SkillAFreshness: A★ 3.6KClaude Code +9 - 0.834score
writing-specs
whiteguo233
Use when authoring a spec or implementation plan, or planning multi-task work.
SkillAFreshness: A★ 3.6KClaude Code +9 - 0.832score
verify
whiteguo233
Drive a real serve-api process against isolated project roots to verify backend/web changes end-to-end
SkillAFreshness: A★ 3.6KClaude Code +9 - 0.829score
taste-companion
whiteguo233
默认对话伙伴,陪聊口味与推荐,可读写记忆、查询推荐与观看数据
SkillAFreshness: A★ 3.6KClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get AGENTS.md · whiteguo233/OpenBiliClaw running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
AGENTS.md · whiteguo233/OpenBiliClaw. Agent Mart. https://agentmart.dev/templates/whiteguo233-openbiliclaw-agents-md (last updated 2026-10-24)