Perf 标志

Perf

组织
Rune-kit
perf

Performance regression gate. Detects N+1 queries, sync-in-async, missing indexes, memory leaks, and bundle bloat before they reach production. Ranks findings by Cost Impact Hierarchy (architecture > data transfer > compute > DB > caching) so fix priority maps to actual unit-cost reduction.

概览

发布者Rune-kit
代码仓库rune
技能名称perf
星标数
88
复刻数
26
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Rune-kit 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Perf AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Rune-kit/rune/tree/master/skills/perf
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rune-kit/rune.git /tmp/rune
mkdir -p .claude/skills
cp -r /tmp/rune/skills/perf .claude/skills/perf
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Perf,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Perf。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Perf 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

perf

Purpose

Performance regression gate. Analyzes code changes for patterns that cause measurable slowdowns — N+1 queries, sync operations in async handlers, unbounded DB queries, missing indexes, memory leaks, and bundle bloat. Not a profiler — a gate. Finds performance bugs with measurable/estimated impact before production, so developers fix them at the cheapest point in the cycle.

Triggers

  • /rune perf — manual invocation before commit
  • Called by cook (L1): Phase 5 quality gate
  • Called by review (L2): performance patterns detected in diff
  • Called by deploy (L2): pre-deploy regression check
  • Called by audit (L2): performance health dimension

Calls (outbound)

  • scout (L2): find hotpath files and identify framework in use
  • browser-pilot (L3): run Lighthouse / Core Web Vitals for frontend projects
  • verification (L3): run benchmark scripts if configured (e.g. npm run bench)
  • design (L2): when Lighthouse Accessibility BLOCK — design system may lack a11y foundation

Called By (inbound)

  • cook (L1): Phase 5 quality gate before PR
  • audit (L2): performance dimension delegation
  • review (L2): performance patterns detected in diff
  • deploy (L2): pre-deploy perf regression check
  • adversary (L2): scalability stress test when bottleneck patterns detected in plan

References

  • references/cost-reference.md — Cost priority hierarchy, quick wins checklist, instance right-sizing, data transfer traps, serverless optimization, observability cost control, managed vs self-hosted matrix, unit economics tracking. Load when cost analysis or FinOps context detected.
  • references/scalability-reference.md — Bottleneck identification flow, performance thresholds, API patterns (cursor pagination, rate limiting, circuit breaker, graceful shutdown), caching strategies, queue-based load leveling, concurrency patterns, K8s HPA, CDN headers, load testing. Load when scaling or infrastructure optimization context detected.
  • ../deploy/references/observability.md — Instrumentation discipline (RED/USE metrics, percentiles-not-averages, cardinality bounds, structured logs, correlation IDs). Load when establishing the measurement basis for an optimization — you cannot optimize what you do not measure.

Measure before optimizing. A perf finding without a metric behind it is a guess. Before recommending a fix, confirm the hotpath actually emits the signal that proves it is slow: RED latency as a histogram (read p95/p99 — averages hide the slow tail), bounded label cardinality, and a correlation ID to tie a slow trace to its logs. If the instrumentation does not exist yet, that absence is itself a finding (UNMEASURED_HOTPATH). See ../deploy/references/observability.md for the instrumentation contract.

Executable Steps

Step 1 — Scope

Determine what to analyze:

  • If called with a file list or diff → analyze those files only
  • If called standalone → invoke scout to identify top 10 hotpath files (entry points, routes, DB access layers, render-heavy components)
  • Detect project type: frontend (React/Vue/Svelte) | backend (Node/Python/Go) | fullstack | CLI

Step 2 — DB Query Patterns

Scan all in-scope files for:

N+1 pattern — loop containing ORM call:

# BAD: N+1
for user in users:
    orders = Order.objects.filter(user=user)  # N queries

# GOOD: prefetch
users = User.objects.prefetch_related('orders').all()

Finding: N+1 DETECTED — [file:line] — loop over [collection] with [ORM call] inside — use prefetch/JOIN

Unbounded query — no LIMIT/pagination:

# BAD
db.query("SELECT * FROM events")

# GOOD
db.query("SELECT * FROM events LIMIT 100 OFFSET ?", [offset])

Finding: UNBOUNDED_QUERY — [file:line] — missing LIMIT on [table] — add pagination

SELECT * — fetching all columns when only some are needed: Finding: SELECT_STAR — [file:line] — select only needed columns

Step 3 — Async/Sync Violations

Scan for synchronous operations in async contexts:

Blocking I/O in async handler:

javascript
// BAD: blocks event loop
async function handler(req) {
  const data = fs.readFileSync('./config.json')
}

