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

.github/skills/security-by-design/SKILL.md

security-by-design is a skill for Claude Code, Codex from Hack23/European-Parliament-MCP-Server. It costs 28 tokens per session (6,793 once invoked), scanned A, a copy of incident-response, Apache-2.0.

A set of rules for building safer APIs and MCP tools, including input checks, access controls, rate limits, audit records, and secure error handling.

In plain words
What is it for?
Use it when adding authentication, handling external data, exposing APIs, processing sensitive information, or designing validation, monitoring, and network security.
Why use it?
It helps prevent untrusted input, excessive access, abuse, and sensitive information leaking through errors or logs.

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/security-by-design/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 security-by-design

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hack23/european-parliament-mcp-server/security-by-design"><img src="https://agentmods.dev/badge/skills/hack23/european-parliament-mcp-server/security-by-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,793 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 88% copy Near-identical to another mod 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.00028 $0.06793
Opus 5 $0.00014 $0.03397
Sonnet 5 $0.00006 $0.01359
Haiku 4.5 $0.00003 $0.00679

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

Security

Grade A, and why

security-by-design 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 11d 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.

Origin

This is a copy

88% identical to incident-response — 979 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/skills/security-by-design/SKILL.md · 943 lines

How it starts

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

Security By Design Skill

Context

This skill applies when:

  • Implementing MCP protocol tools and handlers
  • Exposing European Parliament data through APIs
  • Handling user inputs or external data sources
  • Implementing authentication or authorization mechanisms
  • Processing sensitive or classified information
  • Designing rate limiting or abuse prevention
  • Implementing audit logging and monitoring
  • Writing security-critical validation logic
  • Handling errors and exceptions securely
  • Configuring network security or TLS

Security is foundational, not optional. Every feature must be designed with security in mind from the start, following the principle of "secure by default" and implementing defense-in-depth strategies aligned with Hack23 AB's ISMS policies.

Rules

  1. Never Trust Input: Validate and sanitize all user inputs - treat everything as potentially malicious
  2. Fail Securely: Systems must fail to a secure state, never expose sensitive information in errors
  3. Principle of Least Privilege: Grant minimal permissions required for functionality, nothing more
  4. Defense in Depth: Implement multiple overlapping security controls (validation + rate limiting + audit logging)
  5. Encrypt Everything: Use TLS 1.3+ for transit, AES-256 for at rest, never store secrets in plaintext
  6. Audit All Actions: Log authentication attempts, authorization failures, input validation errors
  7. Rate Limit Aggressively: Protect against abuse, DoS attacks, and resource exhaustion
  8. Validate Schema: Use strict schema validation for all MCP tool inputs and outputs
  9. Sanitize Output: Encode data appropriately to prevent injection attacks (XSS, command injection)
  10. Secure Defaults: All features must be secure by default, require opt-in for permissive settings
  11. No Secrets in Code: Never commit API keys, tokens, or credentials to source control
  12. Regular Updates: Keep dependencies updated, scan for vulnerabilities continuously
  13. Assume Breach: Design systems assuming attackers will get in - limit blast radius
  14. Document Security: Reference ISMS policies, document threat models and security controls
  15. Test Security: Write tests for authentication, authorization, input validation, and error handling

Read the full file on GitHub · 943 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. 11d ago First seen · 943 lines · 28 tokens per session scan A 4e5d5e31ff53

Subscribe to this mod's changes

security-by-design is a skill published in the GitHub repository Hack23/European-Parliament-MCP-Server (28 stars, last pushed yesterday), licensed Apache-2.0. It adds 28 tokens to every session and 6,793 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to incident-response, differing in 979 lines, and is treated as a copy.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

specflow-use

To connect Rosetta with Grid Dynamics SpecFlow MCP; only when SpecFlow is mentioned and the MCP is installed.

griddynamics/rosetta · 27 tokens

ue-mcp-epic-routing

Use when deciding between ue-mcp's native category actions and Epic's wrapped ToolsetRegistry tools (the epic actions, incl. the Blueprint graph DSL) for a task in Unreal. Pulls in when authoring Blueprint graph bodies, or any time both a native action and an epic action could do the job and you need to pick.

db-lyon/ue-mcp · 81 tokens

frontmcp-setup

Use when starting, scaffolding, or organizing a FrontMCP project. Covers creating a new project (CLI scaffold or manual) for Node, Vercel, and other targets; standalone versus Nx-monorepo layout, naming conventions, generators, and dependency rules; composing multiple @App classes, ESM packages, and remote MCP servers…

agentfront/frontmcp · 176 tokens

authoring-decorators

Use when the user wants to write a new prompt decorator - either a personal one for their repo or a contribution back to the upstream catalogue. Walks through the JSON schema, the extensions/ convention, how to verify a new decorator end-to-end through the hook, and how to diagnose failures using debug logging and…

synaptiai/prompt-decorators · 72 tokens

apitap

ApiTap gives AI agents cheap access to web data through three layers.

n1byn1kt/apitap · 0 tokens