rust-backend
Installation
SKILL.md
Windmill Rust Patterns
Apply these Windmill-specific patterns when writing Rust code in backend/.
Error Handling
Use Error from windmill_common::error. Return Result<T, Error> or JsonResult<T>:
use windmill_common::error::{Error, Result};
pub async fn get_job(db: &DB, id: Uuid) -> Result<Job> {
sqlx::query_as!(Job, "SELECT id, workspace_id FROM v2_job WHERE id = $1", id)
.fetch_optional(db)
.await?
.ok_or_else(|| Error::NotFound("job not found".to_string()))?;
}
Related skills
More from windmill-labs/windmill
svelte-frontend
Svelte coding guidelines for the Windmill frontend. MUST use when writing or modifying code in the frontend directory.
90commit
Create a git commit with conventional commit format. MUST use anytime you want to commit changes.
85pr
Open a draft pull request on GitHub. MUST use when you want to create/open a PR.
79local-review
Code review a pull request for bugs and CLAUDE.md compliance. MUST use when asked to review code.
7native-trigger
Guidance for adding native trigger services to Windmill. Use when implementing or modifying native trigger integrations across the backend and frontend.
2