| name | Create DemoTime scene |
| description | Adds a DemoTime scene definition with moves to a DemoTime yaml file that defines moves, actions and related configuration. Use this skill when the user or another skill mentions: create a act, add a scene, add a move to a scene. |
Overview
This skill creates a DemoTime move that will instruct DemoTime to perform an action.
Structure
Actions are child items of moves in a DemoTime yaml. Typically the moves array contains only one action unless multiple actions has to be executed at the same time.
A new move is defined un the scenes array as:
- title:
moves:
- action: <action_type>
<specific_configuration_for_the_actiontype>
Example:
title: 03 - Tech Setup
version: 3
scenes:
- title: Run Diagrid Dev Dashboard
moves:
- action: executeTerminalCommand
command: docker run -p 8080:8080 ghcr.io/diagridio/diagrid-dashboard:latest
terminalId: dev-dashboard
insertTypingMode: character-by-character
insertTypingSpeed: 50
Actions
These are some commonly used actions:
- executeTerminalCommand - use to execute a VS Code terminal command
- focusTerminal - use to focus the terminal
- executeVSCodeCommand - use to execute a VS Code command
- open - use to open a file
- close - use to close the current file
- openSlide - use to open a markdown slide
- rename - use to rename a file
- preview - use to preview a file, typically a large markdown file that can't be shown with the openSlide action
- highlight - use to highlight text in a file
- sendKeybinding - use to send a keybinding to VSCode, such as CTRL+C to stop an application from running
Terminal actions
executeTerminalCommand
action: executeTerminalCommand
command: <command to execute>
terminalId: <terminal id (optional)>
autoExecute: <true/false (optional - default is true)>
insertTypingMode: <typing mode (optional - default is 'instant')>
insertTypingSpeed: <speed in milliseconds (optional)>
Example to run a Dapr application with multi-app run:
action: executeTerminalCommand
command: aspire run
terminalId: dapr-run
insertTypingMode: character-by-character
insertTypingSpeed: 75
Example to navigate to a folder named ConcertoWorkflow that contains a Dapr application:
action: executeTerminalCommand
command: cd ConcertoWorkflow
terminalId: dapr-run
insertTypingMode: character-by-character
insertTypingSpeed: 50
Example to run the Diagrid Dev Dashboard container with docker:
action: executeTerminalCommand
command: docker run -p 8080:8080 ghcr.io/diagridio/diagrid-dashboard:latest
terminalId: dev-dashboard
insertTypingMode: character-by-character
insertTypingSpeed: 50
For more terminal actions see: https://demotime.show/actions/terminal/
focusTerminal
action: focusTerminal
terminalId: dapr-run
VSCode actions
executeVSCodeCommand
action: executeVSCodeCommand
command: workbench.action.toggleSidebarVisibility
For more VSCode actions see: https://demotime.show/actions/vscode/
File actions
open
action: open
path: <relative path to the file>
close
action: close
rename
action: rename
path: <relative path to the file>
dest: <new name/path of the file>
overwrite: <true/false>
For more file actions see: https://demotime.show/actions/file/
Preview actions
openSlide
action: openSlide
path: <relative path to the file>
slide: <slide number (1-based) (optional)>
preview
action: markdownPreview
path: <relative path to the file>
For more preview actions see: https://demotime.show/actions/preview/
Text actions
highlight
action: highlight
path: <relative path to the file>
position: <position>
zoom: <zoom level>
highlightBlur: <blur effect for non-highlighted text>
highlightOpacity: <opacity for non-highlighted text>
Example that highlights lines 8 to 13 and uses a soft blur:
- title: Workflow Registration
moves:
- action: highlight
path: ConcertoWorkflow/Program.cs
position: '8:13'
highlightBlur: 2
For more text actions see: https://demotime.show/actions/text/
Interaction actions
sendKeybinding
Example to send CTRL+C to the terminal with id dapr-run:
action: focusTerminal
terminalId: dapr-run
action: sendKeybinding
keybinding: ctrl+c