tools-input-validation

Validate plan IDs, paths, enums, and skill notations for plan-marshall scripts.

4|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/cuioss/plan-marshall --skill tools-input-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tools-input-validation
Source: https://github.com/cuioss/plan-marshall/tree/main/marketplace/bundles/plan-marshall/skills/tools-input-validation
Command: npx skills add https://github.com/cuioss/plan-marshall --skill tools-input-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a centralized, reusable input validation module for plan-marshall scripts to prevent invalid inputs from propagating into filesystem operations.

Core Features & Use Cases

  • Plan ID validation using kebab-case rules
  • Relative path validation to prevent absolute paths and directory traversal
  • Enum membership validation against allowed values
  • Skill notation validation in bundle:skill format
  • Both raising (ValueError) and boolean validators for flexible usage

Quick Start

Call validate_plan_id on a kebab-case plan_id to validate input format

Frequently Asked Questions about tools-input-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate user input parameters to prevent path traversal in Python scripts?

To prevent path traversal in Python scripts, validate relative paths using dedicated functions that reject absolute paths and directory traversal sequences before passing inputs to filesystem operations.

How do I validate kebab-case plan IDs or skill notations in automation pipelines?

Validating kebab-case plan IDs or skill notations involves applying specific formatting rules to the input string. You can enforce kebab-case patterns and bundle:skill formats using dedicated validators to raise errors for invalid data.

What is the best way to check enum values against an allowed list in Python?

Checking enum values against an allowed list is done using an enum membership validator that compares inputs to predefined values. Both raising validators and boolean helpers are available for flexible usage.

Does this input validation module support boolean checks or only raising exceptions?

This input validation approach supports both raising validators that throw ValueError and boolean helper functions. You can use boolean checks like is_valid_plan_id for flexible logic flow without triggering exceptions.

Why does my Python script fail when relative paths contain directory traversal sequences?

Relative path validation fails on directory traversal sequences because the validation logic actively blocks unauthorized filesystem access. This security measure prevents invalid data from reaching filesystem operations.