The compliance-policy skill
Use when the user mentions SOC 2, ISO 27001, an audit, an auditor, a security questionnaire, or their engineering or security policy — "we need SOC 2", "set up our security policy", "do we follow our own policy?", "what remediation deadlines should we commit to?". Walks the in-harness setup of the org's agent policy (framework, suggested values or their own, one reviewed approval) and how ZeroQuarry checks adherence and seals the evidence.
How to get it
This is one of the skills in the ZeroQuarry skills pack. It reaches your agent three ways:
- The native skills surface. A client that declares the
io.modelcontextprotocol/skillsextension finds it underskill://zeroquarry/compliance-policy/SKILL.md. - The fallback tools. Any client can call
list_skillsand thenload_skillwith"compliance-policy. - A local copy. The whole pack is published at skills — save the directories into your agent's skills folder.
The skill
This is the skill's own text, as the server serves it.
Compliance policy setup and adherence
Auditors mostly test one thing: does the organization follow its own written policy? ZeroQuarry turns the engineering part of that policy into typed values it serves to every agent on the account, checks whether the team actually follows them, and seals the answer as evidence. All of it happens from here; the console is only an optional review surface.
Only offer this when compliance is in play: the user raised it, or the task is audit or policy work. Never interrupt unrelated work with it.
Ground rules
- The user decides; you propose. Drafts are never served. Approval
changes the standing instructions of every agent on the account, so
call
approve_agent_policyonly after you showed the user thepreview_agent_policyresult and they explicitly approved it. Never approve, or select a framework, on your own initiative. - Signed-in owners and admins only. Drafting, previewing, approving and selecting a framework are refused for API keys and for members. If a call is refused for that reason, relay it: the user connects ZeroQuarry to this client with sign-in (OAuth) as an owner or admin, or uses the console.
- Never overstate a control. A value is only "verified" once it is approved and its check has a recent sealed run. Until then, say it is adopted but not yet evidenced. Policy text must describe what the team really does: if practice and policy disagree, show the gap and let the user choose whether to change the practice or the policy.
- Evidence is never manufactured or backdated. Report misses as misses.
1. Where they are
Call get_agent_policy. It returns what agents are served today (the
approved layer, the always-on obligations index) and, for an owner or
admin, any draft and a starting document.
2. Framework
Ask which framework they work to, if any. For SOC 2 or ISO 27001,
set_compliance_framework serves the framework's compliance skill to
every agent on the account; then set the draft's frameworks list to
that framework so its obligations compose into the policy.
Only one framework is active at a time. If one is already selected,
say so and ask before switching: selecting another retires the current
one (the result names it as retired), and the draft's frameworks
list must then name only the new one. If the result says the skill is
not served, an owner or admin disabled it on the skills page; relay
that rather than retrying.
3. Values: theirs or suggested
Ask whether they already have a written policy with numbers in it.
- They do: ask for the numbers that ZeroQuarry can check and put
them in a draft with
save_agent_policy_draft: remediation windows per severity (remediation_sla_hours), how soon a person must decide whether a finding is real (disposition_sla_hours), how often every project is scanned (scan_cadence_days), and how many approving reviews a change needs (review_rules). - They don't, or the policy names no numbers:
get_policy_suggestionsreturns conservative values, each with why it is defensible, the mechanism the team must have in place, how ZeroQuarry evidences it, and clause text for their own policy document. Walk the user through them, change any value they want, and save what they agree to as a draft (merged_draftkeeps every value they already chose). Offer the clause text so their written policy says the same thing; it is their document, in their name.
Suggest only what the team can meet: a published window they miss is an audit exception, not a sign of rigor.
4. Review and approve
preview_agent_policyshows the obligations index agents will receive, every value with its source, and any problems that block approval. Show it to the user in full.- Fix problems by saving a new draft (any edit changes the digest).
- On the user's explicit approval,
approve_agent_policywith the preview's digest. A stale digest is refused: preview again.
Agents receive the new obligations index at their next connection;
get_agent_policy shows it now. Offer to write the repository
instruction file from get_agent_policy (its instruction_file) into
the repository's AGENTS.md or CLAUDE.md, so agents without a
ZeroQuarry connection follow the same policy.
5. Check adherence and keep the evidence
run_policy_check checks the team against the approved policy and
seals the result:
remediation_sla: were findings fixed, mitigated or risk-accepted within their window;finding_disposition: did a person decide on each finding in time;scan_cadence: was every active project scanned often enough;review_count(withrepo): did merged pull requests have their approvals;commit_convention(withrepo, when the policy selects Conventional Commits): did each merged pull request's title or commits follow it;ticket_reference(withrepo, when the policy names a ticketing system): did each merged pull request reference a ticket in it.
Read results with list_policy_check_runs and get_policy_check_run.
Each sealed run also has a PDF report and manifest in the console for
the auditor. Running each check monthly keeps the obligations labelled
"checked by ZeroQuarry" in every agent's index.