Communitygithub.com

curiositech/windags-skills

如何为始终在线的 AI 智能体设计上下文输入,涵盖数据馈送、观察结构、触发器设计以及上下文窗口预算管理。

windags-skills 是什么?

该技能专注于为始终在线的 AI 智能体设计上下文输入,解决“智能体应该观察什么”这一核心问题。它详细介绍了如何从用户环境中捕获原始信号(如屏幕内容、音频、日历事件),如何结构化观察数据,以及如何设计有效的触发器来唤醒智能体。技能还提供了上下文窗口预算分配的决策框架,包括根据不同任务类型(如对话、问题解决、上下文切换)选择检索策略(如时间优先、语义优先、频率优先)。此外,它涵盖了环境数据过滤流水线、触发器紧急度分级(主动、徽章、被动、静默)以及失败模式(如模式膨胀、检索抖动、触发器垃圾信息)的检测与修复方法。该技能支持 Claude Code、Cursor 等平台,通过 SKILL.md 文档中的决策表格、工作示例和质量门禁提供可操作的指导,帮助开发者构建高效、低噪声的始终在线智能体。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

/always-on-agent-inputs — 为持久化智能体提供上下文

您正在设计一个始终在线智能体的所见、所闻和所知。架构技能处理记忆的存储位置。本技能处理记忆的内容——原始信号、结构化方式、智能体何时被唤醒,以及如何保持上下文窗口的诚实。


决策点

检索策略选择

Agent Task Type → Retrieval Strategy

IF conversational/chat:
  ├─ Use recency-first (70% temporal, 30% semantic)
  ├─ Budget: 15K conversation history + 4K recent recall
  └─ Skip archival unless user asks "remember when..."

IF problem-solving/debugging:
  ├─ Use relevance-first (60% semantic, 40% temporal)
  ├─ Budget: 8K archival + 4K recall + 2K ambient
  └─ Include error patterns from past solutions

IF context-switch detected:
  ├─ Use frequency-based (what does user work on most?)
  ├─ Budget: 6K project context + 2K recent + 4K goals
  └─ Pull entity history for active files/people

IF scheduled trigger (morning briefing):
  ├─ Use structured agenda (calendar + tasks + updates)
  ├─ Budget: 4K calendar + 4K unfinished tasks + 2K changes
  └─ No conversation history needed

IF reactive trigger (CI failure, meeting starting):
  ├─ Use event-specific context loading
  ├─ Budget: 8K event context + 4K related history
  └─ Skip general conversation unless relevant

环境数据过滤

Screen/Audio Observation → Filter Decision

IF same app + same text for >5 minutes:
  └─ DISCARD (no change, noise)

IF app switch detected:
  ├─ KEEP transition record
  └─ Score relevance of new app content

IF high-signal keywords found:
  ├─ Check against active projects/goals
  ├─ IF match score >0.6 → STORE to archival + recall
  ├─ IF match score 0.3-0.6 → STORE to recall only
  └─ IF match score <0.3 → DISCARD

IF technical error/exception visible:
  ├─ ALWAYS STORE (debugging context)
  └─ Tag with urgency level

IF calendar event mentioned:
  ├─ ALWAYS STORE (temporal anchor)
  └─ Cross-reference with actual calendar

触发器紧急度分配

Event Type + Context → Urgency Level

IF CI failure:
  ├─ Production branch → ACTIVE (notify user)
  ├─ Feature branch + user currently coding → PASSIVE (mention when user next engages)
  └─ Old branch/PR → SILENT (log only)

IF meeting starting:
  ├─ <5 minutes → ACTIVE (interrupt with prep)
  ├─ 5-15 minutes → BADGE (show prep available)
  └─ >15 minutes → SILENT (prep in background)

IF code change detected:
  ├─ First commit on new branch → PASSIVE (note new work)
  ├─ Commit fixes previous error → PASSIVE (note resolution)
  └─ Regular commits → SILENT (track progress)

IF mentioned in Slack:
  ├─ Direct message → ACTIVE (respond needed)
  ├─ Channel mention + urgent keywords → ACTIVE
  └─ Channel mention, normal → BADGE (review when convenient)

失败模式

模式膨胀

  • 症状: 上下文窗口持续达到上限,响应缓慢,尽管有过滤但 Token 成本高
  • 根本原因: 观察模式捕获了每个字段,而不是仅捕获智能体推理所需的字段
  • 检测规则: 如果平均上下文大小 >50K Token 或观察存储 >1MB/天,则存在模式膨胀
  • 修复: 每月审计模式。删除过去30天内未影响决策的字段。使用摘要而非原始存储。

