async-advisor
Async pattern CI gate and PR review. Detects promise pitfalls, race conditions, and unbounded parallelism in changed files. Posts inline PR comments with…
от Andersonlimahw★ 19 звёзд на GitHub
Установить async-advisor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Async Advisor Plugin
Catch async bugs in CI before they hit production.
Commands
/async-advisor setup — install ESLint async rules + pre-commit hook
/async-advisor pr — check async patterns in current git diff
/async-advisor scan — full codebase async audit
/async-advisor rules — show all enforced rules with rationale
ESLint Rules Configured
{
"no-floating-promises": "error",
"no-misused-promises": "error",
"await-thenable": "error",
"require-await": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"promise/always-return": "error",
"promise/catch-or-return": "error"
}
PR Inline Comments
On a PR touching src/api/reports.ts:
⚠️ Line 45: Unbounded Promise.all over large array
Promise.all(reportIds.map(...)) — reportIds can be up to 5,000 items
→ Wrap with pLimit(20) to avoid connection pool exhaustion
import pLimit from 'p-limit'
const limit = pLimit(20)
const results = await Promise.all(reportIds.map(id => limit(() => ...)))
❌ Line 89: Floating promise (swallowed rejection)
sendEmail(user) — no await, no .catch()
→ Add: await sendEmail(user) OR sendEmail(user).catch(logger.error)
CI Configuration
- name: Async pattern check
run: npx eslint src/ --rule 'no-floating-promises: error' --ext .ts,.tsx
Pairs with /async-patterns skill for deep interactive analysis.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- plugin.json
- skills/async-advisor/SKILL.md
FAQ
Что делает скилл async-advisor?
Async pattern CI gate and PR review. Detects promise pitfalls, race conditions, and unbounded parallelism in changed files. Posts inline PR comments with corrected code. Use when setting up async quality gates or reviewing a PR with complex async logic.
Как установить скилл async-advisor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл async-advisor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…