Gam Cli logo

Gam Cli

Community
hyhy111
gam-cli

使用 gam-agent CLI 操作 gam。用于填入图片或视频提示词与参考图、打开页面、查询任务和素材、执行本地处理与裁剪,以及按授权提交 AI 生成任务。

Overview

Publisherhyhy111
Repositorygam-skills
Skill namegam-cli
Stars
29
Forks
6
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by hyhy111 on GitHub. Read the source before you install it.

Installation

Install the Gam Cli AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hyhy111/gam-skills/tree/main/gam-cli
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hyhy111/gam-skills.git /tmp/gam-skills
mkdir -p .claude/skills
cp -r /tmp/gam-skills/gam-cli .claude/skills/gam-cli
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gam Cli in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gam Cli on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gam Cli is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

gam CLI

直接使用 gam-agent 完成用户要求的gam操作,无须先调用 gam-guide 或 gam-workflow。用户要求“填入提示词框”时,优先通过 CLI 更新草稿;只要求写提示词时,保持为文本输出。

向用户说明界面选项、草稿状态或操作结果时,务必使用界面当前语言的显示名称;先查阅 字段与界面名称映射。

执行与验证

  1. 先按 固定 CLI 入口 查找用户数据目录下的启动入口:macOS 为 ~/.gam/gam-agent,Windows 为 %USERPROFILE%\.gam\gam-agent.cmd;明确设置 GAM_DATA_ROOT 时先查该目录。直接使用入口的绝对路径执行 doctor 和目标子命令的 --help,无需先检查 PATH。固定入口缺失或失效时再查已知安装目录,具体回退见参考文档。源码开发环境使用仓库内的 Python:Windows 为 .venv/Scripts/python.exe -m src.cli.agent,macOS 为 .venv/bin/python -m src.cli.agent。按当前运行环境选择入口,沿用明确的 GAM_DATA_ROOT、GAM_DATA_MODE 和 GAM_CONFIG,核对 CLI 与应用的数据及项目根一致。
  2. 执行前阅读 references/cli.md 中对应操作的说明。界面导航、草稿和直接生成需要运行中的应用;连接或项目根不匹配时先诊断,再执行目标操作。
  3. 根据用户意图选择图片或视频草稿,读取当前草稿后,优先用 draft patch --kind image|video 的独立参数按需填写:提示词用 --prompt,参考图用 --reference-image,视频首帧/尾帧用 --first-frame/--last-frame,推荐时长可用 --duration。仅传本次需要修改的参数,其他参数保持原值;按当前 shell 的规则安全引用提示词和路径,长文本或不便安全引用的多行内容可用 --prompt-file 读取 UTF-8 纯文本。参数与清空/开关用法见参考文档。旧 CLI 的 help 未提供独立参数时才回退到 --patch-json。填写后读取草稿,核对提示词及所改字段,并确认 data.ui_sync=applied;用过临时文本/JSON 文件时在完成后清理。
  4. 对其他操作检查实际回执。异步处理跟踪 task_id 到终态;超时或无回执时用原 request_id 查询,再决定下一步。请求、持久化、界面同步与素材质量分别报告,画面质量需要查看真实媒体。

视频草稿和生成请求的 duration 只能配置为 4、5、6 秒。用户要求填入视频提示词草稿时,若该提示词附有具体建议时长,可同时将建议写入 duration,仅将提示词正文写入 prompt;用户明确指定的时长优先。没有建议或明确指定时保持已有合法时长,需要设置且缺少可用值时采用 5 秒。已有草稿或历史任务使用其他时长时,先说明限制并确认改为哪个合法时长,再继续;智能时长不能保证 4~6 秒,因此不使用。

填写草稿完成后让用户在gam中检查和发送。只有用户要求直接提交生成时,才进入参考文档的“CLI 生成授权”流程;填写草稿本身不代表提交授权。

生成前的账号与 Key 配置

用户询问 ForFuner AI 登录、积分购买、自定义 Key 配置,或生成因鉴权/余额/模型权限受阻时,阅读 AI 生成方式与配置。新用户优先推荐登录 ForFuner AI;自定义 Key 按参考指导用户在火山引擎完成充值门槛、模型开通和本机配置。沿用用户已选方式,不把草稿补丁当作切换生成方式的接口。登录、验证码、付款和密钥输入由用户在对应界面完成;CLI 仅执行当前 help 支持且已授权的操作。

按需衔接

  • 只需gam功能、参数或配置说明:使用 gam-guide。
  • 需要写图像或动作提示词:使用 gam-pic-prompt 或 gam-video-prompt,已有提示词直接使用。
  • 需要连续制作、调参和结果检查:使用 gam-workflow。
  • 需要将裁剪结果导入 Godot:使用 gam-export。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Gam Cli AI skill do?

使用 gam-agent CLI 操作 gam。用于填入图片或视频提示词与参考图、打开页面、查询任务和素材、执行本地处理与裁剪,以及按授权提交 AI 生成任务。

Why use Gam Cli on TypingMind?

Because you install it once and use it with any model. Gam Cli is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gam Cli in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hyhy111/gam-skills/tree/main/gam-cli. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Gam Cli?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gam Cli?

As many as you like. As long as a model supports skills, you can use Gam Cli with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gam Cli AI skill free?

Yes. It is published on GitHub by hyhy111 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