trellis:compliance
Skill2 starsChanged 9 months agoMITView on GitHub
Use when user wants to Creates a regulatory and privacy review at .specs/{feature}/compliance.md by evaluating the spec against applicable regulations (GDPR, FERPA, FIPPA, COPPA, SOC 2).
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- checkSkill
- lintSkill
- testSkill
- versionSkill
- trellis:buildSkill
- build-with-subagentsSkill
- build-with-batchSkill
- trellis:clarifySkill
- trellis:guidelinesSkill
- trellis:initSkill
- trellis:pitchSkill
- trellis:planSkill
- trellis:prepSkill
- trellis:runSkill
- trellis:sketchSkill
- trellis:specSkill
- trellis:statusSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
When a feature handles personal data, student data, health data, or financial data
- Distinctive: line 15
When operating in a regulated jurisdiction or adding a new market
- Very specific: line 17
Create a regulatory and privacy review at .specs/<feature-name>/compliance.md.
- Very specific: line 23
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py compliance <feature-name> and use the specsDir value from the JSON output.
- Distinctive: line 29
Not every feature needs a compliance review.
- Distinctive: line 41
From the spec's §9 (Constraints): Look for jurisdiction or deployment constraints (e.g., "deployed in Canada" → FIPPA, "serves EU users" → …
- Very specific: line 42
From
guidelines.md: Check for infrastructure constraints that imply jurisdiction (e.g., ca-central-1). - Distinctive: line 43
From the pitch: Check for mentions of target users (e.g., "K-12 schools" → FERPA/COPPA).
- Distinctive: line 45
If the data model contains no sensitive categories and no jurisdictional constraints are found, note that no regulations apply and produce …
- Very specific: line 49
Read only the reference files in references/ for regulations determined to be applicable.
- Very specific: line 80
If the "Recommended Spec Changes" section is non-empty, the spec needs revision.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Compliance
When to use
- "compliance review", "check for FERPA", "GDPR review", "privacy review"
- "does this meet FIPPA", "regulatory check"
- When a feature handles personal data, student data, health data, or financial data
- When operating in a regulated jurisdiction or adding a new market
Create a regulatory and privacy review at .specs/<feature-name>/compliance.md.
Recommended effort: high. Cross-referencing spec data models against regulatory requirements with nuanced applicability judgments.
Pre-flight
Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-prereqs.py compliance <feature-name> and use the specsDir value from the JSON output. Abort if the output reports missing prerequisites.
Purpose
Compliance reviews the spec through a regulatory lens. It identifies which regulations apply, evaluates the spec against their requirements, and flags anything that needs to change. This phase produces its own artifact rather than modifying the spec, because regulatory constraints are a distinct concern that may evolve independently as laws change or as the product enters new markets.
Not every feature needs a compliance review. A purely internal tool with no user data may skip this entirely. The compliance step applies only the regulations that are relevant.
Prerequisites
.specs/<feature-name>/spec.mdmust exist and have passed clarify (no unresolved[? ...]markers in the spec body).specs/guidelines.mdmust exist
Determining applicable regulations
Since this skill runs in an isolated context (context: fork) without access to conversation history, it cannot interactively ask the user questions. Instead, determine applicable regulations from the available artifacts:
- From the spec's §4 (Data Model): Identify data categories — personal data, student records, health data, financial data. Each category implies specific regulations.
- From the spec's §9 (Constraints): Look for jurisdiction or deployment constraints (e.g., "deployed in Canada" → FIPPA, "serves EU users" → GDPR).
- From
guidelines.md: Check for infrastructure constraints that imply jurisdiction (e.g.,ca-central-1). - From the pitch: Check for mentions of target users (e.g., "K-12 schools" → FERPA/COPPA).
If the data model contains no sensitive categories and no jurisdictional constraints are found, note that no regulations apply and produce a minimal compliance document explaining why.
Note: When invoked through
/run, the run skill asks the user about compliance requirements upfront (interactive mode question 3, auto mode question 10). This context is embedded in the spec's §9 or the pitch before compliance runs, enabling accurate regulation selection. When invoked standalone, compliance infers from artifacts only — if regulation scope is ambiguous, list the ambiguity in the Residual Risks section.
Read only the reference files in references/ for regulations determined to be applicable. Do not load all five regulation references upfront.
Output: .specs/<feature-name>/compliance.md
Sections
Applicable Regulations — List which regulations apply and why. For each, a one-sentence justification. If a regulation was considered but doesn't apply, note that briefly so future reviewers don't re-evaluate it.
Data Classification — Categorize every data entity from the spec's §4 (Data Model):
- Public: No restrictions on access or storage
- Internal: Restricted to authorized users, no regulatory sensitivity
- Sensitive: Subject to regulatory requirements (PII, education records, health data)
- Restricted: Highest sensitivity, strict access controls and audit requirements
For sensitive and restricted data, identify which specific fields trigger the classification and which regulation governs them.
Requirement Mapping — For each applicable regulation, evaluate the spec against its requirements. Organize as a list of specific requirements with a status:
- Satisfied: The spec already addresses this. Reference the relevant spec section.
- Gap: The spec does not address this. Describe what's missing.
- Partial: The spec partially addresses this. Describe what's covered and what's not.
Data Flow Concerns — Trace how sensitive data moves through the system. Identify any points where data crosses a boundary that creates regulatory risk: leaving the country, being shared with a third party, being logged or cached in a way that violates retention policies, being accessible to users who shouldn't see it.
Recommended Spec Changes — A concrete list of changes the spec needs. Each item should reference the specific spec section to modify and describe the change. These feed back into a /spec revision.
Residual Risks — Compliance concerns that cannot be fully resolved by spec changes alone. Examples: vendor compliance certifications needed, legal review required, organizational policy decisions outside this feature's scope. Each risk should have a suggested owner or next step.
Loopback
If the "Recommended Spec Changes" section is non-empty, the spec needs revision. Tell the user which changes are needed and suggest they update the spec with /spec, then re-run /clarify and /compliance to verify the changes resolve the issues.
Quality gate
- Every regulation considered is listed with a clear apply/not-apply justification
- Every data entity from the spec is classified
- Every applicable regulation has its requirements mapped with statuses
- Gaps are specific enough that a spec author knows exactly what to add or change
- Data flow concerns trace actual paths from the spec, not hypothetical ones
- Recommended changes reference specific spec sections
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

