Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Bt Permissions Docs Maintenance
Bt Permissions Docs Maintenance
beartropy/permissions
claude-code
laravel
roles
permissions
spatie
livewire
beartropy
Install
php artisan boost:add-skill beartropy/permissions

Save this content to: .claude/skills/bt-permissions-docs-maintenance/SKILL.md

---
package: beartropy/permissions
source_path: .claude/skills/bt-permissions-docs-maintenance/SKILL.md
repo: https://github.com/beartropy/permissions
---

---
name: bt-permissions-docs-maintenance
description: Update documentation and AI integrations when adding or modifying Beartropy Permissions components
version: 1.0.0
author: Beartropy
tags: [beartropy, permissions, docs, maintenance, internal, mcp, skills]
---

# Beartropy Permissions Docs & Integrations Maintenance

You are maintaining the Beartropy Permissions documentation and AI integration layer. Component knowledge is exposed through **two independent channels** that must stay in sync:

| Channel | Mechanism | Audience |
|---|---|---|
| **Skills** (`beartropy:skills`) | Artisan command discovers `docs/llms/*.md` and generates a component skill | AI agents with skill files installed |
| **MCP** (Laravel Boost) | MCP tools auto-registered when Boost is present — agents call them on demand | AI agents connected to the app's Boost MCP server |

---

## File Locations

```
docs/
├── llms/{name}.md          <- LLM reference (architecture, props, events, integration)
└── components/{name}.md    <- User reference (usage examples, prop table, config)

src/
├── Mcp/Tools/
│   ├── ComponentDocs.php   <- Reads docs/llms + docs/components dynamically
│   └── ListComponents.php  <- Hardcoded CATEGORIES const
└── PermissionsServiceProvider.php  <- Registers tools with Laravel Boost
```

---

## When Adding a New Component

### 1. Create both doc files

**`docs/llms/{name}.md`** — Use the template in `docs/llms/_template.md`

**`docs/components/{name}.md`** — Use the template in `docs/components/_template.md`

Use existing doc files as reference — pick a component with similar complexity.

### 2. Update MCP category map

Edit `src/Mcp/Tools/ListComponents.php` and add the component name to the appropriate category in the `CATEGORIES` constant. Categories are:

- `manager` — Top-level manager components
- `tables` — Table components (extend BeartropyTable)
- `modals` — Modal components for create/edit/assign

Keep each list in **alphabetical order**.

### 3. Skills — no code change needed

`InstallSkills::buildComponentSkill()` auto-discovers all `docs/llms/*.md` files via glob. Creating the LLM doc file is sufficient.

### 4. Checklist

- [ ] `docs/llms/{name}.md` created
- [ ] `docs/components/{name}.md` created
- [ ] `src/Mcp/Tools/ListComponents.php` — component added to `CATEGORIES`
- [ ] `vendor/bin/pest` — all integrity tests pass

---

## When Modifying an Existing Component

1. Update `docs/llms/{name}.md` — keep props table, architecture section, and examples accurate
2. Update `docs/components/{name}.md` — update the user-facing prop table and examples
3. No other code changes needed (MCP reads files dynamically, skills regenerate on next install)

---

## When Removing a Component

1. Delete `docs/llms/{name}.md`
2. Delete `docs/components/{name}.md`
3. Remove from `CATEGORIES` in `src/Mcp/Tools/ListComponents.php`

---

## Component Names

Components use the Livewire tag format without the package prefix:

| Livewire Tag | Doc Filename |
|---|---|
| `beartropy-permissions::permissions-manager` | `permissions-manager.md` |
| `beartropy-permissions::roles-table` | `roles-table.md` |
| `beartropy-permissions::permissions-table` | `permissions-table.md` |
| `beartropy-permissions::users-table` | `users-table.md` |
| `beartropy-permissions::role-modal` | `role-modal.md` |
| `beartropy-permissions::permission-modal` | `permission-modal.md` |
| `beartropy-permissions::role-permissions-modal` | `role-permissions-modal.md` |
| `beartropy-permissions::user-assignments-modal` | `user-assignments-modal.md` |

