perf-flow

perf-flow is a skill for Claude Code, Codex from movebrickschi/harness-engineering-mcp. It costs 80 tokens per session (1,069 once invoked), scanned A, original, MIT.

A measured workflow for improving software performance: establish a benchmark, profile the system to find bottlenecks, change one variable, and benchmark again. A bottleneck is the part limiting speed, throughput, memory use, or another target measure.

In plain words
What is it for?
Use it for slow pages, APIs, background jobs, high memory or CPU use, large bundles, and web performance metrics. It covers baselines, profiling, single-change experiments, comparison reports, quality checks, and follow-up monitoring.
Why use it?
It replaces guesses about what is slow with measurements under known conditions. Comparing before and after results shows whether an optimization helped without breaking functionality.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for slow pages, APIs, background jobs, high memory or CPU use, large bundles, and web performance metrics. It covers baselines, profiling, single-change experiments, comparison reports, quality checks, and follow-up monitoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/movebrickschi/harness-engineering-mcp/perf-flow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add movebrickschi/harness-engineering-mcp --skill perf-flow
Clone the repo
git clone --depth 1 https://github.com/movebrickschi/harness-engineering-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for perf-flow

README.md
[![agentmods](https://agentmods.dev/badge/skills/movebrickschi/harness-engineering-mcp/perf-flow/github.svg)](https://agentmods.dev/skills/movebrickschi/harness-engineering-mcp/perf-flow)
Your own site
<a href="https://agentmods.dev/skills/movebrickschi/harness-engineering-mcp/perf-flow"><img src="https://agentmods.dev/badge/skills/movebrickschi/harness-engineering-mcp/perf-flow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for perf-flow

Your own site · 80×15
<a href="https://agentmods.dev/skills/movebrickschi/harness-engineering-mcp/perf-flow"><img src="https://agentmods.dev/badge/skills/movebrickschi/harness-engineering-mcp/perf-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,069 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.01069
Opus 5.5 $0.00032 $0.00428
Sonnet 5.5 $0.00016 $0.00214
Haiku 4.5 $0.00008 $0.00107

Measured 3mo ago against content hash 5a3a5aec375a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

perf-flow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

assets/skills/perf-flow/SKILL.md · 103 lines

What it actually says

perf-flow

适用场景

页面慢、接口慢、内存高、CPU 高、bundle 大等性能问题。

前置条件

确认 _playbook.md Part B.3 启动参数;额外 perf_target(待优化的页面/接口/作业)+ perf_metric(耗时?吞吐?内存?)+ perf_goal(目标值)。

流程步骤

阶段 0 · 上下文初始化

move_agent_to_root;建知识库目录(极简 META.md)。

阶段 1 · 基线 benchmark

  • 用 /benchmark(前端 web vitals)或 cursor-ide-browser 的 browser_profile_start/stop(性能录制)建立基线
  • 后端:用现有 APM、日志、ab/wrk/k6 跑基准
  • 输出 PERF_BASELINE.md:当前数值 + 测试条件 + 数据样本

阶段 2 · Profile 找瓶颈

  • 前端:Chrome Performance、browser_profile_*、/benchmark 的 web vitals 拆解
  • 后端:APM 火焰图、慢日志、DB explain
  • 输出 BOTTLENECK.md:top 3 热点 + 数据证据

阶段 3 · 优化方案 + 卡点

prompt: "瓶颈定位完成(BOTTLENECK.md)。优化方案:"
options:
  - "方案 A(首选)"
  - "方案 B(更激进)"
  - "需要更多 profile"

阶段 4 · 单一变量优化

  • 每次只改一处,commit perf(scope): 优化 [瓶颈点]
  • 改完立刻 micro-benchmark 对比,写入 PERF_DIFF_[step].md

阶段 5 · 全量 re-benchmark

  • 用阶段 1 同条件再跑一遍 /benchmark
  • 输出 PERF_FINAL.md:基线 vs 终态对比
  • 未达 perf_goal → 回阶段 2 再 profile

阶段 6 · 自查

/qa(确保功能未退化)+ /review。

阶段 7 · 上线

/ship → /land-and-deploy → /canary(重点监控同指标)。

阶段 8 · 复盘

append _lessons.md:瓶颈类型 + 优化手法 + 收益数据。

错误处理

  • 优化后功能 broken → 立即 revert,回阶段 2 找新瓶颈
  • benchmark 数据波动太大 → 增加样本数 / 固定测试环境
  • 达不到 goal 但已无明显瓶颈 → 与用户讨论调整 goal 或更换方案

产物清单

META.md、PERF_BASELINE.md、BOTTLENECK.md、若干 PERF_DIFF_*.md、PERF_FINAL.md、PR 链接。

支持的修饰符

无标准修饰符;可叠加 M4(如优化包含建索引/分表)→ 必出 MIGRATION_PLAN.md。

与其他 skill 的关系

  • 通常被 /dev-flow 路由到(也可被用户直接触发)
  • 强依赖 /benchmark 与 cursor-ide-browser profile 工具
  • 自查:/qa、/review
  • 上线:/ship、/land-and-deploy、/canary

附录

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 103 lines · 80 tokens per session scan A 5a3a5aec375a

Subscribe to this mod's changes

perf-flow is a skill published in the GitHub repository movebrickschi/harness-engineering-mcp (2 stars, last pushed 6mo ago), licensed MIT. It adds 80 tokens to every session and 1,069 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

perf-flow compared with skills from other repositories

perf-flow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
perf-flowmovebrickschi/harness-engineering-mcpSkill26mo agoMITA80Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7kyesterdayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill345todayApache-2.0A112Claude Code
performance-verificationvalkor-ai/loomSkill1.6k4d agoApache-2.0A45Claude Code, Codex
loop-engineeringhuytieu/COG-second-brainSkill1.6k2d agoMITA63Claude Code