Communitygithub.com

curiositech/windags-skills

常時稼働型AIエージェントにエピソディックメモリを提供するためのコンテキスト入力設計手法を解説します。エージェントに与えるデータ、観測とトリガーの構造化、画面・音声・カレンダーなどのアンビエントコンテキストキャプチャ、コンテキストウィンドウの予算管理、そしてエージェントを現実の行動に基づかせるための検索戦略について網羅します。

windags-skills とは?

このスキルは、常時稼働型AIエージェントに適切なコンテキストを供給するための包括的な設計ガイドです。エージェントが「見る」「聞く」「知る」べき生の信号(画面、音声、カレンダー、コード変更、CI結果など)をどのように構造化し、どのようなトリガーで起動し、コンテキストウィンドウをどのように予算管理するかについて詳細に説明します。特に、会話・問題解決・コンテキストスイッチ・スケジュールトリガー・リアクティブトリガーといったエージェントのタスクタイプに応じて最適な検索戦略(再帰性優先、関連性優先、頻度ベース、構造化アジェンダ、イベント固有)を選択するための明確な決定木を提供します。また、アンビエントデータのフィルタリングルールやトリガーの緊急度割り当て、そしてスキーマ肥大化、検索スラッシング、トリガースパム、コンテキスト陳腐化、ノイズ floodingといった実践的な障害モードとその修正方法も網羅しており、開発者がすぐに実装できる具体的なガイダンスを提供します。

対応~Claude Code~Codex CLI~Cursor✓Antigravity
npx skills add https://github.com/curiositech/windags-skills/tree/HEAD/skills/always-on-agent-inputs

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

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

ドキュメント

/always-on-agent-inputs — 永続エージェントへのコンテキスト供給

あなたは、常時稼働型エージェントが見るもの、聞くもの、知るものを設計しています。アーキテクチャスキルはメモリがどこに存在するかを扱います。このスキルは、メモリに入力されるもの、つまり生の信号、それらがどのように構造化されるか、エージェントがいつ起動するか、そしてコンテキストウィンドウを正直に保つ方法を扱います。


決定ポイント

検索戦略の選択

エージェントタスク種類 → 検索戦略

IF 会話/チャット:
  ├─ 再帰性優先を使用 (70% 時間的, 30% 意味的)
  ├─ 予算: 15K 会話履歴 + 4K 最近の想起
  └─ アーカイブはユーザーが「あの時…」と尋ねない限りスキップ

IF 問題解決/デバッグ:
  ├─ 関連性優先を使用 (60% 意味的, 40% 時間的)
  ├─ 予算: 8K アーカイブ + 4K 想起 + 2K アンビエント
  └─ 過去の解決策からのエラーパターンを含める

IF コンテキストスイッチを検出:
  ├─ 頻度ベースを使用 (ユーザーが最もよく取り組んでいるものは?)
  ├─ 予算: 6K プロジェクトコンテキスト + 2K 最近 + 4K 目標
  └─ アクティブなファイル/人物のエンティティ履歴を取得

IF スケジュールトリガー (朝のブリーフィング):
  ├─ 構造化アジェンダを使用 (カレンダー + タスク + 更新)
  ├─ 予算: 4K カレンダー + 4K 未完了タスク + 2K 変更
  └─ 会話履歴は不要

IF リアクティブトリガー (CI障害、会議開始):
  ├─ イベント固有のコンテキストローディングを使用
  ├─ 予算: 8K イベントコンテキスト + 4K 関連履歴
  └─ 関連性がない限り一般会話はスキップ

アンビエントデータフィルタリング

画面/音声観測 → フィルタ判断

IF 同じアプリ + 同じテキストが5分以上:
  └─ 破棄 (変更なし、ノイズ)

IF アプリスイッチを検出:
  ├─ 遷移記録を保持
  └─ 新しいアプリコンテンツの関連性をスコアリング

IF 高シグナルキーワードを発見:
  ├─ アクティブなプロジェクト/目標と照合
  ├─ IF 一致スコア >0.6 → アーカイブ + 想起に保存
  ├─ IF 一致スコア 0.3-0.6 → 想起のみに保存
  └─ IF 一致スコア <0.3 → 破棄

