trigger-policy

trigger-policy is a skill for Claude Code from synaptiai/synapti-marketplace. It costs 145 tokens per session (1,409 once invoked), scanned A, original, Apache-2.0.

A safety policy for automated triggers that start workflows from events or schedules. It validates trigger configuration and blocks unsafe actions such as merging or releasing code.

In plain words
What is it for?
Use it to validate and enforce trigger rules, allowed and forbidden actions, recursion limits, active-trigger limits, and configuration schemas.
Why use it?
It prevents unattended automation from creating recursive runs, exceeding concurrency limits, or taking actions that require human control.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter; names the AskUserQuestion tool.

Part of the flow plugin — 31 skills, 21 commands, 9 agents shipped together

Good fit Use it to validate and enforce trigger rules, allowed and forbidden actions, recursion limits, active-trigger limits, and configuration schemas.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/synaptiai/synapti-marketplace/trigger-policy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add synaptiai/synapti-marketplace --skill trigger-policy
Clone the repo
git clone --depth 1 https://github.com/synaptiai/synapti-marketplace

Made for: Claude Code.

Or install flow, the plugin that ships this one along with the rest of its 31 skills, 21 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for trigger-policy

README.md
[![agentmods](https://agentmods.dev/badge/skills/synaptiai/synapti-marketplace/trigger-policy/github.svg)](https://agentmods.dev/skills/synaptiai/synapti-marketplace/trigger-policy)
Your own site
<a href="https://agentmods.dev/skills/synaptiai/synapti-marketplace/trigger-policy"><img src="https://agentmods.dev/badge/skills/synaptiai/synapti-marketplace/trigger-policy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for trigger-policy

Your own site · 80×15
<a href="https://agentmods.dev/skills/synaptiai/synapti-marketplace/trigger-policy"><img src="https://agentmods.dev/badge/skills/synaptiai/synapti-marketplace/trigger-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,409 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00145 $0.01409
Opus 5 $0.00072 $0.00705
Sonnet 5 $0.00029 $0.00282
Haiku 4.5 $0.00015 $0.00141

Measured 6d ago against content hash 96e0ec2ed9d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

trigger-policy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/flow/skills/trigger-policy/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Trigger Policy

You own FlowTrigger safety. Triggers fire without direct user supervision in many cases (CI events, scheduled runs); the policy in this skill is the last line of defense against unintended-action triggers.

Iron Law

merge and release MUST appear in every trigger's policy.forbidden_actions. Triggers cannot grant Tier 3 autonomy regardless of any other configuration. This is non-negotiable.

Inputs

The invoking command MUST pass:

  1. Trigger YAML path — either a template under plugins/flow/triggers/templates/ or a project-local trigger at .flow/triggers/<id>.trigger.yaml.
  2. Modevalidate | enforce. Validate is read-only (used by /flow:trigger validate); enforce is the gate before /flow:trigger run actually dispatches the target command.

Outputs

Structured JSON report:

{
  "trigger_id": "pr-123-watch",
  "schema_valid": true,
  "tier3_violations": [],
  "recursion_violations": [],
  "missing_required_forbidden": [],
  "cross_reference_violations": [],
  "concurrency_violations": [],
  "overall": "pass"
}

Exit code: 0 on pass; 1 on policy violation; 2 on schema invalid.

Workflow

Step 1: Schema validation

python3 -m jsonschema -i "${TRIGGER_YAML}" "plugins/flow/schemas/v1/trigger.schema.json"

Failure → overall: schema_invalid (exit 2).

Step 2: Tier 3 absolute deny

Verify policy.forbidden_actions contains both merge AND release. Missing either → tier3_violations.append({"action": "merge_or_release", "reason": "must be forbidden"}). Hard fail.

Step 3: Recursion policy check

Verify recursion_policy.triggered_runs_may_create_triggers is false (or unset; default is false). Same for triggered_runs_may_modify_triggers and triggered_runs_may_enable_triggers. Any set to true requires explicit Tier 3 authorization — surface as recursion_violations and require AskUserQuestion at /flow:trigger create time.

Step 4: Allowed-types check

Verify trigger.type is in flow.triggers.allowedTypes (cascade-resolved; default [manual, hook, loop_prompt]). Trigger types github_actions | local_cron | local_daemon are valid schema but disabled in v3.0 — surface as tier3_violations if the project's setting doesn't permit them.

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 111 lines · 145 tokens per session scan A 96e0ec2ed9d3

Subscribe to this mod's changes

trigger-policy is a skill published in the GitHub repository synaptiai/synapti-marketplace (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 145 tokens to every session and 1,409 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.