# Write a Workflow With a Coding Agent (https://www.shipfox.io/docs/how-to/author-workflows/write-a-workflow)

Description: Describe what to automate and let your coding agent write, check, and test the workflow file.

Describe what you want to automate and let your coding agent write the
workflow file. The agent reads your repository and your Shipfox workspace
for integration connections, models, runners, and real events. It asks you
to confirm choices such as the model, then checks and tests the file before
you commit it.

This guide is meant to be carried out by your coding agent. You start it with
one prompt, answer the agent's questions, and review what it reports.

## Before you begin [#before-you-begin]

You need:

* A coding agent [connected to the Shipfox MCP
  server](https://www.shipfox.io/docs/how-to/set-up-work/connect-mcp-client).
* A Shipfox project with the repository configured.

## Start the agent [#start-the-agent]

Open your coding agent in your repository and send this prompt:

```text
Use Shipfox to write a workflow for this repository.
```