YugabyteDB ASH Instrumentation
yugabyte/yugabyte-db
Procedure for adding or changing YugabyteDB Active Session History wait states in TServer and DocDB C++ code, including the macro to use for sync and async paths.
Fix "Null check operator used on a null value" errors when an object is set to null during an async await.
$ npx skills add divinevideo/divine-mobile --skill async-await-null-race-condition -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install divinevideo/divine-mobile async-await-null-race-condition --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/async-await-null-race-condition .claude/skills/async-await-null-race-condition && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "async-await-null-race-condition" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/async-await-null-race-condition into .claude/skills/async-await-null-race-condition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "async-await-null-race-condition", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/async-await-null-race-conditionType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add divinevideo/divine-mobile --skill async-await-null-race-condition -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install divinevideo/divine-mobile async-await-null-race-condition --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/async-await-null-race-condition .agents/skills/async-await-null-race-condition && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "async-await-null-race-condition" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/async-await-null-race-condition into .agents/skills/async-await-null-race-condition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "async-await-null-race-condition", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill async-await-null-race-condition -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install divinevideo/divine-mobile async-await-null-race-condition --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/async-await-null-race-condition .cursor/skills/async-await-null-race-condition && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "async-await-null-race-condition" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/async-await-null-race-condition into .cursor/skills/async-await-null-race-condition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "async-await-null-race-condition", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/divinevideo/divine-mobile.git --path .agents/skills/async-await-null-race-condition--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add divinevideo/divine-mobile --skill async-await-null-race-condition -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install divinevideo/divine-mobile async-await-null-race-condition --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/async-await-null-race-condition .gemini/skills/async-await-null-race-condition && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "async-await-null-race-condition" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/async-await-null-race-condition into .gemini/skills/async-await-null-race-condition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "async-await-null-race-condition", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install divinevideo/divine-mobile async-await-null-race-conditionInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add divinevideo/divine-mobile --skill async-await-null-race-condition -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/async-await-null-race-condition .github/skills/async-await-null-race-condition && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "async-await-null-race-condition" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/async-await-null-race-condition into .github/skills/async-await-null-race-condition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "async-await-null-race-condition", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill async-await-null-race-condition -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install divinevideo/divine-mobile async-await-null-race-condition --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/async-await-null-race-condition .opencode/skills/async-await-null-race-condition && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "async-await-null-race-condition" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/async-await-null-race-condition into .opencode/skills/async-await-null-race-condition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "async-await-null-race-condition", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
async-await-null-race-conditionFix "Null check operator used on a null value" errors when an object is set to null during an async await.
Async Await Null Race Condition is an agent skill from divinevideo/divine-mobile. Fix "Null check operator used on a null value" errors when an object is set to null during an async await. Use when: (1) Object reference is nullified while awaiting, (2) Code accesses object with ! after await returns, (3) Cancel/dispose operations run concurrently with async operations on same object. Solution: capture local reference before await.
Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Async programming. The licence is MPL-2.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit c3d6f7e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are dart).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Async Await Null Race Condition loads about 881 tokens when it runs. Until then it costs about 96 tokens; SKILL.md has 189 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from divinevideo/divine-mobile at commit c3d6f7e, republished under its MPL-2.0 licence (© divinevideo). 189 words, ~881 tokens.
.claude/skills/async-await-null-race-condition/SKILL.md (or your agent's skills folder).When an async operation is awaiting, external code can set the object reference to null.
When the await completes, accessing the object with ! throws "Null check operator
used on a null value".
Null check operator used on a null valueawait someObject!.asyncMethod() followed by someObject!.propertyFuture<Result> waitForResponse() async {
// _session might be set to null while we're awaiting
final result = await _session!.waitForConnection();
if (result == null) {
// BUG: _session could be null here!
final state = _session!.state; // Throws null check error
...
}
}
void cancel() {
_session?.cancel();
_session = null; // This runs while waitForResponse is awaiting
}Future<Result> waitForResponse() async {
// Capture reference BEFORE await
final session = _session!;
final result = await session.waitForConnection();
// Check if cancelled during await
if (_session == null) {
return Result.cancelled();
}
if (result == null) {
// Safe - using captured local reference
final state = session.state;
...
}
}class ConnectionManager {
Session? _session;
Future<ConnectionResult> connect() async {
if (_session == null) {
return ConnectionResult.failure('No session');
}
// Capture before await
final session = _session!;
final response = await session.waitForResponse(
timeout: Duration(minutes: 2),
);
// Check if cancelled during await
if (_session == null) {
return ConnectionResult.failure('Cancelled');
}
// Safe to use captured reference
if (response == null) {
return ConnectionResult.failure(session.errorMessage);
}
return ConnectionResult.success(response);
}
void cancel() {
_session?.cancel();
_session?.dispose();
_session = null;
}
}Completer cancellation patterns for more complex scenariosriverpod-ref-read-in-dispose - Similar issue with Riverpod ref lifecycleflutter-dispose-timer-test-failure - Timer callbacks after disposal© divinevideo, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/async-await-null-race-condition of divinevideo/divine-mobile.
Open the folder on GitHubat commit c3d6f7e
Async Await Null Race Condition next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Async Await Null Race Condition this skilldivinevideo/divine-mobile | 266 | — | ~881 | Automated safety check: Pass | MPL-2.0 | |
| YugabyteDB ASH Instrumentationyugabyte/yugabyte-db | 11k | — | ~4.5k | Automated safety check: Pass | Custom licence | |
| Mirage VFS Adapter Authoringstrukto-ai/mirage | 3.7k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Golang Patternsantoniopaya22/go-rest-template | 172 | 9 repos | ~3.5k | Automated safety check: Pass | None | |
| Rust Async Patternsdiodeme/Gold-Band | 143 | 10 repos | ~3.1k | Automated safety check: Pass | AGPL-3.0 | |
| Swift Concurrencyhenrypldev/react-native-nitro-mlx | 100 | 3 repos | ~3.1k | Automated safety check: Pass | MIT |
yugabyte/yugabyte-db
Procedure for adding or changing YugabyteDB Active Session History wait states in TServer and DocDB C++ code, including the macro to use for sync and async paths.
strukto-ai/mirage
Builds or extends a custom Mirage virtual filesystem adapter for an API, database, object store or app data, with a working mount configuration and filesystem tests.
antoniopaya22/go-rest-template
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.
diodeme/Gold-Band
Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns.
henrypldev/react-native-nitro-mlx
Diagnose Swift Concurrency issues, refactor callback-based code to async/await, and guide Swift 6 migration when working with tasks, actors, @MainActor, Sendable, data races, thread safety, or…
farm-fe/farm
Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions.
divinevideo/divine-mobile
Fix ArgoCD ExternalSecret deployment failing with "namespace X is not permitted in project Y".
divinevideo/divine-mobile
Art direction for any content — reads text, PDF, Word, HTML, PPT, then proposes 2-3 creative directions with photography style, mood, and visual language.
divinevideo/divine-mobile
Add custom metadata headers (x-amz-meta-) to AWS v4 signed requests for GCS S3-compatible API.
divinevideo/divine-mobile
Fix password/secret authentication failures caused by trailing newlines when creating Google Cloud secrets (or similar) with bash here-strings.
divinevideo/divine-mobile
Fix silent video/media processing failures caused by URL extraction code that filters on file extensions (.mp4, .webm, .webp).
divinevideo/divine-mobile
Fix cert-manager DNS01 ACME challenges stuck in "pending" state with "DNS record not yet propagated" inside GKE private clusters, even when TXT records exist in Cloudflare DNS.
Categories
Fix "Null check operator used on a null value" errors when an object is set to null during an async await. Async Await Null Race Condition is an agent skill from divinevideo/divine-mobile. Fix "Null check operator used on a null value" errors when an object is set to null during an async await.
Async Await Null Race Condition fits situations like: object reference is nullified while awaiting; code accesses object with !.
Run `npx skills add divinevideo/divine-mobile --skill async-await-null-race-condition -a claude-code`. Or copy the skill folder (.agents/skills/async-await-null-race-condition in divinevideo/divine-mobile) into .claude/skills/async-await-null-race-condition in your project. Claude Code loads it when a task matches its description.
Run `npx skills add divinevideo/divine-mobile --skill async-await-null-race-condition -a codex`. Or copy the skill folder (.agents/skills/async-await-null-race-condition in divinevideo/divine-mobile) into .agents/skills/async-await-null-race-condition in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add divinevideo/divine-mobile --skill async-await-null-race-condition -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/async-await-null-race-condition, .gemini/skills/async-await-null-race-condition, .github/skills/async-await-null-race-condition and .opencode/skills/async-await-null-race-condition in your project.
SKILL.md names no scripts, command-line tools or credentials: Async Await Null Race Condition is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Async Await Null Race Condition is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 881 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Async Await Null Race Condition: YugabyteDB ASH Instrumentation (yugabyte/yugabyte-db, 11k stars), Mirage VFS Adapter Authoring (strukto-ai/mirage, 3.7k stars), Golang Patterns (antoniopaya22/go-rest-template, 172 stars) and Rust Async Patterns (diodeme/Gold-Band, 143 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
divinevideo (a GitHub organization) maintains it in divinevideo/divine-mobile, which has 266 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 10, 2026.
Source: divinevideo/divine-mobile on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.