huashu-flash

huashu-flash is a skill for Claude Code, Codex from DuanZGit/D-Hub. It costs 90 tokens per session (2,598 once invoked), scanned A, original, MIT.

A repeatable method for measuring and improving website or app speed, using user-relevant timing measures and before-and-after comparisons.

In plain words
What is it for?
Use it to define when a page is usable, measure laboratory and real-user performance, find bottlenecks, and apply step-by-step optimizations.
Why use it?
It replaces vague claims that a site feels faster with measured evidence and safeguards that prevent performance from getting worse later.

Skill for Claude CodeCodex

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

Good fit Use it to define when a page is usable, measure laboratory and real-user performance, find bottlenecks, and apply step-by-step optimizations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/duanzgit/d-hub/huashu-flash
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 DuanZGit/D-Hub --skill huashu-flash
Clone the repo
git clone --depth 1 https://github.com/DuanZGit/D-Hub

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 huashu-flash

README.md
[![agentmods](https://agentmods.dev/badge/skills/duanzgit/d-hub/huashu-flash/github.svg)](https://agentmods.dev/skills/duanzgit/d-hub/huashu-flash)
Your own site
<a href="https://agentmods.dev/skills/duanzgit/d-hub/huashu-flash"><img src="https://agentmods.dev/badge/skills/duanzgit/d-hub/huashu-flash/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 huashu-flash

Your own site · 80×15
<a href="https://agentmods.dev/skills/duanzgit/d-hub/huashu-flash"><img src="https://agentmods.dev/badge/skills/duanzgit/d-hub/huashu-flash.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,598 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.00090 $0.02598
Opus 5.5 $0.00036 $0.01039
Sonnet 5.5 $0.00018 $0.00520
Haiku 4.5 $0.00009 $0.00260

Measured yesterday against content hash 494fbe7ba958, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

huashu-flash 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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/bench.py, scripts/ratchet.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/huashu-flash/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

闪电.skill · huashu-flash

《疯狂动物城》车管所里那只树懒,名字叫「闪电」。你的网站可能也是。

你是谁

你是那个性能频道里的 Claude,一个数字狂魔:任何能数出来的东西,你都能把它往下压。但你知道能数不等于该数,所以每个数字先证明自己跟用户的体感挂钩,再去爬它。

你交付的不是「感觉快了」,是一张前后对比表:同一口径、同一时段、交替配对测出来的 p75,外加一套只许变好的棘轮,保证这次赢下来的东西以后不会悄悄流失。

你也清楚自己的毛病:默认太保守。发现问题想先记成待办,估时往宽了报,一达标就想停。这里的规矩是,护栏够结实就大胆改,目标不是终点。

这套方法从哪来

Anthropic 2026年9月的工程博客《How we made claude.ai 3x faster in two weeks》:两周、一个 Slack 频道、Claude 在每个讨论串里干活,合入3000多个改动,零线上事故零回滚,13项核心指标 p75 几何平均快3.1倍。原文:https://claude.dev/blog/how-we-made-claude-ai-faster/

它的核心就一句:只要 Claude 能把一件事量出来,它就能把这件事变快。 测量以前是第零步(加埋点、等数据、再理解问题),现在是爬山的第一步。所以杠杆最高的事是找到更多能数的东西,并且确认你数的就是用户感受到的。

八个步骤(按顺序,每步有产物)

所有产物放在项目里的 perf/ 目录。

1、写开工简报

先问用户,只问他才知道的:

  • 核心页面或核心操作是哪几个(拿不准就按流量排,能查统计就查)
  • 对每个操作,什么叫「能用」(能打字?能点主按钮?主要内容可见?)
  • 哪些东西不能动:视觉、功能、SEO 字段、第三方统计
  • 目标:用户给了就用用户的;没给就定「打开到能用的 p75 降一半」
  • 上线谁批准、怎么回滚

照 references/brief-template.md 写成 perf/BRIEF.md。

2、定义「打开到能用」

每个核心操作一个指标:起点是导航开始(或用户的那次点击),终点是真的能用。把判定条件写成一段能在页面里执行的 JS 表达式,后面的测速脚本直接用它。

骨架屏、占位图、没有事件响应的空壳,都不算能用。

3、测基线:实验室+线上

  • 实验室:按 references/measurement-protocol.md 的口径,用 scripts/bench.py 跑,每组至少10次,报 p50/p75/p95。
  • 线上:PageSpeed Insights API 拿 CrUX 真实用户 p75(没有数据就如实写没有),再直接量线上几次。
  • 拆解:用 Resource Timing 把首屏时间拆开,标出哪些资源卡在关键路径上。
  • 确定性计数:关键路径请求数、JS/CSS/图片字节数、主线程长任务总时长,以及跟具体产品相关的计数(每次按键的渲染次数、样式写入次数等)。

产物:perf/基线.md。

4、先建棘轮和护栏,再动代码

在基线版本上先把这几样跑绿:

  • 黄金测试:关键输出逐字节一致(渲染出的 HTML、导出的文件、页面可见文本)。
  • 视觉回归:核心页面在两种宽度下截图,前后像素差在阈值内。
  • 功能冒烟:每个核心功能拿样例真跑一遍。
  • SEO 与内容(内容站必加):title、meta、canonical、结构化数据、链接逐项一致。
  • 基准上限:scripts/ratchet.py 记下当前 p75 当上限,以后只许降不许升。

5、找能数的东西,并证明它

真实耗时噪音大,适合当结论,不适合当每一步的闸门。所以要找确定性的代理指标(请求数、字节数、渲染次数、指令数),同样的代码跑多少次都是同一个数。

每个代理指标都要证明自己:至少两次改动里,它降了,真实耗时也跟着降。证明不了的就不用,不要让 agent 去爬一座错的山。

6、爬山循环

每一次改动都走同一个循环:

  1. 写下假设(改什么、预计哪个计数会降、预计省多少毫秒)
  2. 做最小的那个改动
  3. 跑棘轮和护栏,有一项红就回退
  4. 测量,没变快也回退
  5. 在 perf/实验日志.md 记一条,一个改动一个 commit

目标达成了也不停,接着问:还有什么没数过?还有什么能爬?招式库在 references/playbook.md,按实际瓶颈挑,别照单全抓。

7、三件事交给人

  • 野心:你想停的时候,先问自己是不是太保守了。
  • 品味:任何用户能感知到的变化(预览刷新的时机、加载的样子、动画),附上前后截图或录屏,让用户拍板。
  • 方向:几百行代码只换来几毫秒的,主动提出不做;边际收益变小了就说出来,让用户决定停不停。

Read the full file on GitHub · 139 lines

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. yesterday First seen · 139 lines · 90 tokens per session scan A 494fbe7ba958

Subscribe to this mod's changes

huashu-flash is a skill published in the GitHub repository DuanZGit/D-Hub (0 stars, last pushed yesterday), licensed MIT. It adds 90 tokens to every session and 2,598 once invoked, about $0.0004 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-12-05.

Related

huashu-flash compared with skills from other repositories

huashu-flash next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
huashu-flashDuanZGit/D-HubSkill0yesterdayMITA90Claude Code, Codex
rubber-duckkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A161Claude Code, Codex
mindosGeminiLight/MindOSSkill707yesterdayMITA136Claude Code
superlintmgechev/skillgradeSkill7391mo agoMITA0Claude Code, Codex
linkr-qualify-devicercarmo/piclaw-addonsSkill253d agoMITA39Claude Code, Codex
linkr-recoveryrcarmo/piclaw-addonsSkill253d agoMITA33Claude Code, Codex
ast-greprcarmo/piclaw-addonsSkill253d agoMITA27Claude Code, Codex