# Cedar

> Cedar is an open-source agent skill for security. Write, validate and evaluate Cedar authorization policies, schemas and entity data. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ScaleDockHQ/better-supabase/tree/main/.agents/skills/cedar
- **Repository:** https://github.com/scaledockhq/better-supabase
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** cedar
- **Collection:** https://github.com/ScaleDockHQ/better-supabase
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/cedar)
- [License: MIT](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/cedar)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Authzen](https://ai-powered.com/skills/authzen): Authzen is an open-source agent skill for security.
- [Content security policy](https://ai-powered.com/skills/content-security-policy): Content security policy is an open-source agent skill for security.
- [Acreadiness policy](https://ai-powered.com/skills/acreadiness-policy): Acreadiness policy is an open-source agent skill for developer tools.
- [Security grc](https://ai-powered.com/skills/security-grc): Security grc is an open-source agent skill for security.
- [Iam helper for policy management](https://ai-powered.com/skills/iam-helper-for-policy-management): Iam helper for policy management is an open-source agent skill for security.
- [Spring security](https://ai-powered.com/skills/spring-security): Spring security is an open-source agent skill for security.
- [Security review edho ferdian](https://ai-powered.com/skills/security-review-edho-ferdian): Security review edho ferdian is an open-source agent skill for security.
- [V3 Security Overhaul](https://ai-powered.com/skills/v3-security-overhaul): V3 Security Overhaul is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/cedar
