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 fabioc-aloha/Alex_Skill_Mall --skill parity-guard-test-patterngit clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_MallWrote 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/fabioc-aloha/alex_skill_mall/parity-guard-test-pattern)<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/parity-guard-test-pattern"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/parity-guard-test-pattern/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/fabioc-aloha/alex_skill_mall/parity-guard-test-pattern"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/parity-guard-test-pattern.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.00028 | $0.00596 |
| Opus 5 | $0.00014 | $0.00298 |
| Sonnet 5 | $0.00006 | $0.00119 |
| Haiku 4.5 | $0.00003 | $0.00060 |
Grade A, and why
parity-guard-test-pattern scanned grade A with 1 finding 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
content.includes("child_process") && How it starts
The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Parity Guard Test Pattern
The Problem
When checking that all callers of a contract implement it correctly, you get false positives from wrapper delegators:
// Contract: "All files that call exec() must handle exit code 2"
// Direct caller — MUST implement contract
execFileSync('node', [script]); // Must handle exit code
// Delegator — calls wrapper that already handles contract
runMuscle(script); // runMuscle handles exit code internally
Testing both the same way creates noise.
The Solution
Split tests into DIRECT callers and DELEGATION callers.
// parity-guard.test.js
const directCallers = findFiles((content) =>
content.includes("child_process") &&
/exec(File)?Sync|spawn/.test(content)
);
const wrapperCallers = findFiles((content) =>
/runMuscle|muscleAndPrompt|executeScript/.test(content)
);
describe('Contract: exit code handling', () => {
describe('Direct callers (must implement)', () => {
directCallers.forEach(file => {
it(`${file} handles exit code 2`, () => {
const content = fs.readFileSync(file, 'utf8');
expect(content).toMatch(/exitCode|status|code.*===?\s*2/);
});
});
});
describe('Delegators (exempt — wrapper handles)', () => {
wrapperCallers.forEach(file => {
it(`${file} uses contract-compliant wrapper`, () => {
const content = fs.readFileSync(file, 'utf8');
// Just verify they use the wrapper, not raw exec
expect(content).not.toMatch(/execFileSync|execSync/);
});
});
});
});
Classification Rules
| Pattern | Category | Contract Obligation |
|---|---|---|
require('child_process') + exec* |
Direct | Must implement |
import { spawn } + spawn() |
Direct | Must implement |
runMuscle() |
Delegator | Exempt |
shellExecute() (if contract-compliant) |
Delegator | Exempt |
Verification
- Direct callers all implement the contract
- Delegators use compliant wrappers
- No false positives from wrapper usage
- New callers are automatically classified
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.
- 6d ago First seen · 89 lines · 28 tokens per session scan A 1f0213dd72d6
parity-guard-test-pattern is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (4 stars, last pushed 3d ago), licensed MIT. It adds 28 tokens to every session and 596 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
code-qualities-assessment
Assess code maintainability through 5 foundational qualities (cohesion, coupling, encapsulation, testability, non-redundancy) with quantifiable scoring rubrics. Works at method/class/module levels across multiple languages. Produces markdown reports with remediation guidance. Use when you ask to "assess…
pr-quality-qa
Judge a local diff on test coverage, error handling, and whether the tests would fail if the code regressed, and return a PASS/WARN/CRITICALFAIL verdict. Use when you say qa review my changes, run the qa gate, or are these tests good enough. Do NOT use to run all six axes (use pr-quality-all), and do NOT use to write…
review
Review current code changes for bugs, regressions, test gaps, and project-guideline violations.
phoenix-review
Review completed work against the Intent Contract's acceptance criteria using objective evidence, not opinion — re-run every check, confirm no regressions, inspect the tamper-evident trace, and surface only real issues (bugs, unmet criteria, regressions). Use before shipping, after a feature is built, or when the user…
red-team-review
Unified adversarial review: v4.3 Strategic Matrix (MTA-004). 7-phase framework: Priors → Rubric → Adversarial Lenses → SWOT/TOWS → MCDA Decision Engine → Blind Spot/Kill Switch → Executive Summary. Absorbs: bias-detector.
prompt-caching-patterns
Anthropic API prompt caching: TTL, breakpoints, stacking, invalidation, hit rate. Triggers: prompt caching, cachecontrol, cache breakpoint, cache TTL, hit rate.