Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

aureuserp-plugin-builderaureuserp 插件生成器

Agent Skill

aureuserp-plugin-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

618

周安装

26

GitHub Stars

公开资料未说明

下载量

216
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:aureuserp-plugin-builder(aureuserp 插件生成器)
来源仓库:https://github.com/aureuserp/agent-skills
仓库路径:skills/aureuserp-plugin-builder
安装命令:
npx skills add https://github.com/aureuserp/agent-skills --skill aureuserp-plugin-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aureuserp/agent-skills --skill aureuserp-plugin-builder

简介

aureuserp-plugin-builder 用于构建类似 Webkul 模块的插件,适合在 Codex、Claude、Cursor、Gemini CLI 中实现服务提供者和插件类。

  • 适用于需要遵循特定包结构、PSR-4 自动加载和 Laravel 提供者链进行插件开发的场景。
  • 需先阅读 plugin-patterns.md,参考邻近模块(如 purchases、sales)并实现 *ServiceProvider 和 *Plugin 类。
  • 安装前应确认项目 Composer 配置、命名空间和现有插件结构,避免破坏依赖关系或注册流程。
  • 注意:本技能聚焦于 AureusERP 生态内的插件开发规范,不适用于通用框架。

SKILL.md

Plugin Builder

Follow this workflow to build plugins exactly like existing plugins/webkul/* modules.

Workflow

  1. Read references/plugin-patterns.md first.
  2. Inspect the target plugin and its nearest sibling modules (usually purchases, sales, projects, website, accounts).
  3. Implement/adjust service provider first (*ServiceProvider) using PackageServiceProvider + Package chain.
  4. Implement/adjust plugin class (*Plugin) for panel-aware registration (admin, customer).
  5. Ensure package composer wiring exists (composer.json PSR-4, extra.laravel.providers, plugin factory/seeder namespaces).
  6. Register ACL surface in config/filament-shield.php.
  7. Add or align policies under src/Policies so generated permissions resolve cleanly.
  8. Add settings migration(s) + settings class + settings page(s) when feature flags/configuration are needed.
  9. Add dashboard/pages/widgets and clusters/resources based on panel + module scope.
  10. Add table views to list/manage pages using HasTableViews + PresetView.
  11. Add/update translations using plugin language folder conventions and nested keys.
  12. Verify installation and permission lifecycle with install commands.

Required Conventions

  • Extend Webkul\PluginManager\PackageServiceProvider for each plugin service provider.
  • Configure package metadata using chained methods on Package: name, hasViews, hasTranslations, hasRoute/hasRoutes, hasMigrations, runsMigrations, hasSettings, runsSettings, hasSeeder, hasDependencies, hasInstallCommand, hasUninstallCommand, icon.
  • Add installation dependencies in both places: ->hasDependencies([...]) and install command ->installDependencies().
  • Use plugin install command pattern: ->hasInstallCommand(fn (InstallCommand $command) => $command->installDependencies()->runsMigrations()->runsSeeders()) (adjust seeders when plugin has none).
  • Register plugin into Filament via Panel::configureUsing(fn (Panel $panel) => $panel->plugin(YourPlugin::make()));.
  • Gate plugin registration with install state in plugin class: if (! Package::isPluginInstalled($this->getId())) {return;}.
  • Ensure plugin package composer.json includes: autoload.psr-4 plugin namespace, extra.laravel.providers service provider entry, and plugin database factory/seeder namespaces when used.
  • For admin/front split, use panel conditions in register(Panel $panel): $panel->when($panel->getId() == 'admin',...) and/or ... == 'customer'.
  • Discover Filament components from panel-specific folders: discoverResources, discoverPages, discoverClusters, discoverWidgets.
  • Register ACL manage/exclude entries in config/filament-shield.php for resources/pages.
  • Keep RoleResource/shield flow compatible with plugin key naming from PluginManager\PermissionManager.
  • Use settings with Spatie Laravel Settings: settings migration in database/settings/*, class in src/Settings/*, settings UI as SettingsPage when needed.
  • Use table views on list/manage pages with: use HasTableViews; and implement getPresetTableViews(): array returning PresetView entries.
  • Use plugin translation structure under resources/lang/en and keep keys nested by UI surface (navigation, form.sections, table.columns, table.filters, infolist.sections, actions, notifications).

Admin + Front Panel Setup

Mirror purchases, website, and blogs when plugin needs both panels:

  • Structure Filament folders by panel: src/Filament/Admin/... and src/Filament/Customer/....
  • In plugin register():
  • Configure customer panel resources/pages/clusters/widgets under the customer condition.
  • Configure admin panel resources/pages/clusters/widgets under the admin condition.
  • Add panel-specific navigation items (for example settings shortcuts) with visibility checks.
  • If customer auth UX is custom (example: website), configure panel auth pages in plugin registration.
  • For front/customer experience, also align plugin routes/web.php, frontend views, and Livewire components with panel behavior when module exposes customer-facing pages.

Translation Convention

  • Keep plugin translation root at plugins/<vendor>/<plugin>/resources/lang/en.
  • Mirror Filament location in translation path: filament/resources/..., filament/admin/..., filament/customer/..., filament/clusters/..., filament/pages/..., filament/widgets/..., plus models, enums, and top-level app.php where needed.
  • Keep resource/page translation file layout explicit. Example:
  • resources/lang/en/filament/resources/product.php (resource-level labels)
  • resources/lang/en/filament/resources/product/pages/create-product.php
  • resources/lang/en/filament/resources/product/pages/edit-product.php
  • resources/lang/en/filament/resources/product/pages/list-products.php
  • resources/lang/en/filament/resources/product/pages/view-product.php
  • For admin/customer split, prefix under panel path:
  • resources/lang/en/filament/admin/...
  • resources/lang/en/filament/customer/...
  • Keep file names kebab-case and aligned with resource/page/action names.
  • Prefer deeply nested, predictable arrays grouped by UI surface:
  • navigation.title, navigation.group
  • form.sections.<section>.title
  • form.sections.<section>.fieldsets.<fieldset>.title
  • form.sections.<section>.fields.<field>.label|helper-text
  • table.columns, table.groups, table.filters
  • table.record-actions.<action>.notifications.<state>.title|body
  • table.toolbar-actions.<action>.notifications.<state>.title|body
  • table.empty-state.heading|description
  • infolist.sections.<section>.entries.<entry>.label|helper-text
  • Use consistent key spelling (filters, not fileters).
  • Keep translation keys stable and consume them from code via __('plugin::path.to.key').
  • __() usage examples:
  • Resource label: __('products::filament/resources/product.navigation.title')
  • Page title: __('products::filament/resources/product/pages/create-product.title')
  • Field label: __('products::filament/resources/product.form.sections.general.fields.name')

Extending Base Resources and Models

Prefer extension over duplication when a base module already defines the domain behavior.

  • Extend base Filament resources from source plugins (common in accounting, invoices, sales, purchases, contacts, recruitments).
  • Keep child resource focused on deltas: cluster assignment, pages map, minor schema/table overrides, extra actions.
  • For models, follow plugin-local model namespace and existing trait conventions (HasFactory, soft deletes, sortable, permission traits where applicable).

ACL, Roles, and Permission Lifecycle

  • Define plugin resource/page permission scope in plugin config/filament-shield.php.
  • Keep cluster/page excludes updated so only intended permission keys are generated.
  • Ensure policy methods match expected permission keys.
  • Rely on install lifecycle to regenerate/sync permissions (plugin install command and ERP install flow).
  • When changing ACL surface, validate role permission assignment via security role management UI/logic.

Settings, Dashboard, and Table Views

  • Settings:
  • Add settings migration in database/settings.
  • Add settings class extending Spatie\LaravelSettings\Settings.
  • Add settings page extending Filament\Pages\SettingsPage (commonly clustered under settings).
  • Dashboard/pages/widgets:
  • Use page shield traits on custom dashboards/pages.
  • Register widget sets via dashboard page getWidgets()/getHeaderWidgets().
  • Place pages/widgets in panel-appropriate folders.
  • Table views:
  • Add HasTableViews to list/manage pages.
  • Define named preset tabs with PresetView::make(...)->modifyQueryUsing(...).
  • Use favorites/default presets where relevant.

Verification Checklist

  1. Plugin appears in plugin manager and installs via <plugin>:install --no-interaction.
  2. Dependencies auto-install in correct order.
  3. Admin and/or customer panel components appear only on intended panel.
  4. Shield permissions include new resources/pages and exclude intended clusters/pages.
  5. Policies resolve and UI actions obey authorization.
  6. Settings persist and settings pages load.
  7. Dashboard pages/widgets render without permission regressions.
  8. Table preset views apply expected query behavior.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

32.95%
按下载量换算71

Codex

32.38%
按下载量换算70

Cursor

17.4%
按下载量换算38

Gemini CLI

8.61%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills