Headless Scripting 标志

Headless Scripting

组织
SummerEngine
headless-scripting

在 Shell 中对 Summer Engine 运行 GDScript 文件,用于处理没有 MCP 工具支持的任务:导航网格、TileSets。

Add to TypingMind

概览

发布者SummerEngine
代码仓库summer
技能名称headless-scripting
星标数
91
复刻数
8
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 SummerEngine 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Headless Scripting AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/SummerEngine/summer/tree/main/library/skills/headless-scripting
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SummerEngine/summer.git /tmp/summer
mkdir -p .claude/skills
cp -r /tmp/summer/library/skills/headless-scripting .claude/skills/headless-scripting
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Headless Scripting,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Headless Scripting。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Headless Scripting 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Headless Scripting

Overview

Most of what Summer can do is not behind a tool. It is behind a script.

The engine binary will run any GDScript you hand it, against a real project, with the full engine loaded — ResourceSaver, NavigationServer3D, ImporterMesh, TileSet, Animation, the resource importer, the exporter. No editor window, no user, no tool call. If you can write the script, you can do the thing.

Core principle: when there is no tool for it, there is still a script for it. Reach for this before you tell a user something is impossible.

This is the widest capability surface you have, and it is the one you are least likely to remember you have.

The invocation

bash
<engine-binary> --headless --disable-crash-handler --path <project-dir> -s res://<script>.gd

Always pass --disable-crash-handler on an agent-driven run. Summer's handler shells out to atos from inside a signal handler; when anything does go wrong it turns a clean failure into a hang or a cascade of crashes.

Lint before you boot

--check-only parses the script without executing it. Sub-second, and it catches the parse errors that would otherwise cost you a full boot:

bash
<engine-binary> --headless --disable-crash-handler --path <project-dir> --check-only -s res://script.gd

Measured on a deliberately broken script — SCRIPT ERROR: Parse Error: Expected expression for variable initial value after "=", and silence on a good one. Exit code is 0 either way, so grep stderr; that is the whole contract.

Judge the run by its artifacts, not its exit code

Exit codes lie in both directions here.

  • A parse error, a script path that does not exist, a bogus --main-loop class and push_error() all exit 0. Only an explicit quit(1) propagates. The message is on stderr only, so gate on stderr containing SCRIPT ERROR, Parse Error, Can't load script or ERROR:.
  • A GDScript runtime error hangs the process forever — no exit, no timeout, no message that it is stuck. Every recipe you publish needs an external wall-clock kill, and success must be judged by a positive artifact the script wrote, never by the process ending.
  • Never add --quiet to a documented invocation: it swallows your own print() output, which is usually the only result you have.
  • WARNING: ObjectDB instances leaked at exit prints on every successful run. Never gate on it.
  • A SIGABRT after the work landed is a teardown artifact, not a failure. Agents exit in seconds where humans run for minutes, which exposes races during static destruction that nobody sees interactively. Check the file you expected on disk before concluding anything, and never blind-retry a crash — that is how one crash became three.

Two invocations to never issue

  • --write-movie under --headless is a deterministic crash, not a graceful failure. MovieWriter::add_frame() dereferences a null image from the dummy renderer on frame one. Headless has no pixels, so there is no safe form of this. Frame capture needs the windowed verify instance below.
  • --quit-after 1 hits the fast-exit path and aborts during static destruction. Use --headless --quit-after 60 if you need a bounded editor run — with --headless, never without.

Never put an extra window on the user's screen from a shell

The one exception is the verify instance, and it is safe precisely because it is not visible: --summer-verify opens a real rendering window that is hidden, NO_FOCUS, and positioned at (-32000,-32000). That is why it can produce real pixels without ever appearing. Never reproduce the "I need a renderer" reasoning by launching a plain windowed editor — use --summer-verify.

This rule is about extra engine processes you start from a shell. Opening the Summer editor and playing the game in a window through the Summer tools is allowed and expected: summer_play, then summer_screenshot or summer_frame_shot to see the result. Close what you opened when you are done; one editor at a time.

Finding the binary — do not guess

Call summer_get_project_context and read engineBinaryPath. That is the running engine's own OS.get_executable_path(), already resolved through the macOS .app bundle to the real inner executable.

If you are inside a script that is already running in the engine, it is just OS.get_executable_path().

If neither is available (an older engine build that predates engineBinaryPath, or no editor running), fall back to the install location for the platform:

