本文へ移動
cccskills
無料GitHub で公開

ralph

Iterative measurement-driven improvement loop. Measure, profile, mutate, re-measure, commit. Works for performance, bundle size, complexity, test coverage — anything quantifiable. Use when the user wants to systematically improve a metric through repeated cycles of profiling and targeted changes.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Ralph

Iterative measurement-driven improvement loop. Each cycle: measure → profile → find biggest contributor → mutate → re-measure → commit only if improvement exceeds noise.

0. Gather inputs

Use AskUserQuestion to collect:

  1. What to improve — target metric and direction
  2. How to measure — command or method (research and propose one if user doesn't know)
  3. How many cycles — default 20
  4. Constraints — what must NOT change

1. Setup

  • Create a feature branch and draft PR early (load forge-pr skill for title/body). PR description includes a measurements table updated as cycles complete.
  • Baseline: measure at least 5 runs, report median. For time: distinguish cold (no cache) from hot (cached). Document methodology.
  • Create docs/<target>-ralph-report.md with baseline, methodology, optimization log table, and findings.
  • Seed TaskCreate list with N cycle tasks.

2. The loop

Each cycle:

  1. Profile — break down the metric into components. Measure each independently. Don't guess.
  2. Classify — categorize the biggest contributor (unnecessary dep, eager eval, redundant work, wrong abstraction, missing cache, structural overhead).
  3. Mutate — single, targeted change addressing the biggest contributor.
  4. Re-measure — same benchmark, same methodology. If improvement is within noise (<3% for time), don't commit — document in report only.
  5. Commit + push — only if improvement exceeds noise. Include metrics in commit message. Push report file with each commit.

3. Wrap-up

  • Final measurement with same methodology as baseline — this is the number for the PR.
  • Update PR description with final before/after table, summary of changes, key findings.
  • Complete report with optimization log, dead ends ("Investigated but no improvement"), key findings, and cost breakdown.
  • Run CI to verify nothing is broken.

Rules

  • Facts over opinions. Measure everything. Don't commit based on theory.
  • One change per cycle. Isolate variables.
  • Only commit improvements. Noise-level changes clutter history.
  • Preserve behaviour. All changes behaviour-preserving unless user explicitly allows otherwise.
  • Document dead ends. "X doesn't help" is valuable knowledge.
  • Stop at diminishing returns. 3 consecutive no-improvement cycles → tell user and stop.
  • Keep the report. The .md is a deliverable — useful for blog posts and future reference.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Review code for quality, simplicity, and common mistakes before declaring work complete.

日本語の概要は準備中です。原文の説明を表示しています。

srid/haskell-flake2402026年10月4日 更新

do

無料

Do a task end-to-end — implement, PR, CI loop, ship

日本語の概要は準備中です。原文の説明を表示しています。

srid/haskell-flake2402026年10月4日 更新

elegance

無料

Iteratively study and apply elegant coding patterns. Each iteration - understand the code, research what simple and elegant code looks like, apply learnings, verify with CI. Use as a standalone refactoring pass or when the user asks to make code more elegant, simple, or idiomatic.

日本語の概要は準備中です。原文の説明を表示しています。

srid/haskell-flake2402026年10月4日 更新

Audit code for correctness and rigor — logic errors, silent error swallowing, wishful thinking, and unjustified fallbacks. This is not a style review; it's a logic review. Use when you want a focused correctness audit separate from the full code-police pass.

日本語の概要は準備中です。原文の説明を表示しています。

srid/haskell-flake2402026年10月4日 更新

forge-pr

無料

Write engaging PR titles and descriptions for any forge (GitHub today; Bitbucket planned). Use when creating or updating PRs. Avoids boring bullet lists; uses narrative paragraphs with bold/italic for emphasis.

日本語の概要は準備中です。原文の説明を表示しています。

srid/haskell-flake2402026年10月4日 更新

hickey

無料

Evaluate code (especially LLM-generated) for structural simplicity using Rich Hickey's "Simple Made Easy" framework. Use this skill whenever reviewing a PR, diff, or code snippet for accidental complexity — particularly when the code was generated by an AI coding assistant and line-by-line review isn't feasible. Also use when the user asks about complecting, simplicity vs. easiness, structural coupling, or concept deduplication. Trigger on phrases like "is this simple", "does this complect", "review for complexity", "structural analysis", or any reference to Hickey, Simple Made Easy, or grey-box review.

日本語の概要は準備中です。原文の説明を表示しています。

srid/haskell-flake2402026年10月4日 更新

srid のスキルをすべて見る

このスキルの問題を報告する