AGENT SKILL

distributed-locking

Implement safe distributed locks and coordination primitives when mutual exclusion is required across processes or services. Use when preventing double-processing, leader election, or coordinating work in a distributed system.

License 许可
MIT
最近更新
2026-07-22
Stars
★ 7
Forks
1

01 前言 Front Matter

name
distributed-locking
description
Implement safe distributed locks and coordination primitives when mutual exclusion is required across processes or services. Use when preventing double-processing, leader election, or coordinating work in a distributed system.

03 SKILL.md 正文

Distributed Locking

Overview

Distributed locks are easy to get subtly wrong. Prefer designs that minimize the need for them, and when required, use well-understood patterns and libraries.

When to Use

  • Ensuring only one worker processes a critical section
  • Leader election or singleton tasks
  • Preventing duplicate side effects under concurrency

Key Considerations

  • Lock correctness under process pauses, network partitions, and clock issues
  • Lock timeout / fencing token needs
  • Deadlock and lock-ordering risks
  • Performance and availability impact of the lock service

Principles

  • Prefer idempotent designs that reduce the need for strict locking
  • Use battle-tested implementations (Redis, etcd, ZooKeeper, database advisory locks, etc.) carefully
  • Always consider what happens if the lock holder dies
  • Prefer fencing tokens when the lock protects external side effects

Verification

  • Concurrent execution cannot produce incorrect duplicate effects
  • Lock failure modes are understood and tested
  • No single point of failure is introduced without justification

04 同仓库更多 Skills

itsual
itsual/agent-skills-collection

win-loss-analysis

Analyze won and lost deals to learn why buyers choose you or alternatives — and feed insights into product, marketing, and sales. Use when improving win rates, refining positioning, or diagnosing systematic deal losses.

★ 7
itsual
itsual/agent-skills-collection

social-selling

Use social platforms to build relationships, share insight, and open sales conversations without hard-sell spam. Use when prospecting via LinkedIn or similar networks, or building a seller’s professional presence.

★ 7
itsual
itsual/agent-skills-collection

sales-strategy

Define sales strategy — target segments, motions, capacity, and goals — that aligns with product, marketing, and revenue targets. Use when designing go-to-market sales motions, choosing PLG vs sales-led balance, or planning sales org structure.

★ 7
itsual
itsual/agent-skills-collection

sales-playbooks

Create sales playbooks that codify how to win specific segments, use cases, or competitive situations with repeatable process and talk tracks. Use when standardizing successful motions, onboarding reps, or scaling what top performers do.

★ 7
itsual
itsual/agent-skills-collection

sales-enablement

Equip sales teams with the content, training, tools, and processes they need to sell effectively and consistently. Use when building enablement programs, onboarding reps, or improving win rates through better readiness.

★ 7
itsual
itsual/agent-skills-collection

sales-compensation-basics

Design or evaluate sales compensation plans that align seller behavior with company revenue goals and are simple enough to motivate. Use when creating comp plans, diagnosing misaligned incentives, or explaining plan mechanics to reps.

★ 7