# Use with AI

> Give coding assistants the current Laravel Access Control docs: the Laravel Boost skill, llms.txt, Markdown copies of every page, GitMCP and Context7.

Laravel Access Control 1.0 changed most of its API: controls linked by discovery, levels, boundaries, search keys. A coding assistant that learned from code written for an earlier version can write controls that no longer work. The sources on this page give it the current documentation.

## Laravel Boost skill

The package ships a skill for [Laravel Boost](https://laravel.com/docs/boost): a `SKILL.md` file that a coding agent loads when it works on your controls, perimeters, policies or controlled searches.

### Installing the skill

The skill is named `laravel-access-control`. It lives in the package at `resources/boost/skills/laravel-access-control/SKILL.md`, so Laravel Boost finds it in `vendor/lomkit/laravel-access-control` once both packages are installed:

```bash
composer require laravel/boost --dev
php artisan boost:install
```

Select the skill during the installation. After an update of the package, run `php artisan boost:update` so that the agent reads the skill of the installed version. See the [Laravel Boost documentation](https://laravel.com/docs/boost) for its commands and for replacing a package skill with your own.

### What the skill covers

The skill applies when a task touches a policy that should be centralized, row-level filtering of Eloquent queries, a child model with the access of its parent, the `make:control`, `make:perimeter` and `access:*` commands, or the classes of the `Lomkit\Access\` namespace. It describes:

- controls, their discovery and `#[ControlledBy]`, and the `Access` facade;
- perimeters, their callbacks and hooks, levels, boundaries and `ThroughParent`;
- the policies, their refusal codes, drafts and business abilities;
- the controlled queries and the batched decisions;
- the Laravel Scout search: search keys, engines, freshness, browser tokens and an index of your own;
- the laravel-rest-api extension, `access:check` and the test assertions;
- the pitfalls to flag when reviewing or writing code.

## llms.txt and Markdown pages

The site publishes its pages in formats that assistants read directly:

<table>
<thead>
  <tr>
    <th>
      URL
    </th>
    
    <th>
      Content
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="https://laravel-access-control.lomkit.com/llms.txt" rel="nofollow">
        <code>
          /llms.txt
        </code>
      </a>
    </td>
    
    <td>
      The list of every page, with a description and a link to its Markdown copy
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://laravel-access-control.lomkit.com/llms-full.txt" rel="nofollow">
        <code>
          /llms-full.txt
        </code>
      </a>
    </td>
    
    <td>
      Every page in one Markdown file
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /raw/<page>.md
      </code>
    </td>
    
    <td>
      The Markdown copy of one page, such as <a href="https://laravel-access-control.lomkit.com/raw/essentials/perimeters.md" rel="nofollow">
        <code>
          /raw/essentials/perimeters.md
        </code>
      </a>
    </td>
  </tr>
</tbody>
</table>

Both files cover 1.x only. Give an assistant `llms.txt` and let it open the pages it needs, or give it `llms-full.txt` when it can read a long file.

The **Copy page** button at the top of each page copies its Markdown. Its menu copies the link to the Markdown copy, opens it, or opens ChatGPT or Claude with a prompt that points to it.

## GitMCP

[GitMCP](https://gitmcp.io) serves a GitHub project as a remote MCP server. Its address for this site, `https://lomkit.gitmcp.io/laravel-access-control-doc`, reads the `llms.txt` of the site, and its tools let the assistant search the docs and fetch the Markdown copy of any page. Add the server to your assistant:

<code-group>

```bash [Claude Code]
claude mcp add --transport http laravel-access-control https://lomkit.gitmcp.io/laravel-access-control-doc
```

```json [Cursor: .cursor/mcp.json]
{
  "mcpServers": {
    "laravel-access-control": {
      "url": "https://lomkit.gitmcp.io/laravel-access-control-doc"
    }
  }
}
```

```json [VS Code: .vscode/mcp.json]
{
  "servers": {
    "laravel-access-control": {
      "type": "http",
      "url": "https://lomkit.gitmcp.io/laravel-access-control-doc"
    }
  }
}
```

</code-group>

## Context7

[Context7](https://context7.com) indexes the documentation of libraries and serves it to coding assistants through its MCP server and its `ctx7` command. Laravel Access Control is listed as [`/lomkit/laravel-access-control-doc`](https://context7.com/lomkit/laravel-access-control-doc), which indexes the 1.x pages of this site. Set it up with `npx ctx7 setup`, then name the library in your prompt:

```txt
Show only their own posts to authors, and every post of their client to managers. use library /lomkit/laravel-access-control-doc
```

<style>

html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}

</style>

---

- [Laravel Boost](https://laravel.com/docs/boost)
