← 返回 Skills 市场
codenova58

Idempotency

作者 codenova58 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
127
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install idempotency
功能描述
Deep idempotency workflow—identifying retry surfaces, idempotency keys, storage and TTL, exactly-once pitfalls, and testing duplicate delivery. Use when desi...
使用说明 (SKILL.md)

Idempotency (Deep Workflow)

Most distributed systems deliver work at least once. Idempotency makes duplicate processing safe—critical for payments, inventory, and message consumers.

When to Offer This Workflow

Trigger conditions:

  • Retries on HTTP, queues, or background jobs
  • Double charges, duplicate records, or “at-least-once” confusion
  • Product asks for “exactly-once” semantics

Initial offer:

Use six stages: (1) identify side effects, (2) choose keys, (3) storage & scope, (4) API patterns, (5) worker patterns, (6) testing). Confirm storage (Redis, SQL) and retention window.


Stage 1: Identify Side Effects

Goal: Classify operations: reads vs creates vs monetary transfers vs state transitions.

Exit condition: List of mutations that must be idempotent under retries.


Stage 2: Choose Keys

Goal: Client-supplied Idempotency-Key header (Stripe-style) vs deterministic hash of normalized payload—trade UX vs collision risk.


Stage 3: Storage & Scope

Goal: Store key → outcome or result reference with TTL covering retry window; scope keys per tenant/user when needed.


Stage 4: API Patterns

Goal: Same key + same body → same outcome; reject or conflict if same key with different body.


Stage 5: Worker Patterns

Goal: Natural unique constraints in DB; dedupe table keyed by event_id or business idempotency key for consumers.


Stage 6: Testing

Goal: Chaos or integration tests that deliver duplicate messages; property tests for key behavior.


Final Review Checklist

  • Mutating paths classified
  • Key strategy and scope documented
  • Storage, TTL, conflict rules defined
  • HTTP and async consumers aligned
  • Duplicate delivery tests

Tips for Effective Guidance

  • True exactly-once end-to-end is rare—design for at-least-once + idempotent effects.
  • Pair with message-queues and rest-best-practices for HTTP idempotency keys.

Handling Deviations

  • Financial flows: require stronger audit and longer key retention.
安全使用建议
This skill is a safe, instruction-only workflow for designing idempotency and does not itself execute code or access secrets. Consider these points before using: (1) it is guidance only — any code or infra you build from it should be reviewed and security-tested; (2) if your agent will automatically convert these instructions into code or infra changes, review that generated output before running it; (3) for production payment/financial flows, follow the checklist here but also apply stronger audits, longer retention, and independent security reviews.
功能分析
Type: OpenClaw Skill Name: idempotency Version: 1.0.0 The skill bundle contains only documentation and workflow instructions (SKILL.md) for designing idempotent systems in distributed environments. It lacks any executable code, network requests, or suspicious instructions that could lead to data exfiltration or unauthorized access.
能力评估
Purpose & Capability
Name/description match the content: the SKILL.md provides a structured six-stage workflow for idempotency design. The skill requests no binaries, env vars, or installs—proportionate for a documentation/workflow skill.
Instruction Scope
Instructions are limited to design guidance (identify side effects, choose keys, storage/TTL, API/worker patterns, testing). They do not direct the agent to read files, access environment variables, call external endpoints, or perform system operations.
Install Mechanism
No install spec and no code files are present, so nothing is written to disk or fetched at install time—lowest-risk installation model for an instructional skill.
Credentials
The skill declares no required environment variables, credentials, or config paths. There is no request for secrets or unrelated service access.
Persistence & Privilege
always is false and the skill does not request persistent or elevated privileges or modify agent/system configuration. It is user-invocable only.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install idempotency
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /idempotency 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the idempotency skill with a comprehensive, step-by-step workflow. - Guides users through six practical stages: identifying side effects, choosing idempotency keys, configuring storage and TTL, defining API/worker patterns, and testing for duplicate delivery. - Includes actionable triggers, review checklists, and practical tips to design robust, idempotent APIs and workflows. - Tailored for safe operations under at-least-once delivery, with special considerations for high-stakes scenarios like payments.
元数据
Slug idempotency
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Idempotency 是什么?

Deep idempotency workflow—identifying retry surfaces, idempotency keys, storage and TTL, exactly-once pitfalls, and testing duplicate delivery. Use when desi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 127 次。

如何安装 Idempotency?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install idempotency」即可一键安装,无需额外配置。

Idempotency 是免费的吗?

是的,Idempotency 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Idempotency 支持哪些平台?

Idempotency 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Idempotency?

由 codenova58(@codenova58)开发并维护,当前版本 v1.0.0。

💬 留言讨论