Skip to main content
在 Manus 中运行任何 Skill
一键导入
GitHub 仓库

protocol

protocol 收录了来自 0xMiden 的 31 个 skills,并提供仓库级职业覆盖和站内 skill 详情页。

已收集 skills
31
Stars
127
更新
2026-07-17
Forks
145
职业覆盖
2 个职业分类 · 已分类 100%
仓库浏览

这个仓库中的 skills

masm-proc-type-signatures
软件开发工程师

Enforce type-signature conventions for public Miden Assembly (.masm) procedures. Use when adding, editing, or reviewing a `pub proc` signature — parameter and return types, semantic type aliases, struct/array/tuple types, and how the signature maps onto the operand stack and the doc-comment Inputs/Outputs.

2026-07-17
masm-inline-comments
软件开发工程师

Enforce inline commenting conventions for Miden Assembly (.masm) files. Use when editing, reviewing, or creating .masm files.

2026-07-15
masm-doc-comments
软件开发工程师

Enforce doc comment conventions for Miden Assembly (.masm) procedures. Use when editing, reviewing, or creating .masm procedures, especially when documenting inputs, outputs, panic conditions, or invocation types.

2026-07-06
advice-provider-hygiene
软件开发工程师

Use when writing kernel, account, or note MASM code that reads from or writes to the advice provider (advice stack / advice map) — validate advice data.

2026-06-08
assert-specific-error-in-tests
软件质量保证分析师与测试员

Use when writing a Rust test that exercises a failure path or a MASM test that expects a `panic` / `assert` — assert on the specific expected error variant or error code.

2026-06-08
cheap-masm-equivalents
软件开发工程师

Use when writing or reviewing MASM hot paths — prefer the cheaper equivalent instruction: `neq.0` over `gt.0` for non-zero checks, `cdrop` over an `if/else` selecting between two values, `dup.N` over `loc_load` for a value still on the stack, `eqw` over element-wise word comparison, `u32gt`/`u32lt` over generic `gt`/`lt` on known-u32 operands.

2026-06-08
checked-arithmetic
软件开发工程师

Use when writing Rust arithmetic on amounts or other quantities derived from external/user input — guard against silent overflow.

2026-06-08
conversion-method-naming
软件开发工程师

Use when naming a conversion or accessor method in Rust — follow the Rust API naming conventions for the method's cost and ownership.

2026-06-08
decouple-component-from-storage
软件开发工程师

Use when writing a MASM procedure inside a reusable account component that accesses account storage — receive the storage slot as a parameter so the component is portable across storage layouts.

2026-06-08
domain-newtypes-over-primitives
软件开发工程师

Use when introducing API parameters, struct fields, or return types that carry a domain value — represent them with a domain newtype that enforces their invariants.

2026-06-08
felt-construction
软件开发工程师

Use when constructing a `Felt` from a numeric value in Rust — avoid silently truncating values that may exceed the field modulus.

2026-06-08
intra-doc-links
软件开发工程师

Use when writing or editing a Rust doc comment that references a type, method, or module — link the reference so renames are caught by rustdoc.

2026-06-08
lowercase-error-messages
软件开发工程师

Use when writing or editing a Rust error message, panic/assert string, or MASM `ERR_*` constant — follow the Rust convention for error-message casing and punctuation.

2026-06-08
masm-error-constants
软件开发工程师

Use when adding or editing MASM `assert*` / `panic` instructions — give every assertion a descriptive named error code.

2026-06-08
masm-explicit-stack-inputs
软件开发工程师

Use when defining the interface for a new MASM procedure — keep its inputs explicit on the stack so the signature reflects what it consumes.

2026-06-08
masm-locals-over-globals
软件开发工程师

Use when a MASM procedure needs temporary scratch storage — keep it in procedure-local memory so it cannot collide in a shared global region.

2026-06-08
masm-named-literals
软件开发工程师

Use when writing or editing MASM or Rust code that contains meaningful numeric literals — promote them to named constants with a single source of truth.

2026-06-08
masm-rust-constant-parity
软件开发工程师

Use when changing a numeric or string constant in Rust or MASM that has a counterpart on the other side — keep the two definitions from drifting apart.

2026-06-08
non-exhaustive-public-types
软件开发工程师

Use when defining a public `enum` or `struct` in a library crate that may gain variants or fields later — keep future additions from being breaking changes.

2026-06-08
parametrize-related-tests
软件质量保证分析师与测试员

Use when writing two or more tests that differ only by inputs or expected outputs — collapse the duplication into parameterized cases.

2026-06-08
preserve-error-source
软件开发工程师

Use when defining a new error variant or wrapping a lower-level error — keep the underlying error's source chain intact.

2026-06-08
private-fields-with-accessors
软件开发工程师

Use when adding a public struct or changing a field's visibility in a Rust library crate — keep fields encapsulated so the layout can evolve without breaking callers.

2026-06-08
return-error-not-panic
软件开发工程师

Use when writing a public Rust API, a deserialization path, or any code reachable from untrusted input — surface recoverable failures as a `Result`.

2026-06-08
u32-assert-before-u32-ops
软件开发工程师

Use when writing MASM `u32*` instructions on values from user input or untrusted sources — ensure the operands are valid u32s first.

2026-06-08
use-bon-builder
软件开发工程师

Use when introducing a Rust type whose constructor takes more than ~3 optional or named parameters — give it a generated builder instead of hand-written boilerplate.

2026-06-08
use-test-fixtures
软件质量保证分析师与测试员

Use when a Rust or MASM test needs to construct an account, note, transaction, or other domain object — build it with the existing test fixtures.

2026-06-08
validate-in-constructor
软件开发工程师

Use when writing or reviewing a Rust constructor, `try_new`, or builder `build` — centralize validation so every instance is valid by construction.

2026-06-08
workspace-shared-dependencies
软件开发工程师

Use when adding or modifying a dependency in a crate's `Cargo.toml` that is or may become shared by multiple workspace crates — keep its version defined in one place.

2026-06-08
masm-constants
软件开发工程师

Enforce constant definition and organization conventions for Miden Assembly (.masm) files. Use when editing, reviewing, or creating .masm files that define or use constants.

2026-05-13
masm-file-structure
软件开发工程师

Enforce file structure and section ordering for Miden Assembly (.masm) files. Use when editing, reviewing, or creating .masm files.

2026-05-13
masm-padding
软件开发工程师

Enforce stack padding conventions for Miden Assembly (.masm) procedures based on invocation type (call vs exec). Use when editing, reviewing, or creating .masm procedures, especially those with Invocation annotations.

2026-05-13