/website:security-gatefrom website
Use when auditing a website release for dependency, secret, header, SRI, security.txt, supply-chain, privacy, and deployment security evidence; use deploy to perform the authorised release.
Ships in website. 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.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
Produce a read-only security release verdict from reproducible checks without silently accepting unavailable surfaces.
deploy to execute release operations or policy-pages to draft legal text.| Artefact | Source or provider | Required? | Purpose | If absent |
|---|---|---|---|---|
| Build artefact, dependency locks, deployment configuration, third-party inventory, data flows, and target headers | Repository and hosting configuration | yes | Inspect the complete release surface | Stop if secrets exposure or critical dependency evidence is unresolved |
| Artefact | Consumer | Acceptance condition |
|---|---|---|
| Security gate report | Developers, data owner, and release owner | Every check is pass, fail, or not assessed with severity, evidence, correction, and release verdict |
| Evidence | Consumer | Acceptance condition |
|---|---|---|
| Scanner reports, header capture, dependency inventory, and decision record | Release owner | Evidence is tied to the tested commit and deployment target |
Read, search, and safe security checks are required. Default to read-only. Dependency changes, credential use, penetration testing, production mutation, disclosure, or publication require explicit authority.
If the network, deployment target, lockfile, or scanner is unavailable, mark the affected checks not assessed, return a qualified report, and do not issue an unconditional pass.
| Choice | Action | Failure or risk avoided |
|---|---|---|
| Secret or exploitable critical dependency is confirmed | Block release and rotate or remediate | Credential compromise |
| External header endpoint is unavailable | Report header checks not assessed | False deployment assurance |
not assessed.If a production API token appears in history, redact the value, block release, require rotation and history remediation, then rerun the secret scan before verdict.
Every primary build passes:
references/csp-baseline.md (HSTS, X-Frame-Options, X-Content-Type-Options,
Referrer-Policy, Permissions-Policy, CSP)./.well-known/security.txt exists, is RFC 9116-compatible, has no
placeholders, includes at least one Contact, exactly one future Expires,
a canonical HTTPS URL, and a Policy link to the human disclosure page.Any "high" or "critical" finding blocks deploy.
bash "$WEBSITE_SKILLS/scripts/security-gate.sh"
The command:
npm audit --audit-level=high --json. An audit that does not complete
(no lockfile, unreachable registry, unreadable report) stops the gate with
exit 6; it is never read as zero findings.scripts/check-security-headers.sh dist against the CSP baseline.scripts/check-security-txt.sh dist.scripts/check-sri.sh dist .third-party-allowed.scripts/scan-secrets.sh against the committed tree.scripts/supply-chain-check.sh against package-lock.json.reports/security/ and a summary
at reports/security/summary.md.The SRI checker does not use a page's rel=canonical URL to determine where
the page is served. Relative asset URLs are local references; absolute and
protocol-relative script/style URLs are checked conservatively unless they
match an explicitly supplied served origin. Set SRI_DOCUMENT_ORIGIN to the
actual absolute HTTP(S) origin only when it is known; without it, absolute
assets are treated as external. A canonical URL alone is not that evidence.
references/compliance-matrix.md.project-log/launches/<project>/security-gate.md with the result.package.json and package-lock.json at repo root../dist/../dist/.well-known/security.txt file and a public disclosure
policy page linked from its Policy field.dist/ and is audited from there.security.txt is treated as stale when Expires is in the past and must be
reviewed at least annually.npm audit severity as advisory.'unsafe-inline' CSP as a permanent position.reports/security/audit.json — dependency audit output.reports/security/headers.txt — per-route header validation.reports/security/security-txt.txt — vulnerability disclosure route check.reports/security/sri.txt — SRI check result.reports/security/secrets.txt — secrets scan findings (empty on success).reports/security/supply-chain.txt — supply-chain posture.reports/security/summary.md — CI-friendly summary.references/csp-baseline.md — the CSP and security-header baseline.references/compliance-matrix.md — jurisdiction rules for Uganda DPPA 2019,
Kenya Data Protection Act 2019, Nigeria NDPR, South Africa POPIA, GDPR.references/dependency-policy.md — how dependencies are added, upgraded,
and suppressed.references/secrets-response.md — rotation, revocation, and history-rewrite
playbook.references/supply-chain.md — typosquat detection and install-script review.../../templates/security.txt — project starter for the required
/.well-known/security.txt artifact.../../templates/security-policy.md — human-readable disclosure policy
starter linked from Policy.This gate does not replace a specialist penetration test for authenticated applications. For static marketing sites, this gate is sufficient as the ongoing CI contract.
A nested patch override may be safer than a forced top-level downgrade when
the maintainer's installed dependency is behind a fixed patch. Confirm the
parent package range and owner support first, apply the override only in the
consuming project, then rerun the lockfile audit and all affected gates. The
October 2026 website-engine fixture record
documents one verified case where [email protected] pins [email protected]:
{ "overrides": { "serve": { "compression": "1.8.2" } } }
In the disposable fixture this removed the compression advisory after a
lockfile install, without changing serve; thirteen high package records
remained, so the security gate still failed. Treat this as a dated case
study, not a reusable suppression or guarantee. Confirm current advisories
before using any version override.
Work in concert with deploy/references/deployment-runbook.md on where the
edge-configured headers live.
policy-pages/SKILL.md produces the public-facing privacy and terms pages;
this gate audits that they exist and that the compliance matrix they
describe is correctly enforced.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/astro-website-design-skills --plugin website62 skills in this plugin
/accessibility-auditUse when auditing rendered website conformance to WCAG 2.2 AA with automated, keyboard, screen-reader, zoom, contrast, and content checks; use visual-qa for screenshot and hierarchy defects./africa-excellenceUse when a website must work credibly in African markets across constrained bandwidth, mobile-first use, mobile money, USSD-aware journeys, local languages, trust, and cultural context; use deploy for release execution./agency-client-retentionUse when designing post-launch retainers, review cadence, expansion offers, churn controls, recurring-revenue capacity, or client reporting. Use `monthly-report` for one evidence-backed report and `customer-service-website-ops` for incident handling.Other plugins' skills for the same job