r3bl-open-core: Skill for Claude Code

.agents/skills/design-philosophy/SKILL.md

design-philosophy is a skill for Claude Code, Codex from r3bl-org/r3bl-open-core. It costs 36 tokens per session (2,386 once invoked), scanned A, original, Apache-2.0.

A set of code-design principles for reducing mental effort, keeping responsibilities separate, using clear names, and avoiding unexplained values or strings. It applies to APIs, modules, data structures, refactoring, and maintainability reviews.

In plain words
What is it for?
Use it when designing or refactoring APIs, modules, or data structures, or when reviewing code for clarity and long-term maintainability.
Why use it?
It helps make code easier to understand, change, and review as a project grows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is r3bl-org/r3bl-open-core's own configuration. It tells Claude Code and Codex how to work on r3bl-open-core itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything r3bl-open-core configures →

Reuse

Borrowing it

Nothing to install: this file belongs to r3bl-org/r3bl-open-core. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/r3bl-org/r3bl-open-core/main/.agents/skills/design-philosophy/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/r3bl-org/r3bl-open-core

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 design-philosophy

README.md
[![agentmods](https://agentmods.dev/badge/skills/r3bl-org/r3bl-open-core/design-philosophy/github.svg)](https://agentmods.dev/skills/r3bl-org/r3bl-open-core/design-philosophy)
Your own site
<a href="https://agentmods.dev/skills/r3bl-org/r3bl-open-core/design-philosophy"><img src="https://agentmods.dev/badge/skills/r3bl-org/r3bl-open-core/design-philosophy/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 design-philosophy

Your own site · 80×15
<a href="https://agentmods.dev/skills/r3bl-org/r3bl-open-core/design-philosophy"><img src="https://agentmods.dev/badge/skills/r3bl-org/r3bl-open-core/design-philosophy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,386 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00036 $0.02386
Opus 5.5 $0.00014 $0.00954
Sonnet 5.5 $0.00007 $0.00477
Haiku 4.5 $0.00004 $0.00239

Measured 11d ago against content hash 8f8851943beb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-philosophy 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 11d 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.

.agents/skills/design-philosophy/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Design Philosophy Skill

Apply these principles when writing or reviewing code.

When to Use

  • Proactively when designing new APIs, modules, or data structures
  • When refactoring existing code
  • When reviewing code for maintainability

Core Principles

1. Minimize Cognitive Load

Code should be easy to understand without loading too much into working memory.

Guidelines:

  • Good Separation of Concerns (SoC) means fewer "things" to keep in mind
  • Each module/function should have a single, clear responsibility
  • Limit the number of concepts a reader must hold simultaneously
  • Clean Imports: Use use statements at the top of files rather than inline absolute paths (e.g. crate::Type) to reduce visual noise and cognitive clutter in function bodies.
  • No Magic Numbers/Strings: Extract domain-specific numbers and strings (like ANSI mode integers or escape sequences) into named constants (e.g., in tui/src/core/ansi/constants/). Do not use magic numbers directly in business logic or pattern matches, as this requires readers to memorize their meaning.
  • Single Source of Truth for Constants: Never duplicate raw literals across byte, string, and length constants. Follow the Constant Derivation Hierarchy:
    • Atomic Primitives (Single byte/char): u8 is the SSOT (u8 to char via ascii_byte_to_char to &str via ascii_byte_to_str).
    • Composed Sequences (Multi-byte strings): &str is the SSOT (&str via compile-time concatenation/macro to &[u8] via .as_bytes() to usize via .len()). See Constant Design Patterns in patterns.md.
  • Technical Precision: Use standard, precise terminology (e.g., Parameter vs. Argument) to ensure the reader's mental model matches the implementation exactly. See the Terminology Precision guide.

2. Progressive Disclosure

Reveal complexity only when needed.

Guidelines:

Read the full file on GitHub · 128 lines

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. 11d ago Changed · +7 lines 8f8851943beb
  2. 15d ago Changed · +8 lines 18ac566e8361
  3. 1mo ago Changed · +9 lines 6e88d8ffcbd6
  4. 2mo ago First seen · 104 lines · 36 tokens per session scan A 028862b085c9

Subscribe to this mod's changes

design-philosophy is a skill published in the GitHub repository r3bl-org/r3bl-open-core (486 stars, last pushed yesterday), licensed Apache-2.0. It adds 36 tokens to every session and 2,386 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-08-30.