> ## Documentation index
> Fetch the complete documentation index at: https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/llms.txt
> Ask it with GET https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/resources/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash-context7-git-ctx7-4280-helm-registry-login-c44ca5.docs7.io/feedback?path=/howto/rules&helpful={true|false}&comment={comment}` records whether this page helped. The `comment` (URL-encoded, at most 500 characters) says what helped, or what was missing or wrong; a `helpful=false` rating needs it. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# 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](https://context7.com/dashboard?tab=rules) of your dashboard.

<Note>Teamspace Rules are a Pro and Enterprise feature. Only owners and admins can add, edit, or delete rules; developers have read-only access.</Note>

## 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

<Steps>
  <Step title="Open the rules tab">
    Open the [rules tab](https://context7.com/dashboard?tab=rules) and click **Add Rule...**.
  </Step>
  <Step title="Choose the scope">
    Pick **Global Rules**, or pick **Library-Specific Rules** and search for the library.
  </Step>
  <Step title="Enter the rule text">
    Write the instruction you want prepended to retrieved documentation.
  </Step>
  <Step title="Save">
    Save the rule. It takes effect on the next documentation request made with the teamspace's API keys.
  </Step>
</Steps>

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