AGENT SKILL

vibe-async

Async and concurrency patterns for Mistral Vibe. Use when working with asyncio, the agent loop, Textual TUI threading, HTTP clients, streaming surfaces, or core-to-TUI communication.

License 许可
Apache-2.0
所属仓库
Mr-Shine09/Zephyr
最近更新
2026-08-23
Stars
★ 0
Forks
0

01 前言 Front Matter

name
vibe-async
metadata
{ "display-name": "Vibe Async", "default-prompt": "Use $vibe-async to follow Vibe async conventions when working with concurrent or event-loop code.", "short-description": "Async and concurrency patterns for Vibe" }
description
Async and concurrency patterns for Mistral Vibe. Use when working with asyncio, the agent loop, Textual TUI threading, HTTP clients, streaming surfaces, or core-to-TUI communication.

03 SKILL.md 正文

Vibe Async Patterns

Conventions for async and concurrent code in Vibe. Apply when touching the agent loop, Textual event loop, HTTP clients, streaming, or any async code.

Runtime

  • asyncio is the orchestration runtime in the agent loop and tool execution. Use asyncio.create_task + queues for concurrent work, not blanket gather.

Blocking work

  • Never run CPU-heavy or I/O-bound code on the UI thread. The Textual TUI and the agent loop share one event loop, so anything blocking (large JSON/Pydantic serialization, os.fsync, subprocess calls, recursive globs) freezes the UI — offload it with asyncio.to_thread.
  • Async file wrappers don't make blocking syscalls non-blocking.
  • Use anyio.Path for file I/O on async paths.

Streaming

  • Streaming surfaces return AsyncGenerator[Event, None], not coroutines.

Core-to-TUI communication

  • Route core-to-TUI communication through vibe.app_server. Server requests such as approvals and user input become canonical Vibe events; neither the TUI nor app server may register callbacks, listeners, or message observers directly on the agent loop.

HTTP clients

  • When Vibe owns an HTTP client, use VibeAsyncHTTPClient from vibe.utils.http instead of httpx.AsyncClient so proxy env vars are handled consistently.
  • Its CIDR NO_PROXY matching applies only to IP-literal request hosts; do not resolve DNS before proxy selection.
  • Mock outbound HTTP with respx in tests.

04 同仓库更多 Skills

Mr-Shine09
Mr-Shine09/Zephyr

prompts

暂无简介

★ 0
Mr-Shine09
Mr-Shine09/Zephyr

write-vibe-tests

Write or refactor Mistral Vibe tests with proper decoupling. Use when adding behavior coverage, testing ports/adapters, replacing brittle mocks, creating fakes, adding characterization tests before refactors, or changing tests under tests/ for vibe/core, vibe/cli, vibe/acp, tools, config, sessions, skills, hooks, MCP, or setup.

★ 0
Mr-Shine09
Mr-Shine09/Zephyr

write-vibe-adr

Create or update Architecture Decision Records for the Mistral Vibe Python CLI. Use when a design discussion creates a new architectural constraint, when an undocumented convention causes confusion or review feedback, or when architecture guidance in docs/adr or AGENTS.md must be changed.

★ 0
Mr-Shine09
Mr-Shine09/Zephyr

instrument-feature-analytics

Plan analytics instrumentation for a feature. Use when implementing any feature — every feature must ship with telemetry. Decides which events and properties the metrics need (funnels, adoption, status flows), checks compatibility with the existing datalake and event registry, and walks through local, staging, and production verification.

★ 0
Mr-Shine09
Mr-Shine09/Zephyr

create-vibe-feature

Add or modify a feature in the Mistral Vibe Python CLI while following the app architecture ADRs. Use when working in vibe/core, vibe/cli, vibe/acp, vibe/setup, built-in tools, config, sessions, skills, hooks, MCP, connectors, or other Vibe feature code.

★ 0
Mr-Shine09
Mr-Shine09/Zephyr

vibe-textual-ui

Textual TUI widget and TCSS conventions for Mistral Vibe. Use when building or styling Textual widgets, writing TCSS rules, working with selectable lists, tool headers, theme variables, or UI component layout.

★ 0