Owl Admin Extension Module
Developmentowl-admin-extension-moduleOwl Admin Extension Module is an Agent Skill for development published in the slowlyo/owl-admin repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use this skill for Owl Admin extensions, modules, multi-admin setup, extension service providers, module routes, module config, menus, permissions, admin-module:init, or extensions under the configured extension directory. Trigger on 扩展, 插件, 多模块, module, extension, ServiceProvider, 菜单导入, or 模块后台.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/slowlyo/owl-admin/blob/HEAD/resources/ai/skills/owl-admin-extension-module/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/owl-admin-extension-module, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Owl Admin Extension Module
用于 Owl Admin 扩展、多模块、菜单、路由和配置开发。
参考索引
需要完整路径和命令时,读取 ../_references/owl-admin-dev-index.md。
需要按开发文档主题选择 skill 时,读取 ../_references/owl-admin-docs-map.md。
优先检查
config/admin.phpapp/Adminadmin-modulesextensionscomposer.json
框架源码内可参考:
src/Extendsrc/Support/Cores/Module.phpsrc/Console/Module
开发原则
- 新模块优先使用
php artisan admin-module:init ModuleName。 - 扩展优先遵循 Owl Admin
Extend\ServiceProvider的生命周期。 - 路由、配置、语言和菜单按模块或扩展隔离。
- 菜单和权限变更要确认 URL、组件类型和父级关系。
- 不主动执行数据库清空、全量删除或 git 操作。
常用命令
php artisan admin-module:init ModuleName
php artisan admin-module:init-db ModuleName
php artisan admin:doctor
php artisan route:list
验证
- PHP 文件改动后执行
php -l path/to/file.php。 - 路由异常时执行
php artisan route:list。 - 安装或菜单异常时执行
php artisan admin:doctor。