agentsclimarketplace

Concurrency primitives

Skill a5c-ai/babysitter/library/specializations/programming-languages/skills/concurrency-primitives

Expert skill for implementing language-level concurrency support including threads, channels, and synchronizationFrom its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill concurrency-primitives

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.0 KB, 358 tokens by cl100k_base, as published. Nobody here has run it

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

{
  "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" }
    }
  }
}

What ships with it: 1 file

942 B alongside SKILL.md

Keep looking

Skills are one crate of 326,059. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.