Engram Docs Skill Guide
Purpose: help humans and coding agents produce consistent, high-signal documentation for the Engram SDK docs site.
Scope
This guide applies to content in:
docs/index.mddocs/guide/*docs/api/*docs/architecture.mddocs/troubleshooting.mddocs/faq.md
Documentation Principles
- Explain intent before mechanics
- Start with "why this exists" and "when to use it".
- Stay source-accurate
- Match behavior to implemented code and current exports.
- Optimize for operators
- Include failure modes, guardrails, and recovery guidance.
- Use concrete examples
- Prefer real method names, config keys, and typed errors.
- Separate immutable vs mutable behavior
- Be explicit about CID immutability and index mutability.
Voice and Style
- Clear, technical, and direct.
- Avoid hype language and ambiguous claims.
- Use short sections with descriptive headings.
- Keep code snippets runnable and minimal.
Required Content Patterns
When documenting a method:
- Signature
- What it does
- Inputs
- Output shape
- Failure cases / typed errors
- Operational notes (cost, safety, retry, idempotency)
When documenting a config field:
- Type
- Default
- Operational impact
- Safe baseline value
Fundamentals Category Expectations
Fundamentals pages should always answer:
- What problem this solves
- How Engram models memory and trust
- What "autonomous" and "verifiable" mean in practice
- Which defaults are safe to start with
Change Checklist (before merge)
- [ ] Page links and sidebar entries are valid
- [ ] Terminology is consistent (
CID,attestation,delegation,running spend) - [ ] Config and env var names are exact
- [ ] Examples compile logically (imports and symbols exist)
- [ ] Docs build passes:
cd docs && npm run docs:build
Avoid
- Documenting behavior not present in code
- Mixing roadmap ideas into reference pages without labels
- Long narrative with no actionable details
- Inconsistent naming (
engramjsvs package internals) without context
Recommended Update Flow
- Update docs page(s)
- Rebuild docs locally
- Spot-check navigation and search
- Validate snippets against source exports
- Keep this guide updated when standards evolve