Concurrency Primitives
Expert skill for implementing language-level concurrency support including threads, channels, and synchronization
Best use case
Concurrency Primitives is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Expert skill for implementing language-level concurrency support including threads, channels, and synchronization
Teams using Concurrency Primitives should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/concurrency-primitives/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Concurrency Primitives Compares
| Feature / Agent | Concurrency Primitives | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Expert skill for implementing language-level concurrency support including threads, channels, and synchronization
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Concurrency Primitives Skill
## Overview
Expert skill for implementing language-level concurrency support including threads, channels, and synchronization.
## Capabilities
- Design threading API and primitives
- Implement mutex and condition variables
- Implement channel-based message passing
- Design async/await and coroutine systems
- Implement work-stealing schedulers
- Handle thread-local storage
- Design memory model and ordering
- Implement green threads/goroutines
## Target Processes
- concurrency-primitives.js
- interpreter-implementation.js
- bytecode-vm-implementation.js
- garbage-collector-implementation.js
## Dependencies
Concurrency theory, Go scheduler references
## Usage Guidelines
1. **Model Choice**: Choose between shared memory and message passing based on language goals
2. **Memory Model**: Define memory ordering semantics clearly
3. **Scheduling**: Design scheduler with fairness and efficiency in mind
4. **Integration**: Ensure GC and concurrency work together correctly
5. **Testing**: Build concurrency stress tests from the start
## Output Schema
```json
{
"type": "object",
"properties": {
"model": {
"type": "string",
"enum": ["shared-memory", "message-passing", "actor", "csp"]
},
"primitives": {
"type": "array",
"items": { "type": "string" }
},
"schedulerType": {
"type": "string",
"enum": ["os-threads", "green-threads", "work-stealing", "cooperative"]
},
"generatedFiles": {
"type": "array",
"items": { "type": "string" }
}
}
}
```Related Skills
warp-primitives
Warp-level programming and SIMD optimization. Use warp shuffle instructions, voting functions, cooperative groups, warp-synchronous algorithms, and minimize warp divergence for optimal GPU performance.
crypto-primitives
Implementation and secure usage of cryptographic primitives including ECDSA, BLS, Schnorr signatures, key derivation, secret sharing, and constant-time operations. Provides guidance for secure cryptographic implementations in blockchain applications.
process-builder
Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.
babysitter
Orchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)
yolo
Run Babysitter autonomously with minimal manual interruption.
user-install
Install the user-level Babysitter Codex setup.
team-install
Install the team-pinned Babysitter Codex workspace setup.
retrospect
Summarize or retrospect on a completed Babysitter run.
resume
Resume an existing Babysitter run from Codex.
project-install
Install the Babysitter Codex workspace integration into the current project.
plan
Plan a Babysitter workflow without executing the run.
observe
Observe, inspect, or monitor a Babysitter run.