Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

fox-optimize福克斯优化

Agent Skill

fox-optimize 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,479

周安装

61

GitHub Stars

4

下载量

483
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fox-optimize(福克斯优化)
来源仓库:https://github.com/autumnsgrove/groveengine
仓库路径:skills/fox-optimize
安装命令:
npx skills add https://github.com/autumnsgrove/groveengine --skill fox-optimize
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/autumnsgrove/groveengine --skill fox-optimize

简介

fox-optimize 用于查找、检索和筛选相关信息,支持性能调优与资源调度决策。

  • 适用于识别瓶颈、评估替代方案或优化计算密集型任务的执行效率。
  • 通过 npx skills add 从 groveengine 仓库安装并使用。
  • 注意其是否涉及生产环境配置修改或高权限系统操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Fox Optimize 🦊

The fox doesn't lumber through the forest. It moves with swift precision, finding the fastest paths between trees. When something slows the hunt, the fox notices immediately. It stalks the problem, isolates it, and strikes. The forest flows better after the fox passes through.

When to Activate

  • User asks to "optimize this" or "make it faster"
  • User says "it's slow" or "performance issue"
  • User calls /fox-optimize or mentions fox/performance
  • Page load times are unacceptable
  • Database queries are sluggish
  • Bundle size is too large
  • Memory leaks detected
  • Animations are janky
  • API response times are slow

Pair with: bloodhound-scout to find slow code paths


The Hunt

STALK → PINPOINT → STREAMLINE → CATCH → CELEBRATE
   ↓         ↲           ↲           ↓          ↓
Watch for  Find the    Optimize   Capture   Enjoy the
Slowness   Bottleneck  Hot Paths  Gains     Win

Phase 1: STALK

*The fox pads silently, watching for what moves too slowly...*

Establish baseline metrics before touching anything.

  • Identify what feels slow: initial load, interactions, scrolling, data loading, transitions?
  • Measure with the right tool — Lighthouse for page vitals, bundle visualizer for size, DevTools for CPU/memory
  • Set a target metric and baseline to compare against

Reference: Load references/measurement-tools.md for Lighthouse commands, bundle analysis setup, database query profiling, DevTools guide, and performance target values

Script: Run scripts/measure-bundle.sh to capture baseline bundle sizes across all apps. Run again after optimization to get automatic before/after comparison.

Reference: Load references/performance-toolkit.md for Grove-specific measurement commands — D1 query profiling across all 3 databases, KV caching patterns, Workers-specific parallelization, and the performance report template

Output: Baseline metrics and target goals defined


Phase 2: PINPOINT

*Ears perk. The fox isolates exactly where the prey hides...*

Find the specific bottleneck with evidence.

  • Server lifecycle: check hooks/middleware for sequential awaits, Promise.all batching, conditional work skipping, edge caching headers, DO cold starts
  • Frontend: check for Long Tasks, Layout thrashing, blocking JS, unoptimized images, large bundles
  • Database: run EXPLAIN QUERY PLAN, look for SCAN instead of SEARCH, identify N+1 patterns
  • API: check response times, parallelization opportunities, missing caching
  • Memory: take heap snapshots, compare before/after user actions, check for growing heap

The 80/20 rule: In SSR apps, check TTFB first — if the server is slow, no client-side optimization will help. Then check images, indexes, caching, and JS bundle size.

Reference: Load references/optimization-patterns.md for the diagnosis decision tree — it maps symptoms to likely causes

Output: Specific bottleneck identified with evidence


Phase 3: STREAMLINE

*The fox finds the fastest path through the thicket...*

Apply targeted optimizations — fix the bottleneck, not everything else.

  • Images: convert to WebP/AVIF, add lazy loading, add srcset for responsive sizes
  • JS: code split heavy components, tree-shake imports, lazy-load below-fold content
  • Database: add composite indexes, fix N+1 queries with joins, parallelize independent queries
  • Caching: KV cache for expensive reads, cache-control headers for static assets
  • Animations: use only transform/opacity (GPU-composited), avoid layout-triggering properties
  • Memory: ensure cleanup in onDestroy, remove event listeners

