EC

enlivenapp/codeigniter4-app-and-api-skills-for-claude-code

API 开发

本页由 AI 翻译,技术细节请以原文为准。 查看原文

26 stars 质量 50 趋势 11MIT

一对用于使用 CodeIgniter 4 构建的 Claude 代码技能。旨在让 Claude 对 CI4 框架有扎实且准确的理解

概览

一套用于使用 CodeIgniter 4 构建的 Claude 代码技能。旨在让 Claude 对 CI4 框架有扎实且准确的理解——包括 Shield 认证。 - — 核心CI4框架:MVC约定、路由、控制器、模型、查询构建器、视图、迁移、过滤器、Spark CLI。- — 基于CI4构建强大的REST API:响应包络、版本控制、令牌认证、验证、速率限制、CORS和webhook。- — Shield认证与授权:会话认证、访问令牌、HMAC、JWT、组、权限、邮件激活、双重认证、魔法链接。- — 涵盖用于应用外工作的高级CI4技术:运行时 addNamespace()、命名空间隔离的迁移/种子/命令、注册商、模块自动发现、服务覆盖、运行时配置变更、事件引导和动态路由包含。 每个技能都有精益技能。

概述(AI 翻译)

一套用于使用 CodeIgniter 4 构建的 Claude 代码技能。旨在让 Claude 对 CI4 框架有扎实且准确的理解——包括 Shield 认证。

  • ci4 — 核心CI4框架:MVC约定、路由、控制器、模型、查询构建器、视图、迁移、过滤器、Spark CLI。
  • ci4-api — 构建基于CI4的稳健REST API:响应包络、版本控制、令牌认证、验证、速率限制、COS和webhook。
  • ci4-shield — Shield 认证与授权:会话认证、访问令牌、HMAC、JWT、组、权限、邮件激活、双重认证、魔法链接。
  • ci4-advanced — 涵盖用于应用外工作的高级CI4技术/:运行时 addNamespace(), 命名空间隔离迁移/种子/命令,注册商, 模块自动发现、服务覆盖、运行时配置变更、事件 自举,以及动态路由包含。

每个技能都有一个精益 SKILL.md(~200-350行)会自动加载,还有一个包含详尽深度文档的references/目录,按需拉取——保持上下文使用效率。


安装

将该仓库直接克隆到你的Claude代码技能目录中:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Claude Code Skills: CodeIgniter 4

A trio of Claude Code skills for building with CodeIgniter 4. Designed to give Claude a solid, accurate understanding of the CI4 framework — including Shield authentication.

  • ci4 — Core CI4 framework: MVC conventions, routing, controllers, models, query builder, views, migrations, filters, Spark CLI.
  • ci4-api — Building robust REST APIs with CI4: response envelopes, versioning, token auth, validation, rate limiting, CORS, and webhooks.
  • ci4-shield — Shield authentication & authorization: session auth, access tokens, HMAC, JWT, groups, permissions, email activation, 2FA, magic links.
  • ci4-advanced — Covers advanced CI4 techniques for working outside app/: runtime addNamespace(), namespace-isolated migrations/seeds/commands, Registrars, module auto-discovery, service overrides, runtime config mutation, event bootstrap, and dynamic route inclusion.

Each skill has a lean SKILL.md (~200-350 lines) that loads automatically, plus a references/ directory with comprehensive deep-dive docs that are pulled on demand — keeping context usage efficient.


Installation

Clone this repo directly into your Claude Code skills directory:

git clone https://github.com/enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-Code.git ~/.claude/skills/codeigniter4

Or if you already have other skills and want to add just these:

cd ~/.claude/skills
git clone https://github.com/enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-Code.git
cp -r Codeigniter4-App-and-API-Skills-for-Claude-Code/ci4 .
cp -r Codeigniter4-App-and-API-Skills-for-Claude-Code/ci4-api .
cp -r Codeigniter4-App-and-API-Skills-for-Claude-Code/ci4-shield .
cp -r Codeigniter4-App-and-API-Skills-for-Claude-Code/ci4-advanced .

Restart Claude Code. The skills are now available. Claude will automatically activate the relevant skill when it detects CI4-related work or loading via /ci4-{name}.


What’s Included

ci4 (12 reference docs)

Reference Coverage
routing.md Groups, placeholders, named routes, resource routes, CLI routes
controllers.md ResourceController, request data, file uploads, validation, redirects
models.md CRUD, soft deletes, pagination, scopes, callbacks, entities
query-builder.md SELECT, WHERE, JOIN, batch ops, subqueries, transactions
views.md Layouts, sections, partials, view cells, caching
filters.md Creating, registering, global filters, arguments
database.md Migrations, seeds, forge, field types
validation.md All built-in rules, custom rules, file upload validation
services-helpers.md Services, helpers, caching, email, sessions, encryption, HTTP client
spark-cli.md All spark commands, generators, custom commands
testing.md PHPUnit, feature tests, database tests, mocking
gotchas.md Critical pitfalls, CI4 vs Laravel comparison

ci4-api (6 reference docs)

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add enlivenapp/codeigniter4-app-and-api-skills-for-claude-code
新手?先看 mcpskill.org 教程 →