FastAdmin Addon Creator
Paste the following prompt into your AI chat to install this skill:
Please install @user_673f0e46/fastadmin-addon according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
FastAdmin addon development can get bogged down in directory layout, addon identifiers, admin controllers, SQL scripts, and packaging rules. Copying examples by hand can miss info.ini, install.sql, config.php, or leave debug files, extra modules, and risky scripts in the final package.
How It Works
The skill centers on scaffolding a plugin from the command line, then checking that the identifier uses lowercase letters and at least three characters. It explains the core files under addons/{plugin}/, including info.ini, {Plugin}.php, and config.php with supported config types. It also covers front-end controller URLs, admin controller locations, and install.sql conventions such as __PREFIX__ replacement, lowercase tables and fields, InnoDB, utf8mb4, related fields ending in _id, Unix timestamp fields as bigint(16) ending in time, and id as the primary key. Packaging guidance includes the output path, cleanup of .addonrc, .DS_Store, and .git, and restrictions on application, public, and assets.
Boundaries And Notes
This is useful for creating a new FastAdmin addon and producing a package that follows its expected structure. If the project already has custom deployment, multi-module architecture, or nonstandard database conventions, the output needs to be adjusted before use. The material does not define business APIs, permission models, or UI component details, so implementers should still refer to the official FastAdmin documentation.
Use Cases
- When adding a business addon to FastAdmin, scaffold the addons directory, core class, and config files via CLI.
- When writing install.sql, enforce __PREFIX__, InnoDB, utf8mb4, and lowercase field naming conventions.
- Before packaging an addon, remove .git and .DS_Store files and confirm the zip output path under runtime.
- When an admin controller is missing, inspect the plugin-specific application/admin/controller directory.
Best For
- Backend engineers maintaining FastAdmin who need to create a new admin addon by convention.
- DBAs designing tables who need to check InnoDB, utf8mb4, and field naming constraints.
- Freelance developers delivering addons who must clean debug files before packaging.
- PHP developers taking over legacy projects who need to understand info.ini, the core class, and config.php.
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.