Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

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

ASecurity

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

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agents

Works with

cli

Security Analysis

A100/100

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --skill 'premake5-静态库自动配置函数编写' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Premake5 静态库自动配置函数编写?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Premake5 静态库自动配置函数编写
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-premake5/badge)](https://www.skillsdirectory.com/skills/david-li0406-premake5)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
id: "886dc168-7b40-4806-a5c4-24830fce7192"
name: "Premake5 静态库自动配置函数编写"
description: "编写Premake5的Lua函数,用于一次性自动配置静态库的头文件包含路径(包括第三方依赖)和链接设置,解决多路径包含问题。"
version: "0.1.0"
tags:
  - "premake5"
  - "lua"
  - "构建脚本"
  - "静态库"
  - "自动化配置"
triggers:
  - "premake5 编写自动包含静态库的函数"
  - "premake5 AddStaticLib"
  - "premake5 自动链接静态库"
  - "premake5 includedirs 多个路径"
---

# 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 多个路径

Attribution

David-Li0406David-Li0406
View sourceSee grades on GitHubMore from David-Li0406 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →