本文へスキップ
Skillpedia
一般的なプログラミング48k · #5550

python-performance-optimization

できること

このツールは、Pythonコードの遅い部分を見つけて改善する手助けをします。プログラムが時間とメモリをどのように使っているかを分析し、より速く効率的に動くようにします。

使う場面

  • ✓Pythonプログラムの実行に時間がかかりすぎるとき。
  • ✓プログラムが使用するメモリを減らしたいとき。
  • ✓コードの特定の部分を高速化する必要があるとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/python-performance-optimization/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/python-performance-optimization/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“データを処理するときに非常に遅いPythonスクリプトを、どのように最適化できますか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、Pythonコードが使う時間とメモリを計測する手法を用います。その結果をもとに、コードをより速く動くように書き換えたり調整したりする方法を提案します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Python Performance Optimization

Comprehensive guide to profiling, analyzing, and optimizing Python code for better performance, including CPU profiling, memory optimization, and implementation best practices.

Use this skill when

  • Identifying performance bottlenecks in Python applications
  • Reducing application latency and response times
  • Optimizing CPU-intensive operations
  • Reducing memory consumption and memory leaks
  • Improving database query performance
  • Optimizing I/O operations
  • Speeding up data processing pipelines
  • Implementing high-performance algorithms
  • Profiling production applications

Do not use this skill when

  • The task is unrelated to python performance optimization
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
よくある質問

「プロファイリング(profiling)」とは何ですか?

プログラムの実行中にその様子を記録し、どこで最も多くの時間や資源を使っているかを確認することです。

「ボトルネック」とは何ですか?

コードの中で処理を遅くしている部分のことです。パイプの狭くなった部分のようなものです。

これを使うには、熟練したプログラマーである必要がありますか?

いいえ、経験豊富なプログラマーでなくても使えるように設計されています。コードの性能を高めることに重点を置いています。

詳細

作者による元の説明

Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#5550
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル