> ## Documentation Index
> Fetch the complete documentation index at: https://docs.claboard.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Context Snippets

> Inject project rules and context into every Claude prompt

Context snippets are reusable text blocks that get injected into every Claude prompt for a project. Use them to enforce coding standards, architectural decisions, or project-specific rules.

<Frame>
  <img src="https://mintcdn.com/bahri/LhHfZeA1RQn4U7C6/images/feature-snippets.svg?fit=max&auto=format&n=LhHfZeA1RQn4U7C6&q=85&s=7ff8fe93f6110c3652cf28d7d6832f41" alt="Context Snippets" width="900" height="260" data-path="images/feature-snippets.svg" />
</Frame>

## How Snippets Work

When a Claude agent starts, all **enabled** snippets for the project are concatenated and included in the system prompt. Claude sees them as project rules it must follow.

<Steps>
  <Step title="Create a snippet">
    Go to project settings and add a context snippet with a name and content.
  </Step>

  <Step title="Enable or disable">
    Toggle snippets on or off. Disabled snippets are saved but not included in prompts.
  </Step>

  <Step title="Claude reads them">
    Every agent session includes all active snippets as context.
  </Step>
</Steps>

## Example Snippets

<Tabs>
  <Tab title="Code Style">
    ```
    Code Style Rules:
    - Use TypeScript strict mode
    - Prefer functional components with hooks
    - Use named exports, not default exports
    - Maximum file length: 300 lines
    ```
  </Tab>

  <Tab title="Architecture">
    ```
    Architecture Rules:
    - All API routes go in /src/routes/
    - Business logic belongs in /src/services/
    - Database queries go in /src/repositories/
    - Never import from a sibling module's internals
    ```
  </Tab>

  <Tab title="Git Conventions">
    ```
    Git Rules:
    - Use conventional commit messages (feat:, fix:, refactor:)
    - One logical change per commit
    - Never commit .env files or secrets
    ```
  </Tab>
</Tabs>

## Enable/Disable Toggle

Each snippet has an independent toggle. This lets you:

* Temporarily disable a rule without deleting it
* Keep a library of snippets and activate only the relevant ones
* A/B test different instructions across task runs

<Info>Snippets are different from [CLAUDE.md](/configuration/claude-md). Snippets are managed in the UI and injected by Claude Board. CLAUDE.md is a file in your repo that Claude reads directly.</Info>

## Managing Snippets

Create, edit, and delete snippets via project settings or the [Snippets API](/api/snippets).
