skill-security-framing

Validates URLs and wraps untrusted external content in security frames before analysis.

Updated Aug 15, 2026
One-click install
npx skills add https://github.com/GongYuanCaiJi/dsh-claude-octopus --skill skill-security-framing-gongyuancaiji
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: skill-security-framing
Source: https://github.com/GongYuanCaiJi/dsh-claude-octopus/tree/main/.claude/skills/skill-security-framing
Command: npx skills add https://github.com/GongYuanCaiJi/dsh-claude-octopus --skill skill-security-framing-gongyuancaiji

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Fetching and analyzing external content (URLs, webhooks, API responses) exposes AI workflows to prompt injection, SSRF attacks against internal networks, and embedded malicious instructions. This Skill defines mandatory patterns to neutralize those risks before content reaches analysis subagents. ## Core Features & Use Cases - URL Validation: Rejects insecure protocols, localhost, private IP ranges (RFC 1918), cloud metadata endpoints, and oversized URLs before any fetch occurs. - Security Frame Wrapping: Wraps all fetched content in an explicit UNTRUSTED context that instructs subagents to treat content as data only and never execute embedded instructions. - Platform Transforms: Converts Twitter/X URLs to the FxTwitter API with strict hostname and tweet ID validation to block spoofing attacks. - Use Case: When a research workflow fetches an article from a user-provided link, the URL is validated, content is truncated to size limits, wrapped in the security frame, and passed to an analysis subagent that extracts patterns without following any instructions inside the content. ## Quick Start Apply the security framing standard to validate and safely analyze the content at this URL before summarizing it.

Frequently Asked Questions about skill-security-framing

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

FAQPage Schema
How do I prevent prompt injection when analyzing external web content?▼

Wrap all fetched content in a security frame that marks it as UNTRUSTED and explicitly instructs the analyzing agent to treat it as data only, never executing embedded instructions. Validate the URL first and sanitize the subagent output before presenting results.

How to validate URLs before fetching content in an AI workflow?▼

Require https:// protocol, reject localhost, private IP ranges (10.x, 172.16-31.x, 192.168.x), link-local addresses, and cloud metadata endpoints like 169.254.169.254. Also enforce a maximum URL length of 2000 characters.

What is SSRF protection for AI agents fetching URLs?▼

SSRF protection blocks requests to internal network addresses that attackers could target through crafted URLs. This skill rejects loopback, RFC 1918 private ranges, IPv6 loopback, and cloud metadata endpoints before any fetch occurs.

Does this skill handle Twitter or X.com URLs?▼

Yes, Twitter/X URLs are transformed to the FxTwitter API for reliable extraction without JavaScript rendering. It strictly validates hostnames to reject spoofed domains like x.com.evil.com and requires numeric tweet IDs.

What are the content size limits when fetching external content?▼

Text and HTML content is truncated at 100,000 characters with a [TRUNCATED] marker, JSON at 50,000 characters, and binary content is rejected entirely. Images require separate handling through vision models.