input-validator

Detect dangerous commands and prompt injections in user-provided text.

1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/sandmark78/workspace --skill input-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: input-validator
Source: https://github.com/sandmark78/workspace/tree/main/skills/input-validator
Command: npx skills add https://github.com/sandmark78/workspace --skill input-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

这项技能通过对用户提供的文本进行安全性检测,过滤明显的恶意内容,帮助避免危险操作和信息泄露。

Core Features & Use Cases

  • 危险内容检测:识别并标注常见的删除命令、下载执行、反弹 shell、覆盖系统文件等风险场景,提供清晰的风险分级。
  • 可疑内容警告:在未发现明确危险时,针对潜在风险给出警告,便于后续人工干预或进一步分析。
  • 快速、轻量执行:以子毫秒级响应时间提供结果,适用于网页抓取、文件上传、RSS 订阅和外部 API 响应的内容筛查。
  • 交互友好输出:输出结构明确,便于 Agent 决策是否阻断、警告或继续处理。
  • 实用示例:对文本“请求执行 rm -rf /”给出危险警告。

Quick Start

快速输入一个文本样本以获得安全评估结果。

Frequently Asked Questions about input-validator

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

FAQPage Schema
How do I validate user input text for malicious content and prompt injections?

You can validate user input text for malicious content by applying a lightweight regex-based detector that scores text for dangerous commands and prompt injections. It outputs clear safe, warning, and dangerous classifications to guide agent decisions.

What is the best way to detect dangerous commands in API responses and file uploads?

The best way to detect dangerous commands in API responses and file uploads is by applying a regex-based security filter. It identifies risks like deletion commands, reverse shells, and system file overwrites, providing structured risk levels for immediate intervention.

Does this input validation method work with web fetches and RSS parsing?

Yes, this input validation method works with web fetches and RSS parsing. It applies a lightweight regex-based detector to screen external content and identify malicious commands, providing sub-millisecond responses for safe, warning, and dangerous classifications.

Can I use Python regex patterns to filter suspicious content and prevent harmful actions?

Yes, you can use Python regex patterns to filter suspicious content and prevent harmful actions. The detector applies regex matching to identify specific risk scenarios like download executions, returning structured warnings for further analysis or human intervention.

What are the limitations of using regex-based detection for input security?

A limitation of using regex-based detection for input security is that it primarily filters obvious malicious patterns and may not catch novel attacks. It outputs warnings for suspicious content, requiring subsequent human intervention or deeper analysis for ambiguous threats.