Designed to be the world's most efficient evidence-driven codebase and SaaS audit skill.
saas-audit turns Claude Code, Codex, Hermes, Anti-Gravity, VS Code/GitHub Copilot-compatible agents and other Agent Skills clients into a structured release-assurance team.
It audits the codebase and authorized running application, proves findings with evidence, explains how each issue affects product quality, recommends the smallest durable repair, defines validation and regression protection, retests fixes and produces a final:
SHIPCONDITIONAL SHIPDO NOT SHIP
The skill is designed for authorized testing only. It prohibits destructive exploitation, denial-of-service, uncontrolled load, persistence, credential stuffing, data exfiltration and production changes without explicit approval.
Most audits repeat discovery separately for code, security, QA, UX, data and infrastructure. saas-audit creates one inventory, one coverage ledger, one evidence model, one finding schema and one remediation roadmap. Each discovered route, API, workflow or data object is reused across all applicable quality domains.
flowchart LR
I[One product and attack-surface inventory] --> C[One coverage ledger]
C --> Q1[Correctness]
C --> Q2[Security]
C --> Q3[RBAC and tenancy]
C --> Q4[UX and accessibility]
C --> Q5[Data and operations]
C --> Q6[Performance and reliability]
Q1 --> E[Unified evidence]
Q2 --> E
Q3 --> E
Q4 --> E
Q5 --> E
Q6 --> E
E --> F[Structured findings]
F --> R[Prioritized recommendations]
R --> X[Retest]
X --> G[One release gate]
Efficiency does not mean shallow coverage. It means eliminating duplicate work while keeping every claim traceable to executed tests.
mindmap
root((SaaS Audit))
Codebase
Architecture
Build and types
Tests
Maintainability
Product surface
Pages and routes
Forms and workflows
Imports and exports
Jobs and integrations
Identity
Authentication
Sessions
MFA and recovery
Abuse protection
Authorization
RBAC
Direct routes
API enforcement
Privilege escalation
Tenancy
Records and files
Search and cache
Reports and notifications
Branding and metadata
Security
Input and output
Business logic
Secrets and dependencies
Uploads and downloads
Data
Schema and constraints
Transactions
Migrations
Backup and restore
Experience
UI and UX
Accessibility
Responsive behavior
Error recovery
Operations
CI and CD
Infrastructure
Observability
Reliability
Performance
Pages and APIs
Queries
Assets
Background work
Privacy
Minimization
Retention
Deletion
Third parties
AI systems
Prompt injection
Tool permissions
RAG isolation
Memory and rendering
Assurance
Evidence
Severity
Recommendations
Retesting
Release verdict
| Domain | What is checked | How quality improves | Typical suggestions |
|---|---|---|---|
| Discovery | Routes, pages, APIs, jobs, roles, tenants, data stores, infrastructure and hidden surfaces | Prevents untested or unowned functionality from escaping review | Reconcile source/runtime inventory, remove dead paths, document hidden endpoints, assign owners |
| Codebase quality | Build, types, lint, tests, architecture, duplication, coupling, errors and documentation | Makes changes safer and easier to maintain | Simplify boundaries, centralize repeated logic, remove dead code, add critical-path tests |
| Authentication | Login, passwords, reset, MFA, lockout, cookies, sessions, logout and revocation | Reduces account takeover and stale-session risk | Rotate sessions, shorten reset lifetime, add throttling, harden cookies, require privileged MFA |
| RBAC | Expected-versus-actual permissions through UI, direct routes and APIs | Prevents unauthorized actions hidden behind front-end controls | Centralize policies, deny by default, enforce server-side, add role-action contract tests |
| Multi-tenancy | Records, IDs, files, search, exports, cache, logs, jobs, reports, branding and vector stores | Prevents the highest-impact SaaS confidentiality failures | Scope every query/key/path/job, enforce RLS, redact errors, add two-tenant regression tests |
| Functional QA | Positive, negative, boundary, duplicate, interrupted, concurrent, retry and recovery behavior | Reduces production defects and inconsistent workflows | Add idempotency, transactions, validation, draft recovery and duplicate protection |
| UI/UX | Navigation, hierarchy, actions, consistency, feedback, errors and responsive states | Reduces user mistakes, support load and completion time | Standardize components, clarify actions, improve states, remove unnecessary steps |
| Accessibility | Keyboard, focus, semantics, labels, contrast, zoom, touch targets and dynamic announcements | Makes the application usable by more people | Use native controls, repair focus, label inputs, announce status, add accessibility tests |
| Application security | Injection, XSS, CSRF, redirect/SSRF indicators, disclosures, uploads and business logic | Reduces exploitable application risk | Validate trust boundaries, encode output, authorize files, remove secrets, add anti-replay controls |
| API quality and security | Authentication, object/function authorization, schemas, exposure, limits, CORS, replay and versioning | Protects the system below the UI and stabilizes integrations | Publish contracts, reject unknown fields, scope objects, standardize errors, define deprecation |
| Database integrity | Constraints, relationships, precision, time zones, transactions, concurrency, RLS and queries | Prevents silent corruption and inconsistent records | Add constraints, transactions, locking, reconciliation, indexes and tenant policies |
| Migrations | Compatibility, locks, backfills, validation, rollback and partial execution | Reduces release-related data loss and downtime | Use expand-contract, rehearse migrations, validate data, document rollback/forward-fix |
| Files, cache and search | Authorization, tenant keys, signed URLs, expiry, invalidation and indexing | Prevents indirect leakage and stale access | Scope keys and paths, shorten URL lifetime, test invalidation, propagate deletion |
| Jobs and integrations | Queues, cron, webhooks, retries, duplicates, tenant context and reconciliation | Improves asynchronous correctness and recovery | Add idempotency, backoff, dead-letter queues, signatures, runbooks and reconciliation |
| Supply chain | Dependencies, lockfiles, vulnerabilities, provenance, licenses, SBOM and secrets | Reduces dependency and build-chain risk | Pin packages, prioritize reachable risk, scan artifacts, rotate secrets, maintain SBOM |
| CI/CD and infrastructure | Workflow permissions, environments, IaC, cloud, containers, deployment and rollback | Makes releases repeatable, controlled and recoverable | Least privilege, protected environments, image scans, smoke tests and rollback rehearsal |
| Reliability | Timeouts, retries, races, degradation, backup, restore, RTO/RPO and disaster recovery | Reduces incidents and recovery time | Add failure isolation, retry budgets, restore tests, runbooks and recovery ownership |
| Observability | Logs, metrics, traces, alerts, correlation IDs and operational ownership | Improves detection and diagnosis | Structured logs, redaction, SLOs, actionable alerts, traces and runbooks |
| Performance | Page/API latency, queries, bundles, requests, search, exports and uploads | Improves responsiveness, scalability and cost efficiency | Remove N+1, paginate, compress, cache safely, defer work, add performance budgets |
| Privacy | Collection, consent, retention, deletion, masking, logs and third parties | Reduces unnecessary data exposure | Classify data, minimize collection, enforce retention, mask logs, test deletion |
| AI/LLM | Prompt injection, tools, permissions, RAG/vector isolation, memory and output rendering | Limits model-driven disclosure and privilege risk | Isolate retrieval, validate tool arguments, require confirmation, sanitize output, test adversarial prompts |
| Release assurance | Evidence, severity, recommendations, retesting, residual risk and verdict | Replaces subjective approval with traceable decision support | Block unresolved Critical/High risk, assign owners, validate fixes, automate regressions |
Read the complete feature guide, quality-impact guide and recommendation engine.
flowchart TD
E[Confirmed evidence] --> I[Assess likelihood and impact]
I --> S[Assign severity and priority]
S --> RC[Identify root cause and correct control layer]
RC --> A{Active exposure?}
A -->|Yes| C[Immediate containment]
A -->|No| P[Permanent remediation]
C --> P
P --> O[Owner and effort]
O --> V[Validation steps]
V --> T[Automated regression test]
T --> RR[Residual risk]
RR --> M[Remediation roadmap]
M --> X[Retest original and adjacent risks]
X --> G[Update release verdict]
Every material suggestion should contain:
- the observed defect and evidence;
- the technical and business impact;
- the root cause where supported;
- immediate containment for active exposure;
- the smallest durable permanent fix;
- stack-compatible implementation guidance;
- accountable owner and effort;
- exact validation steps;
- automated regression protection;
- residual risk after remediation.
The skill rejects generic recommendations such as “improve security,” “add validation” or “write more tests” unless they are converted into specific, executable controls.
flowchart TD
A[Authorized scope and credentials] --> B[Initialize evidence workspace]
B --> C[Discover code and runtime surfaces]
C --> D[Map workflows roles tenants data and trust boundaries]
D --> E[Run build type lint tests and safe scans]
D --> F[Run browser API RBAC tenant and UX tests]
D --> G[Run database infrastructure reliability and privacy checks]
E --> H[Capture evidence]
F --> H
G --> H
H --> I[Classify findings and calculate risk]
I --> J[Generate prioritized remediation]
J --> K[Retest fixes and adjacent surfaces]
K --> L{Release gate}
L -->|No blockers and strong evidence| M[SHIP]
L -->|Managed residual risk| N[CONDITIONAL SHIP]
L -->|Critical High or critical coverage gap| O[DO NOT SHIP]
M --> P[PDF HTML JSON XLSX and evidence pack]
N --> P
O --> P
- Code audit — codebase, architecture, tests, dependencies, migrations, CI/CD and infrastructure.
- Black-box audit — authorized deployed application through browser and APIs.
- Hybrid audit — correlates source, database, APIs, logs and runtime behavior. Recommended.
- Focused audit — one module or workflow with its security, RBAC, tenancy, data and regression boundaries.
- Release gate — retests blockers and issues a final verdict.
Clone the standalone repository:
git clone https://github.com/srksourabh/saas-audit.git
cd saas-auditmacOS, Linux, WSL or Git Bash:
./install.shProject-level installation:
./install.sh --projectWindows PowerShell:
.\install.ps1Project-level installation:
.\install.ps1 -ProjectSee the complete installation guide.
Use the saas-audit skill to perform a complete hybrid pre-release audit of this repository and the authorized staging application.
Audit the codebase, authentication, server-side RBAC, tenant isolation, critical workflows, UI/UX, accessibility, application and API security, database integrity, migrations, storage, dependencies, CI/CD, infrastructure, reliability, observability, performance, privacy and AI/LLM features.
Use two tenants and every available role. Capture screenshots and technical evidence. For each finding, explain quality impact, immediate containment, permanent fix, owner, effort, validation, regression test and residual risk. Retest fixes and issue SHIP, CONDITIONAL SHIP or DO NOT SHIP.
More prompts: Usage Guide.
saas-audit-output/
├── reports/
│ ├── <app>_Holistic_SaaS_Audit_Report_<date>.pdf
│ ├── <app>_Holistic_SaaS_Audit_Report_<date>.html
│ └── <app>_Release_Verdict_<date>.md
├── data/
│ ├── <app>_Audit_Findings_<date>.json
│ ├── <app>_Detailed_Audit_Findings_<date>.xlsx
│ ├── <app>_RBAC_Matrix_<date>.xlsx
│ ├── coverage.json
│ └── evidence-index.json
├── evidence/<domain>/
├── logs/<app>_Audit_Execution_Log_<date>.md
└── manifest.json
Read Evidence, Scoring and Reporting.
flowchart TD
A{Unresolved Critical or High?} -->|Yes| D[DO NOT SHIP]
A -->|No| B{Critical workflows roles and tenant boundaries tested?}
B -->|No| D
B -->|Yes| C{Material residual risk or non-critical gaps?}
C -->|Yes| CS[CONDITIONAL SHIP]
C -->|No| S[SHIP]
A high score cannot compensate for blocked or untested critical coverage. Human release authorization remains mandatory.
saas-audit/
├── SKILL.md
├── README.md
├── LICENSE.md
├── CHANGELOG.md
├── SECURITY.md
├── SUPPORT.md
├── CODE_OF_CONDUCT.md
├── install.sh
├── install.ps1
├── assets/
│ ├── audit-config.example.yaml
│ └── finding.schema.json
├── scripts/
│ ├── init_audit.py
│ ├── validate_findings.py
│ └── render_report.py
├── references/
│ ├── execution-playbook.md
│ ├── security-rbac-tenancy.md
│ ├── quality-ux-accessibility.md
│ ├── data-api-infrastructure.md
│ ├── evidence-reporting-release.md
│ ├── master-audit-checklist.md
│ └── platform-installation.md
└── docs/
├── FEATURES.md
├── ARCHITECTURE.md
├── QUALITY-IMPACT.md
├── RECOMMENDATIONS.md
├── INSTALLATION.md
├── USAGE.md
├── REPORTING.md
├── TROUBLESHOOTING.md
└── CONTRIBUTING.md
- Core Agent Skill
- Detailed Features
- Architecture and Workflow
- How Quality Improves
- Recommendation Engine
- Installation
- Usage and Prompt Library
- Evidence, Scoring and Reporting
- Troubleshooting
- Contributing
- Master Audit Checklist
- Security Policy
- Support
- Code of Conduct
- Changelog
Use only on applications, repositories and infrastructure you are authorized to test. Never commit credentials. Prefer environment variables and dedicated test accounts. Review scripts before granting terminal, browser, database, cloud or infrastructure access.
The skill improves consistency and release confidence but does not replace independent professional penetration testing, legal advice, formal compliance certification, production-owner approval or human accountability. Coverage depends on available source, environments, roles, tenants, data, tools and permissions.
MIT. Prepared by Sourabh Bhaumik.