Skip to content

feat(skills): add built-in demo skill - #1364

Merged
edenreich merged 2 commits into
mainfrom
feat/demo-skill
Sep 27, 2026
Merged

edenreich merged 2 commits into
mainfrom
feat/demo-skill

Conversation

@edenreich

@edenreich edenreich commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

@infer /demo on a PR (or /demo in chat) now has a procedure to follow: a new built-in demo skill, seeded into ~/.infer/skills by infer init like bug and tmux. It records a short demo GIF of any project - CLI, TUI or GUI app - so it works in every org repo that runs infer-action with record-demo, desktop included.

It replaces the demo procedure hardcoded in infer-action's infer-action-record-demo reminder (follow-up PR there shrinks it to a pointer to this skill).

Why this shape

Every rule comes from the 8 demo runs so far (#1355, #1348, #1359):

Observed Skill rule
Procedure arrived at turn 28, after 3 takes and a committed .mp4 (#1348) "Record the demo" is the last todo, planned up front; recording after the work is pushed
4 GIFs in one comment - every probe take became a GIF (#1348, #1359) Rehearse with capture-pane / Screenshot, record one take, convert only it to a fixed ~/.infer/artifacts/demo.gif
Take capped at 60 s before the interesting frame - one model turn per keystroke (#1359) Whole take as one response of tool calls (CallOrder keeps them in order)
Run died on ImageDecode of a GIF (API 400) (#1355, #1359) Check a take via one PNG frame pulled with ffmpeg
pkill -f "infer chat" matched the agent's own command line (#1355) Quit with the app's own keys; no pkill -f / killall
Own tmux sessions / xterms, not on the recorded display (#1348, #1359) CI: only the demo session; GUI apps start there with DISPLAY=:99
MP4 hard-linked into the repo and pushed (#1348) ~/.infer/artifacts is the delivery channel; recordings never enter the repo
Wrong conclusions saved to memory in a run without recording (#1359) No memories about demo mechanics - the skill is the source of truth

Changes

  • internal/skills/builtins/demo/SKILL.md - the skill
  • internal/skills/builtins_test.go - seeds and validates demo; description must route /demo
  • docs/skills.md - listed under built-in skills

Verification

Rollout

  1. This PR, released (expected v0.215.0)
  2. infer-action: reminder points at the skill, drops its own MP4->GIF conversion, allows ffmpeg, bumps default CLI version
  3. inference-gateway/.github: bump cli-version and the infer-action tag

Docs follow-up: inference-gateway/docs#848

/demo (e.g. "@infer /demo" on a PR) records a short demo GIF of any
project - CLI, TUI or GUI app. The skill plans the demo up front,
rehearses it unrecorded, records one take after the work is pushed and
converts it to a single ~/.infer/artifacts/demo.gif. Recordings never
enter the repository.

Shaped by the earlier infer-action demo runs: committed MP4s, several
GIFs per run from probe takes, takes capped at 60 s because each step
was its own model turn, runs killed by ImageDecode on a GIF or by
pkill -f matching the agent itself.
Comment thread internal/skills/builtins/demo/SKILL.md Resolved
@edenreich
edenreich merged commit 425f0e4 into main Sep 27, 2026
1 check passed
@edenreich
edenreich deleted the feat/demo-skill branch September 27, 2026 16:44
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.215.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant