Skip to content

Commit 2cf3c2b

Browse files
Development environment setup (#1)
* feat: implement mcpplibs.capi.lua — C++23 module binding for Lua C API - Add src/capi/lua.cppm (module interface) and src/capi/lua.cpp (implementation) - Wrap lua.h, lauxlib.h, lualib.h in mcpplibs::capi::lua namespace - Types: State, Number, Integer, CFunction, L_Reg, L_Buffer, etc. - Constants: status codes, type tags, operators, GC options, hook masks - Functions: 100+ bindings covering state, stack, push/access, tables, globals, calls, coroutines, GC, debug, auxiliary library, standard libs - Use extern C wrapper header to fix GCC C++ modules linkage issue - 97 comprehensive Google Test cases covering all API categories - 4 examples: basic, table, function, eval - Update xmake.lua, CMakeLists.txt, CI workflow, README, architecture docs - Design docs and task breakdown in docs/pr/ - Remove old templates.cppm placeholder module Co-authored-by: SPeak <sunrisepeak@d2learn.org> * docs: add mcpplibs-capi-lua agent skill - SKILL.md: quick start, naming map, core API cheat sheet, common patterns, build config, caveats (callback signatures, extern C, inline limitation) - reference.md: complete API reference with all 15 types, 50+ constants, 100+ functions organized by category with C API correspondence - Update skills README to list both available skills Co-authored-by: SPeak <sunrisepeak@d2learn.org> * fix(ci): build library first to avoid C++ modules race condition GCC C++ modules require std.gcm to exist before dependent targets compile. Build mcpplibs-capi-lua first (serialized) then build remaining targets in parallel. Co-authored-by: SPeak <sunrisepeak@d2learn.org> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent f558c67 commit 2cf3c2b

File tree

23 files changed

+3477
-229
lines changed

23 files changed

+3477
-229
lines changed

.agents/skills/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
# mcpp-style-ref Agent Skills
1+
# mcpplibs Agent Skills
22

3-
用于指导 Agent 在编写或审查 Modern/Module C++ 代码时遵循 mcpp-style-ref 规范的技能
3+
用于指导 Agent 在 mcpplibs 生态中开发的技能集合
44

55
## 可用技能
66

77
| 技能 | 说明 |
88
|------|------|
99
| [mcpp-style-ref](mcpp-style-ref/SKILL.md) | 面向 mcpp 项目的 Modern/Module C++ (C++23) 命名、模块化与实践规则 |
10+
| [mcpplibs-capi-lua](mcpplibs-capi-lua/SKILL.md) | Lua C API 的 C++23 模块化绑定 — 类型映射、API 速查、常见模式与构建配置 |
1011

1112
## 使用方式
1213

@@ -15,10 +16,12 @@
1516
```bash
1617
mkdir -p .cursor/skills
1718
ln -s ../../skills/mcpp-style-ref .cursor/skills/mcpp-style-ref
19+
ln -s ../../skills/mcpplibs-capi-lua .cursor/skills/mcpplibs-capi-lua
1820
```
1921

2022
或安装为个人技能:
2123

2224
```bash
23-
ln -s /path/to/mcpp-style-ref/skills/mcpp-style-ref ~/.cursor/skills/mcpp-style-ref
25+
ln -s /path/to/skills/mcpp-style-ref ~/.cursor/skills/mcpp-style-ref
26+
ln -s /path/to/skills/mcpplibs-capi-lua ~/.cursor/skills/mcpplibs-capi-lua
2427
```

0 commit comments

Comments
 (0)