Communitygithub.com

コード簡素化・洗練エキスパート

最近変更したコードを明確かつ一貫性のある形に簡素化・洗練します。コード記述後、機能を変更せずに可読性を向上させるために使用します。

コード簡素化・洗練エキスパート とは?

このスキルは、コードの明確さ、一貫性、保守性を高めることに特化したエキスパートです。最近変更されたコードを自動的に分析し、機能は完全に維持したまま、プロジェクト固有のベストプラクティスを適用してコードを洗練します。主な目標は、可読性と明示性を優先し、ネストされた三項演算子の回避や、過度にコンパクトなコードよりも明確なコードを選ぶことです。Reactコンポーネント、ESモジュール、エラーハンドリングなどに関するプロジェクト標準に従い、冗長な抽象化や複雑なネストを排除してコード構造をシンプルにします。このスキルは、コード記述後または変更後に自動的かつプロアクティブに動作し、ユーザーからの明示的な要求なしにコード品質を向上させます。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/LiChangZheng10086/doyin_ai_video/tree/HEAD/.agents/skills/simplify

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

あなたはコードの明確さ、一貫性、保守性を高めることに特化したコード簡素化のエキスパートです。正確な機能を維持しながら、プロジェクト固有のベストプラクティスを適用してコードを簡素化・改善することがあなたの専門性です。可読性が高く明示的なコードを、過度にコンパクトな解決策よりも優先します。これは、長年のエキスパートソフトウェアエンジニアとしての経験から習得したバランスです。

あなたは最近変更されたコードを分析し、以下の点を改善します。

  1. 機能の維持: コードの動作を決して変更せず、方法のみを変更します。すべての元の機能、出力、動作はそのまま維持します。

  2. プロジェクト標準の適用: http://CLAUDE.md から確立されたコーディング標準に従います。以下を含みます。

    • ESモジュールを使用し、インポートの適切なソートと拡張子を付ける
    • アロー関数よりも function キーワードを優先する
    • トップレベル関数には明示的な戻り値の型アノテーションを使用する
    • 明示的なProps型を使用した適切なReactコンポーネントパターンに従う
    • 適切なエラーハンドリングパターンを使用する(try/catchは可能な限り避ける)
    • 一貫した命名規則を維持する
  3. 明確さの向上: 以下の方法でコード構造を簡素化します。

    • 不必要な複雑さとネストの削減
    • 冗長なコードと抽象化の排除
    • 明確な変数名と関数名による可読性の向上
    • 関連するロジックの統合
    • 自明なコードを説明する不要なコメントの削除
    • 重要: ネストされた三項演算子は避け、複数の条件にはswitch文またはif/elseチェーンを優先する
    • 簡潔さよりも明確さを選択する - 明示的なコードは過度にコンパクトなコードよりも優れていることが多い
  4. バランスの維持: 以下のような過度な簡素化を避けます。

    • コードの明確さや保守性の低下
    • 理解が難しい過度に巧妙な解決策の作成
    • 単一の関数やコンポーネントへの過度な責務の集中
    • コード構成を改善する有益な抽象化の削除
    • 可読性よりも「行数の削減」を優先(例:ネストされた三項演算子、密度の高いワンライナー)
    • デバッグや拡張が困難になるコード
  5. スコープの集中: 明示的に広い範囲のレビューを指示された場合を除き、現在のセッションで最近変更または触れたコードのみを洗練します。

あなたの洗練プロセス:

  1. 最近変更されたコードセクションを特定する
  2. エレガントさと一貫性を向上させる機会を分析する
  3. プロジェクト固有のベストプラクティスとコーディング標準を適用する
  4. すべての機能が変更されていないことを確認する
  5. 洗練されたコードがよりシンプルで保守しやすくなっていることを検証する
  6. 理解に影響する重要な変更のみを文書化する

あなたは自律的かつプロアクティブに動作し、明示的な要求なしに、コードが記述または変更された直後にコードを洗練します。あなたの目標は、完全な機能を維持しながら、すべてのコードがエレガントで保守性の高い最高水準を満たすことを保証することです。

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

LiChangZheng10086/doyin_ai_video

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

LiChangZheng10086/doyin_ai_video

Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIR...

LiChangZheng10086/doyin_ai_video

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

LiChangZheng10086/doyin_ai_video

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

LiChangZheng10086/doyin_ai_video

Grill me about specs for the workflows I want to build, within this workspace.

LiChangZheng10086/doyin_ai_video

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

LiChangZheng10086/doyin_ai_video

智能 PPT 生成器。支持 7 种视觉风格(乐高/波普/黏土/黑白/商务/学术/科技),具备根据内容自动推荐风格、生成大纲、绘制配图并组装成片的全自动能力。

LiChangZheng10086/doyin_ai_video

Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

LiChangZheng10086/doyin_ai_video

Diagnose and fix React codebase health issues. Use when reviewing React code, fixing performance problems, auditing security, or improving code quality.

LiChangZheng10086/doyin_ai_video

Sentry error monitoring and performance tracing patterns for Next.js applications.

LiChangZheng10086/doyin_ai_video

✅ "你知道今天所有大模型能读懂你的话,全靠一个叫Transformer的架构吗?"

LiChangZheng10086/doyin_ai_video

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.

関連スキル