IF 技術的エラー/例外が表示されている:
  ├─ 常に保存 (デバッグコンテキスト)
  └─ 緊急度レベルをタグ付け

IF カレンダーイベントが言及された:
  ├─ 常に保存 (時間的アンカー)
  └─ 実際のカレンダーと相互参照

トリガー緊急度割り当て

イベント種類 + コンテキスト → 緊急度

IF CI障害:
  ├─ プロダクションブランチ → アクティブ (ユーザーに通知)
  ├─ フィーチャーブランチ + ユーザーが現在コーディング中 → パッシブ (次にユーザーが関与したときに言及)
  └─ 古いブランチ/PR → サイレント (ログのみ)

IF 会議開始:
  ├─ <5分 → アクティブ (準備で割り込み)
  ├─ 5-15分 → バッジ (準備が利用可能であることを表示)
  └─ >15分 → サイレント (バックグラウンドで準備)

IF コード変更を検出:
  ├─ 新しいブランチの最初のコミット → パッシブ (新しい作業を記録)
  ├─ 以前のエラーを修正するコミット → パッシブ (解決を記録)
  └─ 通常のコミット → サイレント (進捗を追跡)

IF Slackでメンションされた:
  ├─ ダイレクトメッセージ → アクティブ (応答が必要)
  ├─ チャンネルメンション + 緊急キーワード → アクティブ
  └─ チャンネルメンション、通常 → バッジ (都合の良いときに確認)

障害モード

スキーマ肥大化

  • 症状: コンテキストウィンドウが常に最大、応答が遅い、フィルタリングにもかかわらずトークンコストが高い
  • 根本原因: 観測スキーマが、エージェントが推論に必要なフィールドだけではなく、すべてのフィールドをキャプチャしている
  • 検出ルール: 平均コンテキストサイズが50Kトークンを超える、または観測ストレージが1MB/日を超える場合、スキーマ肥大化の可能性
  • 修正: 毎月スキーマを監査。30日間決定に影響を与えていないフィールドを削除。生のストレージの代わりに要約を使用。

検索スラッシング

  • 症状: エージェントが古い情報を引用、最近のコンテキストを見逃す、または無関係な記憶を繰り返し取得する
  • 根本原因: リランキングなしの単一パスベクトル検索、または時間的/意味的重みの調整不良
  • 検出ルール: 取得コンテキストの30%以上が応答で使用されない、またはユーザーが最近のイベントについてエージェントを訂正する
  • 修正: 2段階検索を実装 (広域検索 + リランク)。異なる時間的/意味的重み比率をA/Bテスト。

トリガースパム

  • 症状: ユーザーがエージェント通知を無効にする、中断について不満を言う、またはエージェントが無視される
  • 根本原因: 緊急度階層がない、またはアクティブ/割り込みトリガーのしきい値が低すぎる
  • 検出ルール: ユーザーがアクティブ通知の50%以上を却下する、またはユーザーエンゲージメント間の平均時間が4時間を超える
  • 修正: すべてをデフォルトでサイレントに。アクティブ通知を必要とするものをユーザーが明示的に設定できるようにする。却下率を追跡。

コンテキスト陳腐化

  • 症状: エージェントが古い情報に基づいて行動する、ユーザーが焦点/プロジェクトを変更したことに気づかない
  • 根本原因: コンテキストに鮮度減衰がない、または検索重みが再帰性を十分に考慮していない
  • 検出ルール: エージェントが最近のコンテキストが存在するにもかかわらず7日以上前の情報を参照する、または完了したプロジェクトに言及する
  • 修正: 関連性スコアに指数減衰を追加。最近の観測をアーカイブより2-3倍高く重み付け。

アンビエントノイズ flooding

  • 症状: 高コスト、応答品質低下、エージェントが無関係な画面コンテキストに言及する
  • 根本原因: 生のアンビエントデータがフィルタリングをバイパスする、または関連性ゲートが許容範囲すぎる
  • 検出ルール: アンビエント観測が保存された記憶の30%以上を占める、またはトークンコストが$10/日を超える
  • 修正: 関連性スコアリングを厳格化。アンビエント観測を5分ウィンドウでバッチ処理。関連性を確認するために2つ以上のシグナルを要求。

実践例

