Communitygithub.com

curiositech/windags-skills

プロンプト学習MCPサーバーを使用して、プロンプトを自動的にインターセプトおよび最適化します。APE、OPRO、DSPyパターンを使用して、埋め込みインデックス履歴から時間の経過とともに学習します。

windags-skills とは?

このスキルは、高度なプロンプト最適化技術をAIエージェントに提供し、あいまいまたは複雑なタスク要求を自動的にインターセプトして、パフォーマンスの高いプロンプトに変換します。APE(Automatic Prompt Engineer)、OPRO(Optimization by PROmpting)、DSPyコンパイルパターンを活用し、タスクの複雑さとトークンバジェットに基づいて適切な手法を選択します。主にClaude Code、Cursor、Codexなどのプラットフォームを対象としており、`prompt-learning` MCPサーバーが必要です。このスキルは、プロンプト最適化の履歴を埋め込みインデックスとして保存し、類似タスクのコンテキストを取得して再利用可能なテンプレートを生成することで、時間の経過とともに学習します。また、過剰最適化スパイラルや履歴オーバーフィッティングなどの失敗モードを認識して防止しながら、品質ゲートを使用して最適化前後の有効性を検証します。単純な質問や直接コマンドには使用せず、代わりにそれらを直接処理するように設計されています。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/curiositech/windags-skills/tree/HEAD/skills/automatic-stateful-prompt-improver

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

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

ドキュメント

自動ステートフルプロンプト改善スキル

判断ポイント

プロンプト評価:
├── 単純な質問/コマンド(何、いつ、どのように)
│   └── 最適化をスキップ → 直接回答
├── 複雑なタスク(マルチステップ、推論、技術的)
│   ├── トークンバジェット < 1000
│   │   └── APE: 3〜5回の反復
│   ├── トークンバジェット 1000〜5000
│   │   └── OPRO: 5〜10回の反復
│   └── トークンバジェット > 5000
│       └── DSPyコンパイル: 10〜20回の反復
└── 再利用可能なテンプレート/システムプロンプト
    └── 履歴検索による完全最適化

最適化手法の選択:
├── 指示の書き換えが必要
│   └── APE(Automatic Prompt Engineer)を使用
├── 制約付きパラメータチューニング
│   └── OPRO(Optimization by PROmpting)を使用
├── 複数モジュールを持つ複雑なパイプライン
│   └── DSPyコンパイルパターンを使用
└── 未知/探索的領域
    └── ハイブリッド APE→OPRO→DSPyカスケード

反復制御:
├── 改善率が3ラウンド連続で1%未満 → 停止
├── 品質スコアが0.95を超える → 停止
├── 最大反復回数に達した → 停止
├── ユーザー満足が確認された → 停止
└── 続行 → 次の反復

フィードバック統合:
├── タスク成功(ユーザー確認/メトリクス良好)
│   └── 肯定的なフィードバックを記録 + 取得用に埋め込み
├── タスク失敗/品質不良
│   └── 否定的なフィードバックを記録 + 失敗モードを分析
└── 結果が不明確
    └── 記録前にユーザーに明示的なフィードバックを依頼

失敗モード

過剰最適化スパイラル

  • 症状: プロンプトが500トークン以上になり、多くのネストされた制約が含まれる
  • 診断: 「十分良い」で停止する代わりに、限界的な改善を追い求めている
  • 修正: 80/20ルールを適用 - 反復ごとの改善率が5%を下回ったら停止

テンプレートへの固執

  • 症状: タスクの明確さではなく、フォーマット/構造に反復を費やしている
  • 診断: パフォーマンスとプレゼンテーションを混同している
  • 修正: テンプレートの適合性ではなく、実際のタスク成功を測定する

履歴への過適合

  • 症状: 最適化されたプロンプトが過去の例では機能するが、新しい入力では失敗する
  • 診断: 検索から得られた狭いデータセットでトレーニングしている
  • 修正: 最適化に多様な例を含め、ホールドアウトケースでテストする

能力の誤判断

  • 症状: モデルがネイティブに処理できるタスクに過剰な足場を追加している
  • 診断: テストせずにモデルの限界を仮定している
  • 修正: 大量のプロンプトを実行する前にベースライン機能をテストする

