/dogwood:dogwoodfrom dogwood
Orientation and router for authoring Dogwood authorization policies. Maps the lifecycle (action schema, service schema, policies, validate/replay) and directs you to the correct task skill.
Ships in dogwood. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This is the entry point for building a Dogwood authorization setup from
nothing. It is a map and a router, not a worker: it tells you the lifecycle
and hands you off to the one task skill that owns your current step. Each of the
three task skills named below does the actual authoring, points at the guide as
its ground truth, and ends in a mandatory dogwood CLI gate.
New to Dogwood entirely? Read the mental model first — it is short and pays for
itself. Paths are relative to this skill directory
(.claude/skills/dogwood/); the guide lives in the dogwood-docs crate:
../../../dogwood-docs/guide/00-introduction.md — what Dogwood is, the
problem it solves, and the five concepts (policies, events, schemas, temporal
/ providers, the authorizer). Read this if you are new.../../../dogwood-docs/guide/README.md — the full guide index and reading
order, if you want the complete picture before starting.An authorization setup is built in this order. Each step depends on the one before it — you cannot skip forward.
context shape (a Cedar .cedarschema). This is the one schema
every policy needs, and it is required before anything else.
→ skill: authoring-action-schemarequest/response/error, pins, the
max_window / max_horizon look-back caps) and/or declare information providers
(computed facts / guardrails). Both default sensibly, so most setups skip
this step entirely.
→ skill: authoring-service-schema.dw policy.
→ skill: autoformalize-policiesdogwood CLI (validate, replay, lower,
check-parse, and the schema checks).
→ guide: ../../../dogwood-docs/guide/12-cli.mdRoute on what you are trying to do:
.dw policy and want to check it or replay a trace" →
the dogwood CLI; see ../../../dogwood-docs/guide/12-cli.md.If two of these seem to fit, pick the earliest one — an action schema is a prerequisite for the service schema and for policies, so a missing prerequisite is almost always the real blocker.
.cedarschema,
authoring-action-schema). The service schema is event kinds + providers
(the event-schema DSL and providers.json, authoring-service-schema).
Don't conflate them — they have separate skills and separate dogwood schema
checks (schema action vs schema event / schema providers).dogwood CLI before it is done. A
schema or policy that has not passed its CLI gate is not a finished answer.
Exit codes are uniform across the tool: 0 ok/valid, 1 usage or I/O error,
2 rejected input. See ../../../dogwood-docs/guide/12-cli.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dogwood-policy/dogwood --plugin dogwood4 skills in this plugin
/authoring-action-schemaStand up the Cedar ACTION schema (.cedarschema) a Dogwood deployment governs — its entity types (principals/resources), one action per tool/operation, and each action's context.input/output/system layout — either hand-written or generated from an MCP tools/list manifest. Use when a user needs to declare the entities and actions that policies will scope over, map MCP tools to Cedar actions, or run `dogwood schema mcp`. This is the ACTION schema (entities + actions + context) — the prerequisite for both later skills. Not for writing policies — that is autoformalize-policies. Not for declaring event kinds or information providers (the SERVICE schema) — that is authoring-service-schema. Not for general "set up Dogwood from scratch" / "I don't know where to start" orientation when no specific entity, action, or MCP manifest is named — route those to the /dogwood orientation command./authoring-service-schemaAuthor or edit a Dogwood SERVICE schema — the event schema (.dwschema: event kinds, decision vs history points, renamed/reserved fields, nested records, correlation pins) and/or information providers (providers.json + the Rhai `evaluate` implementation behind a computed guardrail fact). Use when a policy needs a non-default event model (a history-only event kind, a renamed principal field, a pin/correlation invariant) or a computed fact from a provider/guardrail. The service schema is OPTIONAL and defaults sensibly (default = request/response/error kinds with only `request` deciding, a universal principal pin giving key-local semantics, a 24h `max_window` cap, no providers, and a small standard macro library), so this also covers deciding whether one is even needed. Requires a Cedar action schema first — that is authoring-action-schema. NOT for the Cedar action schema itself (entities/actions/context) — that is authoring-action-schema. NOT for writing `.dw` policies — that is autoformalize-policies./autoformalize-policiesAutoformalize a natural-language authorization requirement into a validated Dogwood (.dw) policy. Use when a user describes access rules in prose ("only allow X if Y", "deny after Z", "no more than N per hour") and wants a compilable Dogwood policy. Disambiguates intent before formalizing, and always validates the generated policy with the `dogwood` CLI before returning it. This skill CREATES a policy from prose; it is not for running the `dogwood` CLI / validator on an existing `.dw` file (validation here is an internal step, not a standalone command — for CLI usage see the guide's command-line chapter).Other plugins' skills for the same job