Skip to content

Add Laravel Boost skill: resources/boost/skills/anourvalar-eloquent-validation/SKILL.md#1

Open
AnourValar wants to merge 1 commit into
masterfrom
claude/laravel-boost-skill-docs-akq1Q
Open

Add Laravel Boost skill: resources/boost/skills/anourvalar-eloquent-validation/SKILL.md#1
AnourValar wants to merge 1 commit into
masterfrom
claude/laravel-boost-skill-docs-akq1Q

Conversation

@AnourValar
Copy link
Copy Markdown
Owner

Summary

Adds a laravel/boost skill so AI agents working in projects that depend on anourvalar/eloquent-validation automatically pick up the package's public surface.

The new file: resources/boost/skills/anourvalar-eloquent-validation/SKILL.md

What it documents (all verified against the source):

  • The package ships no facades - the section explicitly says so.
  • ModelTrait - the trait-defined properties ($trim, $nullable, $computed, $unchangeable, $unique, $jsonNested) and added methods (validate, validateDelete, beforeValidate, scopeFields, scopePublishFields, authorize, mergeJsonNested, setAttribute overrides, ...).
  • CrudService::execute / sync for bulk create/update/delete and reconciliation flows.
  • ValidatorHelper (afterValidate, mutateArray, mutateJsonb, isMatching).
  • Exceptions\ValidationException (addPrefix, replaceKey).
  • Features\ManyToManyTrait::onChangedM2M for observer-driven pivot sync.
  • Tests\ValidationTrait PHPUnit helpers (assertValidationSuccess, assertValidationFailed, etc.).
  • The five globally-registered custom validation rules (config:<key>, array_keys, array_keys_only, array_keys_id, not_empty) and the :max/:min replacer override.
  • The three artisan commands: make:model-validation, make:observer-validation, model:validate.
  • The non-obvious gotchas (setAttribute strictness outside production, the unique rule canonisation, attribute-name caching, soft-delete-aware uniqueness checks, etc.).

Format follows the Boost skill spec: YAML frontmatter (name, description) plus a focused, agent-oriented markdown body.

Test plan

  • Maintainer reviews factual accuracy against src/ (trait property handling, validate/validateDelete signatures, registered rules, artisan commands).
  • Description correctly activates for model-validation tasks in Boost.
  • No other files changed in the repo (single new SKILL.md under resources/boost/skills/).

Generated by Claude Code

Document ModelTrait, CrudService, ValidatorHelper, ValidationException,
ManyToManyTrait, Tests\ValidationTrait, the bundled artisan commands
(make:model-validation, make:observer-validation, model:validate), and
the globally-registered custom rules (config:, array_keys,
array_keys_only, array_keys_id, not_empty) so laravel/boost agents
know how to use the package even though it ships no facades.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant