/nightvision:scan-reportfrom nightvision
Generate a shareable NightVision security report as a PDF - an executive summary for AppSec and leadership plus a findings appendix for developers - for one scan, a scan compared with the previous one, or a whole project. Use when a user wants a PDF, a report, or something to send to a CISO, manager, auditor, or another team about NightVision scan results. Drives the NightVision MCP `export-report` tool.
Ships in nightvision. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn NightVision scan results into a PDF someone can forward. The report has two parts:
file:line of the handler when the scan used an API spec discovered from source, a curl command to reproduce, and fix guidance.The MCP export-report tool builds every number, table, and layout from NightVision data. Your job is to pick the scope, write the short summary and the fix notes from the data it gives you, and hand back the file.
Requirements: a NightVision MCP server that provides export-report. If the call returns an unknown-tool error, update the NightVision MCP server. PDF output uses the Chrome, Chromium, Edge, or Brave already on the machine; without one the tool writes HTML instead and says so.
| The user wants | mode | Needs |
|---|---|---|
A report on one scan (the default, and the natural step after app-security-scan) | scan | scan_id |
| What changed since last time: new, fixed, still open | compare | scan_id; the baseline defaults to the previous completed scan of the same target (baseline_scan_id to override) |
| The state of every app in a project | project | project or project_id (or a scan_id from that project) |
If the user did not name a scan, find it: the scan_id in .nightvision/manifest.json in the app's repo, or the most recent finished scan from list-scans for their target. Confirm which scan when more than one is plausible. A scan must be finished; a running scan returns SCAN_NOT_TERMINAL.
Pass the app's source directory as project_path for scan and compare, the same directory used for the scan. The tool finds the API spec under .nightvision/ there and uses it to link findings to source files and lines; without it the report still works but says findings are not linked to code. The default output path is also under project_path.
export-report with the scope arguments and preview: true. Nothing is written. The response has the counts, the issue types (with issue_type, kind_id, severity, categories, affected endpoints, source locations), the scan scope, and in compare mode the new and fixed lists.executive_summary): 3 to 5 plain sentences for a security leader who will not read the appendix. Say what is most serious, where it is, and what to fix first. Optional - bullet lines for the two or three first actions. Rules:
remediation_notes, optional but valuable): one { issue_type, note } per issue type worth guidance, issue_type spelled exactly as in the preview. When you have the codebase in front of you, make the note specific: open the source file:line from the preview, follow the named parameter to where it is used, and say what to change there (for example "parameterize the query built in searchUsers() in src/db/users.ts"). Response and configuration findings (missing security headers, cookie flags, error disclosure) are fixed in the app's security configuration, not at a handler line. Without the code, give the standard fix for the class. Cover the critical and high types first; skip notes you cannot make useful.export-report again with the same arguments, preview: false, and your executive_summary and remediation_notes. Add title if the user named one.report_path, the headline numbers, and any warnings from the response (HTML fallback, truncation, no earlier scan to compare against, source linking skipped). Offer to open it (open <path> on macOS, xdg-open on Linux, start on Windows).Reports are built to be forwarded. By default only open findings are included, raw scan evidence is left out, and recognizable secrets (tokens, keys, passwords) in payloads, explanations, and reproduction commands are masked. Masking is best effort, so tell the user to skim the appendix before sending it outside their organization.
Set include_evidence: true only when the user asks for raw evidence for internal use, and say that the file then needs to be handled as sensitive. Use min_severity (critical, high, medium, low, info; default low) when the audience only needs the serious findings; excluded counts are stated in the report, so nothing is hidden silently.
| Code | Meaning | Do |
|---|---|---|
SCAN_NOT_TERMINAL | The scan is still running | Wait for it (get-scan-status), then retry |
SCAN_NO_FINDINGS | The scan ended unsuccessfully with nothing to report | Report the scan status; re-run the scan |
SCAN_ID_REQUIRED / PROJECT_REQUIRED | Scope is missing | Find the scan or project as above |
BASELINE_INVALID | The baseline_scan_id you passed is the same scan, newer, another target, or did not complete | Omit it to use the previous completed scan of the same target |
NOT_AUTHENTICATED (and other auth codes with blocker not_authenticated) | NightVision auth is missing or expired | Follow the login_command in the error details, or auth-status guidance |
NIGHTVISION_API_UNAVAILABLE | The NightVision API could not be reached | Retry later; do not report the scan as clean |
EXPORT_REPORT_FAILED | Unexpected error while building the report | Relay the message; check the scan id and retry |
A partial status with an HTML file means the PDF could not be printed: no Chrome, Chromium, Edge, or Brave was found, or printing failed or timed out. Relay the warning text, which says which. The HTML is the complete report, so the user can open it in any browser and print to PDF. When no browser was found, setting NIGHTVISION_CHROME_PATH to one and retrying also works.
What SKILL.md sets; muted values are Claude Code's defaults
nightvision@nvsecurity is listed by nvsecurity/claude-marketplace — review the source before installing
npx claudepluginhub nvsecurity/claude-marketplace --plugin nightvision14 skills in this plugin
/api-discoveryFormer name of the source-intelligence skill, kept so that invoking api-discovery still works. Use source-intelligence instead./app-security-scanDAST-first NightVision scan for an app you just built or changed. Use when a user, or a project or org agent-instructions rule, wants a local, private, staging, or internal web app/API security-scanned. Drives the NightVision MCP `run-app-security-scan` harness./authz-reviewReview an app's object-level and function-level access control (BOLA/IDOR, broken function-level authorization, mass assignment) route by route, then write a two-user test the developer can run against their own local or dev app. Use after adding or changing routes that take object IDs, tenant or user identifiers, or admin-only actions, when a user asks "can one user see another user's data", or as part of ship-check.Other plugins' skills for the same job