zakirkun/ice-tea/double-check-locking
Claude Code and agent skill by zakirkun/ice-tea
- community
Checking that the SKILL.md file is still in the repository.
Detects broken double-checked locking implementations that create race conditions in singleton initialization.
Install
npx vskill@latest install zakirkun/ice-tea/double-check-lockingSKILL.md
The same SKILL.md was published earlier as zakirkun/ice-tea/double-check-locking.
Double-Checked Locking Race Condition
Overview
Double-checked locking is a common but often incorrectly implemented pattern for lazy singleton initialization. Without proper memory ordering or volatile declarations, the second check can observe a partially-initialized object due to instruction reordering.
In Java pre-5.0 (without volatile), this is broken. In Go, use sync.Once instead.
Remediation
- Java: Declare singleton field
volatile - Go: Use
sync.Oncefor lazy initialization - C++: Use
std::call_onceorstd::atomic
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/race-condition/double-check-locking/SKILL.md
Popularity
- Repository stars
- 39
- Repository forks
- 10
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zakirkun/ice-tea/double-check-locking)