smithery/valec3

backend-codeigniter-validation

Input validation, custom rules, error handling.

Installation

$ npx skills add smithery/valec3 --skill backend-codeigniter-validation

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/valec3 · top by installs.

npx skills add smithery/valec3

Browse all from smithery/valec3

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,116 B
  • docs SUMMARY.md 85 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Backend CodeIgniter Validation

When to use this skill

  • Validating user input
  • Custom validation rules
  • Form validation
  • API request validation

Workflow

  • Define validation rules
  • Use in controllers or models
  • Create custom rules
  • Return validation errors
  • Localize error messages

Instructions

Controller Validation

<?php

public function create()
{
    $rules = [
        'email' => 'required|valid_email|is_unique[users.email]',
        'password' => 'required|min_length[8]',
        'name' => 'required|min_length[3]'
    ];

    if (!$this->validate($rules)) {
        return $this->fail($this->validator->getErrors());
    }

    // Process valid data
}

Custom Rule

<?php

// Config/Validation.php
public function strong_password(string $password): bool
{
    return preg_match('/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$/', $password);
}

Resources

  • Validate all user input
  • Use built-in rules
  • Create custom rules when needed