Back to skills
SKILL.md
Adapter Registration Validation
ASecurityRegister, validate, and assemble structured tool adapters without shell command interpolation.
- 2 stars
- 0 votes
- 0 copies
- 1 view
- Added October 15, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add sodejm/copilot-operation-plugin-for-security --skill adapter-registration-validation --agent claude-codeAre you the author of Adapter Registration Validation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sodejm-adapter-registration-validation)---
name: adapter-registration-validation
description: Register, validate, and assemble structured tool adapters without shell command interpolation.
---
# Adapter registration validation
Manage and validate declarative tool adapters (`cops/adapters/`) for deterministic argument assembly.
## Core Responsibilities
1. **No Arbitrary Shell Command Interpolation**:
- Commands are constructed strictly via argument arrays (`list[str]`).
- Metacharacters (`;`, `&`, `|`, `` ` ``, `$`) and directory traversal sequences (`..`, `/etc`) are strictly blocked.
2. **Strict Parameter Validation**:
- Typed parameter validation (`integer`, `boolean`, `enum`, `string` with regex constraints).
- Flag injection prevention.
## Python API
```python
from cops.adapters import ToolAdapterRegistry, AdapterInjectionError
# 1. Initialize registry
registry = ToolAdapterRegistry()
# 2. Get adapter
nmap = registry.get_adapter("nmap")
# 3. Assemble command
cmd = nmap.assemble_command("port_scan", {"target": "10.0.0.5", "ports": "80,443"})
# Returns: ['nmap', '-sT', '-Pn', '--max-retries', '1', '-p', '80,443', '-T', '3', '10.0.0.5']
```
Files in this skill
- SKILL.md
- tests/test_skill.py
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.