Communitygithub.com

curiositech/windags-skills - 時間区間代数

計画立案や知識表現における時間関係の推論のための、アレンの時間区間代数に基づく定性時間推論スキルです。

windags-skills - 時間区間代数 とは?

このスキルは、計画立案、スケジューリング、知識表現における時間関係の推論を扱うための、アレンの時間区間代数(1983年)の実装です。「イベントAはイベントBの前に終了するか?」「Xがいつ起こったか正確にはわからないが、Yの間であったことだけはわかっている」といった、13の基本的な区間関係に基づく定性時間推論の問題を解決します。 主な機能は、時間的制約の一貫性チェック、制約伝播による新しい知識の統合、不確実性の下での選言的ラベルの管理、異なる時間スケールのイベントを扱うための参照区間階層の利用です。このスキルは、明確な開始と終了を持つ区間としてイベントをモデル化し、すべての区間ペアに対して13の関係(before, meets, overlaps, during, starts, finishes とその逆関係、および equal)からなる空でないラベルを維持します。 このスキルは、Claude Code, Cursor, Codex などのAIエージェントで使用することを想定して設計されています。単純なタイムスタンプ比較やメトリックな時間計算には使用せず、不確実性、漸進的な知識更新、階層的なスコープ管理を伴う定性時間推論に特化しています。 ワークフローは、新しい時間的アサーションを追加するたびに、まず既存の制約との整合性をチェックし、矛盾があれば即座に報告します。一貫性が確認された場合は、影響を受けるアークから制約伝播を実行し、関係ラベルを洗練します。また、知識ベースのサイズに依存しない効率的な推論を実現するために、参照区間階層を使用して伝播範囲を制限します。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/curiositech/windags-skills/tree/HEAD/skills/allen-cacm1983

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

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

ドキュメント

SKILL.md: 時間区間推論(アレン 1983)

このスキルを使用するタイミング

以下の状況に遭遇した場合にこのスキルをロードしてください:

トリガーとなる状況アレンの適用理由
「タスクAはタスクBの開始前に終了するか?」区間関係の分類が必要(before, meets, overlaps…)
「Xがいつ起こったか正確にはわからない。Yの間だったことだけがわかっている」13の関係にわたる選言的曖昧性
「この制約を追加しても、スケジュールはまだ成立するか?」制約伝播 + 非一貫性検出
「イベントAは毎日起こり、イベントBは毎年起こる。これらはどのように相互作用するか?」スコープ管理のための参照区間階層

使用しないでください:不確実性のない2つの絶対タイムスタンプを比較するだけであれば、単純な算術で十分です。


決定ポイント

新しい時間アサーションが追加された場合

IF アサーションが既存の制約と矛盾する場合:
    → 伝播中に空のアークラベルを検出
    → 即座に中断、矛盾する区間ペアを報告
    → 矛盾した状態で処理を続行しない

IF アサーションが一貫している場合:
    → 影響を受けるアークから制約伝播を実行
    → 推移性の結果を交差させることでラベルを更新
    → これ以上絞り込みできなくなるまで継続

時間的不確実性の処理

IF 証拠が複数の関係しかサポートしていない場合:
    → 完全な選言的ラベル {before, meets, overlaps} を維持
    → 証拠なしに単一の関係に絞り込まない
    → 制約セットがいつ、なぜ絞り込まれたかをログに記録

IF 不確実性下で行動を強いられた場合:
    → 計画のために選言的ラベルをそのまま使用
    → すべての仮定は撤回可能としてタグ付け
    → 早期のコミットメントを避ける

時間推論のスコープ設定

IF 異なるタイムスケールのイベントを扱う場合:
    → 参照区間階層を特定(年→月→日)
    → 各クラスター内で個別に推論
    → 境界に明示的なブリッジ制約を作成
    → すべてを1つのグローバルグラフにフラット化しない

IF 局所的な推論で十分と思われる場合:
    → クエリのスコープが参照区間レベルと一致することを確認
    → 関連するクラスター内でのみ伝播
    → 依存関係が検出された場合のみ、クロスクラスターにエスカレーション

状態の永続性

IF 状態が明示的な終了境界なしに継続する場合:
    → 永続性のデフォルトを適用し、かつ撤回可能としてマーク
    → 将来の終了境界アサーションはデフォルトを上書き
    → 永続性の仮定をハード制約として扱わない

IF 明示的な時間的境界が提供された場合:
    → 既存の永続性デフォルトを上書き
    → 新しい制約を通常どおり伝播

障害モード

アンチパターン症状診断修正
点化イベントをタイムスタンプに還元し、重複/包含情報を喪失time=14:30 の代わりに [14:30, 14:45] 区間を使用すべてのイベントを開始/終了を持つ区間としてモデル化。期間が不明でも
時期尚早なコミットメント証拠が複数をサポートするときに単一の関係を選択「〜の間でない」ことだけしかわかっていないのに「前」を主張証拠が絞り込みを強制するまで完全な選言的ラベルを維持
グローバル伝播爆発更新ごとにO(N²)コスト、KBサイズに応じて性能低下ローカルクエリのためにグラフ全体で制約伝播を実行参照区間階層を使用して伝播スコープを制限
空ラベル否定一貫性検出後も推論を継続矛盾する制約が無視されたため無意味な結果を得る空のアークラベルをSUCCESS(非一貫性を早期に捕捉)として扱い、即座に中断
永続性の硬直性「変更されるまで継続」の仮定を上書きできない新しい時間的境界が永続性と競合するため拒否されるすべての永続性デフォルトを撤回可能としてタグ付けし、明示的なアサーションによる上書きを許可

