AgentSkillsCN

HSM Module Helper

可针对任意HSM模块开展工作——探索代码、实现功能、运行测试与基准测试。

SKILL.md
--- frontmatter
name: HSM Module Helper
description: Work on any HSM module - explore code, implement features, run tests, benchmarks
version: 1.0.0
tags: [hsm, development, modules]

HSM Module Helper

Quick helper for working on HSM modules.

Usage

code
/hsm-module <module-number>

What You Do

When user invokes this skill with a module number (1-9):

  1. Navigate to module:

    bash
    cd crates/<module-name>
    
  2. Show module status:

    • Show recent changes (git log -5 --oneline -- .)
    • Check compilation (cargo check)
    • List available plans in docs/phases/
  3. Offer actions:

    • "Explore code" - Read and explain module
    • "Implement feature" - User describes what to add
    • "Run tests" - cargo test
    • "Run benchmarks" - cargo bench
    • "Security audit" - cargo audit && cargo clippy
    • "View docs" - Show README and plans

Let user choose what they want to do with the module.

Module Mapping

NumberCratePurpose
1crypto-engineCore cryptographic primitives
2key-managerKey lifecycle management
3authAuthentication & authorization
4grpc-apigRPC API server
5auditAudit logging
6metricsMetrics & monitoring
7storagePersistent storage
8backupBackup & recovery
9configConfiguration management