PlatformPath
macOS/Applications/Summer.app/Contents/MacOS/Summer
Windows%LOCALAPPDATA%\Summer\current\Summer.exe
Linux~/.summer/engine/summer-linux-x86_64, or $SUMMER_ENGINE_BINARY (see running-in-the-cloud)

The script must extend SceneTree or MainLoop

-s does not load an arbitrary script. The engine instantiates it as the process's main loop, and rejects anything that is not one.

gdscript
extends SceneTree

func _initialize():
    # your work here
    quit()          # or the process runs forever

_initialize() runs before the first frame. If you need frames to have elapsed — physics settled, nodes _ready-ed — await process_frame inside _initialize(), or use _process(delta) and quit() when done.

Always call quit(). There is no other exit.

The trap: a script extending Node (the reflex, since almost all GDScript does) is a wedge, not an error. The engine's rejection path calls OS.alert(), and on macOS that is an NSAlert runModal with no headless guard. The process blocks forever on a modal dialog that has no window to appear in. You get no output at all and a hung process that must be killed. Measured: five orphaned processes accumulated in one session before the cause was found.

If a headless run produces zero output and never returns, check the first line of your script before you check anything else.

What this unlocks

Every one of these was run against the shipped binary. The result column is measured output, not expectation.

TaskResult
Collision shape from a meshcreate_trimesh_shape() → 12 faces; create_convex_shape() → 8 points
Navmesh bakeNavigationServer3D.bake_from_source_geometry_data() → 2 polys / 4 verts, saved to .tres
LOD generationImporterMesh instantiable, generate_lods() callable
Animation authoringvalue + bezier + method tracks saved and reloaded with all 3 intact
TileSet authoringatlas source + per-tile collision polygon, saved to .tres
Asset re-import--import produced the .import sidecar and the .ctex
Full exporthand-written export_presets.cfg + --export-release → a 144 MB runnable .app

Themes, shaders, audio bus layouts, input maps and project settings are the same story: plain resources, authored and saved from a script.

Bake a navmesh

gdscript
extends SceneTree

func _initialize():
    var nav := NavigationMesh.new()
    nav.cell_size = 0.25
    nav.agent_radius = 0.5

    var geo := NavigationMeshSourceGeometryData3D.new()
    var ground := PlaneMesh.new()
    ground.size = Vector2(10, 10)
    geo.add_mesh(ground, Transform3D.IDENTITY)

    NavigationServer3D.bake_from_source_geometry_data(nav, geo)
    print("polys=", nav.get_polygon_count(), " verts=", nav.vertices.size())
    ResourceSaver.save(nav, "res://levels/level1_nav.tres")
    quit()

ResourceSaver.save() returns 0 (OK) on success. Check it — a silent non-zero is how you ship a level with no navmesh.

Prefer parsing collision shapes over visual meshes as source geometry. add_mesh() on a visual mesh pulls geometry back off the GPU and warns loudly about it.

Generate a collision shape

gdscript
var mesh: Mesh = load("res://models/rock.glb").instantiate().get_child(0).mesh
ResourceSaver.save(mesh.create_trimesh_shape(), "res://models/rock_col.tres")   # static
ResourceSaver.save(mesh.create_convex_shape(),  "res://models/rock_cvx.tres")   # dynamic

Trimesh for static geometry, convex for anything that moves — a RigidBody3D with a concave shape is a physics bug, not a modelling choice.

Author an Animation

gdscript
var anim := Animation.new()
anim.length = 2.0

var t := anim.add_track(Animation.TYPE_VALUE)
anim.track_set_path(t, "Player:position")
anim.track_insert_key(t, 0.0, Vector3.ZERO)
anim.track_insert_key(t, 2.0, Vector3(0, 5, 0))

var b := anim.add_track(Animation.TYPE_BEZIER)
anim.track_set_path(b, "Player:modulate:a")
anim.bezier_track_insert_key(b, 0.0, 1.0, Vector2(-0.2, 0), Vector2(0.2, 0))

var m := anim.add_track(Animation.TYPE_METHOD)
anim.track_set_path(m, "Player")
anim.track_insert_key(m, 1.0, {"method": "on_landed", "args": []})

ResourceSaver.save(anim, "res://animations/rise.tres")

Track paths are NodePath:property relative to the AnimationPlayer's root_node. Getting that path wrong is the usual reason an animation loads fine and animates nothing.

Build a TileSet with collision

