Workflows
Markdown files that define step-by-step processes for recurring tasks.
A workflow is a reusable procedure Cora follows when you invoke it by name. Instead of re-explaining a multi-step process every time, you define it once and invoke it with a short prompt. Cora executes each step in order, substituting the specific details from your prompt.

Storage locations
Global workflows available in every project:
Project workflows available in the current workspace only:
Global workflows are good for personal processes that apply everywhere PR prep, commit message generation, changelog updates. Project workflows are good for processes specific to a codebase the exact steps for adding a new feature given this project's structure.
What goes in a workflow
Workflows are most useful for tasks that are multi-step, touch multiple files in a specific order, or need to be done consistently every time. Good candidates:
Scaffolding a new feature: model, migration, service, route, tests, in the right order
Preparing a pull request: lint, typecheck, test, write the description
Adding a new database model: schema, migration, seed, typed repository class
Creating a new background job: registration, queue config, retry logic, error handling
Creating a workflow
Create a .md file in the workflows directory. Write steps as a numbered list with enough detail that Cora can execute each one without ambiguity.
Example: workflows/new-feature.md
Example: workflows/pr-prep.md
Invoking a workflow
Reference the workflow by name in a prompt:
Cora follows the steps in the workflow file, filling in the specific details from your prompt. If a step requires a decision the workflow doesn't cover, Cora asks before proceeding rather than guessing.
Editing workflows directly
Workflow steps can reference other config files pointing at rules/naming.md or skills/api-conventions.md for the specifics. This keeps workflows short and avoids duplicating content.
Last updated