Skip to content
Skill

Cedar

Write, validate and evaluate Cedar authorization policies, schemas and entity data

Cedar is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Cedar

Cedar is an open-source authorization policy language, and this skill guides an agent through writing permit and forbid policies, designing a Cedar schema, and producing entity and context JSON for requests. It targets Cedar 4.x (language 4.5) and includes steps for upgrading older 3.x and 2.x policies and schemas to the current version.

The workflow runs in order: choose the language version, model entity types and actions, write policies with least privilege and template-linked grants, validate against the schema, then build test requests covering allow, deny and forbid-override cases. Reference files cover policy syntax, schema formats, the authorization algorithm, validation checks and security practices. The skill also lists guardrails such as guarding optional attributes and using non-reusable entity IDs.

The skill is plain instructions with no bundled scripts. It expects a Cedar toolchain or SDK in the target application and a schema describing the principals, actions and resources of that application.

When your agent uses it

Cedar policy language 4.5: write, validate and evaluate authorization policies with entities, schemas, templates and PARC requests. Targets Cedar 4.x (language 4.5, SDK 4.13.0) and upgrades policies and schemas from Cedar 3.x and 2.x. Use when adding fine-grained authorization to an application, modelling RBAC or ABAC as permit and forbid policies, designing a Cedar schema, writing entity and context JSON, linking policy templates for sharing features, debugging an unexpected Allow or Deny, upgrading to Cedar 4, or reviewing policies for safety. Triggers: Cedar, cedar-policy, Cedar policy, cedarschema, permit, forbid, when, unless, principal action resource context, PARC, policy template, ?principal, ?resource, template-linked policy, entity hierarchy, Cedar validator, default deny, forbid overrides permit, Amazon Verified Permissions.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 6 files (35 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the better-supabase plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ScaleDockHQ/better-supabase
/plugin install better-supabase@better-supabase

Or copy only this skill to ~/.claude/skills/cedar:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cedar &&
cp -R "$tmp/.agents/skills/cedar" ~/.claude/skills/cedar &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/cedar inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/cedar to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/cedar &&
cp -R "$tmp/.agents/skills/cedar" ~/.agents/skills/cedar &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/cedar inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/cedar to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/cedar &&
cp -R "$tmp/.agents/skills/cedar" ~/.cursor/skills/cedar &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/cedar inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ScaleDockHQ/better-supabase.git --path .agents/skills/cedar

Or copy the folder to ~/.gemini/skills/cedar yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/cedar:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cedar &&
cp -R "$tmp/.agents/skills/cedar" ~/.copilot/skills/cedar &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/cedar inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git

Then copy better-supabase/.agents/skills/cedar into your agent's skills folder as cedar. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Policy authoring workflow
Step-by-step guidance for writing permit and forbid policies with full scope and conditions.
Schema design
Covers the Cedar schema format and the JSON schema form, including appliesTo for actions.
Entity and request data
Explains entity and context JSON and building PARC requests that follow the schema.
Template-linked policies
Uses policy templates for per-user or per-resource grants instead of concatenated policy text.
Validation and debugging
Checks policies against a schema and explains default deny and forbid-overrides-permit behavior.
Upgrade guidance
Checklists for moving policies and schemas from Cedar 2.x and 3.x to 4.x.

Good for

  • Add fine-grained authorization rules to an application
  • Explain why a request was denied or allowed unexpectedly
  • Design a Cedar schema for roles and resource hierarchies
  • Convert role-based access rules into Cedar policies
  • Upgrade existing Cedar 3.x policies to Cedar 4.x

Cedar FAQ

Which Cedar version does the skill target?

Cedar 4.x, language version 4.5, pinned to SDK v4.13.0. Cedar 3.x and 2.x are treated as legacy versions to upgrade from.

Does the skill include scripts?

No, the skill has no bundled scripts; it consists of instructions and reference files.

How do I install Cedar in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/cedar to use it in all your projects, or to .claude/skills/cedar in one project. Or install the better-supabase plugin, which includes it: /plugin marketplace add ScaleDockHQ/better-supabase, then /plugin install better-supabase@better-supabase.

Does Cedar run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Cedar?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Cedar?

The closest alternatives to Cedar are Authzen, Content security policy, Acreadiness policy, Security grc and Iam helper for policy management.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ScaleDockHQ/better-supabase

  1. Apply the CommonMark 0.31.2 spec when parsing or rendering Markdown

    • Open source
    • 5 GitHub stars
    • Files and documents
  2. Publish Agent Cards and run agent-to-agent calls over the A2A 1.0 protocol

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Lets an agent stream runs, tool calls and shared state to user-facing apps over AG-UI 1.0

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Lets an AI agent drive Chrome or Chromium through a fast browser automation CLI

    • Open source
    • 5 GitHub stars
    • Browser automation
  5. Guides an agent to write, review and validate SKILL.md skills against the Agent Skills

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Write, place, migrate and review AGENTS.md instruction files for coding agents

    • Open source
    • 5 GitHub stars
    • Developer tools