一键导入
eds-new-crate
Scaffold a new crate in the edgesentry-rs Cargo workspace. Use when adding a new pipeline stage or utility crate.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new crate in the edgesentry-rs Cargo workspace. Use when adding a new pipeline stage or utility crate.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new rule to an edgesentry-rs safety profile. Use when implementing a new regulation-backed detection rule (PROXIMITY_ALERT, ZONE_ENTRY, etc.).
Deploy edgesentry-rs to a new server — TLS, PostgreSQL, S3/MinIO, systemd. Use when setting up a new deployment environment.
Build, test, and lint edgesentry-rs before committing. Use before every commit or when verifying the workspace is clean.
Operate edgesentry-rs in production — check health, query metrics, run backups, restore from backup. Use when monitoring or maintaining a deployed instance.
Publish a new edgesentry-rs release to crates.io. Use when cutting a release after all tests pass.
Verify an edgesentry audit chain using the eds CLI. Use to confirm a chain is intact and a payload matches its AuditRecord.
| name | eds-new-crate |
| description | Scaffold a new crate in the edgesentry-rs Cargo workspace. Use when adding a new pipeline stage or utility crate. |
| license | Apache-2.0 |
| compatibility | Requires Rust stable toolchain |
| metadata | {"repo":"edgesentry-rs"} |
1. Create the crate
cargo new --lib crates/<crate-name>
2. Register in the workspace
Add to the root Cargo.toml:
[workspace]
members = [
# ... existing ...
"crates/<crate-name>",
]
3. Set package metadata
In crates/<crate-name>/Cargo.toml:
[package]
name = "edgesentry-<name>"
version = "0.1.0"
edition = "2021"
description = "One-line description (no trailing period)"
license = "MIT OR Apache-2.0"
4. Verify
cargo build --workspace
5. Add an overview doc
Create docs/crates/<crate-name>/overview.md with:
edgesentry-<noun> (kebab-case)edgesentry_<noun> (snake_case)