測定の盲点

  • 症状: 明確な成功メトリクスなしに複数回の反復を行っている
  • 診断: 「より良い」が何を意味するかわからずに最適化している
  • 修正: 最初のステップで測定可能な成功基準を定義する

実例

例1: コード最適化リクエスト

元のプロンプト: 「このコードを良くして」

def process_data(data):
    results = []
    for item in data:
        if item > 0:
            results.append(item * 2)
    return results

判断ポイントのナビゲーション:

  1. 評価: 複雑なタスク(コード分析が必要)→ 最適化をトリガー
  2. 手法の選択: コードレビュー + 改善 → 5回の反復でAPE
  3. 取得されたコンテキスト: 履歴からの類似コード最適化プロンプト
  4. 最適化されたプロンプト: 「このPython関数をパフォーマンス、可読性、Python的なパターンについて分析してください。具体的な改善点を特定してください:アルゴリズムの複雑さ、メモリ使用量、エッジケース、スタイル。説明付きのリファクタリングされたコードを提供してください。」

初心者が見逃すもの: 漠然とした「より良く」は基準を指定していない エキスパートが気づくもの: 明示的な次元(パフォーマンス、スタイル、エッジケース)が必要

結果: リスト内包表記の機会、エッジケース処理、型ヒントの明確な分析

例2: 推論タスクテンプレート

元のプロンプト: 「この決定について考えるのを手伝って」

判断ポイントのナビゲーション:

  1. 評価: 再利用可能なテンプレート + 推論タスク → 完全最適化
  2. 履歴検索: 決定フレームワークのプロンプトが見つかりました(類似度0.87)
  3. 手法の選択: DSPyコンパイル(構造化推論パイプライン)
  4. 反復戦略: 10ラウンド、決定の質を測定

最適化されたテンプレート:

決定分析フレームワーク:
1. 状況: 制約条件とともに決定を明確に記述する
2. 関係者: 影響を受ける当事者とその利害を列挙する
3. 選択肢: 3〜5つの異なる代替案を生成する
4. 基準: 成功メトリクスと重み付けを定義する
5. トレードオフ: 各選択肢を基準に対して分析する
6. 推奨: 信頼レベルとともに最適な選択肢を選択する

適用された品質ゲート: テンプレートの完全性、再利用性スコア、ユーザー満足度

例3: あいまいな技術リクエスト

元のプロンプト: 「監視を設定して」

判断ポイントのナビゲーション:

  1. 評価: 指定不足 + 技術的 → 最適化をトリガー
  2. 明確化戦略: 制約引き出しによるOPRO
  3. ドメインコンテキスト: 監視設定パターンを取得

最適化されたプロンプト: 「監視設定を設計する際は、以下を指定してください:(1) インフラストラクチャの範囲(サーバー、コンテナ、アプリケーション)、(2) 主要メトリクス(パフォーマンス、可用性、ビジネス)、(3) アラートしきい値とエスカレーション、(4) テクノロジースタックの制約、(5) 予算/複雑さの制限。優先順位付きの実装ロードマップを提供してください。」

前後のトレードオフ:

  • 前: 終わりのない往復の明確化
  • 後: 単一のやり取りで構造化された要件収集
  • コスト: 初期プロンプトが長くなる
  • 利点: 1ラウンドで完全な仕様を取得

品質ゲート

最適化実行前のチェックリスト:

  • タスク複雑性スコア > 3(マルチステップ/推論が必要)
  • 明確な成功基準が定義されているか、導出可能
  • トークンバジェットを見積もり、手法を選択済み
  • 取得用にドメインコンテキストを特定済み
  • 複雑さに基づいて反復制限を設定済み

最適化後の検証:

  • 最適化されたプロンプトが具体的かつ実行可能
  • 成功メトリクスが測定可能
  • 制約の一貫性が検証済み(矛盾なし)
  • トークン効率: 改善が長さの追加を正当化する
  • 履歴コンテキストが適切に統合されている
  • 大きな変更についてユーザーの確認を取得済み

品質スコアリングルーブリック(0〜100):

  • 明確さ: 初心者ユーザーが要件を理解できるか?(25点)
  • 具体性: 抽象的な指示ではなく具体的な指示か?(25点)
  • 完全性: エッジケースと制約をカバーしているか?(25点)
  • 効率性: 肥大化せずに目標を達成しているか?(25点)

