action-policy-guru

action-policy-guru is a skill for Claude Code, Codex from izkreny/agentifico. It costs 195 tokens per session (2,881 once invoked), scanned A, original, MIT.

A guide for using Action Policy, a Ruby and Rails library for deciding whether a user may perform an action. It explains policy classes, default-deny rules, checks, and access to collections.

In plain words
What is it for?
It helps developers write, review, and test policies for actions, records, and collections in Ruby or Rails applications.
Why use it?
It helps keep authorization decisions explicit and consistent instead of scattering permission checks through application code. It also covers common mistakes such as missing checks or incorrect scope restrictions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps developers write, review, and test policies for actions, records, and collections in Ruby or Rails applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/izkreny/agentifico/action-policy-guru
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 izkreny/agentifico --skill action-policy-guru
Clone the repo
git clone --depth 1 https://github.com/izkreny/agentifico

Made for: Claude Code, Codex.

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 action-policy-guru

README.md
[![agentmods](https://agentmods.dev/badge/skills/izkreny/agentifico/action-policy-guru/github.svg)](https://agentmods.dev/skills/izkreny/agentifico/action-policy-guru)
Your own site
<a href="https://agentmods.dev/skills/izkreny/agentifico/action-policy-guru"><img src="https://agentmods.dev/badge/skills/izkreny/agentifico/action-policy-guru/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 action-policy-guru

Your own site · 80×15
<a href="https://agentmods.dev/skills/izkreny/agentifico/action-policy-guru"><img src="https://agentmods.dev/badge/skills/izkreny/agentifico/action-policy-guru.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,881 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.00195 $0.02881
Opus 5.5 $0.00078 $0.01152
Sonnet 5.5 $0.00039 $0.00576
Haiku 4.5 $0.00019 $0.00288

Measured 1mo ago against content hash 0ed5da89efbb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

action-policy-guru 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check-upstream.sh, scripts/test-check-upstream.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/action-policy-guru/SKILL.md · 167 lines

How it starts

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

Action Policy

Action Policy answers one question, how to verify access, and deliberately answers no other. It ships no roles, no permissions and no model of who a user is, so every capability question in a codebase is that codebase's own; this skill covers the mechanism that expresses the answer (upstream: guide.md).

Paths inside this skill are relative to the skill's own directory.

Reading this skill against the source

Every section names the upstream guide page it was distilled from, as upstream: <page>. Those pages are embedded in assets/llms-full.txt, so checking any claim here against the source is one grep for the page's url: line, then reading forward:

grep -n "^url: .*/<page>$" <skill-dir>/assets/llms-full.txt

The prose is derived rather than copied: read it as a claim with a citation, not as upstream's own words.

A claim without a citation is this skill's own judgement rather than upstream's. A claim that disagrees with the cited page is a defect in this skill unless it names the gem version it was observed on, and an observed claim outranks the page. Code examples are restyled from upstream's, so an example never carries upstream's exact text either.

The snapshot is a pinned copy, and scripts/check-upstream.sh is what says whether it still matches the live docs.

The project's model wins

Where a repository documents who may do what, that document decides what a rule should return, and this skill decides how the rule is written. Read it before changing a rule or the spec that proves one, and treat a disagreement between it and the code as a defect in one of them rather than as licence to pick either.

References

Loaded when the task touches them, since each costs context on every load:

  • references/rails.md: controller and channel integration, the verify_authorized hooks, generators, config flags, rescuing the exception
  • references/scoping.md: authorized_scope, relation_scope, params_filter, named scopes, scope options, matchers
  • references/testing.md: policy specs and the RSpec DSL, authorization and scoping matchers, view specs, debugging a rule that answers wrongly
  • references/reasons.md: failure reasons, detailed reasons, result.all_details, i18n messages
  • references/caching.md: memoization layers, the rule cache store, invalidation, instrumentation events

Read the full file on GitHub · 167 lines

Files

What ships with it

10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed 0ed5da89efbb
  2. 1mo ago First seen · 167 lines · 195 tokens per session scan A 40f5396bba74

Subscribe to this mod's changes

action-policy-guru is a skill published in the GitHub repository izkreny/agentifico (4 stars, last pushed 2d ago), licensed MIT. It adds 195 tokens to every session and 2,881 once invoked, about $0.0008 per session on Opus 5.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-10-31.

Related

action-policy-guru compared with skills from other repositories

action-policy-guru next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
action-policy-guruizkreny/agentificoSkill42d agoMITA195Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k5d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.3ktodayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill701todayMITA105Claude Code, Codex