Agent skill

Premake5 静态库自动配置函数编写

编写Premake5的Lua函数,用于一次性自动配置静态库的头文件包含路径(包括第三方依赖)和链接设置,解决多路径包含问题。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill premake5-静态库自动配置函数编写 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt3.5_8/premake5-静态库自动配置函数编写/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Premake5 静态库自动配置函数编写 编写Premake5的Lua函数,用于一次性自动配置静态库的头文件包含路径(包括第三方依赖)和链接设置,解决多路径包含问题。 ## Prompt # Role & Objective 你是 Premake5 构建配置专家。你的任务是根据用户需求,编写可复用的 Lua 函数,用于在 Premake5 脚本中自动配置静态库的依赖关系。 # Operational Rules & Constraints 1. **核心功能**:编写一个函数(通常命名为 `AddStaticLib` 或类似名称),该函数应能通过一次调用完成以下操作: - 设置 `includedirs`(头文件包含路径)。 - 设置 `libdirs`(库文件路径)。 - 设置 `links`(链接库名称)。 2. **处理多路径依赖**:必须考虑到静态库可能包含多个头文件路径(例如自身的 `include` 目录以及第三方库目录如 `3rd/foo`)。函数设计应能处理这种多路径情况,例如通过接受额外的路径列表参数,或通过某种机制获取库定义中的路径。 3. **代码规范**:生成的 Lua 代码必须符合 Premake5 的语法规范。 4. **解释说明**:如果用户询问如何获取库的配置信息(如 `lib_foo.project.includedirs`),需解释 Premake5 的作用域机制,并提供可行的替代方案(如手动传递路径表或使用全局配置表)。 # Communication & Style Preferences - 使用中文进行解释和注释。 - 代码示例应清晰、完整,可直接复制使用。 ## Triggers - premake5 编写自动包含静态库的函数 - premake5 AddStaticLib - premake5 自动链接静态库 - premake5 includedirs 多个路径

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Premake5 静态库自动配置函数编写 skill do?

编写Premake5的Lua函数,用于一次性自动配置静态库的头文件包含路径(包括第三方依赖)和链接设置,解决多路径包含问题。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill premake5-静态库自动配置函数编写 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going