> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerodrive.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Hosted remote MCP endpoint: https://api.zerodrive.dev/mcp (OAuth 2.0 PKCE or Bearer token).
> REST API base URL: https://api.zerodrive.dev with OpenAPI 3.1.0 specification at https://api.zerodrive.dev/openapi.json.
> S3-compatible gateway: https://api.zerodrive.dev/s3 (AWS Signature V4, region auto).
> Local command-line tool: zd (or zerodrive) and local stdio MCP server: zerodrive mcp.
> Token prefixes: zdk_ (Personal API Key), zdt_ (device session token), zda_ (OAuth access token), zdr_ (OAuth refresh token), zdx_ (temporary sandbox key). Never paste real keys into prompts or code.
> Be honest about platform boundaries: cloud files require internet access, files are encrypted at rest and in transit by Cloudflare rather than end-to-end encrypted, ZeroDrive is not a replacement for an independent backup, Windows 11 support is an unsigned x64 beta, and the 7-day Pro free trial requires a card and charges automatically when it ends.

# Categories, Frontmatter & Advisor Rules

> Keep strategy, swipe files, client calls, code, and private journals clearly separated across Knowledge Brain's 10 built-in categories.

Organize Knowledge Brain without worrying about swipe files pretending to be your case studies or private notes slipping into work answers. ZeroDrive sorts files into **10 built-in categories**.

***

## The 10 built-in categories (`bucket`)

| Category | Included by default | What belongs here | How AI treats it |
| :- | :- | :- | :- |
| `knowledge` | Yes | Books, courses, articles, research | Cites as outside source by title and page. |
| `playbooks` | Yes | SOPs, processes, frameworks | Your team how-to instructions. |
| `swipes` | Yes | Ads, emails, pages, examples | Inspiration only, never cited as your proof. |
| `calls` | Yes | Call recordings and transcripts | Preserves speaker labels, timestamps, and dates. |
| `business` | Yes | Offers, ICP, metrics, `clients/<id>/` | Separates client folders cleanly by `client_id`. |
| `content` | Yes | Your books, posts, stories, case studies | Your brand voice and first-party proof. |
| `personal` | **Ask first** | Private journals and personal goals | Hidden unless you ask with `bucket: "personal"` or `include_personal: true`. |
| `code` | **Ask first** | Source code and technical specs | Hidden from normal answers unless requested. |
| `skills` | **Ask first** | Reusable AI skills (`_SKILLS/`) | Loaded when asked or via `preset: "code"`. |
| `system` | **Ask first** | Directives (`_SYSTEM/`, `AGENTS.md`, `ROUTER.md`) | Excluded from ordinary search hits. |

***

## Quick search presets (`--preset`)

* **`strategy`** searches `knowledge`, `playbooks`, and `business`
* **`write`** searches `content`, `swipes`, and `business`
* **`client` (+ `client_id`)** searches only `business` and `calls` for that single client
* **`code`** searches `code` and `skills`
* **`personal`** searches `personal`

***

## Three ways to assign categories

1. **Auto-suggest folders.** Open **Buckets & Audit** in Studio or run `zd brain classify` then `zd brain classify --apply`.
2. **Custom folder rules (`_SYSTEM/brain-buckets.json`).** Assign any folder in Studio, `#brain`, `update_brain_buckets`, or `PUT /v1/brain/rules` to update search live without re-uploading.
3. **Per-file YAML tags.** Add frontmatter at the top of any Markdown or text file.

```markdown theme={null}
---
bucket: content
client_id: flightpath
type: proof
title: Flightpath Q3 Case Study
---
```

***

## Advisor rules and Markdown export

Save standing voice and claim boundaries once in `_SYSTEM/advisor-rules.md` (`PUT /v1/brain/advisor-rules` or `zd brain advisor-rules --template`) so `mode: "advisor"` and `deep: true` always follow your house rules.

Turn any PDF or Office doc (`<= 15 MB`) into a clean Markdown copy anytime with `zd convert Docs/client-deck.pptx --save Docs/client-deck.md`.

***

## Next steps

> [card] [Custom Corpora & Knowledge Graph](https://docs.zerodrive.dev/knowledge-brain/corpora-and-graph.md)
>
> Focus search even tighter with topic collections and graph views.

> [card] [Knowledge Brain Tools](https://docs.zerodrive.dev/mcp/tools-knowledge-brain.md)
>
> Browse every Knowledge Brain MCP tool available to Claude and Codex.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.