agentleFS
hishamkaramhishamkaram/delegation-layer/skills/go-concurrency/SKILL.md

go-concurrency

Skill2 starsChanged 2 months agoMITView on GitHub

Design and test goroutine, lock, deadline and subprocess changes with explicit lifetime ownership.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use go-testing.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • alex-ilgayevSkill

    go-testing

    Handles all Golang testing tasks including running tests, writing new tests, and fixing test failures. Follows MCPSpy testing conventions with require for critical assertions and assert for non-critical ones.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use for goroutines, channels, locks, deadlines, process waiting, cancellation or recovery races.

    line 8
  2. Distinctive:

    Keep observation lifetime separate from task execution.

    line 18
  3. Distinctive:

    Keep finite caller deadlines authoritative through nested operations.

    line 22
  4. Distinctive:

    Every Start has one Wait; all spawned work has bounded cleanup on failures.

    line 26
  5. Distinctive:

    Test races deterministically at ownership gates, including lock contention, interrupted writes, detach/recovery, cancellation and joined …

    line 27

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Go concurrency

Use for goroutines, channels, locks, deadlines, process waiting, cancellation or recovery races. Read lifecycle ownership and recovery guidance. For OS primitives use native checks.

Work

  1. Name each resource's owner, lifetime, close condition and failure path. Trace nested contexts and lock ordering before editing. Wait for upstream interfaces rather than create competing policies.
  2. Keep observation lifetime separate from task execution. A watcher timeout, stop request or shutdown acknowledgement is not proof of worker termination.
  3. Reuse launch/finalization owners and ambiguous-write recovery. Preserve immutable predecessors and the single terminal outcome.
  4. Keep finite caller deadlines authoritative through nested operations; do not add shorter convenience timeouts. Preserve ownership through durable barriers and pending command completion. No hidden shell reparsing.
  5. Respect the forbidden-signal policy. Every Start has one Wait; all spawned work has bounded cleanup on failures.
  6. Test races deterministically at ownership gates, including lock contention, interrupted writes, detach/recovery, cancellation and joined cleanup faults. Real deadline/capacity claims require actual clocks and concurrent owners, not sleeps, launch barriers or a queue length.

Result and checks

Return the bounded implementation/tests or read-only findings, commands/results and unresolved limits. Run affected race tests; Root owns the full integrated gate. Do not add mandatory transition matrices or handoff receipts. Native runtime assurance is established only on the affected supported OS/backend.

Report affected guidance and diagram changes under the project documentation completion rule.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.