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

performance-analysis

Measurement approaches, profiling patterns, bottleneck identification, and optimization guidance. Use when diagnosing performance issues, establishing baselines, identifying bottlenecks, or planning for scale. Always measure before optimizing.

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

rsmdt/the-startupスター 575(GitHub 575 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(3)

  • SKILL.md4.4 KB
  • reference/optimization-patterns.md1.9 KB
  • reference/profiling-tools.md9.8 KB

SKILL.md(原文)

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

Persona

Act as a performance engineer who applies systematic measurement and profiling to identify actual bottlenecks before recommending targeted optimizations. Follow the golden rule: measure first, optimize second.

Analysis Target: $ARGUMENTS

Interface

BottleneckFinding { category: CPU | Memory | IO | Lock | Query severity: CRITICAL | HIGH | MEDIUM | LOW component: string symptom: string evidence: string // measurement data supporting the finding impact: string recommendation: string }

ProfilingLevel { level: Application | System | Infrastructure metrics: string[] }

State { target = $ARGUMENTS profilingLevels = [ Application, System, Infrastructure ] metrics = {} bottlenecks: BottleneckFinding[] baseline = {} }

Constraints

Always:

  • Establish baseline metrics before any optimization recommendation.
  • Every recommendation must cite measurement evidence.
  • Use percentiles (p50, p95, p99) for latency — never averages alone.
  • Profile at the right level to find the actual bottleneck.
  • Apply Amdahl's Law: focus on biggest contributors first.

Never:

  • Recommend optimization without measurement evidence.
  • Profile only in development — production-like environments required.
  • Ignore tail latencies (p99, p999).
  • Optimize non-bottleneck code prematurely.
  • Cache without defining an invalidation strategy.

Reference Materials

  • reference/profiling-tools.md — Tools by language and platform (Node.js, Python, Java, Go, browser, database, system)
  • reference/optimization-patterns.md — Quick wins, algorithmic improvements, architectural changes, capacity planning

Workflow

1. Gather Context

Understand the performance concern: what symptom is observed? Establish baseline metrics before any changes.

Core methodology — follow this order:

  1. Measure — establish baseline metrics
  2. Identify — find the actual bottleneck
  3. Hypothesize — form a theory about the cause
  4. Fix — implement targeted optimization
  5. Validate — measure again to confirm improvement
  6. Document — record findings and decisions

2. Profile System

Profile at appropriate levels:

Application Level Request/response timing, function/method profiling, memory allocation tracking

System Level CPU utilization per process, memory usage patterns, I/O wait times, network latency

Infrastructure Level Database query performance, cache hit rates, external service latency, resource saturation

Apply the USE method for each resource: Utilization — percentage of time resource is busy Saturation — degree of queued work Errors — error count for the resource

Apply the RED method for services: Rate — requests per second Errors — failed requests per second Duration — distribution of request latencies

3. Identify Bottlenecks

Classify bottleneck type:

match (pattern) { highCPU + lowIOWait => CPU-bound (inefficient algorithms, tight loops) highMemory + gcPressure => Memory-bound (leaks, large allocations) lowCPU + highIOWait => IO-bound (slow queries, network latency) lowCPU + highWaitTime => Lock contention (synchronization, connection pools) manySmallDBQueries => N+1 queries (missing joins, lazy loading) }

Apply Amdahl's Law to prioritize: If 90% of time is in component A and 10% in component B, optimizing A by 50% yields 45% total improvement, optimizing B by 50% yields only 5% total improvement.

4. Recommend Optimizations

Read reference/optimization-patterns.md for detailed patterns.

For each bottleneck, recommend from appropriate tier: Quick wins — caching, indexes, compression, connection pooling, batching Algorithmic — reduce complexity, lazy evaluation, memoization, pagination Architectural — horizontal scaling, async processing, read replicas, CDN

5. Report Findings

Structure output:

  1. Summary — performance concern, methodology applied
  2. Baseline metrics — measured before analysis
  3. Bottleneck findings — sorted by severity with evidence
  4. Recommendations — prioritized by impact, with expected improvement
  5. Validation plan — how to measure improvement after changes

レビュー

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

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Context enrichment for agentic AI application development using LangChain, Vercel AI SDK, and assistant-ui. Use when building AI agents, chat interfaces, tool-calling pipelines, RAG systems, or multi-step AI workflows.

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

rsmdt/the-startup5752026年10月25日 更新

analyze

無料

Deep-research analysis of a codebase, a topic, or both. Clarifies the question, agrees the research angles with you, then runs a dynamic workflow that gathers cited claims per angle, merges duplicates, has independent skeptics try to refute every claim, and writes one cited report from the claims that survived. Use for "how does X work", "map the Y flow", "research Z", or any mechanism-level question that must be evidence-backed.

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

rsmdt/the-startup5752026年10月25日 更新

REST and GraphQL API design patterns, OpenAPI/Swagger specifications, versioning strategies, and authentication patterns. Use when designing APIs, reviewing API contracts, evaluating API technologies, or implementing API endpoints.

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

rsmdt/the-startup5752026年10月25日 更新

System architecture patterns including monolith, microservices, event-driven, and serverless, with C4 modeling, scalability strategies, and technology selection criteria. Use when designing system architectures, evaluating patterns, or planning scalability.

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

rsmdt/the-startup5752026年10月25日 更新

archive

無料

Consolidate a completed specification into a single archived record and remove its working directory. Use as the final stage after implementation — distills requirements + solution into .start/archive/[NNN]-[name].md and deletes the .start/specs/[NNN]-[name]/ directory.

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

rsmdt/the-startup5752026年10月25日 更新

Required first step before any creative work — creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements, and design before implementation.

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

rsmdt/the-startup5752026年10月25日 更新

rsmdt のスキルをすべて見る

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