Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.83 KB

rules.md

File metadata and controls

53 lines (40 loc) · 1.83 KB
title Manage Rules
description Prepend custom guidelines to the documentation your teamspace retrieves
product Context7
section docs
source_url https://context7.com/docs/howto/rules
fetched 2026-09-26
tags
context7
docs

Manage Rules

Prepend custom guidelines to the documentation your teamspace retrieves

Rules are custom instructions that are automatically prepended to the documentation context whenever your teamspace retrieves library docs. Use them to set coding standards, define architectural patterns, or specify framework preferences so every result follows your team's conventions.

Manage them from the rules tab of your dashboard.

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

Open the [rules tab](https://context7.com/dashboard?tab=rules) and click **Add Rule...**. Pick **Global** or a specific **Library**. Write the instruction you want prepended to retrieved documentation. Save the rule. It takes effect on the next documentation request made with the teamspace's API keys.

Existing rules are grouped by scope in the list. Select Global Rules or any library entry to edit or remove its rules.