agentic-rob-pike

Enforce measurement-first decisions before optimizing software bottlenecks.

273|26|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/tmdgusya/roach-pi --skill agentic-rob-pike
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agentic-rob-pike
Source: https://github.com/tmdgusya/roach-pi/tree/main/extensions/agentic-harness/skills/agentic-rob-pike
Command: npx skills add https://github.com/tmdgusya/roach-pi --skill agentic-rob-pike

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rob Pike's 5 Rules of Programming provides a disciplined framework to avoid premature optimization by ensuring measurement and simple design guide decisions. It helps prevent wasted effort and promotes measurement-driven development.

Core Features & Use Cases

  • Measurement-first mindset: Encourage instrumentation and data before optimization.
  • Rule-based decision making: Clear guidelines to decide when to optimize, what data to collect, and how to select algorithms.
  • Practical workflows: Use in code reviews, performance discussions, and architectural planning to avoid over-optimizing early.

Quick Start

Analyze a current bottleneck by instrumenting the codebase and gather measurements before proposing any optimization.

Frequently Asked Questions about agentic-rob-pike

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is measurement-driven programming and when should I use it?

Premature optimization happens when engineers improve code speed before measuring actual bottlenecks. Avoid it by enforcing a measurement-first approach: instrument the codebase, gather data, and assess trade-offs before attempting any algorithm selection or performance tuning.

How do I decide when to optimize code and what data to collect?

Decide when to optimize by applying rule-based guidelines that require concrete measurement data first. Collect metrics from code instrumentation to assess performance trade-offs, ensuring optimization actions target verified bottlenecks rather than speculative inefficiencies.

How to prevent premature optimization during code reviews and architectural planning?

Prevent premature optimization during code reviews and architectural planning by enforcing a measurement-first mindset. Require engineers to instrument code and present performance data before approving any optimization decisions or algorithm changes.

Does this measurement-first approach require external profiling tools to work?

This measurement-first approach does not rely on external tooling beyond standard measurement practices. It provides clear instructions for activation and enforces instrumentation using standard practices, requiring no specific dependencies or external frameworks.

What are the limitations of a measure-first optimization workflow?

The limitation of a measure-first workflow is that it may delay immediate performance fixes until instrumentation and data collection are complete. Engineers must balance the discipline of gathering measurement data against urgent bottleneck resolution requirements.