Skip to content

Commit 77136f8

Browse files
committed
add skills
1 parent f23fa13 commit 77136f8

5 files changed

Lines changed: 29 additions & 3 deletions

File tree

docs/.vitepress/data/xmake-release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export const xmakeRelease = {
33
"name": "",
44
"url": "https://github.com/xmake-io/xmake/releases/latest",
55
"publishedAt": "",
6-
"fetchedAt": ""
6+
"fetchedAt": "2026-04-15T10:26:55.181Z"
77
}

docs/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ function nav(): DefaultTheme.NavItem[] {
8383
{
8484
text: 'Resources',
8585
items: [
86-
{ text: 'Xmake Packages', link: 'https://xmake.microblock.cc/' }
86+
{ text: 'Xmake Packages', link: 'https://xmake.microblock.cc/' },
87+
{ text: 'Xmake Skills', link: 'https://github.com/xmake-io/xmake-skills' }
8788
]
8889
},
8990
{

docs/guide/best-practices/ai-qa-optimization.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ Please read https://xmake.io/llms-full.txt first to understand xmake's API and f
2323
How do I configure a target that uses C++20 modules?
2424
```
2525

26+
## Use Xmake Agent Skills
27+
28+
For AI coding assistants that support the [Agent Skills](https://www.anthropic.com/news/agent-skills) format (such as Claude Code), [**xmake-skills**](https://github.com/xmake-io/xmake-skills) provides a curated collection of task-focused skills covering project configuration, toolchains, cross-compilation, packages, testing, packaging, scripting, performance tuning, troubleshooting, and per-language support (Rust, Go, Swift, CUDA, Objective-C, D, Fortran, etc.).
29+
30+
Each skill is grounded in real xmake behavior and describes *when* the agent should load it, so the assistant pulls in only the documentation relevant to the task at hand — avoiding hallucinated APIs and outdated flags.
31+
32+
```bash
33+
git clone https://github.com/xmake-io/xmake-skills.git
34+
```
35+
36+
Then point your agent at the `skills/` directory, or install individual skills following your agent platform's documentation.
37+
2638
## Provide Complete Context Information
2739

2840
When asking questions, try to provide complete context information, including:

docs/zh/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ function nav(): DefaultTheme.NavItem[] {
158158
{
159159
text: '资源',
160160
items: [
161-
{ text: 'Xmake 包仓库', link: 'https://xmake.microblock.cc/' }
161+
{ text: 'Xmake 包仓库', link: 'https://xmake.microblock.cc/' },
162+
{ text: 'Xmake Skills', link: 'https://github.com/xmake-io/xmake-skills' }
162163
]
163164
},
164165
{

docs/zh/guide/best-practices/ai-qa-optimization.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@
2323
如何配置一个使用 C++20 模块的目标?
2424
```
2525

26+
## 使用 Xmake Agent Skills
27+
28+
对于支持 [Agent Skills](https://www.anthropic.com/news/agent-skills) 格式的 AI 编程助手(例如 Claude Code),[**xmake-skills**](https://github.com/xmake-io/xmake-skills) 提供了一套按任务组织的 skill 集合,覆盖工程配置、工具链、交叉编译、包管理、测试、打包、脚本扩展、性能优化、故障排查,以及各语言(Rust、Go、Swift、CUDA、Objective-C、D、Fortran 等)的支持。
29+
30+
每个 skill 都基于 xmake 的真实行为编写,并在 description 中清晰描述了 *何时* 应被加载,这样 AI 助手就能按需拉取与当前任务相关的文档,避免编造 API 或使用过时的参数。
31+
32+
```bash
33+
git clone https://github.com/xmake-io/xmake-skills.git
34+
```
35+
36+
然后将 `skills/` 目录指向你的 Agent,或参考对应 Agent 平台的文档安装单个 skill。
37+
2638
## 提供完整的上下文信息
2739

2840
在提问时,尽量提供完整的上下文信息,包括:

0 commit comments

Comments
 (0)