対象外境界

このスキルを以下の目的で使用しないでください:

  • 単純な事実に関する質問 → 知識で直接回答
  • 推論を伴わないファイル操作 → ファイル管理スキルを使用
  • 直接コマンドの実行 → すぐに実行
  • 会話応答 → 自然に応答
  • 既に最適化されたプロンプト → 履歴を確認し、再最適化を避ける
  • ユーザーが明示的に「最適化しないで」と言った場合 → ユーザーの好みを尊重

代わりに委任する場合:

  • 数学的問題の場合 → 計算に特化したスキルを使用
  • クリエイティブライティングの場合 → クリエイティブライティングスキルを使用(テンプレート作成以外)
  • データ分析の場合 → データ分析スキルを使用(複雑な推論が必要な場合を除く)
  • デバッグの場合 → デバッグスキルを使用(体系的な改善が必要な場合を除く)

判断を要するグレーゾーン:

  • 中程度の複雑さのタスク(スコア2〜4) → 最初にベースラインパフォーマンスをテスト
  • ドメイン専門知識のリクエスト → 再利用可能なテンプレートの可能性がある場合のみ最適化
  • フォローアップの質問 → スコープが大幅に拡大する場合のみ最適化

Individual skills in this repo

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

curiositech/windags-skills

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

curiositech/windags-skills

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

curiositech/windags-skills

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

curiositech/windags-skills

Implement WCAG 2.2 AA/AAA compliance with automated testing, keyboard navigation, screen reader support, and focus management. Activate on: accessibility audit, WCAG compliance, keyboard navigation, screen reader, aria attributes, axe-core, focus trap. NOT for: design-level accessibility review (use design-accessibility-auditor), color contrast only (use css-in-js-architect).

curiositech/windags-skills

Time-blind friendly planning, executive function support, and daily structure for ADHD brains. Specializes in realistic time estimation, dopamine-aware task design, and building systems that actually work for neurodivergent minds.

curiositech/windags-skills

Designs digital experiences for ADHD brains using neuroscience research and UX principles. Expert in reducing cognitive load, time blindness solutions, dopamine-driven engagement, and compassionate design patterns. Activate on 'ADHD design', 'cognitive load', 'accessibility', 'neurodivergent UX', 'time blindness', 'dopamine-driven', 'executive function'. NOT for general accessibility (WCAG only), neurotypical UX design, or simple UI styling without ADHD context.

curiositech/windags-skills

>- Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

curiositech/windags-skills

Extend and modify the admin dashboard, developer portal, and operations console. Use when adding new admin tabs, metrics, monitoring features, or internal tools. Activates for dashboard development, analytics, user management, and internal tooling.

curiositech/windags-skills

Conversation patterns and interaction protocols for multi-agent systems. Covers request/response, pub/sub, blackboard, delegation chains, debate, critique, consensus, fan-out/fan-in, supervisor-worker, and peer negotiation. Deep analysis of AutoGen conversation patterns, CrewAI delegation, LangGraph state passing, and FIPA-ACL performatives. Teaches how to design what agents say to each other and in what order. Activate on: "agent conversation", "agent protocol", "multi-agent debate", "agent delegation", "supervisor worker pattern", "agent voting", "consensus protocol", "fan-out fan-in", "agent negotiation", "blackboard pattern", "agent dialogue", "conversation topology", "agent handoff". NOT for: wire format or serialization (use agent-interchange-formats), orchestration infrastructure (use agentic-infrastructure-2026), single agent behavior (use agentic-patterns).

curiositech/windags-skills

Meta-agent for creating new custom agents, skills, and MCP integrations. Expert in agent design, MCP development, skill architecture, and rapid prototyping. Activate on 'create agent', 'new skill', 'MCP server', 'custom tool', 'agent design'. NOT for using existing agents (invoke them directly), general coding (use language-specific skills), or infrastructure setup (use deployment-engineer).

curiositech/windags-skills

