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

optimize

Optimizes code, queries, and features based on actual usage by removing unused fields, aggregations, JOINs, and unused complexity. Use when the user invokes /optimize or asks to slim queries to what the UI actually uses.

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

Illyism/dev-skillsスター 18(GitHub 18 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.2 KB

SKILL.md(原文)

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

TARGET:

  • Optimize code/queries/features based on ACTUAL usage, not assumptions
  • Remove everything that's not needed
  • Question every field, query, feature, and piece of complexity

ALGORITHM:

  1. Audit actual usage:

    • Grep/search codebase for each field/query/feature usage
    • Check UI components - what fields are actually rendered?
    • Check queries - what fields are actually selected?
    • Check APIs - what data is actually returned?
  2. Remove aggressively:

    • Delete unused fields from SELECT queries
    • Remove expensive aggregations if not displayed
    • Drop unused exports, functions, components
    • Eliminate unnecessary JOINs, GROUP BYs, subqueries
  3. Optimize for reality:

    • Base SELECT on actual UI needs (not "might need later")
    • Use scalar subqueries instead of JOINs when possible
    • Remove fields only used for filtering (keep in WHERE, remove from SELECT)
    • Cache only what's actually accessed frequently
  4. Simplify ruthlessly:

    • If it's expensive and not used → remove it
    • If it's "nice to have" → remove it
    • If it adds complexity without clear benefit → remove it
    • Question: "Would users notice if this disappeared?" If no → remove
  5. Conclusion:

    • When modifying a file, improve code quality in the surrounding area
    • Apply consistent patterns (e.g., error handling, naming conventions)
    • Extract duplicated logic if it appears 3+ times
    • Fix obvious issues (unused imports, inconsistent formatting)
    • Update related tests/types to match changes
    • Keep refactors small and focused - don't rewrite entire files
    • Verify UI still works as expected
    • Document breaking changes if any

Example: Query optimization - removed unused aggregate fields and dropped SELECT columns that were only needed for WHERE, kept only fields actually displayed in UI.

レビュー

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

コメント

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

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

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

0 / 1000 文字

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

同じリポジトリのスキル

Micro-benchmark and iteratively improve hot paths in any codebase — baseline first, mandatory improvement suggestions (bottleneck + 3 creative ideas + recommended next step), bounded attempts, user lock-in checkpoints, then human WHY comments after lock-in. Use when the user asks to benchmark, profile, optimize performance, compare implementations, or measure µs/op before shipping perf changes. Applies to Bun/Node, React, Next.js, browser code, and extensions.

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

Illyism/dev-skills182026年10月15日 更新

cleanup

無料

Cleanup code, optimize, refactor, delete the 80% to keep the 20%

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

Illyism/dev-skills182026年10月15日 更新

elon

無料

Applies the Elon Musk Algorithm to coding, product, SaaS, design, and current issues. Use when the user invokes /elon or requests Elon Musk-style first-principles analysis.

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

Illyism/dev-skills182026年10月15日 更新

eval

無料

Build, run, or update minimal evaluation benchmarks for AI prompts, LLM calls, multi-model comparisons, and core functions. Use when creating new eval scripts, comparing models side-by-side, filtering specific candidate models, running benchmarks, or inspecting eval.md output artifacts.

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

Illyism/dev-skills182026年10月15日 更新

Generates browser extension brand icons, Chrome Web Store promo tiles, promotional screenshots, brand guides, and listing copy. Uses OpenRouter gpt-image-2 via lib/blog-image-generator. Use when creating extension branding, Chrome Web Store assets, app icon concepts, store descriptions, or /extension-store-assets workflows.

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

Illyism/dev-skills182026年10月15日 更新

Illyism のスキルをすべて見る

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