跳到正文
cccskills
免费在 GitHub 公开

docs

Read, edit, or save documents in BB Docs vaults, including documents supplied through Docs mentions.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Docs

Docs is the user's filesystem-first document library. Documents can live on the server machine or another connected host, but the bb docs command handles that routing through named vaults.

Access documents

Start with the smallest useful lookup:

bb docs vaults --json
bb docs list --vault <vault-id> --json
bb docs read <path> --vault <vault-id>

Use the path and vault exactly as returned. Paths are relative to the vault; do not guess an absolute host path or inspect the vault outside bb docs.

Docs @-mentions

A Docs mention resolves at send time and appears in agent context as a Docs document (<vault>/<path>) block. Treat that block as user-provided source material from their document library:

  • Read and use its current contents even if the prompt only says “this” or “the attached doc.”
  • Preserve its meaning and distinguish its claims from your own inference.
  • Do not rewrite the mentioned document unless the user asks you to change it.
  • When your answer refers the user back to it, emit a Docs directive rather than an opaque filesystem path.

Create and update documents

Docs is a good destination for durable plans, specifications, write-ups, and HTML artifacts the user should be able to reopen.

bb docs pull plans/release-plan.md --vault personal --into ./docs-work
# Edit ./docs-work/plans/release-plan.md with normal file tools.
bb docs status ./docs-work --diff
bb docs push ./docs-work

bb docs status exits 0 when no changes exist. It exits 4 when it finds changes that the output describes. Exit 4 is a successful status result. Review that output, then run bb docs push as a separate command. Do not connect the status and push commands with &&.

Pull a folder subtree with --folder, or the whole selected vault with --all:

bb docs pull plans --folder --vault personal --into ./docs-work
bb docs pull --all --vault personal --into ./docs-work

Always edit the pulled files with ordinary workspace tools, then run status before push. The manifest in .bb-docs-state.json records stable vault paths and remote SHA-256 versions; do not edit it. Pull and push fail closed with exit 3 when both the local and vault copies changed. Resolve the content manually, then pull or push again. push --dry-run --diff previews without writing. Inside a thread the workspace is on the thread's host; a standalone CLI call targets the server machine unless it passes --workspace-host <id>.

Local file and empty-directory deletions are ignored by default. Only use push --delete when the user explicitly asked to delete the corresponding vault paths. A pulled folder root is intentionally retained; pull its parent or the whole vault to remove that folder. Binary assets round-trip with their original bytes. If state is malformed, preserve the directory for recovery and pull into a new clean --into directory.

The direct write, mkdir, move, and remove commands are deprecated. Do not use them for agent edits; they remain temporarily available only for backward compatibility.

Run bb docs --help for the command list and bb docs <command> --help for a command's arguments, options, and rules. Each command accepts only the options its help lists; an unknown command, unknown option, or stray argument exits 2 before touching a vault, and with --json the failure also prints {"ok":false,"error":{"code","message","hint"?}} on stdout.

Use Markdown for documents and plans. Use a self-contained .html file for a visual artifact or interactive report; relative assets can live beside it. Only write into Docs when the user asks to create, save, store, or update something there.

Link documents in responses

Emit this leaf directive on its own line:

::docs{vault="personal" path="plans/release-plan.md" title="Release plan"}

vault and path are required. Include a short human-readable title when known. Markdown cards are editable and autosave in the timeline; Open in tab opens the same document in Docs. Use the directive for both Markdown documents and full HTML artifacts.

Propose changes for approval

When the user asks to update a mentioned document or revise a pending proposal, keep the saved file intact and propose the revision for approval. Read the current file and proposal first, write the complete candidate into a workspace Markdown file, then run:

bb docs read letter.md --vault personal --json
bb docs proposal letter.md --vault personal --json
bb docs propose letter.md --vault personal --file ./candidate.md --expected-sha256 HASH --version N --json

Use --version none only when proposal returned null. Otherwise pass its exact version, including when the previous proposal was rejected or accepted. Use the hash from the current document read. A conflict means the user changed the file or proposal while you worked: read again and reconcile your revision; never retry automatically using a newer version. A Docs mention includes the current file and proposal metadata to support this workflow.

Return the usual ::docs directive. The user can accept, reject, edit the candidate, or ask for further changes. Do not run accept on the user's behalf unless explicitly asked.

bb docs proposal-update <path> --content <markdown> --version N [--vault <id>] [--json]
bb docs accept|reject|undo|redo <path> --version N [--vault <id>] [--json]

proposal-update replaces only the pending candidate. The resolution commands perform the same actions as the card's buttons. Existing pull/edit/push remains available for direct changes the user requested without proposal review.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Configure or diagnose Account Pooler accounts, authentication, quota routing, and failover through bb pool.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44552026年10月18日 更新

Configure or troubleshoot ACP agent discovery, custom models, skills, and compaction in BB.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44552026年10月18日 更新

Approve a GitHub contributor to open PRs in get-bb/bb, then land the allowlist change with SlopCop and CI skipped. Use for requests such as "add @username to be able to open PRs" or an explicit add-contributor invocation.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44552026年10月18日 更新

Create or edit element annotations in desktop Browser tabs, or update saved annotation comments through the plugin RPC.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44552026年10月18日 更新

Schedule or manage recurring and one-shot BB agent or script automations.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44552026年10月18日 更新

Sign this bb in to or out of its getbb.app account with bb account, and check which account remote access and hosted services use.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44552026年10月18日 更新

查看 get-bb 的全部技能

报告此技能的问题