Wrap a new backend endpoint in the TypeScript SDK (packages/sdk), or record it as skipped. Use when `just coverage` fails, or after adding an endpoint to a Rust service.
中文简介正在准备中。当前显示原文说明。
Inspect Rust changes for SQLx queries. Use after modifying Rust code that adds or changes SQLx queries to ensure compile-time SQLx macros are used, run `just prepare_db` for offline query cache, and review queries for performance and security issues.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Use this skill after substantial Rust changes that add, remove, or modify SQLx queries.
This is a focused review pass, not something to run after every edit. Batch related Rust changes first, then validate the changed queries before handing the task back to the user.
From the repository root, identify changed Rust files using the repository's VCS:
If a .jj directory exists at the repository root, use Jujutsu:
jj diff --name-only
Otherwise, use Git:
git diff --name-only
Inspect changed .rs files for SQLx usage, including:
sqlx::querysqlx::query_assqlx::query_scalarsqlx::query_filequery(...), query_as(...), query_scalar(...), or query_file(...)sqlx::query!, sqlx::query_as!, sqlx::query_scalar!, and sqlx::query_file!If no SQLx queries were changed, say so in the final response and do not run just prepare_db unless the user explicitly asked for it.
Prefer compile-time checked SQLx macros for changed queries:
sqlx::query!sqlx::query_as!sqlx::query_scalar!sqlx::query_file!Flag changed code that calls SQLx query functions directly, such as:
sqlx::query("SELECT ...")
sqlx::query_as::<_, MyType>("SELECT ...")
sqlx::query_scalar("SELECT ...")
Replace direct function calls with the equivalent macro whenever the SQL text is static enough for SQLx to check at compile time.
Only allow direct SQLx query functions when the SQL must be dynamically assembled and cannot reasonably be expressed with a macro. In that case:
.bind(...); never interpolate user-controlled values into SQL strings.When SQLx queries were changed, run this from the repository root:
just prepare_db
If it fails, inspect the error. Fix in-scope query/cache issues and rerun just prepare_db. If it still fails for environmental reasons, stop and report the failure clearly.
For each changed query, inspect the SQL and surrounding code for likely performance problems:
LIMIT, pagination, or keyset pagination where applicable.SELECT * in production queries; select only needed columns.LIKE / ILIKE searches, broad JSON scans, or functions on indexed columns that may prevent index use.For each changed query, inspect for security issues:
format!, concatenation, or raw user input in SQL text.DELETE, UPDATE, INSERT ... ON CONFLICT) and ensure predicates are correctly scoped.Briefly summarize:
just prepare_db passed, failed, or was skipped because no SQLx queries changed.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Wrap a new backend endpoint in the TypeScript SDK (packages/sdk), or record it as skipped. Use when `just coverage` fails, or after adding an endpoint to a Rust service.
中文简介正在准备中。当前显示原文说明。
Add or change an in-app feature tour (a view's guided flyover) in the web app. Use when adding a tour to a view, adding or editing tour steps, pointing a step at a new control, or when a step's target needs something opened first.
中文简介正在准备中。当前显示原文说明。
Post-change checks before handing off. Works out which checks apply from the files changed (directory AGENTS.md Checks sections and matching .agents/rules), runs or verifies each, and reports pass/fail/skipped. Use before saying work is done, before pushing, or when asked to audit or verify a change.
中文简介正在准备中。当前显示原文说明。
Enforce hexagonal architecture in the Rust backend. Use before modifying crates/ or Rust services, especially inbound axum/tool/listener adapters, domain services/ports, outbound adapters, authorization, permissions, database access, or external clients.
中文简介正在准备中。当前显示原文说明。
Use when adding collaborative markdown, notes, or descriptions to a feature with collab surfaces. Covers parent entities, service entry points, authorization, content storage, and lifecycle.
中文简介正在准备中。当前显示原文说明。
Build a new AI tool end-to-end — Rust implementation, toolset wiring, infra, schema generation, and frontend UI.
中文简介正在准备中。当前显示原文说明。