ryk-init

ryk-init is a skill for Claude Code, Codex from christopherkarani/ryk. It costs 0 tokens per session (334 once invoked), scanned A, a copy of init, Apache-2.0.

A repository setup tool for creating or repairing an ryk policy file, which defines safety settings for coding agents.

In plain words
What is it for?
Use it to initialize or reset .ryk/policy.yaml, then check that the policy is valid.
Why use it?
It helps when the policy file is missing or needs to be restored without silently replacing an existing policy.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/christopherkarani/ryk/ryk-init
Any agent
npx skills add christopherkarani/ryk --skill ryk-init
Clone the repo
git clone --depth 1 https://github.com/christopherkarani/ryk

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 ryk-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/christopherkarani/ryk/ryk-init.svg)](https://agentmods.dev/skills/christopherkarani/ryk/ryk-init)
Your own site
<a href="https://agentmods.dev/skills/christopherkarani/ryk/ryk-init"><img src="https://agentmods.dev/badge/skills/christopherkarani/ryk/ryk-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod 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 $0.00000 $0.00334
Opus 5 $0.00000 $0.00167
Sonnet 5 $0.00000 $0.00067
Haiku 4.5 $0.00000 $0.00033

Measured 4d ago against content hash 0e1b9f91193e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ryk-init 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 4d ago.

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.

Origin

This is a copy

91% identical to init — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

integrations/codex-plugin/skills/ryk-init/SKILL.md · 54 lines

What it actually says

ryk-init

Create or repair an ryk policy for the current repository.

When to use

Use this skill when starting a new project, when .ryk/policy.yaml is missing, or when you want to reset to a known-good policy preset.

Commands

Initialize an ryk policy with the Codex preset:

ryk init --preset codex

Validate the resulting policy:

ryk policy check .ryk/policy.yaml

Preset fallback

If the codex preset is not available in your ryk build, use the closest plugin-safe preset:

ryk init --preset generic-agent

Or, for stricter defaults:

ryk init --preset strict-local

The generic-agent preset is a conservative starting point for local coding agents. Review the generated .ryk/policy.yaml before trusting it.

Safety rules

  • Do not silently overwrite .ryk/policy.yaml. If a policy already exists, review it first.
  • If you need to recreate it, back up the old file:
    cp .ryk/policy.yaml .ryk/policy.yaml.bak
    
  • Always run ryk policy check after creating or editing a policy.

Notes

  • This skill modifies only .ryk/policy.yaml in the current workspace.
  • No host configuration is changed.
  • The plugin does not collect telemetry. Release CLI commands may record only fixed anonymous metadata; see docs/telemetry.md.
  • The generated policy does not contain real secrets.
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. 4d ago First seen · 54 lines · 0 tokens per session scan A 0e1b9f91193e

Subscribe to this mod's changes

ryk-init is a skill published in the GitHub repository christopherkarani/ryk (39 stars, last pushed 14d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 334 tokens. A static security scan graded it A with 0 findings. It is 91% identical to init, differing in 8 lines, and is treated as a copy.