Code Runner Agent Skill 来了!
在 AI 智能体时代,Agent Skills 就像给 Claude、GitHub Copilot 这样的 AI 助手配备了一个"专业工具箱"。简单来说,Agent Skills 让 AI 从一个"聪明的实习生"变成了拥有"专家智库"的 CEO,需要解决什么问题,就立刻召唤对应的专家上场。Code Runner Agent Skill 是一个专门为代码执行场景设计的技能包,它让 AI Agent
大家好!我是韩老师。
今天给大家带来一个好消息:Code Runner Agent Skill 正式来了!
为什么需要 Agent Skills?
相信大家对 Claude Skills 已经很熟悉了。
而就在 12 月 18 日,Anthropic 把 Agent Skills 作为开放的标准,发布了相应的 specification,以便让任何的 AI 平台可以集成:
https://agentskills.io/

在 AI 智能体时代,Agent Skills 就像给 Claude、GitHub Copilot 这样的 AI 助手配备了一个"专业工具箱"。它解决了传统 AI 交互的三大痛点:
1. 告别重复指导:每次对话不再需要重新说明工作流程,技能包创建一次,AI 就能在所有对话中自动使用
2. 高效利用资源:采用"渐进式加载"机制,AI 只在需要时才调用技能,避免上下文窗口爆炸
3. 专业能力加持:将通用 AI 转变为特定领域的专家,比如代码执行、文档处理、数据分析等
简单来说,Agent Skills 让 AI 从一个"聪明的实习生"变成了拥有"专家智库"的 CEO,需要解决什么问题,就立刻召唤对应的专家上场。
目前,GitHub Copilot coding agent, GitHub Copilot CLI 和 VS Code Insiders 都已经支持了 Agent Skills。
Code Runner Agent Skill 是什么?
Code Runner Agent Skill 是一个专门为代码执行场景设计的技能包,它让 AI Agent 运行超过 35 种的编程语言。
https://github.com/formulahendry/agent-skill-code-runner

如何使用 Code Runner Agent Skill?
我们以 VS Code Insiders 为例。
首先,安装最新的 VS Code Insiders,然后打开 chat.useAgentSkills 开关。

下载并在 VS Code Insiders 打开 agent-skill-code-runner:
git clone https://github.com/formulahendry/agent-skill-code-runner
在 Copilot Chat 中,尝试列出所有的 Agent Skills:

试试调用 Agent Skill:
Use Java to check how many CPUs do I have in my machine?

然后允许运行 Agent Skill:

嗯!我有 22 个 CPU~
Code Runner Agent Skill 是怎么写出来的?
很简单!用 Agent 开发 Agent Skill~
以下就是我的初始 prompt:
Please fetch and read below artilces first to understand Agent Skills and Code Runner, if needed, try to fetch more artilces related.Agent Skills:https://agentskills.io/homehttps://agentskills.io/what-are-skillshttps://agentskills.io/specificationhttps://agentskills.io/integrate-skillshttps://code.visualstudio.com/docs/copilot/customization/agent-skillsCode Runner:https://github.com/formulahendry/vscode-code-runnerhttps://github.com/formulahendry/mcp-server-code-runner
I want to create a Code Runner Agent Skill to support running most popular programming languages.If 'scripts/' is needed, I prefer using js.
后面进行了一些小的迭代,很快就完成了!
目前还是初始的版本,欢迎大家试用或者围观:
https://github.com/formulahendry/agent-skill-code-runner
代码完全开源!
更多推荐




所有评论(0)