Reference: Load references/optimization-patterns.md for complete code examples for all optimization patterns: images, code splitting, N+1 fixes, parallel queries, KV caching, memoization, virtual scrolling, animation performance, and memory leak fixes

Output: Optimizations applied with minimal scope changes


Phase 4: CATCH

*The fox snaps its jaws — speed captured...*

MANDATORY: Verify the optimization didn't break anything:

pnpm install
gw ci --affected --fail-fast --diagnose

If verification fails: the fox moved too fast and broke something. Read the diagnostics, fix the regression, re-run verification. Speed without correctness is worthless.

Once CI passes, measure the improvement:

lighthouse https://yoursite.com
npm run build && npm run analyze

Document before/after for the report.

Output: Documented gains with verification


Phase 5: CELEBRATE

*The fox yips with joy, the hunt complete...*

Report the win and prevent regression.

  • Write the performance report: target, bottleneck found, optimizations applied, before/after metrics
  • Add performance budget to CI so the gains don't silently disappear
  • Enable Real User Monitoring (RUM) if not already active

Output: Report delivered, monitoring in place


Reference Routing Table

PhaseReferenceLoad When
STALKreferences/measurement-tools.mdAlways (must measure before optimizing)
STALKreferences/performance-toolkit.mdGrove-specific: D1 profiling, KV caching, bundle tracking
STALKscripts/measure-bundle.shRun for automated bundle size baseline and comparison
PINPOINTreferences/optimization-patterns.mdUse the decision tree to identify the cause
STREAMLINEreferences/optimization-patterns.mdApply the right fix pattern
STREAMLINEreferences/performance-toolkit.mdGrove-specific: Workers parallelization, cache headers
CELEBRATEreferences/performance-toolkit.mdUse the performance report template

Fox Rules

Speed

The fox moves fast. Don't spend weeks on micro-optimizations. Find the big wins first.

Precision

Target the actual bottleneck. Profile first, optimize second. Don't guess.

Balance

Fast but broken is worthless. Verify functionality after each optimization.

Communication

Use hunting metaphors:

  • "Stalking the slow paths..." (identifying issues)
  • "Pinpointing the prey..." (finding bottlenecks)
  • "Streamlining the route..." (optimizing)
  • "Catch secured..." (improvement verified)

Anti-Patterns

The fox does NOT:

  • Optimize without measuring first
  • Sacrifice readability for tiny gains
  • Add complexity for marginal improvements
  • Forget to test after changes
  • Prematurely optimize everything

Example Hunt

User: "The dashboard is slow to load"

Fox flow:

  1. 🦊 STALK — "Measure: FCP 3.2s, LCP 5.1s. Target: FCP < 1.8s"
  2. 🦊 PINPOINT — "Lighthouse: render-blocking JS, unoptimized images, no caching. Database: N+1 queries for widget data."
  3. 🦊 STREAMLINE — "Defer non-critical JS, convert images to WebP, add DB indexes, implement KV caching"
  4. 🦊 CATCH — "FCP: 3.2s → 1.4s. LCP: 5.1s → 2.2s. Tests pass."
  5. 🦊 CELEBRATE — "Performance budget added to CI, RUM monitoring enabled"

Quick Decision Guide

SymptomLikely CauseQuick Fix
High TTFB (>500ms)Sequential awaits in hooks/middlewareParallelize with Promise.all or promise hoisting
Slow for guests tooNo edge caching on SSR pagesAdd Cache-Control + CDN-Cache-Control headers
Slow only when logged inExtra queries for auth/featuresSkip unnecessary work for anonymous visitors
First request very slowDO/Worker cold startsAdd keepalive crons, KV fallback for config
Slow initial loadLarge JS bundleCode splitting, tree shaking
Images slowUnoptimized formatsWebP/AVIF, lazy loading
Janky scrollingLayout thrashingUse transform, avoid layout changes
API slowMissing DB indexesAdd indexes, implement caching
Memory growingLeaking listenersProper cleanup in onDestroy
Slow interactionsBlocking main threadMove work to web workers

*The swift fox leaves the slow forest behind.* 🦊

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.94%
按下载量换算159

Claude

30.45%
按下载量换算147

Cursor

17.18%
按下载量换算83

Gemini CLI

10.14%
按下载量换算49

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills