Agent skill

Subduction Policy

by dxos in dxos/dxos

Reference for SubductionPolicy (the four hooks authorizeConnect, authorizeFetch, authorizePut, filterAuthorizedFetch passed via Subduction.hydrate(..., policy) or new Repo({ subductionPolicy })).

Custom licenceAuto-check passedBackend & APIs

Install Subduction Policy

skills CLI
$ npx skills add dxos/dxos --skill subduction-policy -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dxos/dxos subduction-policy --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dxos/dxos.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/subduction .claude/skills/subduction-policy && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
subduction-policy
GitHub stars
525
Token cost
~3.4k tokens
SKILL.md length
1,334 words
Files
2 (incl. references)
Skills in repo
41
Repo updated
First seen
Licence
Custom licence

At a glance

Reference for SubductionPolicy (the four hooks authorizeConnect, authorizeFetch, authorizePut, filterAuthorizedFetch passed via Subduction.hydrate(..., policy) or new Repo({ subductionPolicy })).

  • Designing client-side access control over Subduction-replicated data
  • SKILL.md covers Where each hook is consulted, Summary table, The "can the client gate… and Per-peer gating requires…, plus 4 more sections
  • Calls pnpm
  • Choosing which hook to deny in

What it does

Subduction Policy is an agent skill from dxos/dxos. Reference for SubductionPolicy (the four hooks authorizeConnect, authorizeFetch, authorizePut, filterAuthorizedFetch passed via Subduction.hydrate(..., policy) or new Repo({ subductionPolicy })). Use when designing client-side access control over Subduction-replicated data, choosing which hook to deny in, or debugging why a doc did or did not replicate.

Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/sync-reliability.md`).

It sits in Backend & APIs, covering Authorization and RBAC. The repository describes itself as: TypeScript implementation of the DXOS protocols, SDK, toolchain and Composer.

When your agent uses it

  • Designing client-side access control over Subduction-replicated data
  • Choosing which hook to deny in
  • Debugging why a doc did
  • Did not replicate

Example prompts

  • “/subduction-policy”

What it can do on your machine

Read from SKILL.md and the folder at commit 2e6b92a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Subduction Policy loads about 3.4k tokens when it runs, and up to ~8.8k if it reads all its reference files. Until then it costs about 97 tokens; SKILL.md has 1,334 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~97
When it runs · the whole SKILL.md, loaded when a task matches
~3.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,334 words (~3,368 tokens).

“SubductionPolicy is the JS-imported policy object the Subduction Wasm bridge consults for every authorization decision. The TypeScript shape (verbatim from subduction_wasm/src/policy.rs's TS_POLICY block):”

— opening of SKILL.md by dxos, Custom licence
name
subduction-policy

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in .agents/skills/subduction of dxos/dxos.

  • SKILL.md
  • references/sync-reliability.md

Open the folder on GitHubat commit 2e6b92a

Compare with similar skills

Subduction Policy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Subduction Policy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Subduction Policy this skilldxos/dxos525—~3.4kAutomated safety check: PassCustom licence
Payloadpayloadcms/payload45k5 repos~6.2kAutomated safety check: PassMIT
Add Permissionfullstackhero/dotnet-starter-kit6.8k—~849Automated safety check: PassMIT
Build Backendhashgraph-online/awesome-codex-plugins1.3k—~410Automated safety check: PassApache-2.0
Configuring Horizoncoollabsio/coolify63k4 repos~898Automated safety check: PassMIT
K8s Security PoliciesCybereason-Public/owLSM28012 repos~2kAutomated safety check: PassGPL-2.0

Similar skills

  • Payload

    payloadcms/payload

    A skill your agent uses when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API).

    45k GitHub starsUsed in 5 repos~6.2k tokens
    Backend & APIsAuto-check passed
  • Add Permission

    fullstackhero/dotnet-starter-kit

    Add a new permission end-to-end — server constant + endpoint gate, and (admin app) mirror it into the permissions catalog + route guard.

    6.8k GitHub stars~849 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Build Backend

    hashgraph-online/awesome-codex-plugins

    Build or modify backend APIs, services, jobs, persistence, and integrations while preserving contracts, authorization, data integrity, and failure behavior.

    1.3k GitHub stars~410 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Configuring Horizon

    coollabsio/coolify

    A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.

    63k GitHub starsUsed in 4 repos~898 tokens
    Backend & APIsAuto-check passed
  • K8s Security Policies

    Cybereason-Public/owLSM

    Comprehensive guide for implementing NetworkPolicy, PodSecurityPolicy, RBAC, and Pod Security Standards in Kubernetes.

    280 GitHub starsUsed in 12 repos~2k tokens
    Backend & APIsAuto-check passed
  • Convex Setup Auth

    spokvulcan/poker-planning

    Sets up Convex auth, identity mapping, and access control. An agent skill from spokvulcan/poker-planning.

    114 GitHub starsUsed in 8 repos~1.8k tokens
    Backend & APIsAuto-check passed

More from dxos/dxos

All 41 skills in this repo
  • Run the rule-driven agentic code review — discover rule blocks in the repo's .mdl files, prepare per-rule review groups (full project by default; diff-only with --pr-only), spawn one focused Sonnet…

    525 GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Forensically inspect and repair Composer browser profiles — offline (Chrome OPFS / SQLite extract) or live via /recovery.html debug port.

    525 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Migrate Oxfmt

    dxos/dxos

    Guide for migrating a project from Prettier or Biome to Oxfmt.

    525 GitHub starsUsed in 3 repos~2.2k tokens
    Auto-check passed
  • Moon

    dxos/dxos

    This skill should be used when the user asks to "configure moon", "set up moonrepo", "create moon tasks", "run moon commands", "configure moon workspace", "add moon project", "moon ci setup", "moon…

    525 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Autocue

    dxos/dxos

    Record a demo of the running app that the agent drives itself — a .mdl QA test or an ad-hoc walkthrough — as a captioned .webm (or a screenshot), trimmed of dead air and ready to attach.

    525 GitHub stars~12k tokensUpdated today
    Auto-check passed
  • 1password

    dxos/dxos

    Get a credential (API key, token, password, certificate) from 1Password with the op CLI — only when OPSERVICEACCOUNTTOKEN is set (the cloud sandbox); in a local session never run op.

    525 GitHub stars~1k tokensUpdated today
    Auto-check: notes

Questions about Subduction Policy

What does Subduction Policy do?

Reference for SubductionPolicy (the four hooks authorizeConnect, authorizeFetch, authorizePut, filterAuthorizedFetch passed via Subduction.hydrate(..., policy) or new Repo({ subductionPolicy })). Subduction Policy is an agent skill from dxos/dxos., policy) or new Repo({ subductionPolicy })).

When should I use Subduction Policy?

Subduction Policy fits situations like: designing client-side access control over Subduction-replicated data; choosing which hook to deny in; debugging why a doc did; did not replicate.

How do I install Subduction Policy in Claude Code?

Run `npx skills add dxos/dxos --skill subduction-policy -a claude-code`. Or copy the skill folder (.agents/skills/subduction in dxos/dxos) into .claude/skills/subduction-policy in your project. Claude Code loads it when a task matches its description.

How do I install Subduction Policy in Codex?

Run `npx skills add dxos/dxos --skill subduction-policy -a codex`. Or copy the skill folder (.agents/skills/subduction in dxos/dxos) into .agents/skills/subduction-policy in your project. Codex loads it when a task matches its description.

Can I use Subduction Policy in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dxos/dxos --skill subduction-policy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/subduction-policy, .gemini/skills/subduction-policy, .github/skills/subduction-policy and .opencode/skills/subduction-policy in your project.

What does Subduction Policy need to run?

Going by SKILL.md and its folder, Subduction Policy needs the command-line tools its instructions call (pnpm).

Does Subduction Policy access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Subduction Policy safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Subduction Policy use?

Subduction Policy has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Subduction Policy use?

About 3.4k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.4k tokens, read only when the agent opens those files.

What are the alternatives to Subduction Policy?

Skills that share tags, products or a category with Subduction Policy: Payload (payloadcms/payload, 45k stars), Add Permission (fullstackhero/dotnet-starter-kit, 6.8k stars), Build Backend (hashgraph-online/awesome-codex-plugins, 1.3k stars) and Configuring Horizon (coollabsio/coolify, 63k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Subduction Policy?

dxos (a GitHub organization) maintains it in dxos/dxos, which has 525 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on October 9, 2026.

Source: dxos/dxos on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.