// GOOD
async function handler(req) {
  const data = await fs.promises.readFile('./config.json')
}

Finding: SYNC_IN_ASYNC — [file:line] — [readFileSync|execSync|etc] in async function — blocks event loop

Missing await:

javascript
// BAD: fire-and-forget
async function save() {
  db.insert(record)  // no await
}

Finding: MISSING_AWAIT — [file:line] — unresolved Promise may cause race condition

Step 4 — Memory Leak Patterns

Scan for:

Event listener without cleanup:

javascript
// BAD: leak in React
useEffect(() => {
  window.addEventListener('resize', handler)
  // missing return cleanup
})

// GOOD
useEffect(() => {
  window.addEventListener('resize', handler)
  return () => window.removeEventListener('resize', handler)
}, [])

Finding: MEMORY_LEAK — [file:line] — addEventListener without cleanup in useEffect

Growing collection without eviction:

python
# BAD: unbounded cache
cache = {}
def get(key):
    if key not in cache:
        cache[key] = expensive_compute(key)
    return cache[key]

Finding: UNBOUNDED_CACHE — [file:line] — dict grows indefinitely — add LRU eviction or TTL

Closure-captured arrays:

javascript
// BAD: closure retains entire `items` even after only `id` is needed
function makeHandler(items) {
  return (e) => items.find(x => x.id === e.id);  // items array retained
}
// GOOD: extract minimum data
function makeHandler(items) {
  const ids = new Set(items.map(x => x.id));
  return (e) => ids.has(e.id);
}

Finding: CLOSURE_RETAIN — [file:line] — closure captures full collection — extract needed fields only

Timer / interval without clear:

  • setInterval / setTimeout callback referencing component state without cleanup on unmount
  • Finding: LEAK_TIMER — [file:line] — interval not cleared — add clearInterval in cleanup

Cost framing — memory leak = cost driver:

Unbounded caches + forgotten listeners + closure-captured arrays produce a chain reaction in production: memory grows → process exceeds container limit → orchestrator kills + cold-starts → cold-start latency spike → autoscaler provisions more replicas → bill climbs 20-40% versus a leak-free baseline. The leak finding is also a COST finding. When tagging severity, escalate any leak in a long-running process (worker, daemon, queue consumer) to BLOCK even if heap profile is currently under threshold — the slope, not the absolute, determines OOM timing.

Cross-link to debug when a leak surfaces during diagnosis: debug finds the cause, perf quantifies the cost driver and recommends scope (LRU vs WeakRef vs explicit lifecycle).

Step 5 — Bundle Analysis (frontend only)

If project type is frontend:

  • Check for large direct imports that block tree-shaking:
    javascript
    // BAD: imports entire lodash
    import _ from 'lodash'
    // GOOD: named import
    import { debounce } from 'lodash'
    Finding: BUNDLE_BLOAT — [file:line] — default import of [library] prevents tree-shaking
  • Check for missing React.memo / useMemo on expensive renders
  • Check for component definitions inside render (recreated every render)

If browser-pilot is available and project has a URL: invoke it for Lighthouse score.

Lighthouse Score Gates (apply to any project with a public URL):

Performance:    ≥ 90 → PASS  |  70–89 → WARN  |  < 70 → BLOCK
Accessibility:  ≥ 95 → PASS  |  80–94 → WARN  |  < 80 → BLOCK
Best Practices: ≥ 90 → PASS  |  < 90  → WARN
SEO:            ≥ 80 → PASS  |  < 80  → WARN  (public-facing pages only)

Core Web Vitals thresholds:

LCP (Largest Contentful Paint):
  ≤ 2.5s → PASS  |  2.5–4s → WARN  |  > 4s → BLOCK

INP (Interaction to Next Paint, replaces FID):
  ≤ 200ms → PASS  |  200–500ms → WARN  |  > 500ms → BLOCK

CLS (Cumulative Layout Shift):
  ≤ 0.1 → PASS  |  0.1–0.25 → WARN  |  > 0.25 → BLOCK

If no URL available (dev-only environment): log INFO: no URL for Lighthouse — run manually before deploy If Lighthouse MCP not installed: log INFO: Lighthouse MCP not available — run lighthouse [url] --output json manually

Step 5.5 — Motion / Animation Performance (frontend only)

