Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA standards. Use this skill to generate semantic ARIA for Web and accessibility traits for Web and Native platforms (iOS/Android).
日本語の概要は準備中です。原文の説明を表示しています。
Checks async races, thread safety, TOCTOU, deadlocks, blocking I/O, resource contention, cross-process races. Two-layer detection: grep + agent reasoning.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.
Specialized worker auditing concurrency, async patterns, and cross-process resource access.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
Receives contextStore with: tech_stack, best_practices, codebase_root, output_dir.
MANDATORY READ: Load shared/references/two_layer_detection.md for detection methodology.
shared/references/audit_scoring.md{output_dir}/628-concurrency.md (atomic single Write)Unified severity escalation: For ALL checks — if finding affects payment/auth/financial code → escalate to CRITICAL regardless of other factors.
What: Shared state corrupted across await/yield boundaries in single-threaded async code.
Layer 1 — Grep patterns:
| Language | Pattern | Grep |
|---|---|---|
| JS/TS | Read-modify-write across await | \w+\s*[+\-*/]?=\s*.*await (e.g., result += await something) |
| JS/TS | Check-then-initialize race | if\s*\(!?\w+\) followed by \w+\s*=\s*await in same block |
| Python | Read-modify-write across await | \w+\s*[+\-*/]?=\s*await inside async def |
| Python | Shared module-level state in async | Module-level \w+\s*= + modified inside async def |
| All | Shared cache without lock | `.set( |
Layer 2 — Critical questions:
Severity: CRITICAL (payment/auth) | HIGH (user-facing) | MEDIUM (background)
Safe pattern exclusions: Local variables, const declarations, single-use await (no interleaving possible).
Effort: M
What: Shared mutable state accessed from multiple threads/goroutines without synchronization.
Layer 1 — Grep patterns:
| Language | Pattern | Grep |
|---|---|---|
| Go | Map access without mutex | map\[.*\].*= in struct without sync.Mutex or sync.RWMutex |
| Go | Variable captured by goroutine | go func + variable from outer scope modified |
| Python | Global modified in threads | global\s+\w+ in function + threading.Thread in same file |
| Java | HashMap shared between threads | HashMap + Thread|Executor|Runnable in same class without synchronized|ConcurrentHashMap |
| Rust | Rc in multi-thread context | Rc<RefCell + thread::spawn|tokio::spawn in same file |
| Node.js | Worker Threads shared state | workerData|SharedArrayBuffer|parentPort + mutable access without Atomics |
Layer 2 — Critical questions:
go func capturing by value (safe) or by reference (unsafe)?Severity: CRITICAL (payment/auth) | HIGH (data corruption possible) | MEDIUM (internal)
Safe pattern exclusions: Go map in init() or main() before goroutines start. Rust Arc<Mutex<T>> (already safe). Java Collections.synchronizedMap().
Effort: M
What: Resource state checked, then used, but state can change between check and use.
Layer 1 — Grep patterns:
| Language | Check | Use | Grep |
|---|---|---|---|
| Python | os.path.exists() | open() | os\.path\.exists\( near open\( on same variable |
| Python | os.access() | os.open() | os\.access\( near os\.open\(|open\( |
| Node.js | fs.existsSync() | fs.readFileSync() | existsSync\( near readFileSync\(|readFile\( |
| Node.js | fs.accessSync() | fs.openSync() | accessSync\( near openSync\( |
| Go | os.Stat() | os.Open() | os\.Stat\( near os\.Open\(|os\.Create\( |
| Java | .exists() | new FileInputStream | \.exists\(\) near new File|FileInputStream|FileOutputStream |
Layer 2 — Critical questions:
Severity: CRITICAL (security-sensitive: permissions, auth tokens, configs) | HIGH (user-facing file ops) | MEDIUM (internal/background)
Safe pattern exclusions: Check inside try/catch with retry. Check for logging/metrics only. Check + use wrapped in file lock.
Effort: S-M (replace check-then-use with direct use + error handling)
What: Lock acquisition in inconsistent order, or lock held during blocking operation.
Layer 1 — Grep patterns:
| Language | Pattern | Grep |
|---|---|---|
| Python | Nested locks | with\s+\w+_lock: (multiline: two different locks nested) |
| Python | Lock in loop | for.*: with \.acquire\(\) inside loop body |
| Python | Lock + external call | \.acquire\(\) followed by await|requests\.|urllib before release |
| Go | Missing defer unlock | \.Lock\(\) without defer.*\.Unlock\(\) on next line |
| Go | Nested locks | Two \.Lock\(\) calls in same function without intervening \.Unlock\(\) |
| Java | Nested synchronized | synchronized\s*\( (multiline: nested blocks with different monitors) |
| JS | Async mutex nesting | await\s+\w+\.acquire\(\) (two different mutexes in same function) |
Layer 2 — Critical questions:
Severity: CRITICAL (payment/auth) | HIGH (app freeze risk)
Safe pattern exclusions: Reentrant locks (same lock acquired twice). Locks with explicit timeout (asyncio.wait_for, tryLock).
Effort: L (lock ordering redesign)
What: Synchronous blocking calls inside async functions or event loop handlers.
Layer 1 — Grep patterns:
| Language | Blocking Call | Grep | Replacement |
|---|---|---|---|
| Python | time.sleep in async def | time\.sleep inside async def | await asyncio.sleep |
| Python | requests.* in async def | requests\.(get|post|put|delete) inside async def | httpx or aiohttp |
| Python | open() in async def | open\( inside async def | aiofiles.open |
| Node.js | fs.readFileSync in async | fs\.readFileSync|fs\.writeFileSync|fs\.mkdirSync | fs.promises.* |
| Node.js | execSync in async | execSync|spawnSync in async handler | exec with promises |
| Node.js | Sync crypto in async | crypto\.pbkdf2Sync|crypto\.scryptSync | crypto.pbkdf2 (callback) |
Layer 2 — Critical questions:
Severity: HIGH (blocks event loop/async context) | MEDIUM (minor blocking <100ms)
Safe pattern exclusions: Blocking call in if __name__ == "__main__" (startup). readFileSync in config loading at init time. Sync crypto for small inputs.
Effort: S-M (replace with async alternative)
What: Multiple concurrent accessors compete for same resource without coordination.
Layer 1 — Grep patterns:
| Pattern | Risk | Grep |
|---|---|---|
| Shared memory without sync | Data corruption | SharedArrayBuffer|SharedMemory|shm_open|mmap without Atomics|Mutex|Lock nearby |
| IPC without coordination | Message ordering | process\.send|parentPort\.postMessage in concurrent loops |
| Concurrent file append | Interleaved writes | Multiple appendFile|fs\.write to same path from parallel tasks |
Layer 2 — Critical questions:
O_APPEND for small writes)Severity: HIGH (data corruption) | MEDIUM (ordering issues)
Safe pattern exclusions: Single writer pattern. OS-guaranteed atomic operations (small pipe writes, O_APPEND). Message queues with ordering guarantees.
Effort: M
What: Multiple processes or process+OS accessing same exclusive resource, including operations with non-obvious side effects on shared OS resources.
Layer 1 — Grep entry points:
| Pattern | Risk | Grep |
|---|---|---|
| Clipboard dual access | OSC 52 + native clipboard in same flow | osc52|\\x1b\\]52 AND clipboard|SetClipboardData|pbcopy|xclip in same file |
| Subprocess + shared file | Parent and child write same file | spawn|exec|Popen + writeFile|open.*"w" on same path |
| OS exclusive resource | Win32 clipboard, serial port, named pipe | OpenClipboard|serial\.Serial|CreateNamedPipe|mkfifo |
| Terminal escape sequences | stdout triggers terminal OS access | \\x1b\\]|\\033\\]|writeOsc|xterm |
| External clipboard tools | Clipboard via spawned process | pbcopy|xclip|xsel|clip\.exe |
Layer 2 — This check relies on reasoning more than any other:
Build Resource Inventory:
| Resource | Exclusive? | Accessor 1 | Accessor 2 | Sync present? |
|---|
Trace Timeline:
t=0ms operation_A() -> resource_X accessed
t=?ms side_effect -> resource_X accessed by external process
t=?ms operation_B() -> resource_X accessed again -> CONFLICT?
Critical Questions:
Severity: CRITICAL (two accessors to exclusive OS resource without sync) | HIGH (subprocess + shared file without lock) | HIGH (invisible side effect detected via reasoning)
Safe pattern exclusions: Single accessor. Retry/backoff pattern present. Operations sequenced with explicit delay/await.
Effort: M-L (may require removing redundant access path)
MANDATORY READ: Load shared/references/audit_worker_core_contract.md and shared/references/audit_scoring.md.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md and shared/templates/audit_worker_report_template.md.
Write report to {output_dir}/628-concurrency.md with category: "Concurrency" and checks: async_races, thread_safety, toctou, deadlock_potential, blocking_io, resource_contention, cross_process_races.
Return summary to coordinator:
Report written: docs/project/.audit/ln-620/{YYYY-MM-DD}/628-concurrency.md
Score: X.X/10 | Issues: N (C:N H:N M:N L:N)
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
MANDATORY READ: Load shared/references/audit_worker_core_contract.md.
shared/references/audit_scoring.md{output_dir}/628-concurrency.md (atomic single Write call)shared/references/two_layer_detection.mdshared/references/audit_output_schema.mdVersion: 4.0.0 Last Updated: 2026-03-04
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA standards. Use this skill to generate semantic ARIA for Web and accessibility traits for Web and Native platforms (iOS/Android).
日本語の概要は準備中です。原文の説明を表示しています。
Whole site or product — a full web accessibility (a11y) audit against WCAG 2.2, following the WCAG-EM methodology. Defines scope, samples representative pages and flows, runs the automated tier (`accessibility-scan`) and the hands-on manual tier (`accessibility-inspect`), and produces one conformance report. Grades each finding by severity and evidence basis, and states per-criterion conformance as pass, fail, or undetermined (needs a human). Use it for 'audit my site for accessibility', 'is this product accessible', 'a11y audit', 'WCAG or Section 508 conformance report', or any multi-page assessment. Assesses; does not fix (use `accessibility-fix`) or diff (use `accessibility-diff`). For a single page use `accessibility-scan`; for hands-on keyboard and screen-reader checks use `accessibility-inspect`.
日本語の概要は準備中です。原文の説明を表示しています。
Regression check — diff a live page's web accessibility (a11y) violations against a baseline. By default it compares your uncommitted changes (stash-based); pass `--branch [<name>]` to compare against a branch. Reports the new WCAG violations introduced, the ones fixed, and the count of pre-existing ones. Use it for 'did my change break accessibility', 'what a11y issues did this PR add', or as a CI gate. For a full scan of one page use `accessibility-scan`; for a whole site use `accessibility-audit`.
日本語の概要は準備中です。原文の説明を表示しています。
Remediation only — repair web accessibility (a11y) violations against WCAG 2.2 with a baseline, edit, and verify loop. Takes a target (URL, files, directory) or a findings worklist from `accessibility-scan`/`accessibility-inspect`/`accessibility-audit`, applies mechanical fixes as given, leaves TODOs for visual or contextual judgment, and verifies by re-running the baseline check. It only fixes. To find issues use `accessibility-scan` (one page, automated), `accessibility-inspect` (one page, manual), or `accessibility-audit` (whole site, WCAG-EM); to check for regressions use `accessibility-diff`. Use it for 'fix the a11y issues in X', 'make this accessible', 'add missing alt text and labels', 'apply these accessibility fixes', 'remediate these violations'.
日本語の概要は準備中です。原文の説明を表示しています。
One page, hands-on manual tier — drive a live page through the web accessibility (a11y) checks a rule engine can't decide: keyboard operation and focus order, screen-reader names, roles and states from the accessibility tree, reflow and zoom, reduced motion, form errors, and target size. Grades each finding by evidence basis (verified / confirm-with-a-human / human-required) and severity, and closes every criterion in a ledger: verified, flagged, not exercised, or N/A. Locates and assesses; does not fix (use `accessibility-fix`). Use it for keyboard testing, focus-order checks, screen-reader or a11y-tree review, reflow and zoom at 200%, or 'is this operable, not just lint-clean'. The automated tier is `accessibility-scan`; `accessibility-audit` runs both across a sampled site.
日本語の概要は準備中です。原文の説明を表示しています。
One page, automated tier — run the web accessibility (a11y) rule engine against a live page and locate every violation it can detect mechanically. Pass a URL, a config target name (e.g. `accesslint:accessibility-scan dev`), or nothing to use the default target from `accesslint.config.json`. Ensures a debuggable Chrome, runs the @accesslint/core engine over CDP, and returns a worklist of live-DOM WCAG 2.2 violations, each grounded to its DOM selector and source `file:line`. Locates; doesn't edit. Use it for 'is this page accessible', 'check a11y on this URL', 'find contrast and alt-text issues', or to verify a UI change. For hands-on keyboard and screen-reader checks use `accessibility-inspect`; for a whole site or product use `accessibility-audit`; to diff against uncommitted changes or a branch use `accessibility-diff`.
日本語の概要は準備中です。原文の説明を表示しています。