dhpk-yii1-php56-development

dhpk-yii1-php56-development is a skill for Claude Code from hmj1026/dhpk. It costs 71 tokens per session (2,064 once invoked), scanned A, original, MIT.

A development guide for Yii 1.x, an older PHP web framework, running on PHP 5.6. It covers backend code such as controllers, models, services, validation, security, and domain boundaries.

In plain words
What is it for?
Plan or review Yii 1.x and PHP 5.6 backend work, including business logic placement, security, validation, and TDD-based implementation.
Why use it?
It keeps changes compatible with the constrained PHP 5.6 runtime while supporting a later move to PHP 7 and encouraging tests before behavior changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: $skill-name invocation.

Part of the dhpk plugin — 65 skills, 31 commands, 37 agents, 3 hooks shipped together

Good fit Plan or review Yii 1.x and PHP 5.6 backend work, including business logic placement, security, validation, and TDD-based implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmj1026/dhpk/dhpk-yii1-php56-development
View source ↗ hmj1026/dhpk
Install

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.

Any agent
npx skills add hmj1026/dhpk --skill dhpk-yii1-php56-development
Clone the repo
git clone --depth 1 https://github.com/hmj1026/dhpk

Made for: Claude Code.

Or install dhpk, the plugin that ships this one along with the rest of its 65 skills, 31 commands, 37 agents, 3 hooks.

Wrote 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.

agentmods badge for dhpk-yii1-php56-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-yii1-php56-development/github.svg)](https://agentmods.dev/skills/hmj1026/dhpk/dhpk-yii1-php56-development)
Your own site
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-yii1-php56-development"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-yii1-php56-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dhpk-yii1-php56-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-yii1-php56-development"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-yii1-php56-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,064 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.02064
Opus 5 $0.00036 $0.01032
Sonnet 5 $0.00014 $0.00413
Haiku 4.5 $0.00007 $0.00206

Measured 7d ago against content hash 9f41452de9d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

dhpk-yii1-php56-development 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 7d 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.

generated/claude-profiles/compat-v1/package/skills/dhpk-yii1-php56-development/SKILL.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Php56 Yii Dev

Overview

Use this skill to work on generic Yii 1.x backend tasks in legacy PHP 5.6 environments without introducing syntax or patterns that block a later PHP 7 upgrade. Keep the workflow small: refresh framework knowledge through Context7 when needed, design with pragmatic DDD boundaries, drive changes with tests, then implement and verify.

When NOT to Use

  • Frontend-only work, documentation-only edits, or non-PHP stacks.
  • The workflow still needs classification or gate decisions — route to $flow-guide first, then return here for implementation.
  • The bug's root cause is unknown — route to $code-trace first, then return here for the PHP 5.6-safe fix.
  • Modern PHP 7+/PHPUnit 6+ greenfield code with no PHP 5.6 runtime constraint.

Core Rules

  1. Treat PHP 5.6 runtime compatibility as a hard constraint.
  2. Prefer code that still works after upgrading to PHP 7.x.
  3. Keep Controllers thin and move business rules into Application Service, Domain Service, Entity, or Value Object.
  4. Use TDD by default: write or identify a failing test before changing behavior.
  5. Use Context7 as the knowledge source for language, framework, testing, and security questions. State when a recommendation is an inference from the sources.
  6. If the task is simple CRUD with no real domain complexity, keep the design light and do not force ceremony.

Critical Never List

  • Never introduce PHP 7+ syntax or PHPUnit 6+ APIs into code or tests that must run on PHP 5.6 and PHPUnit 5.7.
  • Never leave business rules, validation rules, or SQL-heavy orchestration in a Controller when a Service, Domain object, or Repository boundary would make the change clearer.
  • Never trust mass assignment, request filters, sorting input, table names, or column names without scenario checks or allow-list validation.
  • Never concatenate untrusted input into SQL, and never assume queryRow() or queryScalar() returns null on no result.
  • Never use strcmp() to verify MySQL string ordering under utf8_unicode_ci; use strcasecmp() for ordering assertions.
  • Never pretend a risky legacy path is covered when it is not. Write a characterization test, isolate a smaller seam, or call out the coverage gap explicitly.

Read the full file on GitHub · 195 lines

Changes

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.

  1. 7d ago First seen · 195 lines · 71 tokens per session scan A 9f41452de9d8

Subscribe to this mod's changes

dhpk-yii1-php56-development is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed yesterday), licensed MIT. It adds 71 tokens to every session and 2,064 once invoked, about $0.0004 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-09-05.

Related

Other skills, from other repositories

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…

michtio/craftcms-claude-skills · 327 tokens

php-ecosystem-reference

Use when picking a non-Laravel PHP tool — Symfony components, API Platform, or Slim — and routing to implementation. Do NOT use for Laravel (laravel-expert).

fusengine/agents · 42 tokens

php-http-psr

Use when building framework-agnostic PHP HTTP code — PSR-7/15/17/18 messages, middleware, factories, clients. Do NOT use for Laravel HTTP or Symfony HttpFoundation (not PSR-7).

fusengine/agents · 52 tokens

php-laravel

Modern PHP 8.2+ and Laravel patterns: architecture, Eloquent, queues, Pest testing. Use when asked to "write PHP", "build a Laravel app", "fix Eloquent query", "add a queue job", "write a Pest test", or mentions PHP, Laravel, Eloquent, Blade, artisan, or migrations.

iliaal/whetstone · 74 tokens

ia-php-laravel

Modern PHP 8.4 and Laravel patterns: architecture, Eloquent, migrations, queues, testing. Use when working with Laravel, Eloquent, Blade, artisan, or building/testing a framework-based PHP app. Not for php-src internals, standalone PHP libraries, or general PHP language discussion.

iliaal/whetstone · 67 tokens

symfony:interfaces-and-autowiring

Master Symfony Dependency Injection with autowiring.

dev-toolings/superpowers-symfony · 18 tokens