rules-distill

rules-distill is a skill for Claude Code, Codex from jxoesneon/Ciel. It costs 23 tokens per session (459 once invoked), scanned A, original, Apache-2.0.

A process for extracting recurring principles from development skills and proposing them as shared workspace rules.

In plain words
What is it for?
Use it to scan existing skills, identify repeated actionable rules, assess their risk and novelty, and prepare approved rule updates.
Why use it?
It helps keep important practices consistent across different skills while requiring human approval before changing the global rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to scan existing skills, identify repeated actionable rules, assess their risk and novelty, and prepare approved rule updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jxoesneon/ciel/rules-distill
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.

Any agent
npx skills add jxoesneon/Ciel --skill rules-distill
Clone the repo
git clone --depth 1 https://github.com/jxoesneon/Ciel

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 rules-distill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jxoesneon/ciel/rules-distill/github.svg)](https://agentmods.dev/skills/jxoesneon/ciel/rules-distill)
Your own site
<a href="https://agentmods.dev/skills/jxoesneon/ciel/rules-distill"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/rules-distill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rules-distill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jxoesneon/ciel/rules-distill"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/rules-distill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 459 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.1 $0.00023 $0.00459
Opus 5.5 $0.00009 $0.00184
Sonnet 5.5 $0.00005 $0.00092
Haiku 4.5 $0.00002 $0.00046

Measured 2mo ago against content hash d0b3e2e3a6f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rules-distill 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 2mo 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.

skills/rules-distill/SKILL.md · 47 lines

What it actually says

CIEL ADAPTATION: Rules Distill (Principle Extraction)

This skill formalizes the mechanism by which CIEL evolves its global ruleset. It applies the "Deterministic Collection + LLM Judgment" principle to identify cross-cutting behaviors that should be promoted from individual skills to mandatory rules.

The Distillation Workflow

Phase 1: Inventory (Deterministic)

The system exhaustively scans the installed skill registry (Ciel/skills/) and the current ruleset to create a baseline inventory of principles.

Phase 2: Cross-Read & Match (Judgment)

An Auditor sub-agent cross-references all skills to find principles that meet the Promotion Criteria:

  1. Ubiquity: The principle appears in 2+ distinct skills.
  2. Actionability: It can be written as a "Do X" or "Don't do Y" instruction.
  3. Risk: There is a clear violation risk if the principle is ignored.
  4. Novelty: It is not already sufficiently covered in the existing rules.

Phase 3: Review & Execution

Proposed rule updates (Append, Revise, or New File) are presented to the user for explicit approval. Manual approval is mandatory; CIEL never modifies its own ruleset automatically.

Output Format

Each proposal must include:

  • Principle: The exact rule text.
  • Evidence: List of skills where the principle was observed.
  • Violation Risk: What happens if this rule is broken.
  • Verdict: Append | Revise | New Section | New File.

Anti-Patterns

  • Over-Abstraction: Creating vague rules (e.g., "Code should be clean") that are not actionable.
  • Skill Leakage: Moving language-specific hacks that belong in a skill into the global ruleset.
  • Automated Refactoring: Modifying rules without a user-in-the-loop review.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago Changed · -13 lines d0b3e2e3a6f5
  2. 2mo ago First seen · 60 lines · 23 tokens per session scan A d45a072c632e

Subscribe to this mod's changes

rules-distill is a skill published in the GitHub repository jxoesneon/Ciel (1 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 23 tokens to every session and 459 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

rules-distill compared with skills from other repositories

rules-distill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rules-distilljxoesneon/CielSkill11mo agoApache-2.0A23Claude Code, Codex
factory-baselinewatt-mind/factorySkill24yesterdayApache-2.0A80Claude Code
factory-swarmwatt-mind/factorySkill24yesterdayApache-2.0A47Claude Code
factory-verify-createwatt-mind/factorySkill24yesterdayApache-2.0A85Claude Code
factory-teachwatt-mind/factorySkill24yesterdayApache-2.0A57Claude Code
factory-whywatt-mind/factorySkill24yesterdayApache-2.0A47Claude Code
principle-explain-the-numberwatt-mind/factorySkill24yesterdayApache-2.0A45Claude Code