シナリオ: トークン予算制約のある請求バグ調査

ユーザー報告: 「エンタープライズ顧客の請求計算が間違っています。」

ステップ1: コンテキスト予算割り当て (合計40K)

システム + アイデンティティ: 4K トークン (固定)
コアメモリ: 2K トークン (ユーザー設定、アクティブプロジェクト)
決定: 問題解決タスク → 関連性優先検索を使用
割り当て: 8K アーカイブ + 4K 想起 + 2K アンビエント + 15K 会話 + 5K 出力バッファ

ステップ2: 検索戦略の実行

# 請求関連記憶の広域意味検索
archival_candidates = vector_search(
    query="billing calculation enterprise customer error bug",
    top_k=20,
    filters={"project": ["billing", "payments"]}
)

# 真の関連性でリランク (埋め込み類似度だけではない)
reranked = rerank_results(archival_candidates, query, top_k=5)
# 結果: 純粋なベクトル検索では12位だった「3週間前のエンタープライズ割引ロジックバグ」を取得

# 最近の請求作業の時間的検索
recent_work = temporal_search(
    time_range="last_7_days",
    entity_filters=["billing", "enterprise"],
    max_results=3
)
# 結果: ユーザーは昨日、価格階層をデバッグしていた

ステップ3: アンビエントコンテキスト統合

# ユーザーが現在何をしているか確認
screen_summary = get_ambient_summary(last_30_minutes)
# 結果: 「ユーザーはbilling_calculator.pyを開いており、
#   calculate_enterprise_discount()関数を見ている」

# 予算チェック: 8K アーカイブ + 4K 最近 + 2K アンビエント = 14K (予算内)

ステップ4: 高速 vs 完全のトレードオフ エージェントには2つの選択肢がある:

  • 高速検索 (現在): 14Kコンテキスト、最近のバグパターンに焦点
  • 完全コンテキスト: git履歴、関連PR議論を追加 (+8Kトークン、予算超過)

決定: 最初の応答は高速検索を維持。ユーザーがより深い調査を求めた場合、拡張コンテキスト予算でフォローアップをトリガー。

エージェント応答品質:

  • 初心者アプローチ: 請求関連コンテキストをすべてダンプし、予算超過、混乱した応答になる
  • エキスパートアプローチ: 最も関連性の高い14Kコンテキストを厳選し、ベクトル検索だけでは見逃された3週間前の特定のエンタープライズ割引バグに言及、予算内に収まる

品質ゲート

  • コンテキストウィンドウ割り当てが階層 (システム/コア/取得/会話) 間で明示的に予算化されている
  • ルーチン的な対話でのリクエストあたりのトークン数平均が40K未満
  • アンビエント観測が保存前にフィルタリングパイプラインを通過する
  • 検索は2段階プロセス (広域検索 + リランキング) を使用する
  • すべてのトリガーが緊急度 (サイレント/バッジ/パッシブ/アクティブ/割り込み) で分類されている
  • 観測スキーマにタイムスタンプ、信頼度スコア、ソースが含まれている
  • フィルタパイプラインがテストされている: 取得コンテキストの30%未満が応答で未使用
  • ユーザーがアクティブ通知の20%未満を却下している (トリガースパムチェック)
  • エージェントがアーカイブにデフォルトするのではなく、利用可能な場合に最近の情報 (過去24時間) を参照する
  • ストレージ成長率がユーザーあたり100MB/週未満 (効率性チェック)

境界外

/always-on-agent-inputs を使用する場合:

  • ユーザー環境からどのデータをキャプチャするか決定する
  • トリガーと観測スキーマの構造化
  • コンテキストウィンドウ予算管理と検索戦略の選択
  • アンビエントデータがエージェントに到達する前のフィルタリング

使用しない場合:

  • メモリアーキテクチャ設計 (ベクトルストア、データベース、メモリ階層) → /always-on-agent-architecture を使用
  • アプリケーションとユースケースのアイデア出し → /always-on-agent-applications を使用
  • キャプチャされたデータのプライバシーと安全性 → /always-on-agent-safety を使用
  • 一般的なプロンプトエンジニアリング技術 → /prompt-engineer を使用
  • エージェント推論パターン → /agentic-patterns を使用

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.

関連スキル