検出ルール:

  • 期間のないタイムスタンプを見たら → 点化
  • 任意に選択された単一の関係を見たら → 時期尚早なコミットメント
  • 伝播コストがKB全体のサイズに応じて増加したら → グローバル伝播爆発
  • 空ラベル後に推論を継続したら → 空ラベル否定
  • 新しい時間的事実が拒否されたら → 永続性の硬直性

実例

例1: 会議スケジュールの競合検出

シナリオ: 「クライアントコール」と「エンジニアリングスタンドアップ」が既に入っているカレンダーに「チームレビュー」を追加

初期状態:

クライアントコール (I₁): [10:00, 11:00]
エンジニアリングスタンドアップ (I₂): [11:30, 12:00]
既知: I₁ {before} I₂

新しいアサーション: チームレビュー (I₃): [10:45, 11:15]

エキスパートの推論トレース:

  1. 新しい関係を分類:

    • I₃ vs I₁: 10:45に開始、I₁は11:00に終了 → {overlaps}
    • I₃ vs I₂: 11:15に終了、I₂は11:30に開始 → {before}
  2. 制約伝播:

    • I₁ {before} I₂ と I₃ {overlaps} I₁ から
    • 推移性: overlaps ∘ before = {before, overlaps, meets, starts, during}
    • 新しい制約: I₃ {before, overlaps, meets, starts, during} I₂
    • I₃ {before} I₂ と交差: ラベルは {before} になる
  3. 一貫性チェック: すべてのラベルが空でない → スケジュールは実行可能だが重複あり

初心者が見逃す点:

  • I₃とI₁の重複がリソース競合を引き起こすことをチェックしない可能性
  • 推移性が一貫性を維持していることを確認しない可能性
  • 「実行可能な順序」と「リソース競合の不在」を区別しない可能性

エキスパートが捕捉する点:

  • 重複検出が関係分類によって即座にフラグされる
  • 伝播によってグローバルな一貫性が維持されることを確認
  • 時間的実現可能性とリソース可用性の明確な区別

例2: プロセスフェーズの依存関係

シナリオ: タスク完了時間に不確実性があるデプロイパイプライン

初期状態:

ビルドフェーズ (B): 期間不明、デプロイの前に終了する必要あり
テストフェーズ (T): ビルドの終わりと重複、期間不確定
デプロイフェーズ (D): BとTの両方が完了した後に開始

制約ネットワーク:

T {overlaps, finishes} B  (テストはビルドと同時に終了するか、それより前に終了できる)
B {before, meets} D       (ビルドはデプロイの前に完了しなければならない)
T {before, meets} D       (テストはデプロイの前に完了しなければならない)

新しい情報: 「テストで重大なバグが見つかり、2時間延長」

エキスパートの推論:

  1. 更新がスコープに影響: テスト延長によりTの終了点が後ろにずれる
  2. 伝播: T {finishes} B だった場合、現在は T {overlaps} B(ビルド終了を超えて延長)
  3. 一貫性チェック: T {overlaps} B でも B {before, meets} D と T {before, meets} D は許容される
  4. 結果: デプロイは遅延するが、パイプラインロジックは維持される

初心者が見逃す点:

  • テスト完了がビルド-デプロイの依存関係に影響しないと想定する可能性
  • テスト延長の影響をデプロイのタイミングに伝播しない可能性
  • 「テスト延長」を制約ネットワークの更新ではなく、孤立した事実として扱う可能性

エキスパートが捕捉する点:

  • テスト-ビルド関係を再評価する必要があることを認識
  • タイミングの影響を制約ネットワーク全体に伝播
  • 不確実性を適切に維持(デプロイはビルド直後、または延長されたテスト後のいずれかで開始可能)

品質ゲート

時間推論タスクは、以下の条件が満たされた場合に完了します:

  • すべての区間が明示的な開始/終了境界で表現されている(点イベントなし)
  • すべての区間ペアが13の関係語彙からの空でないアークラベルを持っている
  • 制約伝播が完了まで実行された(保留中の推移性更新なし)
  • すべての選言的ラベルが現在の証拠を正直に反映している(恣意的なコミットメントなし)
  • マルチスケール推論のための参照区間階層が確立されている
  • 該当する場合、永続性のデフォルトが撤回可能としてタグ付けされている
  • 非一貫性検出が検証されている(空ラベルが捕捉され報告される)
  • クロスリファレンスのスコープブリッジが明示的に定義されている
  • すべての時間アサーションが証拠ソースにトレースされている
  • クエリスコープが推論の粒度レベルと一致している

適用外の境界

アレンの区間代数を以下の目的で使用しないでください:

  • 単純なタイムスタンプ比較 → 算術を使用: if (t1 < t2)
  • メトリックな期間計算 → カレンダー算術を使用: end_date - start_date
  • リアルタイムスケジューリング最適化 → 数値ドメインを持つ制約充足問題を使用
  • 確率的時間推論 → 時間確率ネットワークを使用
  • 連続時間ダイナミクス → 微分方程式を使用
  • 高頻度イベントストリーム → ストリーム処理フレームワークを使用

代わりに委譲してください:

  • メトリック制約の場合: 数値ドメインを持つ制約充足問題 を使用
  • 確率的時間推論の場合: ベイズ時間ネットワーク を使用
  • リアルタイムシステムの場合: レート単調スケジューリング を使用
  • 連続ダイナミクスの場合: 時間論理モデル検査 を使用
  • イベントストリーム処理の場合: 複合イベント処理 を使用

アレンが優れている点: 不確実性、漸進的な知識更新、階層的なスコープ管理を伴う定性時間推論。

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.

関連スキル