← ClaudeAtlas

codeigniter3-simplifierlisted

Use when refining recently-changed PHP/CodeIgniter 3 code for clarity and consistency without changing behavior.
ttncode/unioss-plugins · ★ 0 · AI & Automation · score 75
Install: claude install-skill ttncode/unioss-plugins
# CodeIgniter 3 Simplifier ## Overview Make recently-changed CI3 code clearer without changing what it does. Prefer readable and explicit over clever and compact. **Core principle:** preserve functionality — change only how the code reads, never what it does. **Track progress:** create a todo per Workflow step below and check each off as you complete it. ## Input - **Default scope:** only the code modified or touched in the current session. Widen it only when explicitly told to. - Standards come from `${CLAUDE_PLUGIN_ROOT}/rules/clean-code-php.md` and `clean-code-javascript.md`. ## Workflow 1. **Identify** the recently modified sections. 2. **Refine** them against the rules below. 3. **Verify** functionality is unchanged and the result is genuinely simpler. ### Preserve functionality — the hard constraint Never change what the code does, only how it does it. Every original feature, output, and behavior stays intact. ### Apply project standards - CodeIgniter 3 naming conventions for controllers, models, libraries, and helpers. - File/class naming aligned with CI3 autoloading and application structure. - Explicit method responsibilities and clear parameter handling. - The project's established error-handling patterns. - PSR-style readability wherever CI3 constraints allow. - Respect CI3 patterns: `$this->load->model()`, `$this->load->library()`, `$this->input`, `$this->db`, config-driven behavior. ### Enhance clarity - Reduce unnecessary complexity and nesting. - E