AI-powered calendar management and agent-based scheduling coordination. Covers calendar APIs (Google Calendar, CalDAV/iCal), AI scheduling assistants (Reclaim, Clockwise, Motion, Cal.com), building custom calendar agents with MCP, multi-calendar merging, timezone management, focus block protection, meeting fatigue detection, and agent-to-agent meeting negotiation protocols. Activate on: "calendar agent", "AI scheduling", "calendar coordination", "meeting scheduling", "calendar API", "focus time protection", "calendar optimization", "Google Calendar MCP", "Reclaim", "Clockwise", "Motion", "Cal.com", "smart scheduling", "calendar-aware agent", "timezone scheduling", "agent negotiation meetings". NOT for: manual calendar UI component design (use form-validation-architect), project management scheduling or Gantt charts (use project-management-guru-adhd), general time-tracking or pomodoro apps (use adhd-daily-planner for time-awareness), building the agent itself from scratch (use agent-creator).

curiositech/windags-skills

Build and adopt production AI agent infrastructure in 2026. Covers framework selection (LangGraph, CrewAI, AutoGen, MCP), orchestration patterns, evaluation, observability, memory systems, and tool use. Also covers the SOCIAL dimension: how to sell agent infrastructure internally, change management, measuring ROI, building trust in autonomous systems, and scaling adoption across teams. Activate on: "agent infrastructure", "agent framework comparison", "which agent framework", "sell AI tools internally", "agent adoption", "agent observability", "agent evaluation", "MCP architecture", "agentic mesh", "enterprise AI agents", "AI change management", "agent ROI". NOT for: building specific agents (use ai-engineer), designing agent behavior patterns (use agentic-patterns), prompt tuning (use prompt-engineer).

curiositech/windags-skills

Fundamental patterns for effective agentic behavior. Teaches decomposition, tool orchestration, error recovery, context management, quality self-assessment, and knowing when to stop. Model-agnostic principles that make any agent more effective regardless of domain. Activate on: "how should I structure this agent", "agentic workflow", "agent patterns", "multi-step task", "tool orchestration", "/agentic-patterns", "decompose this", "agent best practices", "chain of actions", "when should the agent stop", "agent loop design". NOT for: creating agent infrastructure (use agent-creator), building DAGs (use windags-architect), specific tool implementation.

curiositech/windags-skills

Automated discovery and matching of agent skills for dynamic task routing and capability assessment

curiositech/windags-skills

Cryptographic security for agentic systems — zero-trust agent networking, signed message envelopes (JWS/JWE), capability-based security (ocaps), Merkle tree audit trails, WASM sandboxing, and formal verification. Covers CLI dev tool security, mTLS between agents, permission boundaries (least privilege for AI agents), and supply chain security for skills/plugins. Activate on: "agent security", "zero trust agents", "secure agent communication", "capability-based security", "ocap", "signed messages between agents", "agent audit trail", "sandbox agent execution", "agent permissions", "mTLS agents", "cryptographic verification", "agent supply chain", "OWASP agentic", "prove agent did X", "tamper-proof agent logs". NOT for: application-level SAST scanning (use security-auditor), network firewall rules (use infrastructure), SOC2/HIPAA compliance (organizational), or prompt injection defense (use prompt-engineer).

curiositech/windags-skills

Data structures and serialization formats for agent-to-agent communication. Covers message envelopes, structured output schemas, capability declarations, task handoff payloads, error/retry signaling, and context windows as data structures. Deep comparison of A2A protocol, MCP, OpenAI function calling, and LangChain message types. Teaches when to use rigid schemas vs free-form with validation, typed vs untyped, streaming vs batch. Activate on: "agent message format", "agent communication schema", "agent-to-agent protocol", "A2A protocol", "MCP message format", "structured output for agents", "agent interop", "interchange format", "agent serialization", "task handoff format", "capability declaration". NOT for: what agents say to each other (use agent-conversation-protocols), orchestration topology (use multi-agent-coordination), building agent infrastructure (use agentic-infrastructure-2026).

curiositech/windags-skills

Logic-based agent programming language implementing BDI architecture for practical autonomous agent development

curiositech/windags-skills

>- Design AgentSpeak(L)-style BDI agents with context-guarded plans, selection functions, and intention stacks. Use for interruptible autonomy, agent policy, and multi-agent orchestration in dynamic environments. NOT for simple rule engines, static planners, or centralized workflows.

curiositech/windags-skills

Foundational concurrent computation model where actors communicate exclusively through asynchronous message passing

curiositech/windags-skills

license: Apache-2.0 NOT for unrelated tasks outside this domain.

関連スキル