Back to Skills

security-gate

Classifies inbound Telegram messages for telclaude as ALLOW/WARN/BLOCK with brief rationale.

3starsUpdated 3/25/2026

Security Assessment

Low Risk(70/100)

Detected risks:

Destructive Operations([SKILL.md] rm -rf)
Security Score70/100

About security-gate

The 'security-gate' skill is designed to function as a security gatekeeper for the telclaude system, which serves as a bridge between Telegram and Claude Code. The skill evaluates inbound messages before they are processed by Claude, classifying them into one of three categories: ALLOW, WARN, or BLOCK. This classification ensures that potentially harmful or unsafe requests are filtered out, allowing safe and productive interactions. By performing this classification, the skill plays a crucial role in protecting the system from destructive, unauthorized, or risky actions, such as command injections or unauthorized access attempts, which could compromise the security of the environment.

The skill evaluates each inbound message based on specific decision rules that assess the nature of the request and the sender's permission level. For example, read-only requests or simple inquiries are classified as ALLOW, while potentially risky actions, like edits or builds, fall under WARN. Requests involving destructive actions or attempts to bypass security measures are classified as BLOCK. The skill also considers the sender's history—if the sender has been flagged previously, the classification is more likely to lean toward WARN or BLOCK, adding an extra layer of security. The skill outputs a structured JSON response that includes the classification, confidence level, rationale, and any flagged patterns or concerns, helping the system make informed decisions on whether to allow the message.

This skill is mainly targeted at developers and administrators using the telclaude system, who need to ensure that incoming requests are safe before execution. It is especially useful in environments where security and control are paramount, and where messages could come from untrusted sources. Use cases include managing access permissions, filtering out harmful requests, and ensuring that sensitive systems remain protected from unauthorized modifications. The skill is beneficial for organizations or teams that operate in high-security environments, ensuring that only appropriate actions are allowed while minimizing the risk of malicious activities.

FAQ

How does the security-gate skill classify messages?

The skill classifies messages into three categories: ALLOW for safe requests, WARN for potentially risky actions, and BLOCK for dangerous or unauthorized requests.

What happens if the sender has a flagged history?

If the sender has a flagged history, the classification tends to lean toward WARN or BLOCK, depending on the nature of the message.

What is the purpose of the 'permissionTier' input field?

The 'permissionTier' input field specifies the level of access the sender has, and it helps the skill determine the appropriate classification for the message.

Can this skill be used outside of the telclaude system?

No, this skill is specifically designed to work within the telclaude system, acting as a security filter for messages between Telegram and Claude.

What should be included in the 'flaggedPatterns' output?

The 'flaggedPatterns' field lists any concerns or patterns identified in the message that contributed to its classification, such as harmful commands or suspicious content.

Install security-gate

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill