AGENT SKILL

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

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.md for command syntax, formats, and scan behavior
  • references/configuration.md for PresidioCLIConfig, config precedence, and YAML fields
  • references/troubleshooting.md for common failures and recovery steps
  • scripts/presidio_cli_smoke.sh for a safe help check and tiny scan smoke test
  • scripts/sample_presidiocli.yaml for a portable config template

Operational notes

  • Console entry point: presidio
  • Config loading order: --config-data, --config-file, current .presidiocli, then the bundled default config
  • --threshold overrides the loaded config for one run
  • Ignore patterns use pathspec in gitwildmatch mode
  • --format auto prefers GitHub annotations in GitHub Actions, colored output in a TTY, and standard output otherwise
  • Use github format in CI and parsable format 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351