Agent skill

Policystack Audit

by jamiedavenport in jamiedavenport/policystack

Audit a policystack.ts config: run policystack validate --json, explain each issue code, propose a minimal config fix, then re-validate until clean.

Apache-2.0Auto-check passedLegal & Compliance

Install Policystack Audit

skills CLI
$ npx skills add jamiedavenport/policystack --skill policystack-audit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jamiedavenport/policystack policystack-audit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jamiedavenport/policystack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugin/skills/policystack-audit .claude/skills/policystack-audit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
policystack-audit
GitHub stars
164
Token cost
~1.4k tokens
SKILL.md length
584 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Audit a policystack.ts config: run policystack validate --json, explain each issue code, propose a minimal config fix, then re-validate until clean.

  • Works in 4 steps: Validate → Explain each code → Propose a minimal fix → …
  • A PolicyStack config has validation errors
  • SKILL.md covers 1. Validate, 2. Explain each code, 3. Propose a minimal fix and 4. Re-validate
  • Calls npx

What it does

Policystack Audit is an agent skill from jamiedavenport/policystack. Audit a policystack.ts config: run policystack validate --json, explain each issue code, propose a minimal config fix, then re-validate until clean. Use when a PolicyStack config has validation errors or warnings.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Legal & Compliance, covering Privacy and GDPR. It works with Vite. The repository describes itself as: Open Privacy Infrastructure. The licence is Apache-2.0.

When your agent uses it

  • A PolicyStack config has validation errors
  • Tasks that involve Privacy and GDPR

Example prompts

  • “/policystack-audit”

Requirements

  • Node.js

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Validate
  2. Explain each code
  3. Propose a minimal fix
  4. Re-validate

What it can do on your machine

Read from SKILL.md and the folder at commit fa2f297. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Policystack Audit loads about 1.4k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 584 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jamiedavenport/policystack at commit fa2f297, republished under its Apache-2.0 licence (© jamiedavenport). 584 words, ~1,439 tokens.

