Chapter XI · Skills

Content Scrubber

Use a deterministic scrubber between your agent and any external delivery surface.

Goal

Prevent accidental leakage of internal infrastructure details, local endpoints, and operator-specific identifiers.

What to catch

Why deterministic rules

Use regex or explicit pattern rules, not an LLM rewrite pass.

Deterministic scrubbing is:

Placement

Run the scrubber as close to outbound delivery as possible:

Replacement strategy

Replace sensitive values with stable placeholders such as:

Example

Before:

SSH into user@[redacted-ip] and check the service on [redacted-service]

After:

SSH into [redacted-target] and check the service on [redacted-service]

Minimum config surface

Keep configuration small:

Verification

Test with fixtures that include:

Failure mode to avoid

Do not make the scrubber so aggressive that it destroys legitimate public links, package names, or documentation examples. Precision matters.