Skip to content

docs/Get started

The report and fix prompt

What each section of the report contains, and the one prompt that fixes everything it found.

The Markdown (--md) and HTML (--html) reports share one layout. They are plain text with no emoji, so they paste cleanly into tickets, e-mails and PDFs, and the HTML report is a single file with no scripts or external requests. A full example is in the sample report.

#Report layout

  1. Overview. Target, scope, site type and stack, what was examined, tooling, rule sets, what was not run, jurisdictions, the not-legal-advice note and the three scores.
  2. Compliance. The EU baseline, then the EU checklist, each detected jurisdiction and each site type. Every row shows ID, requirement, status, evidence, legal basis and max penalty.
  3. Security. ID, severity, finding, masked evidence, CWE and OWASP category, and effort (S up to 1 hour, M up to 1 day, L more).
  4. SEO and GEO. ID, check, status, evidence and why it matters.
  5. Priorities. The ten most important items across all three pillars.
  6. Fix prompt. One prompt that covers every failed and partial check.
  7. Limitations. What could not be verified, and why.

The tables report what was found. How to fix it lives in one place: the fix prompt.

#The fix prompt

Instead of a fix next to every row, each report ends with a single prompt for an AI coding assistant such as Claude Code or Cursor, or for a developer. Every FAIL and PARTIAL row, and every security finding above INFO, appears in it exactly once.

  • Context: URL, site type, detected stack, site language, jurisdictions and the three scores.
  • Working rules: keep existing features working, write user-facing text in the site language, never invent company data, legal wording or vendor names, never put secrets in code or in the answer.
  • Tasks in priority order, each with the evidence, the change to make, the legal basis and the maximum penalty.
  • Needs a person: every MANUAL row and what to check.
  • Reference snippets for the detected stack: security headers for nginx, Apache, Next.js, Netlify or CloudFront, consent gating, a privacy notice for forms, DNS records, security.txt.
  • Definition of done: list the changed files and placeholders, then re-run the audit against a baseline.
fix-prompt.md
You are a senior web developer. Fix the problems that a KagiCyber audit of https://example.com found on 2026-11-20.## Tasks: compliance1. [C-07] No trackers load before consent (FAIL)   - Found: Google Analytics requested before any interaction   - Change: load the tag only after the visitor accepts analytics cookies   - Legal basis: ePrivacy art. 5(3); CJEU C-673/17 Planet49   - Max penalty: ...## Tasks: security2. [S-X01] Live secret key in first-party JavaScript (CRITICAL, CWE-798)   - Found: sk_l...3f9a (len 32) in /assets/index-8c1.js   - Change: rotate the key first, then move the call to a server route...
terminal
npx kagicyber audit example.com --prompt fix-prompt.md   # the prompt alonenpx kagicyber scan . --prompt fix-prompt.md              # the same for a repository scan

#Other formats

OptionOutput
--json [file]Everything, including evidence, scores and fingerprints
--sarif <file>SARIF 2.1.0 for GitHub code scanning
--junit <file>JUnit XML for CI dashboards
--badgeA shields.io badge for your README