AGENT SKILL
redaction-validator
Test that a new or modified redaction rule fires on the target pattern without matching any preserved token.
- License 许可
- MIT
- 最近更新
- 2026-07-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- redaction-validator
- description
- Test that a new or modified redaction rule fires on the target pattern without matching any preserved token.
03 SKILL.md 正文
Redaction Validator
When to use
Use when adding or modifying a rule in src/services/redaction/rules/; when debugging a false-positive redaction report.
Key files
src/services/redaction/rules/index.tssrc/services/redaction/preserve.tssrc/services/redaction/redaction.tssrc/services/redaction/tests/
Common pitfalls
- Adding a rule to a standalone file outside
RULE_CATEGORIES—ALL_RULESwon't include it. - Using a callback
replacement— the interface only allows literal string replacements. - Not running
auditRulesAgainstFixturesagainstPRESERVED_TOKENSafter adding the rule. - Missing the global
gflag on the regex — single-match patterns leave duplicates. - Not checking whether the rule matches
source_path,sessionId,rowid, or other identity keys inPRESERVED_TOKENS.
04 同仓库更多 Skills
audit-sqlite-usage
Audit all bun:sqlite call sites for correctness against the rules in bun-sqlite.md and cross-platform.md.
★ 0
add-source-parser
Step-by-step scaffold for adding a new coding-agent source to the gateway.
★ 0
sample-skill
Example skill
★ 0