ai-chat

GitHub

指导优化 Windmill AI 聊天(Copilot)全局模式,涵盖工具、提示词及上下文窗口管理。强调变更前后需进行 A/B 评估,优化上下文占用,并规范工具参数与返回结果以减少开销。

.claude/skills/ai-chat/SKILL.md windmill-labs/windmill

触发场景

编辑聊天工具或系统提示词 调整上下文窗口管理逻辑

安装

npx skills add windmill-labs/windmill --skill ai-chat -g -y
更多选项

非标准路径

npx skills add https://github.com/windmill-labs/windmill/tree/main/.claude/skills/ai-chat -g -y

不安装直接使用

npx skills use windmill-labs/windmill@ai-chat

指定 Agent (Claude Code)

npx skills add windmill-labs/windmill --skill ai-chat -a claude-code -g -y

安装 repo 全部 skill

npx skills add windmill-labs/windmill --all -g -y

预览 repo 内 skill

npx skills add windmill-labs/windmill --list

SKILL.md

Frontmatter
{
    "name": "ai-chat",
    "description": "Guidance for improving the Windmill AI chat (copilot), especially global mode — tools, prompts, and context-window discipline. Use when editing chat tools, system prompts, or tool-result shapes under frontend\/src\/lib\/components\/copilot\/chat, or when changing how the chat manages its context window."
}

Always benchmark before and after

No context or behavior change ships without an ai_evals A/B on the affected mode. Add or adjust cases for exactly what you changed — see the ai-evals skill for authoring and the full run reference.

Run the affected mode before your change and after, same model(s), same cases.

Measure the window first, and cumulative second

Optimize finalContextTokens (window occupancy — what drives overflow and compaction), then cumulative prompt tokens.

Context discipline

The dominant fixed cost is per-iteration overhead: the system prompt plus every tool schema is re-sent on every loop iteration. So:

  • Every tool and every parameter is a permanent tax. Justify each one and measure it; an extra "locate" round-trip can cost more than the reads it saves. Strip dead params rather than leaving them in the schema.
  • Tool results return the minimum. Never echo content the model already has. The canonical mistake: a write tool that returns the whole edited artifact right after the model authored it — return { success, message } instead. When you touch a shared write helper (e.g. finishAppDraftWrite in global/core.ts), re-check this invariant for all the write tools routing through it — the echo has regressed before via a shared refactor.

Prompts and tool descriptions are part of the surface

The system prompt and tool descriptions steer behavior as much as the tools themselves, and are benchmarkable the same way. A description that advertises truncation makes the model self-limit; the path-conventions block changes where drafts land. Treat prompt/description edits as real changes and A/B them — a pure-prompt change is a legitimate, measurable improvement.

版本历史

  • 574775d 当前 2026-08-20 17:31

同 Skill 集合

.agents/skills/adding-a-trigger/SKILL.md
.agents/skills/ai-chat/SKILL.md
.agents/skills/ai-evals/SKILL.md
.agents/skills/codebase-design/SKILL.md
.agents/skills/commit/SKILL.md
.agents/skills/domain-modeling/SKILL.md
.agents/skills/grilling/SKILL.md
.agents/skills/improve-codebase-architecture/SKILL.md
.agents/skills/local-review-codex/SKILL.md
.agents/skills/local-review/SKILL.md
.agents/skills/native-trigger/SKILL.md
.agents/skills/pr/SKILL.md
.agents/skills/refine/SKILL.md
.agents/skills/rust-backend/SKILL.md
.agents/skills/svelte-frontend/SKILL.md
.agents/skills/update-sqlx/SKILL.md
.claude/skills/adding-a-trigger/SKILL.md
.claude/skills/ai-evals/SKILL.md
.claude/skills/codebase-design/SKILL.md
.claude/skills/commit/SKILL.md
.claude/skills/domain-modeling/SKILL.md
.claude/skills/grilling/SKILL.md
.claude/skills/improve-codebase-architecture/SKILL.md
.claude/skills/local-review-codex/SKILL.md
.claude/skills/local-review/SKILL.md
.claude/skills/native-trigger/SKILL.md
.claude/skills/pr/SKILL.md
.claude/skills/refine/SKILL.md
.claude/skills/rust-backend/SKILL.md
.claude/skills/svelte-frontend/SKILL.md
.claude/skills/update-sqlx/SKILL.md
system_prompts/auto-generated/skills/cli-commands/SKILL.md
system_prompts/auto-generated/skills/preview/SKILL.md
system_prompts/auto-generated/skills/write-script-bun/SKILL.md
system_prompts/auto-generated/skills/write-script-bunnative/SKILL.md
system_prompts/auto-generated/skills/write-script-deno/SKILL.md
system_prompts/auto-generated/skills/write-workflow-as-code/SKILL.md
system_prompts/auto-generated/skills/raw-app/SKILL.md
system_prompts/auto-generated/skills/resources/SKILL.md
system_prompts/auto-generated/skills/schedules/SKILL.md
system_prompts/auto-generated/skills/triggers/SKILL.md
system_prompts/auto-generated/skills/write-flow/SKILL.md
system_prompts/auto-generated/skills/write-script-ansible/SKILL.md
system_prompts/auto-generated/skills/write-script-bash/SKILL.md
system_prompts/auto-generated/skills/write-script-bigquery/SKILL.md
system_prompts/auto-generated/skills/write-script-csharp/SKILL.md
system_prompts/auto-generated/skills/write-script-duckdb/SKILL.md
system_prompts/auto-generated/skills/write-script-go/SKILL.md
system_prompts/auto-generated/skills/write-script-graphql/SKILL.md

元信息

文件数
0
版本
7a0c81d
Hash
83ae3571
收录时间
2026-08-20 17:31

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-18 11:58
浙ICP备14020137号-1