gdscript
var ts := TileSet.new()
ts.tile_size = Vector2i(16, 16)
ts.add_physics_layer()

var atlas := TileSetAtlasSource.new()
atlas.texture = load("res://art/tiles.png")
atlas.texture_region_size = Vector2i(16, 16)
atlas.create_tile(Vector2i(0, 0))
ts.add_source(atlas)

var tile := atlas.get_tile_data(Vector2i(0, 0), 0)
tile.add_collision_polygon(0)
tile.set_collision_polygon_points(0, 0, PackedVector2Array([
    Vector2(-8, -8), Vector2(8, -8), Vector2(8, 8), Vector2(-8, 8)
]))

ResourceSaver.save(ts, "res://levels/tiles.tres")

add_physics_layer() returns void, not the layer index. Layers are indexed in creation order from 0.

Build a scene from script

PackedScene.pack() + ResourceSaver.save() is how you write a .tscn a script built. It has one trap that costs an entire run:

Measured — a root with one owned child, one unowned sibling, and an unowned grandchild under the owned one:

PACK err=0
SAVE err=0
RELOADED children=[&"Owned"]        <- both unowned nodes gone, no error anywhere

Note the grandchild vanished too: being a descendant of an owned node is not enough. Every node you want persisted needs .owner set to the scene root. The root itself does not need one.

gdscript
var root := Node2D.new()

var layer := TileMapLayer.new()
layer.tile_set = ts
root.add_child(layer)
layer.owner = root              # omit this and the layer vanishes, silently

var ps := PackedScene.new()
ps.pack(root)
ResourceSaver.save(ps, "res://levels/level1.tscn")

This is also the answer for tilemaps specifically. A TileMapLayer's cells serialise into tile_map_data, a PackedByteArray — so "just hand-write the .tscn" stops being true the moment there are cells in it. Use set_cell() and pack the scene; do not try to edit that field as text.

Re-import assets you wrote to disk

This is the single most common way an agent breaks a project. A .png written directly to disk is not a resource yet:

ERROR: No loader found for resource: res://raw.png (expected type: unknown)
   at: _load (core/io/resource_loader.cpp:358)

The file exists. FileAccess.file_exists() returns true. load() fails anyway, because there is no .import sidecar and no imported .ctex in .godot/imported/.

Prefer the routes that need no import at all

Reach for these before reaching for --import:

  1. ResourceSaver.save() to .tres / .res. No import step, no editor, no .godot/ race, and it ships correctly in an exported build. Round-trips for ImageTexture, AudioStreamWAV, AudioStreamOggVorbis, AudioStreamMP3, FontFile, ArrayMesh, Translation, AudioBusLayout. (One trap: PortableCompressedTexture2D saves with err 0 and reloads empty — use ImageTexture.)
  2. .dds and .po load raw. They are the only formats that need no .import and ship as-is. A DDS is a 128-byte header plus raw pixels, which a script can emit directly.
  3. summer_import_from_url already does its own rescan-and-settle in-process, so assets that arrive that way are registered without any of this.

Only when none of those fit — you genuinely need a .png on disk to become a texture — run the import:

bash
<engine-binary> --headless --disable-crash-handler --path <project-dir> --import

Judge it by the .import sidecar and the file in .godot/imported/, not by the exit status. If those exist the import succeeded, however the process died. Do not retry blindly. Measured 3/3 clean on 4.6.1; a wider sample put --import aborts at 2/12 against --editor's 3/50, statistically the same background boot-abort rate rather than an --import-specific crash.

Measured on 0.5.55: port 6550 -> 6551, new token, editor still alive on 6550 and now unreachable.

So on a shipped build: run --import against a throwaway copy where you can, warn the user before running it against their open project, and tell them to restart the editor afterwards if their agent connection drops.

A later engine fix stops batch-mode invocations (--import, --summer-verify, --export-*, -s, --headless, --quit-after) from publishing. On a build with that fix this warning does not apply; if you cannot tell which build is installed, follow the precautions above. Plain --headless -s never started the server on any build, so everything else in this skill is unaffected.

Two lifecycle facts that decide the shape of every headless run:

  • There is a hard work-completion floor between 3 and 5 seconds. Fresh project, 8 small PNGs, editor killed at N seconds: at 3s, 0/8 imports landed in 10/10 cycles — it boots, gets killed mid-scan, and accomplishes nothing. At 5s, 8/8 landed every cycle. Never give an import a 3-second budget.
  • --headless --editor is not a filesystem watcher. It never notices files created after boot — 6 assets added 12s in, 45s wait, 0 imported. The rescan is driven by NOTIFICATION_APPLICATION_FOCUS_IN, and headless never fires a focus event. A long-lived headless editor serves a boot-time snapshot forever.

