Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/enlivenapp/codeigniter4-app-and-api-skills-for-claude-code/ci4-apinpx skills add enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-Code --skill ci4-apigit clone --depth 1 https://github.com/enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-CodeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/enlivenapp/codeigniter4-app-and-api-skills-for-claude-code/ci4-api)<a href="https://agentmods.dev/skills/enlivenapp/codeigniter4-app-and-api-skills-for-claude-code/ci4-api"><img src="https://agentmods.dev/badge/skills/enlivenapp/codeigniter4-app-and-api-skills-for-claude-code/ci4-api.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00093 | $0.02169 |
| Opus 5 | $0.00046 | $0.01085 |
| Sonnet 5 | $0.00019 | $0.00434 |
| Haiku 4.5 | $0.00009 | $0.00217 |
Grade A, and why
ci4-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 272 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CodeIgniter 4 — REST API Reference
A well-built CI4 API is stateless, versioned, consistently enveloped, and callable from any client — web, mobile, third-party — without breaking.
Related skills:
ci4for core framework patterns,ci4-shieldfor auth deep dives.
Reference Documents
For deep dives, read the relevant reference from references/:
| Reference | When to read |
|---|---|
references/base-controller.md |
BaseApiController, response helpers, auth helpers, body parsing |
references/authentication.md |
Login/logout/me endpoints, token lifecycle, filters |
references/webhooks.md |
Receiving webhooks (Stripe, GitHub), sending webhooks, signature verification |
references/rate-limiting.md |
Throttle filter, per-route limits, inline throttling |
references/cors.md |
CORS filter, preflight handling, production config |
references/error-handling.md |
Status code guide, error envelope, common pitfalls |
Guiding Principles
- Stateless — every request is self-contained. No session state. Auth via Bearer token.
- Consistent envelope — every response uses the same JSON shape.
- Versioned — breaking changes get a new version. Existing clients never break.
- Explicit HTTP status codes —
200,201,400,401,403,404,409,422,500. Never return200with an error body. - One source of truth — the API owns the data. Web, mobile, and third parties all call the API.
Directory Structure
app/
Controllers/
Api/
V1/
BaseApiController.php # Base for all API controllers
UsersController.php
EventsController.php
AuthController.php
StripeController.php # Webhook receiver
Filters/
ApiAuthFilter.php # Bearer token validation
ApiGroupFilter.php # Group/role restriction
ApiThrottleFilter.php # Rate limiting
Response Envelope
Every API response — success or failure — uses the same shape:
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 272 lines · 93 tokens per session scan A 097173a8bd30
ci4-api is a skill published in the GitHub repository enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-Code (21 stars, last pushed 4mo ago), licensed MIT. It adds 93 tokens to every session and 2,169 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
laravel-specialist
Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…
create-powergrid-plugin
Create a complete PowerGrid plugin from scratch, including PHP class, Column macro, Blade view, Alpine.js component, and registration.
laravel-patterns
Laravel architecture patterns, routing/controllers, Eloquent ORM, service layers, queues, events, caching, and API resources for production apps.
owl-admin-devtools-generator
Use this skill for Owl Admin development tools, code generator, dynamic API templates, relationships, visual pages, generated CRUD code, app/ApiTemplates, Support/Apis, Support/CodeGenerator, Controllers/DevTools, or questions about “代码生成器”, “动态 API”, “API 模板”, “关系管理”, “可视化页面”, and “生成 CRUD”.
llamaindex-development
Expert guidance for LlamaIndex development including RAG applications, vector stores, document processing, query engines, and building production AI applications.
craftcms
Craft CMS 5 plugin and module development — extending Craft with PHP. Covers elements, element queries, services, models, records, controllers, migrations, queue jobs, console commands, field types, native fields, events, behaviors, Twig extensions, widgets, filesystems, permissions, project config, GraphQL, testing…