agentleFS
syofyanzuhadsyofyanzuhad/uptime-kita/CLAUDE.md

uptime-kita

CLAUDE.md184 starsChanged 2 months agoApache-2.0View on GitHub

The Laravel Boost guidelines are specifically curated by Laravel maintainers for this application. These guidelines should be followed closely to ensure the best experience when building Laravel applications. This application is a Laravel application running on PHP 8.4. You are an expert with the Laravel ecosystem. Always use the APIs that match the installed major version of each package — do not assume a version. Before relying on a package's API, confirm its installed version: - PHP packages: run composer…

We split this CLAUDE.md into the rules it gives an agent

38 rules. About 0 are common, 14 are distinctive, and 24 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 24

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before relying on a package's API, confirm its installed version:

    line 12
  2. Very specific:

    Use descriptive names for variables and methods.

    line 23
  3. Distinctive:

    Check for existing components to reuse before writing a new one.

    line 24
  4. Distinctive:

    Do not create verification scripts or tinker when tests cover that functionality and prove they work.

    line 28
  5. Distinctive:

    Do not change the application's dependencies without approval.

    line 33
  6. Very specific:

    If the user doesn't see a frontend change reflected in the UI, it could mean they need to run npm run build, npm run dev, or composer run …

    line 37
  7. Very specific:

    Run Artisan commands directly via the command line (e.g., php artisan route:list).

    line 57
  8. Very specific:

    Read configuration values using dot notation: php artisan config:show app.name, php artisan config:show database.default.

    line 59
  9. Very specific:

    Always use single quotes to prevent shell expansion: php artisan tinker --execute 'Your::code();'

    line 64
  10. Distinctive:

    Always use curly braces for control structures, even for single-line bodies.

    line 71
  11. Very specific:

    Use PHP 8 constructor property promotion: public function __construct(public GitHub $github) { }.

    line 72
  12. Very specific:

    Use explicit return type declarations and type hints for all method parameters: function isAccessible(User $user, ?string $path = null): …

    line 73
  13. Very specific:

    Use TitleCase for Enum keys: FavoritePerson, BestLake, Monthly.

    line 74
  14. Distinctive:

    Prefer PHPDoc blocks over inline comments.

    line 75
  15. Distinctive:

    Use array shape type definitions in PHPDoc blocks.

    line 76
  16. Distinctive:

    Test every code change by adding or updating a test.

    line 88
  17. Distinctive:

    Run the affected tests and ensure they pass.

    line 89
  18. Distinctive:

    Test the changed behavior and its important failure modes, but do not add tests beyond them.

    line 90
  19. Very specific:

    Read the testing-best-practices skill before writing tests.

    line 91
  20. Very specific:

    ALWAYS use search-docs tool for version-specific Inertia documentation and updated code examples.

    line 99
  21. Distinctive:

    Use all Inertia features from v1 and v2.

    line 104
  22. Distinctive:

    When using deferred props, add an empty state with a pulsing or animated skeleton.

    line 106
  23. Very specific:

    Use php artisan make: commands to create new files (i.e.

    line 112
  24. Very specific:

    If you're creating a generic PHP class, use php artisan make:class.

    line 113
  25. Very specific:

    When creating new models, create useful factories and seeders for them too.

    line 118
  26. Very specific:

    When generating links to other pages, prefer named routes and the route() function.

    line 126
  27. Distinctive:

    When creating models for tests, use the factories for the models.

    line 130
  28. Very specific:

    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.

    line 132
  29. Very specific:

    If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run npm run build or ask the …

    line 136
  30. Very specific:

    Use Wayfinder to generate TypeScript functions for Laravel routes.

    line 142
  31. Very specific:

    If you have modified any PHP files, you must run vendor/bin/pint --dirty --format agent before finalizing changes to ensure your code …

    line 148
  32. Very specific:

    Do not run vendor/bin/pint --test --format agent, simply run vendor/bin/pint --format agent to fix any formatting issues.

    line 149
  33. Very specific:

    Do not include the test suite directory in {name}.

    line 156
  34. Very specific:

    Read the testing-best-practices skill for guidance on coverage, naming, structure, dependency isolation, and review.

    line 157
  35. Distinctive:

    Do not delete tests or test files without approval.

    line 158
  36. Very specific:

    Run the narrowest set of tests that covers the change.

    line 162
  37. Very specific:

    Run vendor/bin/pest to call the test runner directly.

    line 164
  38. Very specific:

    After the feature tests pass, ask the user to run the complete suite with php artisan test --compact.

    line 165

≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md
<laravel-boost-guidelines> === foundation rules ===

Laravel Boost Guidelines

The Laravel Boost guidelines are specifically curated by Laravel maintainers for this application. These guidelines should be followed closely to ensure the best experience when building Laravel applications.

Foundational Context

This application is a Laravel application running on PHP 8.4. You are an expert with the Laravel ecosystem. Always use the APIs that match the installed major version of each package — do not assume a version.

Before relying on a package's API, confirm its installed version:

  • PHP packages: run composer show --direct to list direct dependencies with versions, or composer show <vendor/package> for a single package.
  • JS packages: check package.json for the installed versions.

Skills Activation

This project has domain-specific skills available in **/skills/**. You MUST activate the relevant skill whenever you work in that domain—don't wait until you're stuck.

Conventions

  • 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.
  • Use descriptive names for variables and methods. For example, isRegisteredForDiscounts, not discount().
  • Check for existing components to reuse before writing a new one.

Verification Scripts

  • Do not create verification scripts or tinker when tests cover that functionality and prove they work. Unit and feature tests are more important.

Application Structure & Architecture

  • Stick to existing directory structure; don't create new base folders without approval.
  • Do not change the application's dependencies without approval.

Frontend Bundling

  • If the user doesn't see a frontend change reflected in the UI, it could mean they need to run npm run build, npm run dev, or composer run dev. Ask them.

Documentation Files

  • You must only create documentation files if explicitly requested by the user.

Replies

  • Be concise in your explanations - focus on what's important rather than explaining obvious details.

=== boost rules ===

Laravel Boost

Project Rules

  • This project contains committed, area-grouped rules in .ai/rules when that directory exists (settled decisions, non-obvious traps, standing constraints). Framework and package guidelines that only apply to specific paths (testing, frontend, components) also live there, under .ai/rules/boost — this is not just recorded decisions, it is load-bearing guidance you have not seen inline. Before you enter plan mode or create/edit any file, you MUST first: open @.ai/rules/index.md (it maps file globs to rule files), read every rule file whose globs cover the path(s) in scope, and run grep -rin 'keyword' .ai/rules to catch what a path match alone misses. Do not write code until you have read and are following every matching rule. If .ai/rules does not exist, continue without it.

Artisan

  • Run Artisan commands directly via the command line (e.g., php artisan route:list). Use php artisan list to discover available commands and php artisan [command] --help to check parameters.
  • Inspect routes with php artisan route:list. Filter with: --method=GET, --name=users, --path=api, --except-vendor, --only-vendor.
  • Read configuration values using dot notation: php artisan config:show app.name, php artisan config:show database.default. Or read config files directly from the config/ directory.

Tinker

  • Execute PHP in app context for debugging and testing code. Do not create models without user approval, prefer tests with factories instead. Prefer existing Artisan commands over custom tinker code.
  • Always use single quotes to prevent shell expansion: php artisan tinker --execute 'Your::code();'
    • Double quotes for PHP strings inside: php artisan tinker --execute 'User::where("active", true)->count();'

=== php rules ===

PHP

  • Always use curly braces for control structures, even for single-line bodies.
  • Use PHP 8 constructor property promotion: public function __construct(public GitHub $github) { }. Do not leave empty zero-parameter __construct() methods unless the constructor is private.
  • Use explicit return type declarations and type hints for all method parameters: function isAccessible(User $user, ?string $path = null): bool
  • Use TitleCase for Enum keys: FavoritePerson, BestLake, Monthly.
  • Prefer PHPDoc blocks over inline comments. Only add inline comments for exceptionally complex logic.
  • Use array shape type definitions in PHPDoc blocks.

=== deployments rules ===

Deployment

  • Laravel can be deployed using Laravel Cloud, which is the fastest way to deploy and scale production Laravel applications.

=== tests rules ===

Test Enforcement

  • Test every code change by adding or updating a test.
  • Run the affected tests and ensure they pass.
  • Test the changed behavior and its important failure modes, but do not add tests beyond them.
  • Read the testing-best-practices skill before writing tests.

=== inertia-laravel/core rules ===

Inertia

  • Inertia creates fully client-side rendered SPAs without modern SPA complexity, leveraging existing server-side patterns.
  • Components live in resources/js/pages (unless specified in vite.config.js). Use Inertia::render() for server-side routing instead of Blade views.
  • ALWAYS use search-docs tool for version-specific Inertia documentation and updated code examples.
  • IMPORTANT: Activate inertia-vue-development when working with Inertia Vue client-side patterns.

Inertia v2

  • Use all Inertia features from v1 and v2. Check the documentation before making changes to ensure the correct approach.
  • New features: deferred props, infinite scroll, merging props, polling, prefetching, once props, flash data.
  • When using deferred props, add an empty state with a pulsing or animated skeleton.

=== laravel/core rules ===

Do Things the Laravel Way

  • Use php artisan make: commands to create new files (i.e. migrations, controllers, models, etc.). You can list available Artisan commands using php artisan list and check their parameters with php artisan [command] --help.
  • If you're creating a generic PHP class, use php artisan make:class.
  • 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.

Model Creation

  • When creating new models, create useful factories and seeders for them too. Ask the user if they need any other things, using php artisan make:model --help to check the available options.

APIs & Eloquent Resources

  • For APIs, default to using Eloquent API Resources and API versioning unless existing API routes do not, then you should follow existing application convention.

URL Generation

  • When generating links to other pages, prefer named routes and the route() function.

Testing

  • 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.
  • Faker: Use methods such as $this->faker->word() or fake()->randomDigit(). Follow existing conventions whether to use $this->faker or fake().
  • 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.

Vite Error

  • If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run npm run build or ask the user to run npm run dev or composer run dev.

=== wayfinder/core rules ===

Laravel Wayfinder

Use Wayfinder to generate TypeScript functions for Laravel routes. Import from @/actions/ (controllers) or @/routes/ (named routes).

=== pint/core rules ===

Laravel Pint Code Formatter

  • If you have modified any PHP files, you must run vendor/bin/pint --dirty --format agent before finalizing changes to ensure your code matches the project's expected style.
  • Do not run vendor/bin/pint --test --format agent, simply run vendor/bin/pint --format agent to fix any formatting issues.

=== pest/core rules ===

Pest

  • This project uses Pest. Create tests with php artisan make:test --pest {name}.
  • Do not include the test suite directory in {name}. Use SomeFeatureTest, not Feature/SomeFeatureTest.
  • Read the testing-best-practices skill for guidance on coverage, naming, structure, dependency isolation, and review.
  • Do not delete tests or test files without approval. They are part of the application.

Running Tests

  • Run the narrowest set of tests that covers the change. Pass a file path or --filter=testName to php artisan test --compact.
  • Rerun a test after each change to it.
  • Run vendor/bin/pest to call the test runner directly. It accepts the same file path and --filter=testName arguments.
  • After the feature tests pass, ask the user to run the complete suite with php artisan test --compact.

=== inertia-vue/core rules ===

Inertia + Vue

Vue components must have a single root element.

  • IMPORTANT: Activate inertia-vue-development when working with Inertia Vue client-side patterns.
</laravel-boost-guidelines>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.