Manusで任意のスキルを実行
ワンクリックで
ワンクリックで
ワンクリックでManusで任意のスキルを実行
始める$pwd:
$ git log --oneline --stat
stars:914
forks:138
updated:2026年1月22日 00:17
SKILL.md
Parse table definition to extract module name, model name, table name, and field definitions. First step of CRUD generation.
Generate database migration file for CatchAdmin module.
Generate Eloquent model for CatchAdmin module with full CatchModel features.
Generate CRUD controller for CatchAdmin module.
Generate form request validation for CatchAdmin module.
Generate route configuration for CatchAdmin module.
| name | export |
| description | Generate Excel export class for CatchAdmin module. |
创建数据导出类。
modules/{Module}/Export/{Model}.php
<?php
namespace Modules\{Module}\Export;
use Catch\Support\Excel\Export;
class {Model} extends Export
{
protected array $header = [
'ID', 'Name', 'Created At'
];
public function array(): array
{
return \Modules\{Module}\Models\{Model}::query()
->select('id', 'name', 'created_at')
->get()
->toArray();
}
}
| Field | Header |
|---|---|
| id | ID |
| name | Name |
| status | Status |
| created_at | Created At |
public function array(): array
{
return {Model}::query()
->with('category')
->get()
->map(fn ($item) => [
$item->id,
$item->name,
$item->category?->name ?? '-',
$item->created_at,
])
->toArray();
}
public function export(): mixed
{
return {Model}::query()
->select('id', 'name', 'created_at')
->get()
->download(['ID', 'Name', 'Created At']);
}