Skip to content
Back to skills

Adapter Registration Validation

ASecurity

Register, validate, and assemble structured tool adapters without shell command interpolation.

  • 2 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added October 15, 2026
securitypythonshellapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 15, 2026

npx -y skills add sodejm/copilot-operation-plugin-for-security --skill adapter-registration-validation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Adapter Registration Validation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Adapter Registration Validation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sodejm-adapter-registration-validation/badge)](https://www.skillsdirectory.com/skills/sodejm-adapter-registration-validation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md1.1 KB
  • tests/test_skill.py1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.