Docs Style Guide and Page Template
Rules for writing and editing pages in this folder. The docs are the single source of truth for the PEPU dev kit, so accuracy outranks polish.
Voice
- Present tense. State facts as facts, with no hedging.
- Imperative steps: say what to do, then why.
- Plain and precise. No hype words, no emoji, no marketing adjectives, no exclamation marks.
- No work-log language: no session history ("earlier", "now fixed"), no first person ("we did"), no internal process notes.
- Describe what the product does, not how far its development has progressed. Do not cite proof transactions or the dates something was checked.
- Include a caveat only when it changes what the developer does, for example "Deposits are one-way; they can't be withdrawn." or "Sessions are stored in memory in the template; use a persistent store in production."
- Every page must make it easier to build or to use. If it does not, cut it.
- PEPU is a chain, not "an AI chain". Agent tooling is described as tooling that helps builders get PEPU facts right.
Security guidance belongs in Trust and Security Model and Security Reviews, written neutrally.
Facts to respect
- Mainnet only: chain ID
97741. The testnet97740is not supported. Chain ID3409is the retired V1 chain. - Hosted endpoints: bundler
https://bundler.pepeunchained.comand paymaster servicehttps://paymaster.pepeunchained.com. They are the SDK defaults; keep the env var namesPEPU_BUNDLER_URLandPEPU_PAYMASTER_URLas overrides. The ERC-7677 URL always embeds a token (https://paymaster.pepeunchained.com/v2/paymaster/<token>), so there is no tokenless default; write<token>and never a real one. Local development defaults (http://localhost:4337,http://localhost:8788) may stay for people running their own services. Never write a tunnel URL (no ngrok, no trycloudflare) anywhere. - The v2 paymaster is
PepuSponsoredPaymasterV7. The v1 paymaster is retired. Deposits to v2 are one-way. - Multicall3 is at a PEPU-specific address, never the canonical one. Give full addresses, never truncated ones, in tables meant for copying.
- Never state a feature is available if it is not live.
Code samples use real SDK exports
- Import only symbols that exist in
@pepu-chain/sdkand its documented subpaths:/privy,/privy/react,/privy/wagmi,/privy/server,/session,/session/server,/session/react,/session/kernel,/aa,/aa/kernel,/aa/react,/aa/react-direct,/paymaster,/paymaster/server,/combo,/combo/react,/doctor. - If a symbol is not exported, do not invent it. Check
packages/sdk/srcand the exports test, or call thepepu_sdk_exportsMCP tool. - Prefer SDK functions over hand-rolled infrastructure. Use raw viem or JSON-RPC only where the SDK has no equivalent, and say so.
- Server-only code (Privy app secret, authorization key, claim attestation) is labeled server-only and never reads
NEXT_PUBLIC_variables. - Never print or embed secrets, keys or real tokens. Use obvious placeholders.
- Samples meant to compile live under
docs/snippets/and are type-checked in CI. Pages include them and do not diverge from them.
Page template
# Page Title
One paragraph: what this page is for and who needs it.
## Prerequisites
## Steps or reference body
## What to expect
## Common failures
## Related
Rules:
- One H1 per page, title case, matching the
SUMMARY.mdentry. - Reference pages use tables; procedures use numbered steps.
- Every failure symptom names the cause and the fix.
- Link with relative paths, for example from the docs root
[Session Keys](onboarding/session-keys.md). - Add every new page to
SUMMARY.mdin the same change. - Do not put Markdown link syntax inside
TODOcomments; the link checker reads them.
Stubs and ownership
New pages start as stubs: a title, a one-paragraph purpose and a TODO(Dn) comment listing the required sections. The owner replaces the stub and removes the TODO.
| Writer | Folders |
|---|---|
| D2 | get-started/, onboarding/, concepts/, privy/, reference/env-vars.md, glossary, FAQ |
| D3 | sdk/, recipes/, snippets/, changelog |
| D4 | mcp/, agent-tooling/, templates/, cli/ |
| D5 | infra/, contracts/ |
| D6 | generated pages (reference/errors.md, reference/endpoints.md, sdk/errors.md), llms.txt, llms-full.txt, troubleshooting.md |
Checks
node scripts/check-links.mjsmust report 0 broken links.docs/llms.txtassumes each page URL mirrors its path; D6 keeps it current.