Description
Thesync-and-run prompt provides instructions for syncing local project files to a container and executing a command. It handles the rsync workflow with proper exclusions.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source | string | Yes | - | Local directory path to sync |
command | string | Yes | - | Command to run after syncing |
image | string | No | python:3.11-slim | Base image to use |
Generated Instructions
When invoked with:Example Usage
Python Project
Node.js Project
Build and Run
Implementation Notes
The agent should:-
Use
rsyncto sync files: - Check if the image exists, import if needed
-
Execute with
run:
See Also
- build-project - Full build workflow
- run-python - Simple Python execution
- run-shell - Simple shell execution