Introduction
Bagisto Agent Skills help AI tools understand how the Bagisto framework works.
They allow tools like Claude Code, Cursor, and Windsurf to generate better code for Bagisto projects.
Tools like Claude Code, Cursor, and Windsurf help developers write code faster and improve productivity.
However, to work well with a platform like Bagisto, these tools must understand how the framework works.
Bagisto Agent AI Skills solve this challenge.
They provide AI tools with knowledge about Bagisto’s structure, development methods, and common tasks.
This allows AI agents to generate accurate code and give better development suggestions.
Using these skills, developers can build packages, create shipping or payment methods, develop themes, and write tests.
This significantly speeds up development and reduces repetitive work.
Why We Use Bagisto Agent Skill
Bagisto Agent Skill help AI tools understand how Bagisto works.
They provide knowledge about Bagisto’s architecture, workflows, and development patterns.
With these skills, AI agents can generate more accurate code while working on Bagisto projects.
This helps developers save time and build features faster.
Available Agent Skills in Bagisto
Bagisto provides several AI Agent Skills to simplify development.
Each skill focuses on a specific part of Bagisto development.
These skills help AI tools generate structured code that follows Bagisto best practices.
- Package Development: Helps create custom Bagisto packages using the correct structure.
- Shipping Method Development: Assists developers in creating custom shipping methods.
- Payment Method Development: Helps integrate payment gateways like Stripe or PayPal.
- Product Type Development: Enables creation of custom product types.
- Shop Theme Development: Helps build or customize storefront themes.
- Admin Theme Development: Assists in customizing the admin panel design.
- Pest Testing: Helps generate proper Pest test cases for Bagisto applications.
AI Tools Supported by Bagisto Agent Skills
Bagisto Agent AI Skills work with modern AI development tools.
These tools help developers write code faster and understand project structures.
Currently, the supported tools include Claude Code, Cursor IDE, and Windsurf.
The skills can also work with any AI agent that supports the Skills CLI.
This enables developers to generate accurate implementations and improve development workflows.
Installation Process
To start using Bagisto Agent Skill, install the skills package in your environment.
This connects AI tools with your Bagisto project.
Once installed, AI agents can better understand the platform structure.
You can install all Bagisto Agent Skill using the following command:
|
1 |
npx skills add bagisto/agent-skills |
Install Specific Bagisto Agent Skills
Package Development
|
1 |
npx skills add bagisto/agent-skills --skill "package-development" |
Shipping Method Development
|
1 |
npx skills add bagisto/agent-skills --skill "shipping-method-development" |
Payment Method Development
|
1 |
npx skills add bagisto/agent-skills --skill "payment-method-development" |
Product Type Development
|
1 |
npx skills add bagisto/agent-skills --skill "product-type-development" |
Shop Theme Development
|
1 |
npx skills add bagisto/agent-skills --skill "shop-theme-development" |
Admin Theme Development
|
1 |
npx skills add bagisto/agent-skills --skill "admin-theme-development" |
Pest Testing
|
1 |
npx skills add bagisto/agent-skills --skill "pest-testing" |
Step-by-Step: Generate a Bagisto Blogs Package Using Agent Skills
This section demonstrates how to use the Package Development Skill.
It shows how to generate a custom Blogs package in Bagisto.
The example demonstrates how AI agents can quickly create a structured package.
Step 1: Install the Package Development Skill
Install the skill so the AI tool understands Bagisto package structure.
|
1 |
npx skills add bagisto/agent-skills --skill "package-development" |
This enables AI agents to generate packages following Bagisto architecture.
Step 2: Create a Prompt for Package Generation
Once installed, ask your AI tool to generate a package.
Example prompt:
|
1 2 3 |
Create a Bagisto package named Blogs. The package should allow admin users to create, update, delete, and manage blog posts. Follow Bagisto package structure and conventions. |
The AI agent will now use the Package Development Skill to generate the structure.
Step 3: Generate the Blogs Package
The AI agent will generate a Blogs package with required files.
- Service Provider
- Routes
- Controllers
- Models
- Views
- Configuration files
This ensures the package follows the standard Bagisto module architecture.
Step 4: Verify the Package Structure
After generation, verify the package structure.
|
1 2 3 4 5 6 7 8 |
packages/Webkul/Blogs ├── src │ ├── Config │ ├── Database │ ├── Http │ ├── Models │ └── Providers └── composer.json |
Step 5: Enable and Test the Package
- Register the service provider
- Run migrations if needed
- Clear cache and test the module
This ensures the Blogs package loads correctly in the Bagisto application.
Video Tutorial: Generating a Blogs Package
The following video explains the complete process.
Conclusion
Bagisto Agent Skills make development easier for developers.
They allow AI tools to understand the Bagisto framework more effectively.
Developers can generate structured code and follow proper development practices.
In this guide, we explored how to install Bagisto Agent Skill and generate a Blogs package.
This approach helps developers save time and maintain organized project structures.
By combining AI tools with Bagisto Agent Skill, development becomes faster and more efficient.
Let us know your thoughts in the comments below.
If you are planning to build with Laravel, consider
hiring Laravel developers.
You can also explore our
Bagisto Extensions.