_base
Skill719 starsChanged 3 days agoApache-2.0View on GitHub
ASH (Automated Security Helper) combines code, infrastructure, secrets, and dependency scanners behind one MCP interface. Its MCP server runs a scan in the background: you start it, poll it until it ends, then read the results. This skill assumes the server is connected; the plugin that ships this skill configures it. The server scans on the machine it runs on, always in local mode, with the scanner tools installed there. The project's ASH config, or the config profile the session…
In this repository15 other files it gives its agents.
- ash-agent-plugins/agentic-coding/plugins/AGENTS.mdAGENTS.md
- ash-agent-plugins/agentic-coding/plugins/cline/AGENTS.mdAGENTS.md
- ash-agent-plugins/agentic-coding/plugins/cursor/AGENTS.mdAGENTS.md
- ash-agent-plugins/agentic-coding/plugins/goose/AGENTS.mdAGENTS.md
- ash-agent-plugins/agentic-coding/plugins/roo/AGENTS.mdAGENTS.md
- ash-agent-plugins/agentic-coding/plugins/windsurf/AGENTS.mdAGENTS.md
- docs/content/getting-started/agents.mdAGENTS.md
- ash-agent-plugins/agentic-coding/plugins/claude/CLAUDE.mdCLAUDE.md
- ash-agent-plugins/agentic-coding/plugins/copilot/.github/copilot-instructions.mdCopilot instructions
- ash-agent-plugins/agentic-coding/plugins/cursor/.cursor/rules/ash-mcp.mdcCursor rule
- ash-mcpSkill
- ash-mcpSkill
- ash-mcpSkill
- ash-mcpSkill
- ash-mcpSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Call run_ash_scan with source_dir set to the absolute path of the project.
- Very specific: line 10
Call get_scan_progress with that scan_id about every 5 seconds until is_complete is true.
- Very specific: line 11
When results_available is true, read the results from output_directory, the absolute path in the progress response.
- Very specific: line 15
Call run_ash_scan with the absolute path to the project.
- Very specific: line 30
After failed or cancelled, results_available is false: do not report results for that scan.
- Very specific: line 44
Stop polling when is_complete is true.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ASH MCP security scanning workflow
ASH (Automated Security Helper) combines code, infrastructure, secrets, and dependency scanners behind one MCP interface. Its MCP server runs a scan in the background: you start it, poll it until it ends, then read the results. This skill assumes the server is connected; the plugin that ships this skill configures it.
The server scans on the machine it runs on, always in local mode, with the scanner tools installed there. The project's ASH config, or the config profile the session selected, chooses the scanners and the severity thresholds. Use list_scanners to inspect the installed scanner catalog. No tool argument chooses scanners, and run_ash_scan's severity_threshold can only make the config's threshold stricter.
Run a scan
- Call
run_ash_scanwithsource_dirset to the absolute path of the project. It returns at once with ascan_idandstatusrunning. Keep thescan_id. - Call
get_scan_progresswith thatscan_idabout every 5 seconds untilis_completeis true. It is true for every way a scan ends:statusis thencompleted,incomplete,failed, orcancelled. - When
results_availableis true, read the results fromoutput_directory, the absolute path in the progress response. It is.ash/ash_outputinsidesource_dir.
Step 1 — Start the scan
Call run_ash_scan with the absolute path to the project. The call returns immediately with a scan_id.
<!-- doctest: illustrative reason="calls the MCP tools, which need a client connected to ash mcp" -->run_ash_scan(
source_dir="/absolute/path/to/project",
config_path=None, # Optional path to .ash.yaml
clean_output=True,
)Leave severity_threshold unset: the scan then uses the config's global_settings.severity_threshold. The argument (ALL | LOW | MEDIUM | HIGH | CRITICAL) can only tighten that threshold for one scan, never loosen it — pass it (e.g. "HIGH") only when the user asks for a stricter level. For a looser level, lower the setting in .ash.yaml and re-scan.
Returns a dict with scan_id, status: "running", directory_path (the resolved absolute scan root), and an important.next_steps block. Always store the scan_id — every subsequent call needs it.
After failed or cancelled, results_available is false: do not report results for that scan. Once ASH has put the previous scan's results back in the output directory, output_holds_previous_results is true.
Poll until progress['is_complete'] is true, as the server's important.next_steps block says, and then read status; see Step 2.
The MCP server always runs scans in local mode: on the server's own machine, with the scanner tools installed there, and never in a container. For container or precommit modes, use the ASH CLI directly. Scanner selection lives in .ash.yaml, not in tool parameters.
Read the results
Pass output_directory as output_dir to these tools:
get_scan_summaryreturns the counts:findings_summaryhas the findings by severity, withactionableandsuppressedtotals, andscanner_summaryhas each scanner's status and counts.get_scan_result_pathsreturns the absolute path of every report underfiles. Read the findings from theflat_jsonone,reports/ash.flat.json: itsfindingslist has one record per finding, withid,severity,scanner,rule_id,file_path,line_start, andis_suppressed.reports/ash.summary.mdis a summary to show the user.get_scan_resultsreturns counts and per-scanner summaries. Withactionable_onlyset, a response at the defaultfilter_level,full, also has afindingslist of the actionable findings, the unsuppressed ones at or above the threshold their scanner was judged by, each withrule_id,severity,scanner,file_path, and its lines, but noid. Take theidthatexplain_findingandsuggest_suppressionneed fromash.flat.json.
Stop polling when is_complete is true. It is true for every ending: status is then one of completed | incomplete | failed | cancelled, and results_available says whether get_scan_results can read the results (completed and incomplete). Typical scans take 30-120 seconds.
For progress display, use finished_scanners / total_scanners (completed_scanners counts only scanners that PASSED) — but check total_scanners > 0 first (it's zero during pre-flight before any scanner registers; show "initializing" in that case). The response also includes severity_counts and per-scanner breakdown to surface in user-facing updates.
run_ash_scantakes no scanner list. To skip a scanner, the project's ASH config setsscanners.<name>.enabledtofalse. Itsseverity_thresholdargument makes the config'sglobal_settings.severity_thresholdstricter for that scan, never looser:LOWover a configuredMEDIUMmakes LOW findings actionable, andCRITICALchanges nothing. It tightens a scanner's ownseverity_thresholdoption the same way. Every finding is reported either way.- A scan runs inside the server process and stops if the server exits. Over stdio, the server exits when the agent disconnects from it.
cancel_scanstops a running scan: no further scanner, phase, or reporter starts, so a scan canceled before its report phase writes no reports, andash_aggregated_results.jsonis not written after the cancel. Previous results that the output directory held are put back in place of the results it wrote, and its log,ash.log, stays, while anash.log.jsonlalready there is left as it was. With none to put back, what it wrote before it stopped stays, but a cancel during the report phase removes that phase's reports, all butreports/ash.unused-suppressions.md. The status iscancelledat once. Until the scan has stopped, up to about 10 seconds, or until the scan it waits for ends if it was queued behind another scan of the session, a new scan of the same directory is refused as still stopping.- The server keeps its list of scans in memory. After it restarts,
get_scan_progressfails withscan_not_foundfor older scan ids; read their results from the output directory. check_installationreports the ASH version and whether each built-in scanner's tool is installed:readyis false when a scanner that ASH enables by default cannot run and no scan will install its tool, andmissing_dependenciesnames those scanners. It does not read the project's config, so a scanner the project turns off can be listed. It installs and downloads nothing. When the tool of a scanner that ASH installs with uv is missing, the first scan installs it if the server is online and has uv; such a scanner is listed ininstalls_on_first_scanand counts towardready, and otherwise it is inmissing_dependencies. Offline, semgrep is also missing when it has no rules cache. A scanner that has files to scan and whose tool is missing ends as MISSING, listed inincomplete_scanners.- The server's operator limits how many scans it holds at once, running or waiting (
max_concurrent_scans, 3 by default), and how long one may run (scan_timeout_seconds, 1800 by default). A scan over the first limit is refused with anerrorthat names it; start it again when a scan has finished. A scan over the second is stopped and endsfailed. - For a container scan, the user runs the ASH command line,
ash scan --mode container, instead of the MCP server.
Explain, suppress, and compare
explain_findingtakes a finding'sidfromash.flat.jsonandresults_pathset to the output directory. It returns the scanner's description, why the finding is or is not actionable, and the matched code.suggest_suppressiontakes theid,results_pathset to theash_aggregated_results.jsonfile in the output directory, and the user's reason asjustification. It writes nothing and returns an entry forglobal_settings.suppressionsin the project's ASH config. Leave out itsclient_suppliedkey. Fix a finding before you suppress it, and suppress only with a reason the user agrees with.diff_scan_resultscompares twoash_aggregated_results.jsonfiles,before_pathandafter_path. A scan replaces the previous file in its output directory once it has results of its own, so copy the file first.
| User goal | Filter combination |
| "How bad is it?" | filter_level="summary" + actionable_only=True |
| "Show me the critical issues" | filter_level="full" + severities="critical,high" |
| "Audit Bandit only" | scanners="bandit" + filter_level="full" |
| "Generate exec summary" | Use get_scan_result_paths, then read ash.summary.md |
<!-- doctest: illustrative reason="calls the MCP tools, which need a client connected to ash mcp" -->get_scan_results(
output_dir="/absolute/path/to/project/.ash/ash_output",
filter_level="summary",
severities="critical,high",
actionable_only=True,
)For HTML/SARIF/CSV reports, prefer get_scan_result_paths and read the files directly with native file tools — it avoids piping large payloads through MCP.
Tool inventory
For full parameter details, see tool-reference.md.
run_ash_scan— Start a scan asynchronouslyget_scan_progress— Poll progress (call every 5s)get_scan_results— Fetch filtered resultsget_scan_summary— Counts only, no findingsget_scan_result_paths— File paths to all reportslist_active_scans— All current/recent scanscancel_scan— Stop a running scancheck_installation— Verify ASH can scan, and which scanner tools are missing
Choosing scanners
ASH runs all nine scanners by default. To run only a subset, edit .ash.yaml at the project root before scanning — run_ash_scan does not accept a scanners argument. To filter results post-scan, use the scanners parameter on get_scan_results.
For result-time filtering by scanner:
- Python issues →
scanners="bandit,semgrep" - Secrets only →
scanners="detect-secrets" - IaC review →
scanners="checkov,cfn_nag,cdk-nag" - Dependencies →
scanners="grype,npm-audit" - SBOM generation →
scanners="syft"
When something goes wrong
See troubleshooting.md for the common failures: connection timeouts, empty results, stuck scans, container/Docker issues, suppression rules not applying.
The fast checks: scan never starts → run check_installation first. Scan returns no findings → ask for filter_level="full" with actionable_only=True, which is the only response with a findings list, and widen severities. The list holds the actionable findings only, those at or above the scan's severity threshold and not suppressed; the files get_scan_result_paths names have the rest. Stale progress visibility → you weren't polling every 5 seconds.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

