vardoger-analyze
它能做什么
这个助手会分析你过去与 GitHub Copilot CLI 的对话记录。它会了解你的使用习惯,并生成一个指令文件,让 Copilot 能够适应你的风格。
适用场景
- ✓当你希望 Copilot 记住你的使用偏好时。
- ✓当你希望 Copilot 更好地适应你的任务时。
- ✓当你要求个性化设置或分析你的 Copilot 使用历史时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/vardoger-analyze/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“根据我的历史记录,帮我个性化设置 Copilot。”
每周 5 个新技能,1 分钟读完。
工作原理
它会读取你过去的 Copilot 对话,找出你使用习惯中的规律,并将这些观察结果写入一个特殊文件,让 Copilot 据此进行调整。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Analyze Copilot CLI history and generate personalized instructions
Drive the local vardoger CLI to read the user's GitHub Copilot CLI conversation history, extract behavioral patterns, and write a personalization block into ~/.copilot/copilot-instructions.md.
How it works
vardoger prepares the history in batches. You (the assistant) summarize each batch for behavioral signals, then synthesize all summaries into a final personalization. vardoger writes the result, fenced by <!-- vardoger:start --> / <!-- vardoger:end --> markers so any hand-authored rules in the same file are preserved.
Sandbox note (read before running any command)
vardoger reads and writes files outside the current workspace:
- Reads Copilot CLI history from
~/.copilot/session-state/. - Writes a checkpoint state file to
~/.vardoger/state.json(created on first run). - Writes the final personalization to
~/.copilot/copilot-instructions.md.
When the host asks to approve a vardoger command, grant it write access beyond the workspace. Otherwise the first vardoger prepare call will fail with PermissionError: ... ~/.vardoger/state.tmp because the sandbox blocks writes outside the current working directory.
Workflow
- Verify the
vardogerCLI is installed and fail fast with install guidance if not. - Check staleness with
vardoger status --platform copilot --jsonand stop early if the personalization is still fresh. - Get batch metadata with
vardoger prepare --platform copilotto learn the number of batches. - For each batch, run
vardoger prepare --platform copilot --batch <N>and write a concise bullet summary of the behavioral signals. - Get the synthesis prompt with
vardoger prepare --platform copilot --synthesize. - Synthesize all batch summaries into a single personalization following the synthesis prompt.
- Write the result by piping the personalization into
vardoger write --platform copilot --scope global(or--scope project --project <path>). - Report back to the user what was written, where, and that the write is idempotent.
Steps
1. Verify vardoger is installed
if ! command -v vardoger >/dev/null 2>&1; then
cat <<'INSTALL_EOF'
vardoger CLI is not installed.
This skill calls the `vardoger` CLI to read your Copilot CLI history and
write a personalization file, so the CLI must be on PATH.
Install options:
# Recommended:
pipx install vardoger
# Or run without installing:
uvx vardoger --help
If you do not have pipx, see https://pipx.pypa.io/stable/installation/.
Project page: https://github.com/dstrupl/vardoger
After installing, re-run the personalization request.
INSTALL_EOF
exit 1
fi
2. Check if a refresh is needed
vardoger status --platform copilot --json
If the output shows "is_stale": false, tell the user their personalization is up to date and ask if they want to re-run anyway. If stale or never generated, continue with the analysis.
3. Get batch metadata
vardoger prepare --platform copilot
This prints JSON like {"batches": 3, "total_conversations": 29}. Note the number of batches. Tell the user: "Found N conversations in M batches. Analyzing..."
4. Summarize each batch
For each batch number from 1 to N, run:
vardoger prepare --platform copilot --batch 1
The output contains a summarization prompt followed by conversation data. Read the output carefully and produce a concise bullet-point summary of the behavioral signals you observe in that batch. Keep your summary for later.
Tell the user which batch you are processing: "Analyzing batch 1 of N..."
Repeat for all batches (--batch 2, --batch 3, etc.).
5. Get the synthesis prompt
vardoger prepare --platform copilot --synthesize
6. Synthesize the personalization
Following the synthesis prompt, combine all your batch summaries into a single personalization. The output should be clean markdown with actionable instructions for an AI assistant.
7. Write the result
Pipe your personalization to vardoger:
echo "YOUR_PERSONALIZATION_HERE" | vardoger write --platform copilot --scope global
Replace YOUR_PERSONALIZATION_HERE with the actual personalization markdown you generated. --scope global writes to ~/.copilot/copilot-instructions.md; use --scope project --project <path> to scope the write to a specific repository instead.
8. Report to the user
…
常见问题
我的对话历史保存在哪里?
你的对话保存在电脑上的 `~/.copilot/session-state/` 文件夹中。
助手会把指令保存到哪里?
个性化指令保存在 `~/.copilot/copilot-instructions.md` 文件中。
这会把我的对话发送到其他地方吗?
不会,所有操作都在你的电脑上完成,不会发送到外部。
详情
作者的原始描述
Use when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation history. Reads the local session directory at `~/.copilot/session-state/`, extracts recurring preferences and conventions, and writes a fenced personalization block into `~/.copilot/copilot-instructions.md`. Runs entirely on the user's machin
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7469
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。