Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

platform-coroutines-structured-concurrency

Skill by JetBrains

Writes and reviews Kotlin coroutine scope ownership and cancellation for IntelliJ-based product code. It flags leaks, swallowed cancellation and failure-containment mistakes, and proposes structural fixes.

  • Score 78
  • 21k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install platform-coroutines-structured-concurrency

Built from the published package, never by AI.

git clone --depth 1 https://github.com/JetBrains/intellij-community /tmp/intellij-community && mkdir -p ~/.claude/skills && cp -r /tmp/intellij-community/.claude/skills/platform-coroutines-structured-concurrency ~/.claude/skills/platform-coroutines-structured-concurren

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install platform-coroutines-structured-concurrency in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides writing and reviewing Kotlin coroutine code in IntelliJ-based product modules. It is built on three rules: hierarchy, which covers which scope owns a coroutine and when that scope is cancelled; propagation, which covers what cancellation or failure does to parents, siblings and children; and preferring standard primitives such as coroutineScope, supervisorScope and lifecycle-bound scopes over hand-rolled scope wiring.

The review loop asks the assistant to name the owning scope, check long-running bodies for cancellation checkpoints, and look for swallowed CancellationException or ProcessCanceledException. It flags patterns such as GlobalScope, detached scopes, launch in init and invokeOnCompletion, and gives a severity table with a smallest fix for each. It is aimed at developers working on IntelliJ Platform code who change suspend functions, launch or async calls, or Flow collection.

Written from the project's SKILL.md and checked against it.

What it can do

  • Scope ownership reviewNames the owning CoroutineScope and the moment it is cancelled, or flags that it cannot be named.
  • Cancellation checkpointsChecks long-running, CPU-bound or looped coroutine bodies for a cooperative cancellation point.
  • Swallowed cancellation checkLooks for catch blocks that swallow CancellationException or ProcessCanceledException.
  • Leak pattern detectionFlags GlobalScope, detached scopes, launch in init and unnecessary invokeOnCompletion use.
  • Failure containment guidanceExplains why runCatching or try around launch or async does not contain child failures.
  • Severity classificationClassifies findings with default severities and proposes the smallest structural fix.

What you need

  • Access to an IntelliJ Platform ultimate checkout for the referenced docs paths

Try asking

  • Review this coroutine code for scope ownership and cancellation problems.
  • Check this launch in init block for leak risks in an IntelliJ service.
  • Find any swallowed CancellationException in this suspend function.

Good to know

  • Blocking calls are not aborted by coroutine cancellation alone; an interrupt or close strategy is needed.
  • blockingContext is deprecated since 2024.2, so the skill recommends removing it.
  • Written for Kotlin coroutine code in IntelliJ-based product modules.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/platform-coroutines-structured-concurrency/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to platform-coroutines-structured-concurrency

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

platform-coroutines-structured-concurrency: common questions

Does this skill replace GlobalScope with a lifecycle scope?

Yes. It says GlobalScope is never cancelled and should not be used for feature work, and recommends a child of a lifecycle scope instead.

Can I launch coroutines in init blocks?

It depends on what cancels the scope. For a self-owned scope tied to Disposer, it recommends a start() method called after registration. A service with an injected CoroutineScope may self-start from init.

Why does runCatching not catch errors from launch?

The child fails its parent scope out-of-band while launch returns normally. To isolate a child, the skill recommends supervisorScope and handling the failure inside the child.

How do I install platform-coroutines-structured-concurrency?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is platform-coroutines-structured-concurrency free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is platform-coroutines-structured-concurrency safe to use?

It scores 78 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to platform-coroutines-structured-concurrency?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

platform-coroutines-structured-concurrency Install

Add to stack

Loading.