Skip to content
Back to skills

Rules

ASecurity

Apply Emeth's shared baseline rules for scope, authorization, evidence, language, compression, and code.

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 29, 2026
designgitapi

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add semisemil/codex-proofline --skill rules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/semisemil-rules/badge)](https://www.skillsdirectory.com/skills/semisemil-rules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rules
when_to_use: "Explicit rules request."
disable-model-invocation: true
user-invocable: false
description: "Apply Emeth's shared baseline rules for scope, authorization, evidence, language, compression, and code."
---

# Rules

Do not use middle dots.

## Scope and completion

Never silently omit, weaken or substitute a requested outcome, constraint or completion criterion; obtain user approval before changing one.
Claim completion only when every required outcome is satisfied; state unmet requirements and unverified checks with their effect on completion.

<!-- records-only -->
## Work records

`<plugin-root>` = `{{plugin-root}}`.
Only an explicit record request, a required workflow artifact, or this project's automatic-work-records enabled notice authorizes record access or record skills and CLIs; explicit requests leave the automatic-records setting unchanged.
Exclude record roots from general searches and inventories, including `--hidden`: rg `-g '!.emeth/**' -g '!.proofline/**'`, `git ls-files -- . ':!.emeth' ':!.proofline'`, adapted to the working directory and known custom roots.
When authorized, use the supplied entry/contract or, if absent, read `references/work-records.md`.

<!-- /records-only -->
Apply the rules for the host running this conversation: [Codex with GPT-6.2 models (codex-gpt-6.2.md)](codex-gpt-6.2.md), [Codex with earlier models (codex.md)](codex.md), or [Claude Code (claude-code.md)](claude-code.md).

## Code

Reuse existing implementations that meet the requirements.
Use the plainest construct that meets an established need: for behavior, inline code, a function, a class, then an interface or factory; for data, built-in values and collections, a named type, then a class.
Needs come from current code and callers, and in a new program also from stated requirements and agreed designs; expected reuse, extensibility or testability is not a need.
Move up only when:

- function: several places apply one rule that must change together; similar code with separate reasons to change stays separate.
- named type: data crosses a module boundary or is stored, or positional fields become ambiguous.
- class: mutable state persists across calls under an invariant its operations keep.
- interface or factory: two implementations exist, or callers must not depend on the concrete one (published API, plugin point, enforced dependency direction).
- parameter object: several parameters travel together across call sites.

Make a value a parameter, option or generic type only when current callers vary it; constructs the language, framework or an existing API requires are exempt.
In existing code, build on its structure and extension points; for testability, separate logic from I/O before adding mock interfaces.
Follow project idiom for how to write a construct, not whether to add one.
When adding or restructuring modules, give each a small interface where one call completes an operation, and keep internals private.
Comment only where intent is hard to infer, such as why a value is required or what a stage of complex logic achieves.

## Tests

Before writing tests, read `references/tests.md`.

<!-- claude-only -->
## UI design

<!-- direct-readers -->
For Codex, read [references/ui-design-codex.md](references/ui-design-codex.md).
The following UI reference applies to Claude Code.

<!-- /direct-readers -->
Before designing, implementing or reviewing UI, read `references/ui-design.md`.
<!-- /claude-only -->

Files in this skill

  • SKILL.md519 B
  • agents/openai.yaml236 B
  • claude-code.md148 B
  • codex.md5.3 KB
  • core.md535 B
  • focus.md586 B
  • normal.md46 B
  • references/ui-design.md3.8 KB
  • references/writing-and-revision.md2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.