Home / rajnandan1 / ken · .cursor/rules/ken.mdc · GitHub

ken rulesA

ken is agent-read markdown (rules) from rajnandan1/ken: Ken, Thompson-mode systems discipline. Think first, build bottom-up, brute force until proven, rewrite over patch..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Ken, Thompson-mode systems discipline

You are a systems programmer in the Ken Thompson tradition. You think bottom-up, trust only code you can vouch for, and would rather rewrite a thing than argue with it. No grand methodology: try it, and if it doesn't work, throw it out and do it again.

Before writing any code, run the loop in order:

1. Think first: build the mental model before touching the code. If you can't say what's wrong before opening the file, you don't understand the system yet.
2. Steal, don't invent: before writing a new function, constant table, or format, search this codebase for it; the concept usually already lives a few files over — import it and name the file you took it from. The stdlib or a classic beats a new invention too. Pare grandiose designs down until the useful core is trivial.
3. Build bottom-up from primitives you can explain line by line. Top-down scaffolds and speculative frameworks are a morass.
4. When in doubt, use brute force: the plain loop, the linear scan, the flat array, until measurement proves it wrong.
5. Try it: get the real thing running before debating it. Working code settles arguments prose can't.
…

Read the whole file at its exact version.

How to install

Latest version
mdr add rajnandan1/ken/.cursor/rules/ken.mdc@git:20260828.2d98a1e
Exact content
mdr add rajnandan1/ken/.cursor/rules/ken.mdc@sha256:8ecd5251137b1cd9

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_h7uuthdbi6th4ucx.svg)](https://markdownregistry.com/a/art_h7uuthdbi6th4ucx)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260828.2d98a1e latest2026-08-28 2d98a1e 3,230 BA view · diff
git:20260828.4ba16252026-08-28 4ba1625 3,073 BA view · diff
git:20260826.e88374f2026-08-26 e88374f 2,952 BA view · diff
git:20260826.39ab0d62026-08-26 39ab0d6 2,943 BA view

Audit of the latest version

A  14 of 14 checks passed. Deterministic, no model, same answer every run.
  • pass: Size between 200 bytes and 200 KB (3230 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

rajnandan1/ken · 10 stars · license NOASSERTION · pushed 2026-09-24 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_h7uuthdbi6th4ucx
GET https://markdownregistry.com/api/v1/resolve?ref=rajnandan1/ken/.cursor/rules/ken.mdc
GET https://markdownregistry.com/api/v1/blob/8ecd5251137b1cd9ca6594d1f4ee15b5b0e91950475a873a909a8b264db5ddc2

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from rajnandan1/ken

ken-audit skill
rajnandan1/ken · .openclaw/skills/ken-audit/SKILL.md · Audit the whole repo for Thompson-mode violations. A ranked list of what to rewrite, delete, or take back into the…
git:20260826.e88374f · audit A · 10 stars
ken-debt skill
rajnandan1/ken · .openclaw/skills/ken-debt/SKILL.md · Harvest every ken: ceiling comment into one ledger, so brute-force deferrals get tracked instead of forgotten. One-shot…
git:20260826.e88374f · audit A · 10 stars
ken-gain skill
rajnandan1/ken · .openclaw/skills/ken-gain/SKILL.md · Show ken measured impact as a scoreboard from its own benchmark results. Honest empty state when none exist. One-shot…
git:20260826.e88374f · audit A · 10 stars
ken-help skill
rajnandan1/ken · .openclaw/skills/ken-help/SKILL.md · Quick reference for ken modes, skills, and commands. One-shot display.
git:20260826.e88374f · audit A · 10 stars
ken-review skill
rajnandan1/ken · .openclaw/skills/ken-review/SKILL.md · Review a diff for method violations: rot to rewrite, translate-only layers, unvouched deps, fancy over brute force. One…
git:20260826.e88374f · audit A · 10 stars
ken skill
rajnandan1/ken · .openclaw/skills/ken/SKILL.md · Thompson-mode discipline for any coding task: think first, build bottom-up, brute force until measured, rewrite over…
git:20260828.4ba1625 · audit A · 10 stars
AGENTS.md agents
rajnandan1/ken · AGENTS.md
git:20260828.1945ae5 · audit A · 10 stars
ken-audit skill
rajnandan1/ken · skills/ken-audit/SKILL.md · Whole-repo audit for Thompson-mode violations. Like ken-review, but scans the entire codebase instead of a diff: a…
git:20260826.e88374f · audit A · 10 stars
ken-debt skill
rajnandan1/ken · skills/ken-debt/SKILL.md · Harvest every `ken:` comment in the codebase into a ceilings ledger, so the deliberate brute-force ceilings ken leaves…
git:20260826.e88374f · audit A · 10 stars
ken-gain skill
rajnandan1/ken · skills/ken-gain/SKILL.md · Show ken's measured impact as a compact scoreboard, from ken's own benchmark results in benchmarks/results/. One-shot…
git:20260826.e88374f · audit A · 10 stars
ken-help skill
rajnandan1/ken · skills/ken-help/SKILL.md · Quick-reference card for all ken modes, skills, and commands. One-shot display, not a persistent mode. Trigger…
git:20260826.e88374f · audit A · 10 stars
ken-review skill
rajnandan1/ken · skills/ken-review/SKILL.md · Code review for Thompson-mode violations. Finds what to rewrite or remove: units patched past rot, layers that only…
git:20260826.e88374f · audit A · 10 stars

Every file in rajnandan1/ken

Other files named ken

ken skill
rajnandan1/ken · skills/ken/SKILL.md · Thompson-mode systems discipline: think first, steal proven ideas, build bottom-up from primitives you can explain line…
git:20260828.1945ae5 · audit A · 10 stars
ken skill
rajnandan1/ken · .openclaw/skills/ken/SKILL.md · Thompson-mode discipline for any coding task: think first, build bottom-up, brute force until measured, rewrite over…
git:20260828.4ba1625 · audit A · 10 stars

Browse by kind, by grade A, or by owner.