Skela

Steps

Automating actions with Steps

Steps

Steps define actions that occur after the file generation is complete. They are executed in the order defined in skela.yaml.

# Common Fields

All steps support the following fields:

FieldTypeDescription
kindstringRequired. The type of step.
ifstringCondition to check before running the step.
beforestringMessage to print before the step runs.
successstringMessage to print on success.
pendingstringMessage to show specifically during spinner execution.

# Step Kinds

# command

Runs an arbitrary shell command.

- kind: command
  command: "echo 'Hello World'"
  silent: false # Set to true to hide output

# print

Prints a message to the console. useful for final instructions.

- kind: print
  message: "Run 'npm start' to begin!"

# git-init

Initializes a new Git repository in the target directory.

- kind: git-init

# go-tidy

Runs go mod tidy to download dependencies.

- kind: go-tidy

# node-install

Installs Node.js dependencies using the detected package manager (npm, pnpm, yarn, bun).

- kind: node-install