hadyfayed/laravel-agent/import-make
Claude Code and agent skill by hadyfayed/laravel-agent
- community
Checking that the SKILL.md file is still in the repository.
Scaffold a data importer for CSV/Excel with validation, chunking, error handling; when building bulk data imports.
Install
npx vskill@latest install hadyfayed/laravel-agent/import-makeSKILL.md
The same SKILL.md was published earlier as hadyfayed/laravel-agent/import-make.
Task
Generate a robust CSV/Excel importer with validation, batching, and comprehensive error handling.
Input
- Name: Importer class name (e.g.,
ProductImport,UserImport,OrderImport) - model: Target Eloquent model (optional; used for namespace hints)
- package: Driver choice (default:
maatwebsite) maatwebsite— maatwebsite/excel (full-featured, Laravel-integrated)spatie— spatie/simple-excel (lightweight, memory-efficient)
Steps
- Install package if not present:
```bash # Maatwebsite (recommended for most cases) composer require maatwebsite/excel
# OR Spatie (for memory-constrained environments) composer require spatie/simple-excel ```
- Create Import class in
app/Imports/<Name>Import.php:
- Implements required interfaces (ToModel, WithHeadingRow, WithValidation)
- Define validation rules per column
- Handle model creation/upsert logic
- Configure batch size (1000) and chunk size (1000)
- Custom error messages for validation failures
- Create ImportRequest in
app/Http/Requests/<Name>ImportRequest.php:
- File validation (mimes, max size)
- Authorization check (authorize() method)
- Rate limiting hints
- Create ImportController in
app/Http/Controllers/<Name>ImportController.php:
- GET create() — Display upload form
- POST store() — Handle synchronous import
- POST storeQueued() — Handle large files via queue (optional)
- Failure handling and reporting
- Create upload view (optional):
- File input with drag-and-drop support
- Download template link
- Error display for failed rows
- Routes:
- GET /<name>/import — Show form
- POST /<name>/import — Process upload
- GET /<name>/import/template — Download template
Reference
For in-depth patterns and templates:
${CLAUDE_SKILL_DIR}/references/maatwebsite-importer.md— Full-featured approach${CLAUDE_SKILL_DIR}/references/spatie-importer.md— Lightweight streaming approach${CLAUDE_SKILL_DIR}/references/error-handling.md— Validation and failure reporting
Security guardrails
- Validate file size (max 10MB recommended)
- Validate file MIME types (reject suspicious files)
- Escape/sanitize CSV data before processing
- Never store raw uploaded files permanently
- Log import activity (who, when, how many rows)
- Implement permission checks (authorize() in request)
- Use transactions to rollback failed imports
- Rate-limit import endpoints to prevent abuse
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/import-make/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/import-make)