ci4

Provide framework-accurate guidance for CodeIgniter 4 MVC development tasks.

21|7|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-Code --skill ci4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ci4
Source: https://github.com/enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-Code/tree/main/ci4
Command: npx skills add https://github.com/enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-Code --skill ci4

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the common errors and inefficiencies that arise when developers apply Laravel conventions or generic PHP framework guidance to CodeIgniter 4 projects, which leads to broken functionality, security vulnerabilities, and wasted development time due to CI4's unique MVC structure, CLI tools, and authentication patterns.

Core Features & Use Cases

  • Comprehensive Core CI4 Coverage: Provides accurate, up-to-date guidance for all core CodeIgniter 4 components including routing, controllers, models, query builder, views, filters, database migrations, and the Spark CLI, with explicit documentation of common pitfalls and direct comparisons to Laravel to avoid cross-framework confusion.
  • Integrated Auth & API Support: Seamlessly pairs with the ci4-api and ci4-shield skills to support building REST APIs and implementing robust authentication/authorization, including session auth, token auth, JWT, 2FA, and API rate limiting.
  • Real-World Use Case: For example, if you are building a multi-user content management system with CodeIgniter 4, this Skill will guide you to correctly set up resource routes, create a model with soft deletes and timestamps, implement input validation, configure filters for access control, and use Spark CLI to generate scaffolding and run migrations without common errors.

Quick Start

To get started, ask the AI to help you create a new CodeIgniter 4 user controller with proper validation, model integration, and route configuration following official CI4 conventions.

Frequently Asked Questions about ci4

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up CodeIgniter 4 routing and controllers without using Laravel conventions?

CodeIgniter 4 routing requires framework-specific conventions to avoid broken functionality. Using CI4's unique MVC structure, you configure resource routes and controller logic explicitly, avoiding cross-framework convention conflicts that cause security vulnerabilities and wasted development time.

What is the best way to use the CodeIgniter 4 Spark CLI for database migrations?

The Spark CLI in CodeIgniter 4 generates scaffolding and runs database migrations following official conventions. It enforces CI4 best practices for performance and maintainability, preventing common implementation errors when managing your database schema.

Does CodeIgniter 4 support soft deletes and timestamp management in models?

CodeIgniter 4 models support soft deletes and timestamp management natively. By enabling these features in your model configuration, you ensure data integrity and maintainability without writing custom query builder logic.

How do I implement authentication and access control in a CodeIgniter 4 application?

CodeIgniter 4 integrates with Shield authentication to provide robust access control. You configure filters for authorization, supporting session auth, token auth, JWT, and 2FA to secure your application endpoints effectively.

Can I build REST APIs with CodeIgniter 4 and apply rate limiting?

CodeIgniter 4 supports building REST APIs with integrated rate limiting. By following framework-accurate API patterns, you implement secure and maintainable endpoints that avoid generic PHP framework inefficiencies.

Why does my CodeIgniter 4 input validation fail when migrating from another PHP framework?

CodeIgniter 4 input validation fails when applying conventions from other PHP frameworks like Laravel. CI4 uses unique validation rules and filter implementations, requiring framework-specific guidance to function correctly and securely.