create-componentlisted
Install: claude install-skill SilverAssist/agents-toolkit
# Silver Assist — Create Component
This skill covers adding new components to an existing Silver Assist WordPress plugin. It provides templates, registration steps, and quality checks for each component type.
## When to Use
- Adding a new Service, Controller, View, Model, or Repository
- Creating a new admin page or feature
- Adding infrastructure components (ListTable, Widget, Handler)
- Registering a new component in `Plugin.php`
- Understanding which component type to use
## Component Type Decision Guide
| Need | Component Type | Priority | LoadableInterface? |
|------|---------------|----------|-------------------|
| Business logic, API calls, data processing | **Service** | 20 | Yes |
| Handle HTTP/admin requests, coordinate Service→View | **Controller** | 30 | Yes |
| Render HTML output | **View** | N/A | No (static class) |
| Represent data structures | **Model** | N/A | No (plain object) |
| Database queries, data access | **Repository** | N/A | No (used by Services) |
| WordPress integrations (WP_List_Table, widgets) | **Infrastructure** | 30 | Optional |
| Shared utilities | **Utils** | 40 | Yes |
| Plugin bootstrap, lifecycle | **Core** | 10 | Yes |
## Directory Structure
```text
includes/
├── Core/ # Priority 10 — Bootstrap & lifecycle
│ ├── Plugin.php # Main plugin bootstrap (extends AbstractPlugin)
│ └── Activator.php # Activation/deactivation logic
├── Service/ # Priority 20 — Business logic
│ ├──