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.
npx skills add skmtc/skmtc --skill skmtc-lang-phpgit clone --depth 1 https://github.com/skmtc/skmtcWrote 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.
[](https://agentmods.dev/skills/skmtc/skmtc/skmtc-lang-php)<a href="https://agentmods.dev/skills/skmtc/skmtc/skmtc-lang-php"><img src="https://agentmods.dev/badge/skills/skmtc/skmtc/skmtc-lang-php/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.
<a href="https://agentmods.dev/skills/skmtc/skmtc/skmtc-lang-php"><img src="https://agentmods.dev/badge/skills/skmtc/skmtc/skmtc-lang-php.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00118 | $0.07854 |
| Opus 5.5 | $0.00047 | $0.03142 |
| Sonnet 5.5 | $0.00024 | $0.01571 |
| Haiku 4.5 | $0.00012 | $0.00785 |
Grade A, and why
skmtc-lang-php 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 509 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The PHP layer (@skmtc/lang-php)
Read skmtc-generator first. The two worked examples are
@skmtc/gen-php-dto (a model generator) and @skmtc/gen-php-guzzle (an
SDK: an Index for each service, and an accumulator for the client).
Generated code needs PHP 8.2 or later. The style of both follows
openai-php/client (section 13).
Import each module by its own path (@skmtc/lang-php/PhpList), and not
from the root of the package. Do the same for core
(@skmtc/core/OasOperation).
1. Declare the language
The import graph declares the language. src/base.ts imports a factory,
and each snippet extends PhpSnippet.
import { PhpName } from '@skmtc/lang-php/PhpName'
import { toPhpModelProjectionBase } from '@skmtc/lang-php/toPhpModelProjectionBase'
export const PhpDtoBase = toPhpModelProjectionBase<EnrichmentSchema>({
id: denoJson.name,
toIdentifierName({ ref }) {
return new PhpName(toModelName(ref)).toClassName()
},
toIdentifierType,
toExportPath({ ref, enrichments, variant }) {
const name = this.toIdentifierName({ ref, enrichments, variant })
return `@/Model/${name}.php`
},
})
The factories are toPhpModelProjectionBase,
toPhpOasOperationProjectionBase and toPhpOasOperationIndexBase.
2. A folder is a namespace
PSR-4 gives one folder to a namespace prefix, and each folder below it is one more part of the namespace.
settings.packagesgives a folder its prefix.{ "rootPath": "Model", "moduleName": "Acme\\Shop\\Model" }puts@/Model/Order.phpinAcme\Shop\Model.- A file in no package gets its namespace from its folders. They are
the folders below
basePath:Model. A file at the top is in the global namespace, and has nonamespaceline. - Put the files in a folder. The workspace root cannot be a package root, so a file at the top can never get a prefix.
- Each folder of an export path must be a PHP name.
PhpFilestops the run for@/pet-store/Order.php. - The name of a file is the name of its class. PSR-4 finds
OrderinOrder.php. The engine adds.generatedto each file name by default (settings.generatedSuffix). A project that loads classes by PSR-4 sets it to"". A class map of Composer loads any file name. - A file that you register yourself gets the suffix from
toGeneratedPath(context, path). The engine adds the suffix to the export path of a projection only. - Each name is one class in the namespace.
toNameScopeis the folder, so the engine gives the second model that claims a name a counter (Order2).
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.
- 2d ago Changed 3cd209a8971e
- 3d ago First seen · 509 lines · 118 tokens per session scan A 62109e777ddc
skmtc-lang-php is a skill published in the GitHub repository skmtc/skmtc (20 stars, last pushed today), licensed Apache-2.0. It adds 118 tokens to every session and 7,854 once invoked, about $0.0005 per session on Opus 5.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-12-03.
skmtc-lang-php compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| skmtc-lang-phpskmtc/skmtc | Skill | 20 | today | Apache-2.0 | A | 118 | Claude Code |
| dd-code-generationDataDog/pup | Skill | 1.1k | yesterday | Apache-2.0 | A | 16 | Claude Code |
| typescript-strictWrongStack/WrongStack | Skill | 451 | today | MIT | A | 123 | Claude Code |
| node-modernWrongStack/WrongStack | Skill | 451 | today | MIT | A | 123 | Claude Code, Codex |
| php-laravelWrongStack/WrongStack | Skill | 451 | today | MIT | A | 85 | Claude Code |
| lathelathe-cli/lathe | Skill | 87 | 6d ago | Apache-2.0 | A | 39 | Claude Code, Codex |
| ocli-apiEvilFreelancer/openapi-to-cli | Skill | 268 | 2mo ago | MIT | A | 38 | Claude Code |