|
1 | 1 | <div align="center"> |
2 | 2 | <img src="docs/img/nsc-logo.png" alt="SkCC Logo" width="100" /> |
3 | 3 | <h1>SkCC</h1> |
4 | | - <p><b><i>Write Once, Run Anywhere for AI Agent Skills</i></b></p> |
| 4 | + <p><b><i>Compilation for Skills: Capable, Portable, and Securable</i></b></p> |
5 | 5 | <p> |
6 | 6 | <img src="https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge" alt="License"/> |
7 | | - <img src="https://img.shields.io/badge/Rust-1.75%2B-orange.svg?style=for-the-badge" alt="Rust"/> |
| 7 | + <img src="https://img.shields.io/badge/Rust-1.85%2B-orange.svg?style=for-the-badge" alt="Rust"/> |
8 | 8 | <img src="https://img.shields.io/badge/Platforms-4-blueviolet.svg?style=for-the-badge" alt="Platforms"/> |
| 9 | + <img src="https://img.shields.io/badge/Paper-ACM_CAIS_2026_AgentSkills'26-7c3aed.svg?style=for-the-badge" alt="Paper"/> |
9 | 10 | </p> |
10 | 11 |
|
11 | | - **中文版** | **[English](#english)** |
| 12 | + 🌐 **Website**: [skcc.nexa-lang.com](https://skcc.nexa-lang.com) · 📄 **arXiv**: [2605.03353](https://arxiv.org/abs/2605.03353) |
12 | 13 |
|
13 | 14 | 📚 **文档**: [中文](docs/USER_GUIDE.md) | [API Reference](docs/API_REFERENCE.md) |
14 | 15 | </div> |
@@ -52,7 +53,7 @@ nsc init my-skill |
52 | 53 |
|
53 | 54 | ## ⚡ 什么是 SkCC? |
54 | 55 |
|
55 | | -**SkCC** 是一个将经典编译器设计引入 Agent 技能开发的编译框架。通过四阶段流水线——前端格式解析、中间表示构建、语义分析与安全增强(Anti-Skill Injection)、多态后端生成——它将统一的 `SKILL.md` 源文件转换为面向 Claude Code、OpenAI Codex、Google Gemini CLI 和 Kimi CLI 的平台原生技能产物。该架构将适配复杂度从 $O(m \times n)$ 降至 $O(m + n)$,同时解决格式敏感性和安全漏洞两大挑战。 |
| 56 | +**SkCC**(Skill Compiler for Cross-framework LLM Agents)是一个将经典编译器设计引入 Agent 技能开发的编译框架。通过四阶段流水线——Syntax Parser → IR Builder → Security Optimizer → Target Emitter——它将统一的 `SKILL.md` 源文件编译为面向 Claude Code、OpenAI Codex、Google Gemini CLI 和 Kimi CLI 的平台原生技能产物。核心创新在于 **SkIR**(统一中间表示),将技能语义与框架格式解耦,将适配复杂度从 $O(m \times n)$ 降至 $O(m + n)$,同时通过编译期 Anti-Skill Injection 实现安全加固。论文已被 **ACM CAIS 2026 — AgentSkills'26 Workshop** 接收(poster)。 |
56 | 57 |
|
57 | 58 | --- |
58 | 59 |
|
@@ -205,6 +206,9 @@ SkCC 遵循经典的四阶段编译器架构: |
205 | 206 | - ✅ Anti-Skill 注入(94.8% 覆盖率,4 类规则) |
206 | 207 | - ✅ 亚 10ms 编译延迟 |
207 | 208 | - ✅ 渐进式路由清单生成 |
| 209 | +- ✅ LLM 语义检查(可选 `semantic-check` feature) |
| 210 | +- ✅ npm 包 + VS Code 扩展 |
| 211 | +- ✅ 论文被 ACM CAIS 2026 — AgentSkills'26 Workshop 接收 |
208 | 212 |
|
209 | 213 | ### 计划中 |
210 | 214 | - 🔲 基于漏洞语料库的自动反模式发现 |
@@ -247,15 +251,15 @@ MIT License - 详见 [LICENSE](LICENSE)。 |
247 | 251 |
|
248 | 252 | ## 📖 引用 |
249 | 253 |
|
250 | | -如果您在研究中使用了 SkCC,请引用: |
| 254 | +如果您在研究中使用了 SkCC,请引用我们的论文(已被 ACM CAIS 2026 — AgentSkills'26 Workshop 接收): |
251 | 255 |
|
252 | 256 | ```bibtex |
253 | | -@misc{ouyang2026skcc, |
| 257 | +@inproceedings{ouyang2026skcc, |
254 | 258 | title = {SkCC: Portable and Secure Skill Compilation for Cross-Framework LLM Agents}, |
255 | 259 | author = {Yipeng Ouyang and Yi Xiao and Yuhao Gu and Xianwei Zhang}, |
| 260 | + booktitle = {Proceedings of the AgentSkills'26 Workshop at ACM CAIS 2026}, |
256 | 261 | year = {2026}, |
257 | | - eprint = {2605.03353}, |
258 | | - archivePrefix = {arXiv}, |
| 262 | + note = {arXiv:2605.03353}, |
259 | 263 | } |
260 | 264 | ``` |
261 | 265 |
|
@@ -312,7 +316,7 @@ nsc init my-skill |
312 | 316 |
|
313 | 317 | ## ⚡ What is SkCC? |
314 | 318 |
|
315 | | -**SkCC** is a compilation framework that introduces classical compiler design into agent skill development. Through a four-phase pipeline—Frontend parsing, IR construction, Analyzer validation (with Anti-Skill Injection), and Backend emission—it transforms a unified `SKILL.md` source into platform-native skill artifacts for Claude Code, OpenAI Codex, Google Gemini CLI, and Kimi CLI. The architecture reduces adaptation complexity from $O(m \times n)$ to $O(m + n)$ while simultaneously addressing format sensitivity and security vulnerability challenges. |
| 319 | +**SkCC** (Skill Compiler for Cross-framework LLM Agents) introduces classical compilation design into agent skill development. Through a four-phase pipeline—Syntax Parser → IR Builder → Security Optimizer → Target Emitter—it compiles a unified `SKILL.md` source into platform-native skill artifacts for Claude Code, OpenAI Codex, Google Gemini CLI, and Kimi CLI. The core innovation is **SkIR**, a unified intermediate representation that decouples skill semantics from framework-specific formatting, reducing adaptation complexity from $O(m \times n)$ to $O(m + n)$ while providing compile-time security hardening via Anti-Skill Injection. The paper has been accepted at **ACM CAIS 2026 — AgentSkills'26 Workshop** (poster). |
316 | 320 |
|
317 | 321 | --- |
318 | 322 |
|
@@ -413,11 +417,11 @@ The same Kimi-compiled format tested on three models proves compilation gains ar |
413 | 417 |
|
414 | 418 | ## 🏗️ Architecture |
415 | 419 |
|
416 | | -SkCC follows a classic four-phase compiler architecture: |
| 420 | +SkCC follows a classic four-phase compiler architecture, inspired by LLVM and MLIR: |
417 | 421 |
|
418 | 422 | ``` |
419 | 423 | ┌─────────────────────────────────────────────────────────────────┐ |
420 | | -│ SkCC Pipeline │ |
| 424 | +│ SkCC Compilation Pipeline │ |
421 | 425 | ├─────────────────────────────────────────────────────────────────┤ |
422 | 426 | │ │ |
423 | 427 | │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ |
@@ -466,6 +470,9 @@ SkCC follows a classic four-phase compiler architecture: |
466 | 470 | - ✅ Anti-Skill Injection (94.8% coverage, 4 rule categories) |
467 | 471 | - ✅ Sub-10ms compilation latency |
468 | 472 | - ✅ Progressive routing manifest generation |
| 473 | +- ✅ LLM semantic check (optional `semantic-check` feature) |
| 474 | +- ✅ npm package + VS Code extension |
| 475 | +- ✅ Paper accepted at ACM CAIS 2026 — AgentSkills'26 Workshop |
469 | 476 |
|
470 | 477 | ### Planned |
471 | 478 | - 🔲 Automated anti-pattern discovery from vulnerability corpora |
@@ -508,15 +515,15 @@ MIT License - see [LICENSE](LICENSE) for details. |
508 | 515 |
|
509 | 516 | ## 📖 Citation |
510 | 517 |
|
511 | | -If you use SkCC in your research, please cite: |
| 518 | +If you use SkCC in your research, please cite our paper (accepted at ACM CAIS 2026 — AgentSkills'26 Workshop): |
512 | 519 |
|
513 | 520 | ```bibtex |
514 | | -@misc{ouyang2026skcc, |
| 521 | +@inproceedings{ouyang2026skcc, |
515 | 522 | title = {SkCC: Portable and Secure Skill Compilation for Cross-Framework LLM Agents}, |
516 | 523 | author = {Yipeng Ouyang and Yi Xiao and Yuhao Gu and Xianwei Zhang}, |
| 524 | + booktitle = {Proceedings of the AgentSkills'26 Workshop at ACM CAIS 2026}, |
517 | 525 | year = {2026}, |
518 | | - eprint = {2605.03353}, |
519 | | - archivePrefix = {arXiv}, |
| 526 | + note = {arXiv:2605.03353}, |
520 | 527 | } |
521 | 528 | ``` |
522 | 529 |
|
|
0 commit comments