European-Parliament-MCP-Server: Skill for Claude Code

.github/skills/testing-strategy/SKILL.md

testing-strategy is a skill for Claude Code, Codex from Hack23/European-Parliament-MCP-Server. It costs 31 tokens per session (6,622 once invoked), scanned A, original, Apache-2.0.

A set of testing rules for Node.js code and MCP protocol handlers, using unit tests, integration tests, mocked API responses, and coverage checks.

In plain words
What is it for?
Use it to write or debug tests, mock European Parliament API responses, check asynchronous code, measure coverage, and test MCP handlers.
Why use it?
It helps catch regressions, validation errors, security edge cases, and unreliable tests before they reach users.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is Hack23/European-Parliament-MCP-Server's own configuration. It tells Claude Code and Codex how to work on European-Parliament-MCP-Server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything European-Parliament-MCP-Server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Hack23/European-Parliament-MCP-Server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Hack23/European-Parliament-MCP-Server/main/.github/skills/testing-strategy/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Hack23/European-Parliament-MCP-Server

Made for: Claude Code, Codex.

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 testing-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/hack23/european-parliament-mcp-server/testing-strategy/github.svg)](https://agentmods.dev/skills/hack23/european-parliament-mcp-server/testing-strategy)
Your own site
<a href="https://agentmods.dev/skills/hack23/european-parliament-mcp-server/testing-strategy"><img src="https://agentmods.dev/badge/skills/hack23/european-parliament-mcp-server/testing-strategy/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 testing-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/hack23/european-parliament-mcp-server/testing-strategy"><img src="https://agentmods.dev/badge/skills/hack23/european-parliament-mcp-server/testing-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,622 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Memory Poisoning · line 921
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
How audits are shown
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.00031 $0.06622
Opus 5 $0.00015 $0.03311
Sonnet 5 $0.00006 $0.01324
Haiku 4.5 $0.00003 $0.00662

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

Security

Grade A, and why

testing-strategy 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 10d 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.

.github/skills/testing-strategy/SKILL.md · 929 lines

How it starts

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

Testing Strategy Skill

Context

This skill applies when:

  • Writing unit tests for functions, classes, or modules
  • Creating integration tests for MCP protocol handlers
  • Mocking European Parliament API responses
  • Testing input validation and error handling
  • Writing tests for async/await code and Promises
  • Implementing test fixtures and test data
  • Measuring and improving code coverage
  • Testing security controls and edge cases
  • Debugging failing or flaky tests
  • Setting up test infrastructure and CI/CD

Testing is mandatory for all code. We maintain 80%+ code coverage with fast, deterministic tests that catch regressions early. Tests serve as living documentation and enable confident refactoring.

Rules

  1. Test Behavior, Not Implementation: Focus on what code does (inputs/outputs), not how it does it
  2. 80% Coverage Minimum: Maintain 80%+ line coverage, 70%+ branch coverage
  3. Fast Tests: Unit tests < 100ms, integration tests < 1s, full suite < 5min
  4. Deterministic Tests: Tests must pass/fail consistently - no flakiness, no randomness
  5. AAA Pattern: Arrange (setup), Act (execute), Assert (verify) - clear test structure
  6. One Assertion Per Test: Test one behavior per test case (exceptions for related assertions)
  7. Mock External Dependencies: Mock European Parliament API, file system, network calls
  8. Test Edge Cases: Empty inputs, null values, boundary conditions, error paths
  9. Describe What, Not How: Test names describe expected behavior, not implementation
  10. Use Type-Safe Mocks: TypeScript mocks should match actual types
  11. Test Async Properly: Use async/await, avoid callback hell, handle Promise rejections
  12. Test Security Controls: Validate input validation, rate limiting, authentication, authorization
  13. Setup and Teardown: Clean up resources, reset mocks, avoid test pollution
  14. Snapshot Tests Sparingly: Only for stable data structures, not for debugging
  15. CI/CD Integration: All tests must pass before merge, run on every commit

Read the full file on GitHub · 929 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. 10d ago First seen · 929 lines · 31 tokens per session scan A cd503025952b

Subscribe to this mod's changes

testing-strategy is a skill published in the GitHub repository Hack23/European-Parliament-MCP-Server (28 stars, last pushed yesterday), licensed Apache-2.0. It adds 31 tokens to every session and 6,622 once invoked, about $0.0002 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-08-30.