Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

model

Skill by JaguarJack

Generates an Eloquent model for a CatchAdmin module that extends Catch\Base\CatchModel. It is for developers building CatchAdmin modules who want a model with the framework's search, list, form and CRUD features.

  • Score 79
  • 936 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install model

Built from the published package, never by AI.

git clone --depth 1 https://github.com/JaguarJack/catch-admin /tmp/catch-admin && mkdir -p ~/.claude/skills && cp -r /tmp/catch-admin/.claude/skills/03-model ~/.claude/skills/model

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install model in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The model skill generates an Eloquent model for a CatchAdmin module. It writes the file to modules/{Module}/Models/{Model}.php and has the class extend Catch\Base\CatchModel. The template covers fillable fields, searchable columns with operators, list and form fields, sort settings, and tree structure options.

The guide also covers CatchModel's core properties and CRUD methods, including list queries, creating, updating, soft and force deletes, batch operations, and restoring records. It includes examples for relationships, attribute accessors, status checks, custom update and delete logic, and query scopes. It is written for developers building CatchAdmin modules who want models that follow the framework's conventions.

Written from the project's SKILL.md and checked against it.

What it can do

  • Model file templateGenerates a model class in modules/{Module}/Models that extends CatchModel.
  • Searchable fieldsDefines search columns with operators such as like, =, in and between.
  • List and form configSets list query fields, form fields and form relation sync for many-to-many.
  • Sorting and tree optionsConfigures the sort field, descending order and parent_id tree output.
  • CRUD methodsCovers getList, storeBy, updateBy, batchUpdate, deleteBy, deletesBy, firstBy, toggleBy and restoreBy.
  • RelationshipsShows BelongsTo, HasMany, BelongsToMany and self-referencing tree relations.
  • Attribute accessorsShows get and set accessors for password hashing, status labels and JSON fields.
  • Status enum checksUses Catch\Enums\Status to check whether a record is enabled or disabled.
  • Custom overridesShows overriding updateBy and deleteBy, including a transaction for delete.
  • Foreign key detectionLists how category_id, user_id, department_id and parent_id map to relation methods.

What you need

  • A CatchAdmin project with a modules directory
  • Laravel-style Eloquent classes from Illuminate

Try asking

  • Generate a CatchAdmin model for the Order module with searchable name and status fields.
  • Add a BelongsToMany roles relation to my User model and sync it on form save.
  • Create a tree-structured CatchAdmin model with parent_id and children relations.

Good to know

  • Examples assume the CatchAdmin module layout and the Catch\Base\CatchModel base class.
  • Relation names, table names and field names are placeholders to replace for each model.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/03-model/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to model

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

model: common questions

Where does the generated CatchAdmin model file go?

It goes in modules/{Module}/Models/{Model}.php. The class extends Catch\Base\CatchModel.

Which search operators does the CatchModel template support?

The source lists like, %like, like%, =, in, between, >, and >=. Each is set per column in the $searchable array.

How are many-to-many relations synced when a form is submitted?

Relations listed in the $formRelations property, such as roles and tags, are synced automatically. The source says they must be declared there.

How do I install model?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is model free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is model safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to model?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

Add to stack

Loading.