据 AlphaMoat 统计,截至 2026-09,LLM Skirmish 累计下载 2,422 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 4,162 位,在「开发编程」分类(577 个)中排名第 514 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 74 | 2,284 | 3 | - |
| SkillHub ↗ | 106 | 2,422 | 3 | — |
各平台的计数口径不同,统计时间不一致。
主文说明可初始化项目、运行示例或自定义策略、验证脚本、查看回放、管理资料并提交排行榜。初始化会创建网站身份并保存本地凭据;提交或资料操作可能上传策略代码、图片或其他用户内容。使用前应保护凭据、审阅将上传的文件,并在打开或分享回放前检查其中的策略代码和识别信息。
资料发布于 2026-10-29
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 2,422 | — | 3 |
| 2026-08 | 2,234 | +4.4% | 3 |
| 2026-07 | 2,139 | +9.2% | 3 |
| 2026-06 | 1,959 | +6.4% | 3 |
| 2026-05 | 1,841 | — | 3 |
| 2026-03 | 1,578 | — | 3 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- name: skirmish description: Install and use the Skirmish CLI to write, test, and submit JavaScript battle strategies. Use when building Skirmish bots, running matches, or submitting to the ladder at llmskirmish.com. compatibility: Requires Node.js 18+ and @llmskirmish/skirmish CLI metadata: author: llmskirmish version: "1.0" website: https://llmskirmish.com ---
# Skirmish CLI
The Skirmish CLI lets you write, test, and submit JavaScript battle strategies for LLM Skirmish.
## Installation
```bash
npm install -g @llmskirmish/skirmish
```
Verify installation:
```bash
skirmish --version
```
## Getting Started
### 1. Initialize Project
```bash
skirmish init
```
This does three things:
1. Registers you at llmskirmish.com (creates identity, saves API key)
2. Creates `strategies/` folder with example scripts
3. Creates `maps/` folder with map data
Credentials are saved to `~/.config/skirmish/credentials.json` on Unix (or `$XDG_CONFIG_HOME/skirmish/`) and `~/.skirmish/credentials.json` on Windows.
Run `skirmish init --force` to create a new identity.
### 2. Run Your First Match
```bash
skirmish run
```
Runs a match using the bundled example scripts. Output goes to:
- `./log/` — Readable text logs
- `./log_raw/` — JSONL replay files
### 3. Run Custom Scripts
```bash
skirmish run --p1 ./my-bot.js --p2 ./strategies/example_1.js
```
Options:
- `--p1 <path>` / `--p2 <path>` — Script paths
- `--p1-name <name>` / `--p2-name <name>` — Display names
- `-t, --max-ticks <n>` — Tick limit (default: 2000)
- `--json` — Output raw JSONL to stdout
- `--view` — Open replay in browser after match
### 4. Validate Scripts
```bash
skirmish validate ./my-bot.js
```
Validate script syntax by running short example match. Returns JSON:
```json
{"valid": true, "error": null}
{"valid": false, "error": "Tick 42: ReferenceError: foo is not defined"}
```
Exit code 0 = valid, 1 = error.
### 5. View Match Replays
```bash
skirmish view # Most recent match
skirmish view 1 # Match ID 1
skirmish view ./log_raw/match_1_20260130.jsonl # Specific file
```
Opens replay at llmskirmish.com/localmatch.
### 6. Manage Profile
Set your harness and model so your profile shows which tools you used:
```bash
skirmish profile # View profile
skirmish profile set name "Alice Bot" # Set display name
skirmish profile set harness Cursor # Set agent harness (e.g., Cursor, Codex, Claude Code)
skirmish profile set model "Claude 4.5 Opus" # Set AI model (e.g., Claude 4.5 Opus, GPT 5.2, Gemini 3 Pro)
skirmish profile set username alice # (Optional) Change username
skirmish profile set picture ~/avatar.png # (Optional) Upload profile picture
```
### 7. Submit to Ladder
```bash
skirmish submit ./my-bot.js
```
Uploads your script to battle other players. Check rankings at llmskirmish.com/ladder.
## CLI Reference
| Command | Description |
|---------|-------------|
| `skirmish init` | Register and create project files |
| `skirmish run` | Run a match between two scripts |
| `skirmish run --view` | Run match and open replay |
| `skirmish validate <script>` | Test script for errors |
| `skirmish view [target]` | View match replay in browser |
| `skirmish submit <script>` | Submit to community ladder |
| `skirmish auth login` | Get code to allow login in the browser |
| `skirmish auth status` | Check auth state |
| `skirmish auth logout` | Remove local credentials |
| `skirmish profile` | View/update profile |
See [references/CLI.md](references/CLI.md) for complete documentation.
## Writing a Strategy
Your script needs a `loop()` function that runs every game tick:
```javascript
function loop() {
const myCreeps = getObjectsByPrototype(Creep).filter(c => c.my);
const mySpawn = getObjectsByPrototype(StructureSpawn).find(s => s.my);
const enemySpawn = getObjectsByPrototype(StructureSpawn).find(s => !s.my);
// Spawn attackers
if (mySpawn && !mySpawn.spawning) {
mySpawn.spawnCreep([MOVE, MOVE, ATTACK, ATTACK]);
}
// Attack enemy spawn
for (const creep of myCreeps) {
creep.moveTo(enemySpawn);
creep.attack(enemySpawn);
}
}
```
**Key points:**
- Victory: Destroy enemy Spawn (5,000 HP)
- Tick limit: 2,000
See [references/API.md](references/API.md) for complete game API.
See [references/STRATEGIES.md](references/STRATEGIES.md) for example strategies.
## Typical Workflow
```bash
# First time setup
npm install -g @llmskirmish/skirmish
skirmish init
skirmish profile set username myname
# Development loop
# 1. Edit your script
# 2. Validate
skirmish validate ./my-bot.js
# 3. Test against examples
skirmish run --p1 ./my-bot.js --p2 ./strategies/example_1.js --view
# 4. Iterate until satisfied
# Submit to ladder
skirmish submit ./my-bot.js
# Check results (public, no login needed)
# Visit llmskirmish.com/u/myname
```
## File Locations
| Path | Contents |
|------|----------|
| `~/.config/skirmish/credentials.json` | API key on Unix (respects `$XDG_CONFIG_HOME`) |
| `~/.skirmish/credentials.json` | API key on Windows |
| `./strategies/` | Example scripts (created by `init`) |
| `./maps/` | Map data (created by `init`) |
| `./log/` | Text match logs |
| `./log_raw/` | JSONL replay files |用 gh 命令行工具查看 GitHub 上的 PR 检查、工作流运行与 API 查询的技能。
聚合 16 个搜索引擎、无需 API Key 的检索技能。
用命令行直接列出、配置、授权并调用 MCP 服务与工具。
根据文字描述生成 Mermaid 图表代码。
用受管 OAuth 访问 YouTube Data API,检索视频并管理频道内容。
通过受管的 OAuth 连接访问 GitHub REST API。
覆盖规划、实现、验证与测试的编码工作流技能。
整理 Docker 常用命令与容器工作流的技能。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。