Skip to main content
Agent skills are specialized instructions that guide the AI agent through complex, multi-step workflows. When working on a Core project, these skills are automatically available via the .cursor/skills/ directory. Invoke a skill using Cursor’s slash command syntax in the chat input, e.g. /create-object.

Available Skills

Create Object — /create-object

Generates a complete domain object with all necessary components:
  • Laravel model with HasDomainObject trait
  • Database migration
  • Factory with realistic fake data
  • Enum classes (status, permissions)
  • Controller with RESTful routes
  • Form requests with validation
  • Table with filters and actions
  • Frontend index page with Inertia
  • Delete action
  • Feature tests
Example:
/create-object Create a Company with name, org_number, and address fields
The agent will:
  1. Ask for confirmation about the fields and relationships
  2. Generate all files following Core conventions
  3. Add permissions to the Permission enum
  4. Create proper routes and navigation
  5. Run tests to verify everything works

Create Property — /create-property

Scaffolds a custom property type — PHP backend class and React frontend components — and registers it.
/create-property Create a ColorProperty that stores a hex color string
The agent will:
  1. Ask whether this is an app-level or platform-level property if not stated
  2. Create the PHP class in App\Properties\Types\ (app) or Inly\Core\Properties\Types\ (platform)
  3. Create the frontend value and input components
  4. Register the property via createCoreApp (app) or corePropertyDefinitions (platform)
  5. Run pint --dirty and pnpm lint
App-level properties belong to one application and are registered in resources/js/app.tsx. Platform-level properties are part of Core itself and are registered in resources/js/core/properties/properties.ts.

Create Action — /create-action

Scaffolds CoreAction classes (make:core-action), registration on models via objectActions(), table and UI integration, and tests. Includes how to return persisted document references from handle() using ActionResult::document() / documentSet() with Inly\Core\Models\Document from CoreDocument::store().
/create-action Add an action to approve orders
Skill file: stubs/laravel/.cursor/skills/create-action/SKILL.md (see also examples.md in the same folder).

Create Document — /create-document

Authors App\Documents\... classes extending Inly\Core\Documents\CoreDocument: text (HTML/Blade) and file artifacts, store() / key() / regenerate(), print layouts (core:: views), PDF format override, and tests. Pairs with create-action when an action should open the viewer or download after generation.
/create-document Add a packing slip document for shipments
Skill file: stubs/laravel/.cursor/skills/create-document/SKILL.md (see also examples.md in the same folder).

Translate — /translate

Automatically translates missing strings in all language JSON files (except en.json).
/translate
The skill also runs automatically during the pre-commit hook after composer localize. Important:
  • Only translates missing strings, never modifies existing translations
  • Uses consistent terminology from the rest of the translation file
  • Outputs only the newly translated strings

Update Core — /update-core

Guides the process of updating the inly/core package to a newer version and implementing any breaking changes from the upgrade guide.
/update-core
The agent will:
  1. Run php artisan core:update
  2. Read the upgrade guide at vendor/inly/core/UPGRADE.md
  3. Search the codebase for affected code
  4. Present an implementation plan
  5. Ask for permission before making changes
  6. Implement the changes systematically
  7. Run tests and linters to verify