approval-development
Skill by cjmellor
Guides developers building approval workflows with the cjmellor/approval Laravel package. It covers review states, time-based expirations, rollbacks, and approval events for model changes.
Install approval-development
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cjmellor/approval /tmp/approval && mkdir -p ~/.claude/skills && cp -r /tmp/approval/resources/boost/skills/approval-development ~/.claude/skills/approval-developmentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cjmellor/approval /tmp/approval && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/approval/resources/boost/skills/approval-development ~/.gemini/antigravity-cli/skills/approval-developmentAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install approval-development in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill gives an AI assistant guidance for working with the cjmellor/approval package in Laravel. It covers intercepting create and update operations with the MustBeApproved trait, storing proposed changes in an approvals table, and moving approvals between Pending, Approved, Rejected and custom states. It also covers time-based expirations, rollbacks, requestor tracking, and events.
Approved changes are applied to the model's table, while unapproved changes stay in the approvals table. Developers can bypass approval with withoutApproval(), use a factory trait in tests, and process expired approvals through a scheduled command. The skill suits Laravel developers who need review steps before model data is saved.
Written from the project's SKILL.md and checked against it.
What it can do
- Approval interceptionCaptures create and update operations with the MustBeApproved trait and stores them for review.
- Approval statesApproves, rejects, or postpones approvals and queries them by state.
- Custom statesDefines extra states in config/approval.php and sets or queries them.
- Time-based expirationsSets a deadline that auto-rejects, auto-postpones, or triggers a custom event.
- RollbacksRolls back an approved change, optionally resetting it to Pending.
- Requestor trackingFinds which user requested an approval and filters approvals by requestor.
- Event handlingExplains approval events such as ModelApproved, ModelRejected and ApprovalExpired for listeners.
- Bypass and test factoriesSkips approval for admin actions or test data using withoutApproval().
What you need
- A Laravel application with Eloquent models
- Laravel 11 or later for the scheduler syntax shown
Try asking
- Add the MustBeApproved trait to my Post model so title and content need review.
- Set a 48 hour expiration on this approval that rejects it automatically.
- Write a listener for the ModelApproved event that sends an email notification.
Good to know
- Expired approvals are processed only when the scheduled approval:process-expired command runs.
- Only attributes listed in $approvalAttributes go through approval when that property is set.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: resources/boost/skills/approval-development/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to approval-development
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
approval-development: common questions
What does the MustBeApproved trait do?
It intercepts creating and updating events and stores the dirty data in the approvals table instead of saving it to the model's table directly.
How do I skip approval for an update?
Call withoutApproval() before the operation, for example $post->withoutApproval()->update([...]). The source says this is useful for admin actions and seeders.
Can approvals be set to expire automatically?
Yes. The source shows expiresIn() with thenReject(), thenPostpone() or thenCustom(), and a scheduled command processes expired approvals.
How do I install approval-development?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is approval-development free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is approval-development safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality B. 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 approval-development?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
