Toolverse
All skills

axiom-assume-isolated

by CharlesWiltgen

Use when needing synchronous actor access in tests, legacy delegate callbacks, or performance-critical code. Covers MainActor.assumeIsolated, @preconcurrency protocol conformances, crash behavior, Task vs assumeIsolated.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Testing

About this skill

Use when needing synchronous actor access in tests, legacy delegate callbacks, or performance-critical code. Covers MainActor.assumeIsolated, @preconcurrency protocol conformances, crash behavior, Task vs assumeIsolated.

How to use

  1. Zainstaluj skill axiom-assume-isolated w swoim projekcie Claude/Codex/Copilot, wskazując repozytorium https://github.com/CharlesWiltgen/Axiom/tree/main/.claude-plugin/plugins/axiom/skills/axiom-assume-isolated. 2. Użyj MainActor.assumeIsolated w testach synchronicznych kodu MainActor, aby uniknąć narzutu Task — przekaż closure z operacją oznaczoną @MainActor. 3. Zastosuj assumeIsolated w callback'ach legacy'owych, które są dokumentowane jako uruchamiane na głównym wątku, aby bezpośrednio uzyskać dostęp do izolowanego stanu bez async hop. 4. W kodzie krytycznym dla wydajności, gdzie każdy async hop się liczy, użyj assumeIsolated zamiast Task, ale tylko jeśli masz pewność co do domeny izolacji. 5. Pamiętaj, że assumeIsolated wykonuje się synchronicznie i crashuje, jeśli nie jesteś na właściwym executorze — nigdy nie używaj go, gdy nie masz pewności co do bieżącej izolacji; w takim przypadku zawsze wybierz await. 6. Porównaj swój przypadek użycia z tabelą Task vs assumeIsolated w dokumentacji — jeśli potrzebujesz async support lub nie jesteś w funkcji synchronicznej, użyj Task zamiast assumeIsolated.

Related skills

wcag-audit-patterns

by wshobson

Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.

Testing
1893

lean4-theorem-proving

by cameronfreer

Use when developing Lean 4 proofs, facing type class synthesis errors, managing sorries/axioms, or searching mathlib - provides build-first workflow, instance management patterns (haveI/letI), and domain-specific tactics

Testing
9108

playwright-browser-automation

by lackeyjb

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test

Testing
13130

crypto-research

by stevengonsalvez

Comprehensive cryptocurrency market research and analysis using specialized AI agents. Analyzes market data, price trends, news sentiment, technical indicators, macro correlations, and investment opportunities. Use when researching cryptocurrencies, analyzing crypto markets,

Testing
14118

langgraph-docs

by langchain-ai

Use this skill for requests related to LangGraph in order to fetch relevant documentation to provide accurate, up-to-date guidance.

Testing
23127

nextjs-developer

by zenobi-us

Expert Next.js developer mastering Next.js 14+ with App Router and full-stack features. Specializes in server components, server actions, performance optimization, and production deployment with focus on building fast, SEO-friendly applications.

Testing
166226