Both ends of the lifecycle are broken, differently: short runs do no work, long ones go stale. Boot → act → exit is the only shape that works today.

Measured before and after on the same file:

FILE_EXISTS=true   IMPORT_SIDECAR=false  → ERROR: No loader found for resource
FILE_EXISTS=true   IMPORT_SIDECAR=true   → LOAD_RESULT=<CompressedTexture2D>

Run --import after any batch of raw asset files you wrote yourself — textures, audio, models. The MCP's summer_import_from_url already does its own rescan-and-settle, so assets that arrive that way are fine; assets you wrote with summer_write_file or your own shell are not.

Export a build

export_presets.cfg is plain text you can write. Then:

bash
<engine-binary> --headless --path <project-dir> --export-release "macOS" <out-dir>/Game.app

Exit code 0 and a real bundle on disk are the success condition — check both. Export templates for the engine's exact version must be installed, or the export fails.

The trap: --headless has no pixels

ERROR: Parameter "t" is null.
   at: texture_2d_get (servers/rendering/dummy/storage/texture_storage.h:106)
GET_IMAGE=<Object#null>

Any plan of the form "run the game headless and screenshot it" is dead on arrival. It does not error usefully — it hands you a null and continues.

Performance is equally meaningless there, but not in the way it first looks. Sampled every 30 frames across a 401-frame headless run of the same scene:

fps=1.0    draw_calls=0.0  objects=0.0     <- first ~1s
fps=117.0  draw_calls=0.0  objects=0.0
fps=145.0  draw_calls=0.0  objects=0.0

Two separate traps in that table:

  1. draw_calls and objects are 0.0 at every sample, forever. That is the real headless signature — there is no renderer to count. Those monitors never become meaningful.
  2. The FPS number is not 1.0, and it is not real either. It settles high (145 here) precisely because nothing is being drawn. Quoting it as the game's frame rate is worse than quoting nothing.

And a third trap that is not headless-specific: TIME_FPS reads exactly 1.0 until it has about a second of history. A probe that samples too early reports 1 fps in a windowed instance too. A leading 1.0 is warm-up, not a stall — sample for at least a second before believing any frame rate.

The answer is not headless. The engine ships a second mode: an offscreen windowed instance with a real renderer, positioned far off-screen so the user never sees it. That is what RunVerification spawns, and you can spawn it directly:

bash
<engine-binary> --path <project-dir> \
  --summer-verify <abs-path-to-probe.gd> \
  --summer-verify-out <abs-out-dir> \
  --summer-verify-max 30

Note: no --headless. That is the entire difference.

Measured in that instance, same project, same machine:

viewport_image_null : false          (1152x648, pixel(4,4) = the real rendered colour)
display_server      : macOS          (Metal 4.0 — Forward+)
draw_calls          : 1.0            (vs 0.0 headless, at every sample)
frames saved        : 00_start.jpg  01_after_walk.jpg  02_after_jump.jpg

So: scripting and authoring go through --headless. Seeing and measuring go through the verify instance. Choose on that axis and you will not get a null.

For writing probes — the SummerProbeBase API, the coroutine rules, what is and is not reproducible — see playtesting-a-feature.

What a script genuinely cannot do

Short list, and it is short on purpose. Everything not on it is worth attempting.

  • Lightmap baking — headless specifically. The binding exists on this build (Summer script-binds LightmapGI.bake(from_node, image_data_path)), but the GPU lightmapper needs a RenderingDevice, which a --headless process never has: the call returns BAKE_ERROR_NO_LIGHTMAPPER. Bake from summer_run_script in the live editor instead — a normal desktop editor works as-is; a cloud container needs the xvfb + GL renderer setup from running-in-the-cloud. Wrong reason kills the right fix: it is "no renderer in this process", not "no binding".
  • Occlusion culling bake. OccluderInstance3D.bake_single_node is not script-callable at all. Editor-button only.
  • Anything needing EditorInterface. Outside the editor, ClassDB.can_instantiate("EditorScript") is false. Trap: Engine.has_singleton("EditorInterface") returns true even in a plain headless script — it lies. Retrieving the singleton then fails with Can't retrieve singleton 'EditorInterface' outside of editor. Test with ClassDB.can_instantiate("EditorScript"), which tells the truth.

