凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate
English
regex-sandbox v1.0.1 · LGD-Powered productivity family · zero-dependency
Pain point
Tuning regex used to mean editing code and rerunning — one wrong pattern cost half a day of debugging.
When to use
- Whenever the user needs regex-sandbox capabilities.
Usage
python scripts/regex_sandbox.py --help
- Success → rc=0; problem found → rc=1; usage error → rc=2
--jsonfor machine-readable output- Disk-writing operations default to dry-run preview; add
--applyto execute (text-replace / dup-finder also back up first)
Workflow
- Trigger: identify a regex-sandbox task (see When to use).
- Execute: run regex_sandbox.py per Usage.
- Verify: check script output / exit code against expectations.
- Deliver: present the result / artifact to the user.
Safety design
- Only moves/renames, never deletes content files (dup-finder
--applydeletes only the byte-identical duplicate of the first copy) - Auto-backup before disk writes (text-replace generates .bak; batch-renamer / organizer can log the plan via
--jsonfor rollback)
Evidence & safety statement
- Evidence: TBD (no evaluation / badge link yet; update here once produced)
- Version: 1.0.1
- Safety: no independent security scan has been performed (TBD); the conclusion is pending and no endorsement is given until it is completed.
Disclaimer
This is a productivity helper; back up important data and confirm the preview before --apply.
中文
regex-sandbox v1.0.1 · LGD-Powered 效率工具家族 · 零依赖
痛点
调正则全靠改代码重跑,写错一次 debug 半天
何时用
- 当用户需要正则沙盒相关能力时。
用法
python scripts/regex_sandbox.py --help
- 成功 → rc=0;发现问题 → rc=1;用法错误 → rc=2
- 支持
--json机器可读输出 - 涉及写盘的操作默认 dry-run 预览,加
--apply才执行(text-replace/dup-finder 还会先备份)
流程
- 触发:识别正则沙盒相关任务(见「何时用」)。
- 执行:按「用法」运行 regex_sandbox.py。
- 校验:核对脚本输出/退出码是否符合预期。
- 交付:向用户呈现结果/产物。
安全设计
- 只移动/重命名,不删除内容文件(dup-finder 的 --apply 仅删除与首个完全同哈希的副本)
- 写盘前自动备份(text-replace 生成 .bak;batch-renamer/organizer 可用 --json 记录计划回滚)
证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.0.1
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
免责
本工具为效率辅助;对重要数据请先备份并在预览确认后再 --apply。
