一键导入
gold-standards
Kailash Rust gold standards — imports, params, error handling, NO mocking Tier 2/3, security.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Kailash Rust gold standards — imports, params, error handling, NO mocking Tier 2/3, security.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Kailash Rust security — input validation, secrets, injection prevention. Hardcoded secrets BLOCKED.
Kailash Rust security — input validation, secrets, injection prevention. Hardcoded secrets BLOCKED.
Claude Code architecture — artifact design, context, agentic patterns. For CC audit/build.
Kailash Rust validation — parameter, DataFlow, connection, workflow, security. Use for code review.
Kailash Nexus (Rust) — MANDATORY for API+CLI+MCP unified deployment. Direct axum/tonic BLOCKED.
Project Skills (rs variant): cross-cutting patterns spanning Rust crates and PyO3/Magnus/napi-rs bindings. See enterprise-infra-bindings.md, l3-binding-parity.md, and ffi-handle-lifecycle.md.
| name | gold-standards |
| description | Kailash Rust gold standards — imports, params, error handling, NO mocking Tier 2/3, security. |
Mandatory best practices and standards for all Kailash Rust SDK development. These are required patterns that must be followed.
use kailash_core::...), group imports (std, external, workspace), no wildcardsresult.results["node_id"]["field"]Result<T, E>, use ? operator, thiserror domain errors, no silent swallowingbuilder.build(®istry)? before execution, 4-parameter connect()Node trait, input_params()/output_params(), Pin<Box<dyn Future>>, NodeErrorsqlx::query! for SQL, // SAFETY: for unsafe, cargo audit# Examples with doc tests, explain WHY not WHAT| # | Standard | DO | DO NOT |
|---|---|---|---|
| 1 | Imports | use kailash_core::{WorkflowBuilder, Runtime}; | use kailash_core::*; |
| 2 | NO MOCKING (Tier 2-3) | Real DB via dotenvy + DATABASE_URL | mockall::automock in integration tests |
| 3 | 4-param connections | connect("src", "output", "tgt", "input") | connect("src", "tgt") |
| 4 | build() before execute | let wf = builder.build(®istry)?; | runtime.execute(&builder, inputs) |
| 5 | Error handling | .ok_or(NodeError::MissingInput{..})? | .unwrap() in production |
| 6 | Secrets | std::env::var("API_KEY") | let api_key = "sk-..."; |
| 7 | TDD | Write test first, then implement | Implement first, add tests later |
| 8 | Explicit errors | match result { Ok(..) => .., Err(..) => .. } | let _ = result; |
builder.build(®istry)? called before executeResult and ?cargo test --workspace passescargo clippy --workspace -- -D warnings cleancargo fmt --all --check passescargo audit cleancargo test --doc --workspace passescargo test --workspace && cargo clippy --workspace -- -D warnings && cargo fmt --all --check && cargo audit && cargo test --doc --workspace
reviewer -- Code review after changessecurity-reviewer -- Security audit before commitstesting-specialist -- Testing compliance