Apply only when the diff touches motion. Strong signals: @keyframes, motion., animate={, useSpring, will-change, transition: / transition-. Weak signals: bare transition / animation / transform — these also match non-motion code and prose (state-machine "transition", AnimationController, static layout transforms), so treat them as a trigger only when they co-occur with a strong signal (mirrors review's Motion Craft Checks). These are frame-budget regressions — a dropped frame is a 16.7ms miss at 60fps. Findings are WARN by default (jank degrades feel, rarely blocks a merge); escalate to BLOCK only when motion runs on a hot, always-on path (scroll handler, drag loop, list with many animated rows). Rank within the Cost Impact Hierarchy under compute (main-thread work) — note this is client-side compute: the cost is UX/conversion degradation and engineering-hour ROI, not a cloud-billing multiplier like Tier 3's infra examples. For remediation values and the full rationale, point to skills/design/MOTION-CRAFT.md §9.

  • Non-GPU property animation — animating width/height/margin/padding/top/left (or transition: all) triggers layout + paint every frame. Finding: MOTION_LAYOUT_THRASH — [file:line] — animating [prop] forces layout/paint per frame — use transform/opacity
  • Framer Motion shorthands under load — x/y/scale props run on the main thread via rAF and drop frames while the page is busy. Finding: MOTION_NOT_HW_ACCEL — [file:line] — FM x/y/scale shorthand — use full transform string for GPU compositing
  • CSS-variable-driven child transforms — updating a variable on a parent to drive children recalculates styles for every child (recalc storm). Finding: MOTION_RECALC_STORM — [file:line] — parent CSS var drives child transform — set transform on the element directly
  • will-change misuse — missing on imminent, frequently-triggered motion, or left on permanently (permanent layer promotion wastes GPU memory). Finding: MOTION_WILL_CHANGE — [file:line] — [missing on hot path | left on permanently]
  • Keyframes on rapidly-triggered / interruptible motion — restart-from-zero causes visible jank under rapid retriggering; CSS transitions or springs retarget smoothly. Finding: MOTION_NON_INTERRUPTIBLE — [file:line] — keyframes on rapidly-triggered element

Step 6 — Framework-Specific Checks

React:

  • useEffect without dependency array → runs every render
  • Expensive computation directly in render (not wrapped in useMemo)
  • Component created inside another component body

Node.js / Express:

  • require() calls inside route handlers (should be top-level)
  • Missing connection pool config (default pool size = 1 on some ORMs)
  • Synchronous crypto operations (use crypto.subtle async API)

Python / Django:

  • Missing select_related / prefetch_related on ForeignKey traversal
  • len(queryset) instead of queryset.count() (loads all rows)
  • Celery tasks without bind=True retried without backoff

SQL:

  • JOIN without index on join column
  • WHERE on non-indexed column in large table
  • Cartesian product (missing JOIN condition)

Step 7 — Benchmark Execution

If project has benchmark scripts (detected via package.json scripts, Makefile, or pytest-benchmark):

  • Invoke verification to run them
  • Compare output to baseline if .perf-baseline.json exists

If no benchmarks configured: log INFO: no benchmark scripts found — skipping

Step 8 — Report

Emit structured report:

## Perf Report: [scope]

### BLOCK (must fix before merge)
- [FINDING_TYPE] [file:line] — [description] — estimated impact: [Xms|X% bundle|X queries]

### WARN (should fix)
- [FINDING_TYPE] [file:line] — [description] — estimated impact: [...]

### PASS
- DB query patterns: clean
- Async/sync violations: none
- [etc.]

### Lighthouse (if ran)
- Performance: [score] [PASS|WARN|BLOCK]
- Accessibility: [score] [PASS|WARN|BLOCK]
- Best Practices: [score] [PASS|WARN]
- SEO: [score] [PASS|WARN]
- LCP: [Xs] [PASS|WARN|BLOCK] | INP: [Xms] [PASS|WARN|BLOCK] | CLS: [X] [PASS|WARN|BLOCK]

### Verdict: PASS | WARN | BLOCK

Step 8.5 — Token Budget Tracking (AI-Powered Apps)

For projects that call AI APIs (detected via imports of anthropic, openai, @anthropic-ai/sdk, @ai-sdk/core, langchain, llamaindex, or fastmcp), audit token usage patterns per operation type.

Scan for:

PatternFindingImpact
AI call inside a loop without batchingTOKEN_LOOP — [file:line] — AI call in loop over [collection] — batch or parallelizeCost scales linearly with collection size
No token usage trackingNO_TOKEN_TRACKING — [file:line] — AI response usage not captured — add cost loggingInvisible spend, no budget control
Expensive model for simple tasksMODEL_MISMATCH — [file:line] — using [opus/gpt-4] for [classification/extraction] — use [haiku/gpt-4.1-mini]10-30x cost difference for same result
Missing max_tokens on open-ended promptsUNBOUNDED_TOKENS — [file:line] — no max_tokens on [call] — add limit to prevent runaway costSingle call can consume entire budget
Duplicate AI calls for same inputDUPLICATE_AI_CALL — [file:line] — same prompt sent to [provider] without caching — add response cacheWasted tokens on redundant calls

Per-Operation Cost Awareness:

When token tracking IS present, analyze the operation type breakdown:

Operation Type          Avg Tokens    Frequency    Monthly Est.
─────────────────────────────────────────────────────────────
Chat (primary)          2,500 in/800 out    high         $X.XX
Background notes        500 in/200 out      per-chat     $X.XX
Summarization           1,500 in/300 out    periodic     $X.XX
Classification          200 in/50 out       high         $X.XX
─────────────────────────────────────────────────────────────
Total estimated monthly                                  $X.XX

Report this under a ### AI Token Budget subsection in the Perf Report. Only include when AI API usage detected — skip entirely for non-AI projects.

Key insight: The most impactful optimization is often model selection per operation — using a cheaper model for background tasks (summarization, classification, metadata extraction) while reserving expensive models for primary user-facing interactions. A 10x cost reduction on 60% of calls = 6x overall savings.

Step 8.6 — Observability Cost Control

Logging, tracing, and metrics infrastructure is often the second-largest cloud bill line after compute for production workloads. Most observability cost is self-inflicted — high-cardinality labels, unsampled traces, or 100% INFO log retention. Scan for the four common patterns:

Sampling discipline:

LayerHealthy defaultAnti-pattern
INFO logs5-10% sample, 100% on warn/error100% retention on all levels
Distributed traces5-10% normal, 100% on errors or > p95 latencyHead-based 100% sampling
MetricsPre-aggregated at agent (no per-event metrics)Per-event metrics emission
Debug logsOff in prod; on-demand via runtime flagAlways-on debug retention

Findings to emit:

PatternFindingCost impact
Log line emits unique IDs (user_id, request_id, trace_id) AS A METRIC LABELHIGH_CARDINALITY_METRIC — [file:line] — label [name] is unbounded — move to log/trace, not metricMetric stores explode 100x+ ingestion cost
No sampling on INFO logsLOG_NO_SAMPLE — [file:line] — INFO logged at 100% — add sampling (10% INFO, 100% warn+)10x log volume = 10x bill
Trace sampling head-based at 100%TRACE_NO_SAMPLE — [file:line] — head sampling 100% — switch to tail-based 5-10% with always-on for errors/slow20x trace volume
console.log in production hot pathLOG_HOT_PATH — [file:line] — log emitted per request in tight loop — gate behind LOG_LEVEL or removeLogs dominate IOPS; throttles real traffic
Sentry / OTel SDK with no scrubbing configOBS_NO_SCRUB — [file:line] — payloads emitted unscrubbed — risk PII + cost (large payloads)Compliance + ingestion cost

Cost framing: same project, same business logic; the observability cost line moves 5-20x depending on whether sampling is disciplined. Especially severe in serverless/edge runtimes where every invocation pays cold-start log ingestion overhead.

Cost Impact Hierarchy

Not every perf finding has the same cost impact. When the report has multiple findings competing for engineering attention, rank them by where they sit in this hierarchy — fixes higher up the tree deliver more $ per engineering hour than fixes lower down.

Tier 1 — Architecture choices (10x impact)
  • Hot loop running on wrong runtime (serverless cold-start per call vs warm container)
  • N+1 queries that fan out to upstream rate limit (compounds with retries)
  • Single-region for global users (egress + latency cost)

Tier 2 — Data transfer (3-5x impact)
  • Cross-AZ chatter (per-GB egress)
  • Uncompressed responses (gzip = 70-90% reduction)
  • Image format (WebP/AVIF = 25-50% reduction over JPEG/PNG)
  • Log/trace volume (see Step 8.6)

Tier 3 — Compute right-sizing (2-3x impact)
  • Oversized instance types
  • Over-provisioned autoscaler floor
  • Always-on workers for bursty traffic

Tier 4 — DB optimization (1.5-2x impact)
  • Missing index on hot query
  • N+1 within a single DB connection (cheaper than cross-service N+1)
  • Connection pool sizing
  • Query result caching

Tier 5 — Caching layer (1.2-1.5x impact)
  • CDN cache hit rate
  • Application-level memoization
  • Read-through cache for hot reads

Reporting rule: when verdict is BLOCK or WARN, group findings by tier in the report. Operator should NOT optimize Tier 5 caching when a Tier 1 architecture mismatch is sitting unaddressed — the Tier 1 fix subsumes the Tier 5 gain.

Unit economics anchor: where possible, attach a unit-cost delta to each finding (e.g., LOG_NO_SAMPLE → ~$X/mo per 10k req based on operator's current observability vendor pricing). If unit-cost data unavailable, flag the finding with the tier-based multiplier band instead of leaving impact blank.

Cost-allocation precondition: a perf report's cost claims are only auditable if cloud resources have allocation tags (Environment, Team, Service). If deploy artifacts show untagged resources, raise a WARN COST_UNATTRIBUTED — resources lack allocation tags — anomaly detection blind; tag-first then optimize.

Output Format

## Perf Report: src/api/users.ts, src/db/queries.ts

### BLOCK
- N+1_QUERY src/db/queries.ts:47 — loop over users with Order.find() inside — fix: use JOIN or prefetch — estimated: +200ms per 100 users

### WARN
- SYNC_IN_ASYNC src/api/users.ts:23 — readFileSync in async handler — fix: fs.promises.readFile

### PASS
- Memory leak patterns: clean
- Bundle analysis: N/A (backend project)

### Verdict: BLOCK

Constraints

  1. MUST cite file:line for every finding — "might be slow" without evidence is not a finding
  2. MUST include estimated impact — impact-free findings are noise
  3. MUST NOT fix code — perf investigates only, never edits files
  4. MUST distinguish BLOCK (blocks merge) from WARN (should fix but doesn't block)
  5. MUST run framework-specific checks for detected framework — not just generic patterns

Mesh Gates (L1/L2 only)

GateRequiresIf Missing
Scope GateFile list or scout result before scanningInvoke scout to identify hotpath files
Evidence Gatefile:line + estimated impact for every BLOCK findingDowngrade to WARN or remove finding
Framework GateFramework detected before framework-specific checksFall back to generic patterns only

Sharp Edges

Known failure modes for this skill. Check these before declaring done.

Failure ModeSeverityMitigation
BLOCK finding without impact estimateHIGHEvery BLOCK needs "estimated impact: X" — evidence gate enforces this
False N+1 on intentional batched loopsMEDIUMCheck if loop has a batch_size limiter or is already prefetched upstream
Skipping framework checks because framework not detectedMEDIUMIf scout returns unknown framework, run generic checks + note in report
Calling browser-pilot on backend-only projectLOWCheck project type in Step 1 — browser-pilot only for frontend/fullstack
Reporting WARN as BLOCK (severity inflation)MEDIUMBLOCK = measurable regression on hot path; WARN = pattern that could be slow
Memory leak found, severity left as MEDIUMHIGHLeak in long-running process = cost driver (OOM restart loop → autoscaler spend). Escalate to BLOCK when process lifetime > 1 hour
High-cardinality label silently added as metric tagHIGHuser_id / request_id / trace_id as METRIC label explodes ingestion cost 100x. Move to log/trace, never metric
Findings reported without tier ranking when multiple competeMEDIUMCost Impact Hierarchy groups by tier (1-5). Tier 1 fix subsumes Tier 5 gain; operator otherwise optimizes wrong target
Cost claim made without cloud tag prerequisiteMEDIUMUntagged resources = anomaly detection blind. Pair perf findings with WARN COST_UNATTRIBUTED when cloud tags missing

Done When

  • All in-scope files analyzed for DB patterns, async/sync violations, memory leaks
  • Framework-specific checks applied for detected framework
  • Every finding has file:line + estimated impact
  • Bundle analysis ran (frontend) or skipped with reason (backend)
  • Benchmark scripts ran (if configured) or INFO: skipped
  • Perf Report emitted with PASS/WARN/BLOCK verdict

Returns

ArtifactFormatLocation
Perf Report with verdictMarkdown (PASS/WARN/BLOCK)inline
Per-finding detailsStructured list (file:line + impact)inline
Lighthouse scores (if ran)Score tableinline
Framework-specific findingsCategorized listinline

Cost Profile

~3000-8000 tokens input, ~500-1500 tokens output. Sonnet for pattern recognition.

Scope guardrail: perf investigates and reports only — it does not fix code. All fixes are delegated to fix (L2) after the report is reviewed.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Perf AI 技能有什么作用?

Performance regression gate. Detects N+1 queries, sync-in-async, missing indexes, memory leaks, and bundle bloat before they reach production. Ranks findings by Cost Impact Hierarchy (architecture > data transfer > compute > DB > caching) so fix priority maps to actual unit-cost reduction.

为什么在 TypingMind 中使用 Perf?

因为您只需安装一次,就能搭配任何模型使用。Perf 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Perf?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Rune-kit/rune/tree/master/skills/perf。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Perf?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Perf 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Perf 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Perf AI 技能免费吗?

是的。Rune-kit 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