Download SKILL.mdSave it as .claude/skills/policystack-audit/SKILL.md (or your agent's skills folder).
name
policystack-audit
description
Audit a policystack.ts config: run `policystack validate --json`, explain each issue code, propose a minimal config fix, then re-validate until clean. Use when a PolicyStack config has validation errors or warnings.
<!-- Generated by @policystack/sdk renderSkillPack() — do not edit by hand. Run `vp run gen`. -->

policystack-audit

Close the validate → explain → fix → re-validate loop on a PolicyStack config.

1. Validate

sh
npx @policystack/cli@latest validate --json

--json writes exactly one object to stdout and nothing else:

ts
type ValidateResult = {
	ok: boolean; // false ⟺ exit code 1
	config: string; // resolved config path
	issues: { code: string; level: "error" | "warning"; message: string }[];
	errorCount: number;
	warningCount: number;
	loadError: string | null; // set instead of issues when the file won't load
};

Branch on the exit code (or ok). loadError (missing file, TS syntax error, no default export) is always ok: false and means fix the load error first — there are no issues to triage yet. Pass a path or --cwd if the config is not at the default location.

2. Explain each code

level is what validate() emits; the @policystack/vite plugin may promote/suppress downstream, but errors block a valid config. Every code and its durable meaning (the frozen 1.0 diagnostic surface — §6):

  • automated-decision-making — warning — Under GDPR/UK-GDPR automatedDecisionMaking is not declared (Art. 13(2)(f) / Art. 22) — set [] for none or list each activity.
  • children-under-age-invalid — error — children.underAge must be a positive number.
  • company-address-required — error — company.address is required.
  • company-contact-phone-recommended — warning — With a California (us-ca) jurisdiction, company.contact.phone is absent — CCPA §1798.130(a)(1) expects a toll-free number unless you operate exclusively online.
  • company-contact-required — error — company.contact.email is required.
  • company-dpo-undeclared — warning — Under GDPR/UK-GDPR company.dpo is not declared (Art. 13(1)(b)) — set it, or { required: false } to declare none.
  • company-legal-name-required — error — company.legalName is required.
  • company-name-required — error — company.name is required.
  • consent-banner-required — warning — A cookie category is consent-gated but consentMechanism.hasBanner is false — a banner is needed to collect affirmative consent.
  • consent-mechanism-undeclared — warning — No enabled cookie category is consent-gated, so no consent mechanism is generated (correct for strictly-necessary cookies only).
  • consent-preference-panel-required — warning — consentMechanism.canWithdraw is true but hasPreferencePanel is false — withdrawal has no preference panel in the wired runtime.
  • consent-withdrawal-required — warning — Under GDPR/UK-GDPR users must be able to withdraw cookie consent — set consentMechanism.canWithdraw.
  • cookie-lawful-basis-missing — error — An enabled cookie category is missing its Article 6 lawfulBasis in cookies.context.
  • cookies-empty — error — No cookie category is enabled in cookies.used.
  • data-collected-empty — warning — data.collected has no entries — the privacy policy will state that no personal data is collected.
  • data-context-missing — error — A collected category has no matching data.context entry (purpose, lawful basis, retention, provision).
  • data-context-orphan — error — A data.context entry has no matching category in data.collected.
  • data-missing — error — data is required when a privacy policy is emitted — use an empty data.collected for a site that collects nothing.
  • data-purpose-empty — error — A data.context purpose is present but blank.
  • data-purpose-missing — error — A data.context entry is missing its processing purpose (GDPR Art. 13(1)(c)).
  • effective-date-required — error — effectiveDate is required.
  • jurisdiction-generic-policy-text — warning — A declared jurisdiction is supported only at the "equivalent" tier (posture-correct + parent text), not hand-authored "specific" text.
  • jurisdiction-unknown — error — A declared jurisdiction code is not a recognised JurisdictionId.
  • jurisdictions-required — error — jurisdictions must list at least one jurisdiction id.
  • lawful-basis-incomplete — error — Under GDPR/UK-GDPR a collected category is missing its Article 6 lawfulBasis (Art. 13(1)(c)).
  • locale-unknown — error — locale is not one of the supported LOCALES.
  • policy-cookie-empty — error — policies includes "cookie" but no cookies block is set.
  • policy-empty — error — The config produces no policy — add data-handling fields (data, children) or a cookies block.
  • retention-incomplete — error — A collected category is missing a retention period.
  • statutory-contractual-obligation — error — Under GDPR/UK-GDPR a category is missing the Art. 13(2)(e) provision (statutory / contractual / contract-prerequisite / voluntary) or its consequences.
Show full SKILL.md (88 more words)Show less

3. Propose a minimal fix

For each issue, change only what the code requires in policystack.ts — do not restyle or expand the config. errors must be resolved; warnings should be resolved or consciously accepted (e.g. data-collected-empty is correct for a brochure site). Never invent compliance facts (a lawful basis, a DPO) — surface the decision to the user. Many data/cookie issues are better fixed at the source with policystack-instrument than hand-written.

4. Re-validate

Re-run step 1. Repeat until ok: true (exit 0). Report the remaining accepted warnings, if any.

© jamiedavenport, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugin/skills/policystack-audit of jamiedavenport/policystack.

Open the folder on GitHubat commit fa2f297

Compare with similar skills

Policystack Audit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Policystack Audit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Policystack Audit this skilljamiedavenport/policystack164—~1.4kAutomated safety check: PassApache-2.0
C15tc15t/c15t1.9k1 repos~1.6kAutomated safety check: PassApache-2.0
HIPAA Safe Harbor Coverage Auditmaziyarpanahi/openmed5.5k—~1.7kAutomated safety check: PassApache-2.0
Korean Privacy Termskimlawtech/korean-privacy-terms587—~2.9kAutomated safety check: PassApache-2.0
Gdpr ComplianceSushegaad/Claude-Skills-Governance-Risk-and-Compliance9461 repos~3.9kAutomated safety check: PassMIT
Hipaa ComplianceSushegaad/Claude-Skills-Governance-Risk-and-Compliance9461 repos~2.3kAutomated safety check: PassMIT

Similar skills

  • C15t

    c15t/c15t

    Work with c15t consent management docs, APIs, and integrations for Next.js, React, and JavaScript.

    1.9k GitHub starsUsed in 1 repo~1.6k tokens
    Legal & ComplianceAuto-check passed
  • Checks OpenMed de-identified clinical text against the 18 HIPAA Safe Harbor identifier categories and reports gaps and residual re-identification risk.

    5.5k GitHub stars~1.7k tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Korean Privacy Terms

    kimlawtech/korean-privacy-terms

    처리방침·이용약관 자동 생성 스킬 패키지 (v4.0). An agent skill from kimlawtech/korean-privacy-terms.

    587 GitHub stars~2.9k tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • Gdpr Compliance

    Sushegaad/Claude-Skills-Governance-Risk-and-Compliance

    Expert GDPR compliance assistant covering all four core workflows: (1) auditing code and systems for GDPR violations, (2) drafting GDPR-compliant documents such as privacy policies, Data Processing…

    946 GitHub starsUsed in 1 repo~3.9k tokens
    Legal & ComplianceAuto-check passed
  • Hipaa Compliance

    Sushegaad/Claude-Skills-Governance-Risk-and-Compliance

    Expert HIPAA compliance assistant for healthcare and software contexts.

    946 GitHub starsUsed in 1 repo~2.3k tokens
    Legal & ComplianceAuto-check passed
  • Pii Contract Analyze

    gregmos/PII-Shield

    Universal legal document processor with PII anonymization. An agent skill from gregmos/PII-Shield.

    150 GitHub stars~8.9k tokensUpdated 3 mo ago
    Legal & ComplianceAuto-check: notes

More from jamiedavenport/policystack

  • Policystack Init

    jamiedavenport/policystack

    Scaffold PolicyStack in a project: run the @policystack/cli installer, then wire the single <PolicyStack provider (policy + consent).

    164 GitHub stars~788 tokensUpdated 1 mo ago
    Auto-check passed
  • Policystack Jurisdiction

    jamiedavenport/policystack

    Explain the consent and policy-text posture (the §4.2 stance) implied by a set of declared PolicyStack jurisdictions.

    164 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Policystack Instrument

    jamiedavenport/policystack

    Find un-annotated data collection and data egress in a codebase and add PolicyStack collecting() / sharing() / thirdParty() / defineCookie() call sites so the generated policy reflects what the code…

    164 GitHub stars~916 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Policystack Audit

What does Policystack Audit do?

Audit a policystack.ts config: run policystack validate --json, explain each issue code, propose a minimal config fix, then re-validate until clean. Policystack Audit is an agent skill from jamiedavenport/policystack.ts config: run policystack validate --json, explain each issue code, propose a minimal config fix, then re-validate until clean.

When should I use Policystack Audit?

Policystack Audit fits situations like: A PolicyStack config has validation errors; tasks that involve Privacy and GDPR.

How do I install Policystack Audit in Claude Code?

Run `npx skills add jamiedavenport/policystack --skill policystack-audit -a claude-code`. Or copy the skill folder (plugin/skills/policystack-audit in jamiedavenport/policystack) into .claude/skills/policystack-audit in your project. Claude Code loads it when a task matches its description.

How do I install Policystack Audit in Codex?

Run `npx skills add jamiedavenport/policystack --skill policystack-audit -a codex`. Or copy the skill folder (plugin/skills/policystack-audit in jamiedavenport/policystack) into .agents/skills/policystack-audit in your project. Codex loads it when a task matches its description.

Can I use Policystack Audit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jamiedavenport/policystack --skill policystack-audit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/policystack-audit, .gemini/skills/policystack-audit, .github/skills/policystack-audit and .opencode/skills/policystack-audit in your project.

What does Policystack Audit need to run?

Going by SKILL.md and its folder, Policystack Audit needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Policystack Audit access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Policystack Audit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Policystack Audit use?

Policystack Audit is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Policystack Audit use?

About 1.4k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Policystack Audit?

Skills that share tags, products or a category with Policystack Audit: C15t (c15t/c15t, 1.9k stars), HIPAA Safe Harbor Coverage Audit (maziyarpanahi/openmed, 5.5k stars), Korean Privacy Terms (kimlawtech/korean-privacy-terms, 587 stars) and Gdpr Compliance (Sushegaad/Claude-Skills-Governance-Risk-and-Compliance, 946 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Policystack Audit?

jamiedavenport (a GitHub user) maintains it in jamiedavenport/policystack, which has 164 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 10, 2026.

Source: jamiedavenport/policystack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.