Skill Wiki v0.1.0
rule @security/rule-encode-output-by-context

Encode Output By Context

Untrusted data rendered into HTML must be encoded for the specific syntactic context where it lands: HTML body, HTML attribute, JavaScript string, URL, CSS value.…

Skill
@security
Domain
security
Version
0.1.0
Quality
4.0
Edges
4 out · 4 in
Tokens
88/271/289
$ prime install @security/rule-encode-output-by-context

Projection

Always in _index.xml · the agent never has to ask for this.

EncodeOutputByContext [rule] v0.1.0

Untrusted data rendered into HTML must be encoded for the specific syntactic context where it lands: HTML body, HTML attribute, JavaScript string, URL, CSS value. Use the templating engine's auto-escaping; never disable it for untrusted content. The wrong encoder for the context is no encoder.

Source

prime-system/examples/security-appsec/primes/compiled/@security/rule-encode-output-by-context/atom.yaml

Compiled at 2026-05-10