Never verify a write by reading it back from the thing you wrote

This is the single highest-yield rule in this document, because it is the failure mode with no symptom. In-process read-back returns what you set, from memory, whether or not anything reached disk or took effect. The check passes, the work is gone.

Four measured instances of the same shape:

What you didWhat reading it back saysWhat is actually true
PackedScene.pack() with unset ownerspack 0, save 0Those nodes are not in the file
ProjectSettings.set_setting() without save()the new valueNothing on disk; next boot has the old one
A setting with a feature-tag overridethe base valueThe engine is using the override
PathFollow2D.progress = 50.050.0The node never moved

Verify from a second process, or by re-reading the file from disk. Cheapest reliable form: finish the script, then run a second one-liner that load()s the artefact fresh and prints what it found — which is exactly what the measurements in this document do. ResourceSaver.save() returning 0 means "the write was attempted without error", not "the thing you meant is in there".

Working pattern

  1. Write the script with summer_write_file (or your own shell) into the project.
  2. Get the binary from summer_get_project_context → engineBinaryPath.
  3. Run it. Read stdout and stderr: your print() output is on stdout, script errors are on stderr, and a script that failed to parse still exits 0.
  4. Verify the artifact exists on disk and check the ResourceSaver.save() return value. "The script ran" is not "the resource was written".
  5. If you wrote raw asset files, run --import.
  6. Delete throwaway scripts. Do not leave probe_temp_3.gd in a user's project.

Keep scripts in the project (res:// is required for -s), but name them so their purpose is obvious and clean up after yourself.

Red Flags — STOP

Red flagReality
godot --headless ...That binary does not exist on any user machine. Use engineBinaryPath.
A -s script that extends NodeSilent hang on an invisible modal. Must be SceneTree or MainLoop.
Headless run returned nothing and never exitedYou extended the wrong class. Kill it and fix line 1.
"Run it headless and screenshot"Headless has no pixels. Use the verify instance, without --headless.
Profiling under --headlessdraw_calls/objects are 0.0 forever; FPS is inflated by drawing nothing. Use the verify instance.
Quoting a frame rate sampled in the first secondTIME_FPS reads 1.0 until it warms up, in every mode.
Wrote a .png, then load()ed itNo loader found. Save a .tres instead, or run --import.
--import against the user's open project on a shipped buildHijacks their editor binding. Warn first.
Killing an import at 3sMeasured 0/8 assets registered. The floor is ~5s.
A long-lived --headless --editor as a file watcherIt never rescans. Boot, act, exit.
Adding --quietSwallows your own print() output.
A shell script run without --headlessPops an extra window onto the user's screen unasked. To see the game, use summer_play and summer_screenshot in the open editor.
Ignoring ResourceSaver.save()'s return valueNon-zero is a silent failure that ships.
pack() without setting .owner on every nodeTwo success codes, nodes missing from the file.
Verifying a write by reading the object you just wroteIn-memory read-back passes whether or not it landed.
Script with no quit()Runs forever.
"There's no tool for that, so it can't be done"There is a script for it. Write the script.

Related skills:

  • playtesting-a-feature — the verify instance, probes, and proving gameplay behaviour.
  • export-and-ship — the full release pipeline this skill's export example is one step of.
  • verification-before-completion — checking the artifact before claiming done.

From a shell

No Summer MCP tools in this session? Run each one as a command; when summer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.

In this skillCommand
summer_frame_shotsummer engine frame-shot
summer_get_project_contextsummer engine get-project-context
summer_import_from_urlsummer engine import-from-url
summer_playsummer engine play
summer_run_scriptsummer engine run-script
summer_screenshotsummer engine screenshot
summer_write_filesummer engine write-file

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Headless Scripting AI 技能有什么作用?

在 Shell 中对 Summer Engine 运行 GDScript 文件,用于处理没有 MCP 工具支持的任务:导航网格、TileSets。

为什么在 TypingMind 中使用 Headless Scripting?

因为您只需安装一次,就能搭配任何模型使用。Headless Scripting 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Headless Scripting?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/SummerEngine/summer/tree/main/library/skills/headless-scripting。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Headless Scripting?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Headless Scripting 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Headless Scripting 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Headless Scripting AI 技能免费吗?

是的。SummerEngine 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