agentleFS
ovargasovargas/virtual-team/skills/policy-risk/SKILL.md

policy-risk

Skill14 starsChanged 8 months agoMITView on GitHub

Use when an idea, proposal, feature spec, plan, or code change touches payments, money flow, app-store distribution, authentication, personal data, tracking, user-generated content, regulated domains, or third-party APIs — detects platform-policy, terms-of-service, and regulatory risks early, records them as spec items with a verified source, and HALTs on unresolved Blockers

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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
  1. Very specific:

    Read the ## Compliance Profile section of stack.md (hub stack.md first if one exists).

    line 13
  2. Very specific:

    No trigger hit: write Policy scan: no triggers and stop.

    line 25
  3. Very specific:

    When you cannot fetch a confirming source, keep the risk but mark it Unverified.

    line 33
  4. Distinctive:

    Add or update this section in the artifact being produced (idea brief, proposal Dependencies, or feature spec):

    line 47
  5. Distinctive:

    Every Must-address item also gets a matching Definition of Done line.

    line 60
  6. Distinctive:

    When a mitigation changes the stack (example: Stripe Connect replaces direct charges), list it as a stack decision for the architect gate.

    line 61
  7. Very specific:

    A or B: update the spec and set the status to Mitigated.

    line 79
  8. Very specific:

    C: create an ADR using skills/adr-convention/SKILL.md, then set the status to Accepted with a link to the ADR.

    line 80
  9. Distinctive:

    Write each risk as a concrete behavior conflicting with a specific clause.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Policy Risk

Catch the rejection, account freeze, or legal problem while the feature is still a paragraph, not after the store review or the payout hold. This is a risk alert, never legal advice — say so in every report.

1. Decide Whether to Scan

Read the ## Compliance Profile section of stack.md (hub stack.md first if one exists). Then check the work against these triggers:

TriggerExamples
Moneycharging users, subscriptions, paying out or splitting with third parties, refunds, wallets, credits
Store distributioniOS / Android app, digital goods, in-app unlocks, external purchase links
Identitylogin walls, social login, account creation and deletion
DataPII, location, health, financial, children's data, tracking, analytics SDKs, ads
Contentuser-generated content, messaging, marketplaces, AI-generated content
Third partiesscraping, reselling or caching third-party data, LLM or other API usage terms
Regulated domainhealth, finance, lending, insurance, gambling, crypto, alcohol, firearms
  • No trigger hit: write Policy scan: no triggers and stop.
  • Trigger hit, but a profile field it depends on is missing or TBD: HALT with that field as a decision (example: "Money flow: TBD" when the feature charges users). You cannot assess Stripe risk without knowing whether the money is yours.

2. Scan

  1. List the concrete behaviors the work introduces (example: "user pays, provider receives 80%").
  2. For each one, read skills/policy-risk/references/known-pitfalls.md for leads. Leads are not evidence. Policies change.
  3. Verify every risk against the current official source with WebSearch/WebFetch: the provider's terms, the store's guidelines, or the regulator's text. Record the URL and the section or clause number.
  4. When you cannot fetch a confirming source, keep the risk but mark it Unverified. Never drop it silently, and never cite a section you did not read.

3. Classify

SeverityMeaningGate effect
BlockerShips as specified → store rejection, account termination, frozen funds, or clear legal exposureHALT
Must-addressAllowed only with a specific implementation (consent screen, deletion flow, disclosure)Becomes a DoD item
WatchGray area, or depends on future scope or marketRecorded only

An Unverified risk keeps its severity, but the HALT message must say the source is unconfirmed.

4. Record

Add or update this section in the artifact being produced (idea brief, proposal Dependencies, or feature spec):

## Policy & Compliance Risks

> Risk alert generated from public policy text — not legal advice. Confirm Blockers with counsel when money or personal data is at stake.

| ID | Risk | Source | Severity | Mitigation | Status |
|----|------|--------|----------|------------|--------|
| PR-1 | [behavior → policy conflict] | [URL §section] (fetched YYYY-MM-DD) | Blocker | [compliant alternative] | Open |
  • Status is one of Open, Mitigated (the spec now uses the compliant alternative), or Accepted (the founder takes the risk; link the ADR).
  • Every Must-address item also gets a matching Definition of Done line.
  • When a mitigation changes the stack (example: Stripe Connect replaces direct charges), list it as a stack decision for the architect gate.

5. Gate

From /feature onward, any Open Blocker HALTs, the same way a missing stack decision does. --auto does not skip it. In /idea and /proposal, the business model is still moving, so present Blockers prominently and record them without halting. Present them like this:

⛔ Policy risk — decision required

PR-1: [risk]
Source: [URL §section]  [Unverified, if applicable]
Options:
  A) [Compliant alternative] — [cost/effort impact]
  B) [Change or drop the behavior]
  C) Accept the risk — recorded as an ADR in docs/decisions/
Recommendation: [A/B/C] because [reason]
  • A or B: update the spec and set the status to Mitigated.
  • C: create an ADR using skills/adr-convention/SKILL.md, then set the status to Accepted with a link to the ADR. Stating what could happen and why the risk is accepted makes the decision explicit.

Code Review Mode

When this skill is loaded by /review, read skills/policy-risk/references/code-signals.md and check the changed files for implementations that violate a recorded risk's mitigation, or that introduce a trigger the spec never scanned. Report violations of a recorded Blocker as Must Fix, and new unscanned triggers as Should Fix.

Evidence Rules

  • Cite the policy's URL and section for every risk, or mark the risk Unverified.
  • Write each risk as a concrete behavior conflicting with a specific clause. "Payments might have compliance issues" is not a finding.
  • Flag only what this work introduces. Do not re-audit the whole product.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.