RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Copilot instructions/koel/koel

Copilot instructions

.github/copilot-instructions.md
Copilot instructions

Quality

90/100

Scores the file, not the repository.

Length

2,068 words

44 headings · 0 code blocks

Repository

17k

— · pushed 2 days ago

Last changed

3 days ago

First indexed 3 days ago.
koel/koel/.github/copilot-instructions.mdRawGitHub
1<laravel-boost-guidelines>
2=== foundation rules ===
3 
4# Laravel Boost Guidelines
5 
6The Laravel Boost guidelines are specifically curated by Laravel maintainers for this application. These guidelines should be followed closely to enhance the user's satisfaction building Laravel applications.
7 
8## Foundational Context
9This application is a Laravel application and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure you abide by these specific packages & versions.
10 
11- php - 8.4.20
12- laravel/framework (LARAVEL) - v12
13- laravel/nightwatch (NIGHTWATCH) - v1
14- laravel/prompts (PROMPTS) - v0
15- laravel/sanctum (SANCTUM) - v4
16- laravel/scout (SCOUT) - v10
17- laravel/socialite (SOCIALITE) - v5
18- larastan/larastan (LARASTAN) - v3
19- laravel/mcp (MCP) - v0
20- phpunit/phpunit (PHPUNIT) - v11
21- vue (VUE) - v3
22- laravel-echo (ECHO) - v2
23- tailwindcss (TAILWINDCSS) - v4
24 
25## Conventions
26- You must follow all existing code conventions used in this application. When creating or editing a file, check sibling files for the correct structure, approach, and naming.
27- Use descriptive names for variables and methods. For example, `isRegisteredForDiscounts`, not `discount()`.
28- Check for existing components to reuse before writing a new one.
29 
30## Verification Scripts
31- Do not create verification scripts or tinker when tests cover that functionality and prove it works. Unit and feature tests are more important.
32 
33## Application Structure & Architecture
34- Stick to existing directory structure; don't create new base folders without approval.
35- Do not change the application's dependencies without approval.
36 
37## Frontend Bundling
38- If the user doesn't see a frontend change reflected in the UI, it could mean they need to run `pnpm run build`, `pnpm run dev`, or `composer run dev`. Ask them.
39 
40## Replies
41- Be concise in your explanations - focus on what's important rather than explaining obvious details.
42 
43## Documentation Files
44- You must only create documentation files if explicitly requested by the user.
45 
46=== boost rules ===
47 
48## Laravel Boost
49- Laravel Boost is an MCP server that comes with powerful tools designed specifically for this application. Use them.
50 
51## Artisan
52- Use the `list-artisan-commands` tool when you need to call an Artisan command to double-check the available parameters.
53 
54## URLs
55- Whenever you share a project URL with the user, you should use the `get-absolute-url` tool to ensure you're using the correct scheme, domain/IP, and port.
56 
57## Tinker / Debugging
58- You should use the `tinker` tool when you need to execute PHP to debug code or query Eloquent models directly.
59- Use the `database-query` tool when you only need to read from the database.
60 
61## Reading Browser Logs With the `browser-logs` Tool
62- You can read browser logs, errors, and exceptions using the `browser-logs` tool from Boost.
63- Only recent browser logs will be useful - ignore old logs.
64 
65## Searching Documentation (Critically Important)
66- Boost comes with a powerful `search-docs` tool you should use before any other approaches when dealing with Laravel or Laravel ecosystem packages. This tool automatically passes a list of installed packages and their versions to the remote Boost API, so it returns only version-specific documentation for the user's circumstance. You should pass an array of packages to filter on if you know you need docs for particular packages.
67- The `search-docs` tool is perfect for all Laravel-related packages, including Laravel, Inertia, Livewire, Filament, Tailwind, Pest, Nova, Nightwatch, etc.
68- You must use this tool to search for Laravel ecosystem documentation before falling back to other approaches.
69- Search the documentation before making code changes to ensure we are taking the correct approach.
70- Use multiple, broad, simple, topic-based queries to start. For example: `['rate limiting', 'routing rate limiting', 'routing']`.
71- Do not add package names to queries; package information is already shared. For example, use `test resource table`, not `filament 4 test resource table`.
72 
73### Available Search Syntax
74- You can and should pass multiple queries at once. The most relevant results will be returned first.
75 
761. Simple Word Searches with auto-stemming - query=authentication - finds 'authenticate' and 'auth'.
772. Multiple Words (AND Logic) - query=rate limit - finds knowledge containing both "rate" AND "limit".
783. Quoted Phrases (Exact Position) - query="infinite scroll" - words must be adjacent and in that order.
794. Mixed Queries - query=middleware "rate limit" - "middleware" AND exact phrase "rate limit".
805. Multiple Queries - queries=["authentication", "middleware"] - ANY of these terms.
81 
82=== php rules ===
83 
84## PHP
85 
86- Always use curly braces for control structures, even if it has one line.
87 
88### Constructors
89- Use PHP 8 constructor property promotion in `__construct()`.
90 - <code-snippet>public function __construct(public GitHub $github) { }</code-snippet>
91- Do not allow empty `__construct()` methods with zero parameters unless the constructor is private.
92 
93### Type Declarations
94- Always use explicit return type declarations for methods and functions.
95- Use appropriate PHP type hints for method parameters.
96 
97<code-snippet name="Explicit Return Types and Method Params" lang="php">
98protected function isAccessible(User $user, ?string $path = null): bool
99{
100 ...
101}
102</code-snippet>
103 
104## Comments
105- Prefer PHPDoc blocks over inline comments. Never use comments within the code itself unless there is something very complex going on.
106 
107## PHPDoc Blocks
108- Add useful array shape type definitions for arrays when appropriate.
109 
110## Enums
111- Typically, keys in an Enum should be TitleCase. For example: `FavoritePerson`, `BestLake`, `Monthly`.
112 
113=== tests rules ===
114 
115## Test Enforcement
116 
117- Every change must be programmatically tested. Write a new test or update an existing test, then run the affected tests to make sure they pass.
118- Run the minimum number of tests needed to ensure code quality and speed. Use `php artisan test --compact` with a specific filename or filter.
119 
120=== laravel/core rules ===
121 
122## Do Things the Laravel Way
123 
124- Use `php artisan make:` commands to create new files (i.e. migrations, controllers, models, etc.). You can list available Artisan commands using the `list-artisan-commands` tool.
125- If you're creating a generic PHP class, use `php artisan make:class`.
126- Pass `--no-interaction` to all Artisan commands to ensure they work without user input. You should also pass the correct `--options` to ensure correct behavior.
127 
128### Database
129- Always use proper Eloquent relationship methods with return type hints. Prefer relationship methods over raw queries or manual joins.
130- Use Eloquent models and relationships before suggesting raw database queries.
131- Avoid `DB::`; prefer `Model::query()`. Generate code that leverages Laravel's ORM capabilities rather than bypassing them.
132- Generate code that prevents N+1 query problems by using eager loading.
133- Use Laravel's query builder for very complex database operations.
134 
135### Model Creation
136- When creating new models, create useful factories and seeders for them too. Ask the user if they need any other things, using `list-artisan-commands` to check the available options to `php artisan make:model`.
137 
138### APIs & Eloquent Resources
139- For APIs, default to using Eloquent API Resources and API versioning unless existing API routes do not, then you should follow existing application convention.
140 
141### Controllers & Validation
142- Always create Form Request classes for validation rather than inline validation in controllers. Include both validation rules and custom error messages.
143- Check sibling Form Requests to see if the application uses array or string based validation rules.
144 
145### Queues
146- Use queued jobs for time-consuming operations with the `ShouldQueue` interface.
147 
148### Authentication & Authorization
149- Use Laravel's built-in authentication and authorization features (gates, policies, Sanctum, etc.).
150 
151### URL Generation
152- When generating links to other pages, prefer named routes and the `route()` function.
153 
154### Configuration
155- Use environment variables only in configuration files - never use the `env()` function directly outside of config files. Always use `config('app.name')`, not `env('APP_NAME')`.
156 
157### Testing
158- When creating models for tests, use the factories for the models. Check if the factory has custom states that can be used before manually setting up the model.
159- Faker: Use methods such as `$this->faker->word()` or `fake()->randomDigit()`. Follow existing conventions whether to use `$this->faker` or `fake()`.
160- When creating tests, make use of `php artisan make:test [options] {name}` to create a feature test, and pass `--unit` to create a unit test. Most tests should be feature tests.
161 
162### Vite Error
163- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `pnpm run build` or ask the user to run `pnpm run dev` or `composer run dev`.
164 
165=== laravel/v12 rules ===
166 
167## Laravel 12
168 
169- Use the `search-docs` tool to get version-specific documentation.
170- Since Laravel 11, Laravel has a new streamlined file structure which this project uses.
171 
172### Laravel 12 Structure
173- In Laravel 12, middleware are no longer registered in `app/Http/Kernel.php`.
174- Middleware are configured declaratively in `bootstrap/app.php` using `Application::configure()->withMiddleware()`.
175- `bootstrap/app.php` is the file to register middleware, exceptions, and routing files.
176- `bootstrap/providers.php` contains application specific service providers.
177- The `app\Console\Kernel.php` file no longer exists; use `bootstrap/app.php` or `routes/console.php` for console configuration.
178- Console commands in `app/Console/Commands/` are automatically available and do not require manual registration.
179 
180### Database
181- When modifying a column, the migration must include all of the attributes that were previously defined on the column. Otherwise, they will be dropped and lost.
182- Laravel 12 allows limiting eagerly loaded records natively, without external packages: `$query->latest()->limit(10);`.
183 
184### Models
185- Casts can and likely should be set in a `casts()` method on a model rather than the `$casts` property. Follow existing conventions from other models.
186 
187=== phpunit/core rules ===
188 
189## PHPUnit
190 
191- This application uses PHPUnit for testing. All tests must be written as PHPUnit classes. Use `php artisan make:test --phpunit {name}` to create a new test.
192- If you see a test using "Pest", convert it to PHPUnit.
193- Every time a test has been updated, run that singular test.
194- When the tests relating to your feature are passing, ask the user if they would like to also run the entire test suite to make sure everything is still passing.
195- Tests should test all of the happy paths, failure paths, and weird paths.
196- You must not remove any tests or test files from the tests directory without approval. These are not temporary or helper files; these are core to the application.
197 
198### Running Tests
199- Run the minimal number of tests, using an appropriate filter, before finalizing.
200- To run all tests: `php artisan test --compact`.
201- To run all tests in a file: `php artisan test --compact tests/Feature/ExampleTest.php`.
202- To filter on a particular test name: `php artisan test --compact --filter=testName` (recommended after making a change to a related file).
203 
204=== tailwindcss/core rules ===
205 
206## Tailwind CSS
207 
208- Use Tailwind CSS classes to style HTML; check and use existing Tailwind conventions within the project before writing your own.
209- Offer to extract repeated patterns into components that match the project's conventions (i.e. Blade, JSX, Vue, etc.).
210- Think through class placement, order, priority, and defaults. Remove redundant classes, add classes to parent or child carefully to limit repetition, and group elements logically.
211- You can use the `search-docs` tool to get exact examples from the official documentation when needed.
212 
213### Spacing
214- When listing items, use gap utilities for spacing; don't use margins.
215 
216<code-snippet name="Valid Flex Gap Spacing Example" lang="html">
217 <div class="flex gap-8">
218 <div>Superior</div>
219 <div>Michigan</div>
220 <div>Erie</div>
221 </div>
222</code-snippet>
223 
224### Dark Mode
225- If existing pages and components support dark mode, new pages and components must support dark mode in a similar way, typically using `dark:`.
226 
227=== tailwindcss/v4 rules ===
228 
229## Tailwind CSS 4
230 
231- Always use Tailwind CSS v4; do not use the deprecated utilities.
232- `corePlugins` is not supported in Tailwind v4.
233- In Tailwind v4, configuration is CSS-first using the `@theme` directive — no separate `tailwind.config.js` file is needed.
234 
235<code-snippet name="Extending Theme in CSS" lang="css">
236@theme {
237 --color-brand: oklch(0.72 0.11 178);
238}
239</code-snippet>
240 
241- In Tailwind v4, you import Tailwind using a regular CSS `@import` statement, not using the `@tailwind` directives used in v3:
242 
243<code-snippet name="Tailwind v4 Import Tailwind Diff" lang="diff">
244 - @tailwind base;
245 - @tailwind components;
246 - @tailwind utilities;
247 + @import "tailwindcss";
248</code-snippet>
249 
250### Replaced Utilities
251- Tailwind v4 removed deprecated utilities. Do not use the deprecated option; use the replacement.
252- Opacity values are still numeric.
253 
254| Deprecated | Replacement |
255|------------+--------------|
256| bg-opacity-* | bg-black/* |
257| text-opacity-* | text-black/* |
258| border-opacity-* | border-black/* |
259| divide-opacity-* | divide-black/* |
260| ring-opacity-* | ring-black/* |
261| placeholder-opacity-* | placeholder-black/* |
262| flex-shrink-* | shrink-* |
263| flex-grow-* | grow-* |
264| overflow-ellipsis | text-ellipsis |
265| decoration-slice | box-decoration-slice |
266| decoration-clone | box-decoration-clone |
267</laravel-boost-guidelines>
268 

Commands it names

  • pnpm run build
  • pnpm run dev
  • composer run dev
  • php artisan test --compact
  • php artisan make:
  • php artisan make:class
  • php artisan make:model
  • php artisan make:test [options] {name}
  • php artisan make:test --phpunit {name}
  • php artisan test --compact tests/Feature/ExampleTest.php
  • php artisan test --compact --filter=testName

Sections

  • Laravel Boost Guidelines
  • Foundational Context
  • Conventions
  • Verification Scripts
  • Application Structure & Architecture
  • Frontend Bundling
  • Replies
  • Documentation Files
  • Laravel Boost
  • Artisan
  • URLs
  • Tinker / Debugging
  • Reading Browser Logs With the `browser-logs` Tool
  • Searching Documentation (Critically Important)
  • Available Search Syntax
  • PHP
  • Constructors
  • Type Declarations
  • Comments
  • PHPDoc Blocks
  • Enums
  • Test Enforcement
  • Do Things the Laravel Way
  • Database
  • Model Creation
  • APIs & Eloquent Resources
  • Controllers & Validation
  • Queues
  • Authentication & Authorization
  • URL Generation
  • Configuration
  • Testing
  • Vite Error
  • Laravel 12
  • Laravel 12 Structure
  • Database
  • Models
  • PHPUnit
  • Running Tests
  • Tailwind CSS
  • Spacing
  • Dark Mode
  • Tailwind CSS 4
  • Replaced Utilities

What it covers

buildtestlint-formatcode-stylearchitecturetypessecuritydatabaseuido-notdocs

Stack — with the evidence

php

(1.00)

vue

(1.00)

laravel

(1.00)

tailwind

(1.00)

vite

(1.00)

pnpm

(0.85)

vitest

(0.70)

typescript

(0.60)

javascript

(0.60)

github-actions

(0.60)

Format

Copilot instructions

Two layers: one always-on repo file, plus optional glob-scoped instruction files. Lives under .github/ rather than the repo root, which is the tell that it is aimed at the GitHub platform surface as much as the editor.

What the corpus says about it

Repository

Owner
koel
Language
—
License
—
Archived
no

All configs in this repo

Also in koel/koel

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
koel/koel.cursor/rules/laravel-boost.mdc · 17kCursor rulesphpvue+8buildtestlint-formatstyle+790/1003 days ago
koel/koelAGENTS.md · 17kAGENTS.mdphpvue+8setupbuildtestlint-format+1078/1003 days ago
Diff against .cursor/rules/laravel-boost.mdc Diff against AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
louislam/uptime-kuma.github/copilot-instructions.md · 90kCopilot instructionstypescriptjavascript+10setupbuildtestlint-format+9100/1003 days ago
bagisto/bagisto.github/copilot-instructions.md · 28kCopilot instructionsphplaravel+8setupbuildteststyle+597/1003 days ago
nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32Copilot instructionstypescriptnode+8setupbuildtestlint-format+1196/1003 days ago
photoprism/photoprism.github/copilot-instructions.md · 40kCopilot instructionsgoeslint+7buildtestlint-formatstyle+590/1002 days ago
photoprism/photoprism.github/instructions/backend.instructions.md · 40kCopilot instructionsgoeslint+7testlint-formatstyletypes+483/1002 days ago
groupultra/telegram-search.github/copilot-instructions.md · 4.0kCopilot instructionstypescriptdrizzle+11teststyleagent-behaviour76/1003 days ago
photoprism/photoprism.github/instructions/frontend.instructions.md · 40kCopilot instructionsgoeslint+7testlint-formatstyleagent-behaviour76/1002 days ago
vitejs/vite.github/copilot-instructions.md · 82kCopilot instructionstypescriptvite+12buildteststylearch+274/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack