cli-scans
Scan files, directories, or stdin for PII with the Presidio CLI.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cli-scans
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Scan files, directories, or stdin for PII with the Presidio CLI.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/cli-reference.md2.9 KB
- 参考文档references/configuration.md2.3 KB
- 参考文档references/troubleshooting.md3.8 KB
- 脚本scripts/presidio_cli_smoke.sh1.6 KB
- 脚本scripts/sample_presidiocli.yaml707 B
03 SKILL.md 正文
cli-scans
Use this sub-skill when you need the presidio command to scan files, directory trees, or stdin for PII findings.
Use this for
- recursive file or directory scans
- stdin scans with
- - YAML configuration files and inline YAML config data
- ignore and allow lists
- score thresholds and warning suppression
- output formats for local terminals and CI
- locale-sensitive output behavior
Route elsewhere when you need
- custom recognizers, NLP engines, or entity catalogs:
../analyze-text/SKILL.md - anonymizing or deanonymizing detected spans:
../anonymize-text/SKILL.md - service deployment, Docker, or HTTP runtime guidance:
../../references/service-and-rest-api.md
Start here
references/cli-reference.mdfor command syntax, formats, and scan behaviorreferences/configuration.mdforPresidioCLIConfig, config precedence, and YAML fieldsreferences/troubleshooting.mdfor common failures and recovery stepsscripts/presidio_cli_smoke.shfor a safe help check and tiny scan smoke testscripts/sample_presidiocli.yamlfor a portable config template
Operational notes
- Console entry point:
presidio - Config loading order:
--config-data,--config-file, current.presidiocli, then the bundled default config --thresholdoverrides the loaded config for one run- Ignore patterns use
pathspecingitwildmatchmode --format autoprefers GitHub annotations in GitHub Actions, colored output in a TTY, and standard output otherwise- Use
githubformat in CI andparsableformat for line-oriented machine parsing
Troubleshooting focus
If a scan fails or behaves unexpectedly, check references/troubleshooting.md first. It covers invalid YAML, unknown entity names, missing spaCy model issues, ignore-pattern surprises, threshold confusion, stdin versus file behavior, output-format expectations, and the current exit-code caveat.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).