Skip to content
Back to skills

Campaign Mechanics

ASecurity

Use before editing tools/d2/ (harness-builder, campaign-actions, campaign-terms, prepare, round, session, word), src/campaign/opening.ts or src/kernel/{log,condition,task}.ts. Explains Builder choices, log events, conditions and settings, practice release, defaults, admission refusals and campaign endings or waits (AGENTS.md sections 4–6). ending.ts reports why a campaign stopped; conditions.ts compares solve settings. Use run-management to launch, pause or stop runs.

  • 77 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agents

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add s-smits/anabasis --skill campaign-mechanics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Campaign Mechanics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Campaign Mechanics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/s-smits-campaign-mechanics/badge)](https://www.skillsdirectory.com/skills/s-smits-campaign-mechanics)

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

Download with Pro
SKILL.md
---
name: campaign-mechanics
description: "Use before editing tools/d2/ (harness-builder, campaign-actions, campaign-terms, prepare, round, session, word), src/campaign/opening.ts or src/kernel/{log,condition,task}.ts. Explains Builder choices, log events, conditions and settings, practice release, defaults, admission refusals and campaign endings or waits (AGENTS.md sections 4–6). ending.ts reports why a campaign stopped; conditions.ts compares solve settings. Use run-management to launch, pause or stop runs."
---

# Campaign mechanics

This skill expands `AGENTS.md` sections 4 to 6, which state the invariants; the references hold the
mechanisms behind them. Where a reference disagrees with the source, the source wins and the
reference is corrected in the same change.

| Section | Reference | What it explains |
| --- | --- | --- |
| 4. The Harness Builder | `references/builder-conversation.md` | the one conversation, its campaign tools, which moves count (`led`, `asked` in an older log), why the host promoted or released, the Builder's clock |
| 5. The log | `references/the-log.md` | events, conditions, folds, and what a change may add or read |
| 6. A campaign's commands | `references/campaign-command.md` | the hand commands, opening from a prompt, endings (`idleOf`, `crashedRun`), operator words |
| 6, continued | `references/terms-and-refusals.md` | the opening's terms and setting, practice release, admission refusals, defaults |

What the table names next is `comparison-reading` section 7; moving, launching or stopping a run is
`run-management`.

## Scripts

Both resolve a campaign name locally or in the archive, or take an absolute log path, and
`--host <name>` runs them on another host. Their output names no task or check but remains
exam-side, so it stays out of tracked files.

```text
bun .claude/skills/campaign-mechanics/scripts/ending.ts <name | /abs/path/to/log.jsonl>
bun .claude/skills/campaign-mechanics/scripts/conditions.ts <name | /abs/path/to/log.jsonl>
```

- `ending.ts` answers why a campaign ended or what it waits for. It lists each `campaign.ended`
  with the moves before it, then the current counts against each stopping threshold (budget,
  `stopRule`, `supplyRun`, `crashedRun`, `idleOf`), admission refusals, pending words and the next
  move (`decide`), all through `planOn`, the plan `bun run runs view` uses. The counts describe a
  restart from the log.
- `conditions.ts` answers whether two solves are comparable. Through `conditionsOf` it lists each
  setting in first-use order with what changed, and for each comparison names any difference beyond
  harness, tool tree and task, or prints `comparable`. A host-code change shows as a changed `host`.

Files in this skill

  • SKILL.md2.7 KB
  • references/builder-conversation.md3.1 KB
  • references/campaign-command.md4.3 KB
  • references/terms-and-refusals.md4.8 KB
  • references/the-log.md1.6 KB
  • scripts/conditions.ts7 KB
  • scripts/ending.ts6.7 KB

Attribution

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

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.