Update Javadoc and public documentation after implementing features...
Golden Rule: Documentation that misleads is worse than no documentation.
Invoke /brane-docs after completing implementation that affects:
git diff --name-only HEAD~1 | grep '\.java$'
Focus on public API changes in:
brane-core/src/main/java/sh/brane/core/...brane-rpc/src/main/java/sh/brane/rpc/...brane-contract/src/main/java/sh/brane/contract/...Update source files directly. Required elements:
@param for every parameter (state nullability)@return for non-void (state empty/null semantics)@throws for all exceptions (state condition){@code} examples for public entry pointsDocs location: website/docs/pages/docs/
website/docs/pages/docs/
āāā quickstart.mdx
āāā architecture.mdx
āāā performance.mdx
āāā reader/ # Brane.Reader methods
ā āāā api.mdx
ā āāā simulate.mdx
ā āāā subscriptions.mdx
āāā signer/ # Brane.Signer methods
ā āāā api.mdx
ā āāā signers.mdx
ā āāā hd-wallets.mdx
ā āāā eip712.mdx
ā āāā blobs.mdx
ā āāā custom-signers.mdx
āāā contracts/
ā āāā bindings.mdx
ā āāā interaction.mdx
ā āāā multicall.mdx
āāā testing/ # Brane.Tester methods
ā āāā overview.mdx
ā āāā setup.mdx
ā āāā state.mdx
ā āāā impersonation.mdx
ā āāā mining-time.mdx
ā āāā accounts.mdx
āāā providers/
ā āāā http.mdx
ā āāā websocket.mdx
āāā utilities/
ā āāā types.mdx
ā āāā abi.mdx
ā āāā errors.mdx
ā āāā threading.mdx
ā āāā metrics.mdx
āāā chains/
āāā profiles.mdx
| Feature Type | Update These Pages |
|---|---|
| New Reader method | reader/api.mdx |
| New Signer method | signer/api.mdx |
| New type (Address, Wei, etc.) | utilities/types.mdx |
| Contract feature | contracts/bindings.mdx or contracts/interaction.mdx |
| Provider changes | providers/http.mdx or providers/websocket.mdx |
| Error handling | utilities/errors.mdx |
| Testing feature | testing/ appropriate file |
| New major feature | May need new page |
After updating Javadoc and website docs, decide whether CLAUDE.md files need updates.
Update CLAUDE.md when:
Skip CLAUDE.md when:
Which CLAUDE.md to update:
| Change Location | CLAUDE.md File |
|---|---|
| brane-primitives | brane-primitives/CLAUDE.md |
| brane-core types, ABI, crypto | brane-core/CLAUDE.md |
| brane-kzg | brane-kzg/CLAUDE.md |
| brane-rpc clients, providers | brane-rpc/CLAUDE.md |
| brane-contract | brane-contract/CLAUDE.md |
| Cross-cutting patterns | Root CLAUDE.md |
When updating, follow existing structure:
Before finishing, verify:
Javadoc:
Website Docs:
Cross-Reference:
CLAUDE.md (if applicable):