---

## Quick Reference

| Action | docs/llms | docs/components | ListComponents::CATEGORIES | InstallSkills | ComponentDocs |
|---|---|---|---|---|---|
| Add component | Create | Create | Add entry | Auto (glob) | Auto (file read) |
| Modify component | Update | Update | No change | Auto (glob) | Auto (file read) |
| Remove component | Delete | Delete | Remove entry | Auto (glob) | Auto (file read) |

package: beartropy/permissions source_path: .claude/skills/bt-permissions-docs-maintenance/SKILL.md repo: https://github.com/beartropy/permissions


name: bt-permissions-docs-maintenance description: Update documentation and AI integrations when adding or modifying Beartropy Permissions components version: 1.0.0 author: Beartropy tags: [beartropy, permissions, docs, maintenance, internal, mcp, skills]

Beartropy Permissions Docs & Integrations Maintenance

You are maintaining the Beartropy Permissions documentation and AI integration layer. Component knowledge is exposed through two independent channels that must stay in sync:

Channel Mechanism Audience
Skills (beartropy:skills) Artisan command discovers docs/llms/*.md and generates a component skill AI agents with skill files installed
MCP (Laravel Boost) MCP tools auto-registered when Boost is present — agents call them on demand AI agents connected to the app's Boost MCP server

File Locations

docs/
├── llms/{name}.md          <- LLM reference (architecture, props, events, integration)
└── components/{name}.md    <- User reference (usage examples, prop table, config)

src/
├── Mcp/Tools/
│   ├── ComponentDocs.php   <- Reads docs/llms + docs/components dynamically
│   └── ListComponents.php  <- Hardcoded CATEGORIES const
└── PermissionsServiceProvider.php  <- Registers tools with Laravel Boost

When Adding a New Component

1. Create both doc files

docs/llms/{name}.md — Use the template in docs/llms/_template.md

docs/components/{name}.md — Use the template in docs/components/_template.md

Use existing doc files as reference — pick a component with similar complexity.

2. Update MCP category map

Edit src/Mcp/Tools/ListComponents.php and add the component name to the appropriate category in the CATEGORIES constant. Categories are:

  • manager — Top-level manager components
  • tables — Table components (extend BeartropyTable)
  • modals — Modal components for create/edit/assign

Keep each list in alphabetical order.

3. Skills — no code change needed

InstallSkills::buildComponentSkill() auto-discovers all docs/llms/*.md files via glob. Creating the LLM doc file is sufficient.

4. Checklist

  • docs/llms/{name}.md created
  • docs/components/{name}.md created
  • src/Mcp/Tools/ListComponents.php — component added to CATEGORIES
  • vendor/bin/pest — all integrity tests pass

When Modifying an Existing Component

  1. Update docs/llms/{name}.md — keep props table, architecture section, and examples accurate
  2. Update docs/components/{name}.md — update the user-facing prop table and examples
  3. No other code changes needed (MCP reads files dynamically, skills regenerate on next install)

When Removing a Component

  1. Delete docs/llms/{name}.md
  2. Delete docs/components/{name}.md
  3. Remove from CATEGORIES in src/Mcp/Tools/ListComponents.php

Component Names

Components use the Livewire tag format without the package prefix:

Livewire Tag Doc Filename
beartropy-permissions::permissions-manager permissions-manager.md
beartropy-permissions::roles-table roles-table.md
beartropy-permissions::permissions-table permissions-table.md
beartropy-permissions::users-table users-table.md
beartropy-permissions::role-modal role-modal.md
beartropy-permissions::permission-modal permission-modal.md
beartropy-permissions::role-permissions-modal role-permissions-modal.md
beartropy-permissions::user-assignments-modal user-assignments-modal.md

Quick Reference

Action docs/llms docs/components ListComponents::CATEGORIES InstallSkills ComponentDocs
Add component Create Create Add entry Auto (glob) Auto (file read)
Modify component Update Update No change Auto (glob) Auto (file read)
Remove component Delete Delete Remove entry Auto (glob) Auto (file read)
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui