Teamspace Rules are a Pro and Enterprise feature. Only owners and admins can add, edit, or delete rules; developers have read-only access.
Rule Scopes
Each rule applies at one of two scopes:- Global Rules — apply to every library your teamspace accesses.
- Library-Specific Rules — apply only when retrieving docs for a particular library.
Examples
- “Always use TypeScript strict mode”
- “Prefer server components in Next.js”
- “Use the App Router, not the Pages Router”
Adding a Rule
1
Open the rules tab
Open the rules tab and click Add Rule….
2
Choose the scope
Pick Global or a specific Library.
3
Enter the rule text
Write the instruction you want prepended to retrieved documentation.
4
Save
Save the rule. It takes effect on the next documentation request made with the teamspace’s API keys.