dhpk-library-dual-testsuite-map

dhpk-library-dual-testsuite-map is a skill for Claude Code from hmj1026/dhpk. It costs 181 tokens per session (1,244 once invoked), scanned A, original, MIT.

A test-selection guide for libraries that have separate framework-independent and framework-specific code and test suites.

In plain words
What is it for?
Use it after editing library files to choose the core suite, a framework suite such as Laravel or Symfony, or both.
Why use it?
It maps an edited source or test path to the tests that cover it, so developers do not run the wrong suite or miss a framework integration suite.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit Use it after editing library files to choose the core suite, a framework suite such as Laravel or Symfony, or both.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmj1026/dhpk/dhpk-library-dual-testsuite-map
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-library-dual-testsuite-map
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-library-dual-testsuite-map

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-library-dual-testsuite-map/github.svg)](https://agentmods.dev/skills/hmj1026/dhpk/dhpk-library-dual-testsuite-map)
Your own site
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-library-dual-testsuite-map"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-library-dual-testsuite-map/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-library-dual-testsuite-map

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-library-dual-testsuite-map"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-library-dual-testsuite-map.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 181 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,244 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.00181 $0.01244
Opus 5 $0.00090 $0.00622
Sonnet 5 $0.00036 $0.00249
Haiku 4.5 $0.00018 $0.00124

Measured 6d ago against content hash 4c2874d02c4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

dhpk-library-dual-testsuite-map 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 6d 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-library-dual-testsuite-map/SKILL.md · 147 lines

How it starts

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

Library dual-testsuite map

A library that supports multiple framework majors typically splits its source into:

src/
├── Core/             # framework-agnostic — no Illuminate / Symfony imports
└── <Framework>/      # glue layer — pulls in container, facades, etc.

And mirrors the split in tests:

tests/
├── Core/             # boots no container
└── <Framework>/      # boots Testbench / Symfony Kernel / etc.

The phpunit.xml declares both as testsuites:

<testsuites>
  <testsuite name="core"><directory>tests/Core</directory></testsuite>
  <testsuite name="laravel"><directory>tests/Laravel</directory></testsuite>
</testsuites>

And composer.json exposes them as scripts:

"scripts": {
  "test:core":    "phpunit --testsuite=core",
  "test:laravel": "phpunit --testsuite=laravel",
  "test:unit":    ["@test:core", "@test:laravel"]
}

The skill: given an edited file path, tell the developer which testsuite to run (or both).


When to run

  • After editing any src/** file
  • After editing any tests/** file
  • When the user asks "which tests should I run?"

When NOT to Use

  • Projects with a single testsuite — this skill has nothing to do
  • E2E / integration tests in a separate dir (e.g. tests/Integration/) that runs in CI but not locally

Decision rules

Read phpunit.xml for the testsuite-to-directory mapping. Then apply:

Edit location Run
src/Core/** only composer test:core
src/Laravel/** (or other framework dir) only composer test:laravel
Both Core and framework dirs composer test:unit (= both suites)
tests/Core/** only composer test:core
tests/Laravel/** only composer test:laravel
src/Core/<X> + tests/Laravel/<X> (cross-layer) composer test:unit — and ask why a Core class needs a Laravel-only test (smell)
phpunit.xml or composer.json composer test:unit (config touched, run everything)

Cross-layer smell rules

Read the full file on GitHub · 147 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. 6d ago First seen · 147 lines · 181 tokens per session scan A 4c2874d02c4d

Subscribe to this mod's changes

dhpk-library-dual-testsuite-map is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 181 tokens to every session and 1,244 once invoked, about $0.0009 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