检索抖动

  • 症状: 智能体引用过时信息,遗漏近期上下文,或重复检索不相关的记忆
  • 根本原因: 单次向量检索未重排序,或时间/语义权重调整不当
  • 检测规则: 如果 >30% 的检索上下文在响应中未被使用,或用户纠正智能体关于近期事件的信息
  • 修复: 实施两阶段检索(广泛搜索 + 重排序)。A/B 测试不同的时间/语义权重比率。

触发器噪音

  • 症状: 用户禁用智能体通知,抱怨被打断,或智能体被忽略
  • 根本原因: 无紧急度分级,或主动/打断触发器的阈值设置过低
  • 检测规则: 如果用户关闭 >50% 的主动通知,或用户平均参与间隔 >4 小时
  • 修复: 默认所有设置为静默。让用户明确配置什么值得主动通知。跟踪关闭率。

上下文陈旧

  • 症状: 智能体基于过时信息行动,错过用户变更焦点/项目
  • 根本原因: 上下文无时效衰减,或检索权重未充分考虑近期性
  • 检测规则: 如果智能体引用超过7天的信息而近期上下文存在,或提及已完成的项目
  • 修复: 对相关性评分添加指数衰减。将近期观察的权重设为档案的 2-3 倍。

环境噪音泛滥

  • 症状: 成本高,响应质量差,智能体提及无关的屏幕内容
  • 根本原因: 原始环境数据绕过过滤,或相关性门控设置过于宽松
  • 检测规则: 如果环境观察占存储记忆的 >30%,或 Token 成本 >$10/天
  • 修复: 收紧相关性评分。将环境观察批量处理为5分钟窗口。需要2个以上信号确认相关性。

工作示例

场景:受限 Token 预算下的账单 Bug 调查

用户报告:“企业客户的账单计算有误。”

第1步:上下文预算分配(总计40K)

System + Identity: 4K tokens (fixed)
Core Memory: 2K tokens (user preferences, active projects)
DECISION: Problem-solving task → use relevance-first retrieval
Allocated: 8K archival + 4K recall + 2K ambient + 15K conversation + 5K output buffer

第2步:检索策略执行

# Broad semantic search for billing-related memories
archival_candidates = vector_search(
    query="billing calculation enterprise customer error bug",
    top_k=20,
    filters={"project": ["billing", "payments"]}
)

# Rerank by true relevance (not just embedding similarity)
reranked = rerank_results(archival_candidates, query, top_k=5)
# Result: Gets "enterprise discount logic bug from 3 weeks ago" 
# that pure vector search ranked #12

# Temporal search for recent billing work
recent_work = temporal_search(
    time_range="last_7_days",
    entity_filters=["billing", "enterprise"],
    max_results=3
)
# Result: User was debugging pricing tiers yesterday

第3步:环境上下文集成

# Check what user is currently doing
screen_summary = get_ambient_summary(last_30_minutes)
# Result: "User has billing_calculator.py open, looking at 
# calculate_enterprise_discount() function"

# Budget check: 8K archival + 4K recent + 2K ambient = 14K (under budget)

第4步:快速与完整权衡 智能体有两个选择:

  • 快速检索(当前): 14K 上下文,聚焦近期 Bug 模式
  • 完整上下文: 添加 Git 历史、相关 PR 讨论(+8K Token,超出预算)

决定: 初始响应采用快速检索。如果用户要求深入调查,则触发后续扩展上下文预算。

智能体响应质量:

  • 新手方法: 将所有账单相关上下文倾倒出来,超出预算,得到混乱的响应
  • 专家方法: 精选14K最相关上下文,提到了纯向量检索会遗漏的3周前的企业折扣 Bug,并保持在预算内

质量门禁

  • 上下文窗口分配在各层级(系统/核心/检索/对话)之间明确预算
  • 每次请求的平均 Token 总数在日常交互中 <40K
  • 环境观察在存储前经过相关性流水线过滤
  • 检索使用两阶段过程(广泛搜索 + 重排序)
  • 所有触发器按紧急度分类(静默/徽章/被动/主动/打断)
  • 观察模式包含时间戳、置信度分数和来源
  • 过滤流水线已测试:响应中未使用的检索上下文 <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.

相关技能