Agent skill

Rob Pike

by tmdgusya in tmdgusya/engineering-discipline

Rob Pike's 5 Rules of Programming — a decision framework that prevents premature optimization and enforces measurement-driven development.

No licenceAuto-check passedDevelopment

Install Rob Pike

skills CLI
$ npx skills add tmdgusya/engineering-discipline --skill rob-pike -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tmdgusya/engineering-discipline rob-pike --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tmdgusya/engineering-discipline.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/rob-pike .claude/skills/rob-pike && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rob-pike
GitHub stars
125
Token cost
~1.2k tokens
SKILL.md length
632 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
None found

At a glance

Rob Pike's 5 Rules of Programming — a decision framework that prevents premature optimization and enforces measurement-driven development.

  • Works in 2 steps: Check for Existing Instrumentation → Ask the Measurement Questions
  • The user says optimize
  • SKILL.md covers The Rules and How to Apply
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Rob Pike is an agent skill from tmdgusya/engineering-discipline. Rob Pike's 5 Rules of Programming — a decision framework that prevents premature optimization and enforces measurement-driven development. Use when the user says "optimize", "slow", "performance", "bottleneck", "speed up", "make faster", "too slow", or any request to improve code speed/efficiency. Also use when you notice yourself about to suggest a performance optimization without measurement data. This is a thinking discipline, not a tooling workflow.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Performance optimization. The repository describes itself as: SKILL for engineering-discipline.

When your agent uses it

  • The user says optimize
  • Any request to improve code speed/efficiency
  • You notice yourself about to suggest a performance optimization without measurement data

Example prompts

  • “optimize”
  • “performance”
  • “bottleneck”
  • “/rob-pike”

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Check for Existing Instrumentation
  2. Ask the Measurement Questions

What it can do on your machine

Read from SKILL.md and the folder at commit 137dead. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rob Pike loads about 1.2k tokens when it runs. Until then it costs about 117 tokens; SKILL.md has 632 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~117
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 632 words (~1,170 tokens).

“Before asking "have you measured?", determine whether measurement is even possible right now.”

— opening of SKILL.md by tmdgusya
name
rob-pike

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/rob-pike of tmdgusya/engineering-discipline.

Open the folder on GitHubat commit 137dead

Compare with similar skills

Rob Pike next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rob Pike compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rob Pike this skilltmdgusya/engineering-discipline125—~1.2kAutomated safety check: PassNone
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT
LLM Torch Profiler Analysissgl-project/sglang37k2 repos~6.4kAutomated safety check: PassApache-2.0
Pycrazyguitar/pysheeet8.2k—~886Automated safety check: PassMIT
Cmux Debugging Guidemanaflow-ai/cmux28k1 repos~1.1kAutomated safety check: PassCustom licence
Analyzing .NET Performancedotnet/skills5.6k3 repos~3.1kAutomated safety check: PassMIT

Similar skills

  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • LLM Torch Profiler Analysis

    sgl-project/sglang

    Unified LLM torch-profiler triage skill for sglang, vllm, TensorRT-LLM, and TokenSpeed.

    37k GitHub starsUsed in 2 repos~6.4k tokens
    DevelopmentAuto-check passed
  • Py

    crazyguitar/pysheeet

    Comprehensive Python programming reference covering syntax, concurrency, networking, databases, ML/LLM development, and HPC.

    8.2k GitHub stars~886 tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Cmux Debugging Guide

    manaflow-ai/cmux

    Covers debug logging, the Debug menu, profiling rules and runtime pitfalls for working on the cmux macOS terminal app.

    28k GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Scans C# and .NET code for about 50 performance anti-patterns and reports prioritized findings with concrete fixes, at a scan depth you choose.

    5.6k GitHub starsUsed in 3 repos~3.1k tokens
    DevelopmentAuto-check passed
  • Analyzes V8, Chrome and Electron .heapsnapshot files with Node scripts to find memory leaks, detached DOM nodes and the retainer paths that keep objects alive.

    9.3k GitHub stars~875 tokensUpdated today
    DevelopmentAuto-check passed

More from tmdgusya/engineering-discipline

All 11 skills in this repo
  • Clarification

    tmdgusya/engineering-discipline

    A skill your agent uses when a user's request is vague, ambiguous, or underspecified.

    125 GitHub stars~3.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Clean AI Slop

    tmdgusya/engineering-discipline

    Corrective cleanup of AI-generated code — removes LLM-specific patterns while preserving behavior.

    125 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Karpathy

    tmdgusya/engineering-discipline

    Behavioral guardrails to prevent common LLM coding mistakes — enforces surgical changes, assumption verification, and scope discipline before and during implementation.

    125 GitHub stars~2k tokensUpdated 3 mo ago
    Auto-check passed
  • Plan Crafting

    tmdgusya/engineering-discipline

    A skill your agent uses when a task's scope is clear and multi-step implementation is needed, before touching code.

    125 GitHub stars~4k tokensUpdated 3 mo ago
    Auto-check passed
  • Review Work

    tmdgusya/engineering-discipline

    Use after run-plan completes to independently verify the implementation.

    125 GitHub stars~2.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Run Plan

    tmdgusya/engineering-discipline

    A skill your agent uses when you have a written implementation plan to execute.

    125 GitHub stars~4.6k tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Rob Pike

What does Rob Pike do?

Rob Pike's 5 Rules of Programming — a decision framework that prevents premature optimization and enforces measurement-driven development. Rob Pike is an agent skill from tmdgusya/engineering-discipline. Rob Pike's 5 Rules of Programming — a decision framework that prevents premature optimization and enforces measurement-driven development.

When should I use Rob Pike?

Rob Pike fits situations like: the user says optimize; any request to improve code speed/efficiency; you notice yourself about to suggest a performance optimization without measurement data.

How do I install Rob Pike in Claude Code?

Run `npx skills add tmdgusya/engineering-discipline --skill rob-pike -a claude-code`. Or copy the skill folder (skills/rob-pike in tmdgusya/engineering-discipline) into .claude/skills/rob-pike in your project. Claude Code loads it when a task matches its description.

How do I install Rob Pike in Codex?

Run `npx skills add tmdgusya/engineering-discipline --skill rob-pike -a codex`. Or copy the skill folder (skills/rob-pike in tmdgusya/engineering-discipline) into .agents/skills/rob-pike in your project. Codex loads it when a task matches its description.

Can I use Rob Pike in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tmdgusya/engineering-discipline --skill rob-pike -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rob-pike, .gemini/skills/rob-pike, .github/skills/rob-pike and .opencode/skills/rob-pike in your project.

What does Rob Pike need to run?

SKILL.md names no scripts, command-line tools or credentials: Rob Pike is instructions for the agent only.

Does Rob Pike access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Rob Pike safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rob Pike use?

No licence was found for Rob Pike or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Rob Pike use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rob Pike?

Skills that share tags, products or a category with Rob Pike: Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), LLM Torch Profiler Analysis (sgl-project/sglang, 37k stars), Py (crazyguitar/pysheeet, 8.2k stars) and Cmux Debugging Guide (manaflow-ai/cmux, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rob Pike?

tmdgusya (a GitHub user) maintains it in tmdgusya/engineering-discipline, which has 125 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on July 3, 2026.

Source: tmdgusya/engineering-discipline on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.