← ClaudeAtlas

codeignitor3-simplifierlisted

Simplifies and refines PHP/CodeIgniter 3 code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.
ttncode/unioss-plugins · ★ 0 · AI & Automation · score 75
Install: claude install-skill ttncode/unioss-plugins
# CodeIgniter 3 Simplifier Make recently-changed CI3 code clearer without changing what it does. Prefer readable and explicit over clever and compact. ## 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. - Eliminate redundant code and abstractions. - Improve variable and function names. - Consolidate related logic when it helps. - Remove comments that restate obvious code. - **Avoid nested ternaries** — prefer i