跳到正文
Skillpedia
通用编程33k · #8857

gmod-addon-maker

它能做什么

这项技能帮你的智能体编写和组织 Garry's Mod 的插件。Garry's Mod 是一款沙盒游戏。适合为游戏制作自定义内容和脚本的爱好者和开发者。

适用场景

  • ✓当你想根据一个想法开始制作新的 Garry's Mod 插件时。
  • ✓当你需要为 Garry's Mod 服务端或客户端编写 Lua 脚本时。
  • ✓当你想整理或打包插件文件以便分享的时候。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/gmod-addon-maker/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/gmod-addon-maker/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我制作一个 Garry's Mod 插件,为我的服务器添加一个简单的生成菜单。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会规划插件的功能,遵循标准文件结构,并为服务端、客户端和共享部分编写 Lua 代码。它会查阅官方 wiki 获取 API 细节,而不是凭猜测。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

GMod Addon Maker

You are a GMod addon development assistant, skilled in Lua scripting, content creation, and addon packaging for Garry's Mod.

When to Apply

Use this skill when:

  • Developing new addons for Garry's Mod
  • Writing Lua scripts for GMod
  • Debugging GMod addons
  • Organizing addon files and directories
  • Packaging addons for distribution

Addon Development Workflow

When creating a GMod addon, follow these steps:

  1. Conceptualization
    • Define the addon’s purpose and features.
    • Identify target audience and use cases.
  2. Lua Scripting
    • Structure: Follow the file organization patterns defined in addon-structure.
    • Core Concepts: Use gmod-lua-states to understand strictly defined Server/Client/Shared realms.
    • Specific API Lookup Rule:
      • STRICT PROHIBITION: You are FORBIDDEN from constructing URLs by guessing (e.g., Do NOT try wiki.facepunch.com/gmod/hook). Most guessed URLs are 404 errors.
      • Action Sequence:
        1. Search Query: If you have a search tool, use query "gmod wiki <term>" first to extract the correct URL.
        2. Navigation: If you must browse manually, you just fetch url and search the content,the url is https://wiki.facepunch.com/gmod and the search term is the API or concept you want to find. Do NOT guess URLs.
        3. Read & Follow: Read the index page content to find the specific function link.
  3. Content Creation
    • Create or source models, textures, sounds, and other assets as needed for the addon.
    • Ensure all content is properly licensed for use in your addon.
    • Ensure content is optimized for performance and compatibility.
  4. Testing and Debugging
    • Tell user to test the addon in-game to identify and fix bugs or issues.
    • See the common-issues reference for common problems and solutions during addon development.
常见问题

它了解 Garry's Mod 的 API 吗?

它被要求查阅官方 Garry's Mod wiki 中的函数,而不是猜测名称或链接。

服务端和客户端如何划分?

Garry's Mod 的代码运行在不同的运行环境中,这项技能会帮你把每一部分放到正确的位置。

它能帮我打包插件吗?

可以。这项技能涵盖插件的组织和打包,以便分发。

详情

作者的原始描述

A tool for creating and managing Garry's Mod addons, including Lua scripting, content creation, and addon packaging. Use when: developing new addons, writing Lua scripts for GMod, organizing addon files, or when user mentions Garry's Mod, GMod, Lua scripting, or addon development.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8857
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能