# AI Integration

**Package:** CommonMark Routes | **Version:** 1 | **URL:** https://mozex.dev/docs/commonmark-routes/v1/ai-integration

---

<div class="ai-hero">
  <div class="ai-hero-grid"></div>
  <div class="ai-hero-glow"></div>
  <svg class="ai-hero-network" viewBox="0 0 500 160">
    <!-- connections -->
    <line x1="60" y1="28" x2="100" y2="76" class="ai-line" style="animation-delay:0s"/>
    <line x1="100" y1="76" x2="175" y2="38" class="ai-line" style="animation-delay:0.3s"/>
    <line x1="175" y1="38" x2="250" y2="72" class="ai-line" style="animation-delay:0.6s"/>
    <line x1="250" y1="72" x2="275" y2="24" class="ai-line" style="animation-delay:0.15s"/>
    <line x1="250" y1="72" x2="360" y2="40" class="ai-line" style="animation-delay:0.9s"/>
    <line x1="275" y1="24" x2="360" y2="40" class="ai-line" style="animation-delay:0.45s"/>
    <line x1="360" y1="40" x2="440" y2="76" class="ai-line" style="animation-delay:1.2s"/>
    <line x1="40" y1="116" x2="100" y2="76" class="ai-line" style="animation-delay:0.75s"/>
    <line x1="100" y1="76" x2="175" y2="130" class="ai-line" style="animation-delay:1.05s"/>
    <line x1="175" y1="130" x2="250" y2="72" class="ai-line" style="animation-delay:0.5s"/>
    <line x1="250" y1="72" x2="300" y2="132" class="ai-line" style="animation-delay:0.2s"/>
    <line x1="300" y1="132" x2="440" y2="76" class="ai-line" style="animation-delay:0.85s"/>
    <line x1="360" y1="40" x2="300" y2="132" class="ai-line" style="animation-delay:1.1s"/>
    <line x1="40" y1="116" x2="175" y2="130" class="ai-line" style="animation-delay:0.4s"/>
    <line x1="440" y1="76" x2="460" y2="130" class="ai-line" style="animation-delay:0.65s"/>
    <!-- small nodes -->
    <circle cx="60" cy="28" r="2.5" class="ai-node" style="animation-delay:0s"/>
    <circle cx="175" cy="38" r="2.5" class="ai-node" style="animation-delay:1.4s"/>
    <circle cx="275" cy="24" r="2.5" class="ai-node" style="animation-delay:0.7s"/>
    <circle cx="40" cy="116" r="2.5" class="ai-node" style="animation-delay:0.3s"/>
    <circle cx="175" cy="130" r="2.5" class="ai-node" style="animation-delay:1.8s"/>
    <circle cx="460" cy="130" r="2.5" class="ai-node" style="animation-delay:0.5s"/>
    <!-- large nodes (hubs) -->
    <circle cx="100" cy="76" r="4" class="ai-node-lg" style="animation-delay:0.2s"/>
    <circle cx="250" cy="72" r="4" class="ai-node-lg" style="animation-delay:1s"/>
    <circle cx="360" cy="40" r="4" class="ai-node-lg" style="animation-delay:1.2s"/>
    <circle cx="300" cy="132" r="4" class="ai-node-lg" style="animation-delay:0.8s"/>
    <circle cx="440" cy="76" r="4" class="ai-node-lg" style="animation-delay:0.6s"/>
  </svg>
  <div class="ai-hero-content">
    <span class="ai-hero-badge">AI-Ready Documentation</span>
    <p class="ai-hero-text">Your AI coding assistant can read this documentation directly. No copy-pasting, no stale answers.</p>
  </div>
</div>

CommonMark Routes works with the AI tools you already use. Whether you're coding with Claude Code, GitHub Copilot, Cursor, or Windsurf, you can pull in accurate, up-to-date documentation for this package without leaving your editor.

## Laravel Boost

This package ships with built-in support for [Laravel Boost](https://laravel.com/docs/boost), Laravel's AI development companion. When Boost is installed in your project, it automatically detects and loads the AI capabilities that CommonMark Routes provides.

CommonMark Routes provides a dedicated agent skill for Laravel Boost. Unlike guidelines (which are loaded upfront), skills activate on demand when your agent works on a task related to this package. This keeps your agent's context focused and avoids loading information it doesn't need yet.

## Context7

This package is indexed on [Context7](https://context7.com), which gives AI coding assistants direct access to current documentation and code examples. Instead of relying on training data that might be outdated, your AI agent fetches the latest docs on the fly.

To use it, just add `use context7` to your prompt:

```text
How do I install and configure mozex/commonmark-routes? use context7
```

Your AI assistant picks up the `use context7` instruction, looks up this package, and pulls in the relevant documentation before generating its response. No manual copy-pasting, no stale examples.

| | |
|---|---|
| **Library ID** | `/mozex/commonmark-routes` |
| **Explore docs** | [context7.com/mozex/commonmark-routes](https://context7.com/mozex/commonmark-routes) |

### Getting Started with Context7

The quickest way to set up Context7 is to run the setup command and follow the prompts:

```bash
npx ctx7 setup
```

This handles authentication, generates an API key, and configures your editor automatically. You can target a specific editor with `--cursor`, `--claude`, or `--opencode`.

Context7 works in two modes: as an **MCP server** (native tool integration for editors that support MCP) or as a **CLI tool** (works with any agent through a skill file). The setup command picks the right one for your editor.

For manual configuration or other editors, see the [full installation guide](https://github.com/upstash/context7#installation).

---

## Table of Contents

- [Quick Start](https://mozex.dev/docs/commonmark-routes/v1)
- [AI Integration](https://mozex.dev/docs/commonmark-routes/v1/ai-integration)
- [Support Us](https://mozex.dev/docs/commonmark-routes/v1/support-us)
- [Requirements](https://mozex.dev/docs/commonmark-routes/v1/requirements)
- [Changelog](https://mozex.dev/docs/commonmark-routes/v1/changelog)
- [Contributing](https://mozex.dev/docs/commonmark-routes/v1/contributing)
- [Questions & Issues](https://mozex.dev/docs/commonmark-routes/v1/questions-and-issues)
- [About Mozex](https://mozex.dev/docs/commonmark-routes/v1/about)