implement-async-ui-state

implement-async-ui-state is a skill for Codex from HYEXE/codex-plugins. It costs 183 tokens per session (1,646 once invoked), scanned A, original, Apache-2.0.

A guide for implementing and checking front-end screens that wait for server work, such as requests, streamed responses, background jobs, and batch operations. It covers states such as queued, running, waiting for input, partly complete, failed, cancelled, retrying, and reconnecting.

In plain words
What is it for?
Use it when building upload, generation, export, save, agent, or tool-execution screens, including cancellation, retries, optimistic updates, stale responses, reconnection, and keyboard or focus behavior.
Why use it?
It prevents the interface from showing misleading progress when requests overlap, responses arrive late or out of order, work is interrupted, or only some items succeed.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when building upload, generation, export, save, agent, or tool-execution screens, including cancellation, retries, optimistic updates, stale responses, reconnection, and keyboard or focus behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hyexe/codex-plugins/implement-async-ui-state
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HYEXE/codex-plugins --skill implement-async-ui-state
Clone the repo
git clone --depth 1 https://github.com/HYEXE/codex-plugins

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for implement-async-ui-state

README.md
[![agentmods](https://agentmods.dev/badge/skills/hyexe/codex-plugins/implement-async-ui-state/github.svg)](https://agentmods.dev/skills/hyexe/codex-plugins/implement-async-ui-state)
Your own site
<a href="https://agentmods.dev/skills/hyexe/codex-plugins/implement-async-ui-state"><img src="https://agentmods.dev/badge/skills/hyexe/codex-plugins/implement-async-ui-state/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for implement-async-ui-state

Your own site · 80×15
<a href="https://agentmods.dev/skills/hyexe/codex-plugins/implement-async-ui-state"><img src="https://agentmods.dev/badge/skills/hyexe/codex-plugins/implement-async-ui-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00183 $0.01646
Opus 5.5 $0.00073 $0.00658
Sonnet 5.5 $0.00037 $0.00329
Haiku 4.5 $0.00018 $0.00165

Measured 1mo ago against content hash a8abcfce512a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

implement-async-ui-state scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/uiux-advisor/skills/implement-async-ui-state/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Async UI State Implementer

비동기 작업의 시각 효과보다 서버 사실, 요청 식별자, 상태 전이와 사용자 통제 계약을 먼저 구현한다. 빠른 정상 경로뿐 아니라 중복 실행, 순서가 바뀐 응답, 중단·재연결과 부분 실패에서도 UI가 실제 작업 상태를 정직하게 보여주게 한다.

시작 절차

  1. 저장소 지침과 현재 diff를 확인하고 framework, 상태 관리, transport, backend API, persistence와 테스트 도구를 읽는다.

  2. 실제 요청·응답·event·job schema와 취소 API를 확인한다. 관찰하지 않은 server cancel, progress, idempotency 또는 background persistence를 지원한다고 가정하지 않는다.

  3. 작업 유형을 분류한다.

    • request: 현재 화면 수명 안에서 끝나는 조회·저장·mutation
    • stream: chunk·event가 순차 또는 누적 도착하는 응답
    • background-job: 화면을 떠난 뒤에도 계속될 수 있고 재조회가 필요한 작업
    • batch: 항목별 성공·실패와 재시도 범위가 갈리는 작업
  4. 구현 전 다음 상태 계약을 짧게 고정한다.

    사용자 과업과 완료 상태:
    request·operation·job·item identity:
    진실 원본과 상태 전이:
    순서·중복·동시 실행 정책:
    취소 범위와 server side effect:
    retry·idempotency·optimistic rollback:
    partial result와 실패 단위:
    refresh·reconnect·multi-tab 복원:
    접근 가능한 피드백과 focus 정책:
    성공·반증 기준:
    
  5. 상태 모델과 QA에는 references/async-state-contract-and-qa.md를 읽어 적용한다.

  6. agent·tool 실행 화면은 references/agent-tool-state-ux.md도 읽는다.

구현 규칙

식별자와 상태 원본

  • UI component instance, network request, logical operation, server job과 batch item identity를 필요한 수준으로 분리한다.
  • 현재 결과를 갱신할 자격이 있는 operation을 명시하고 stale·late response가 최신 상태를 덮지 못하게 한다.
  • server가 진실 원본이면 local label이나 timer로 완료를 추정하지 않고 status 조회·event 또는 명시적 응답과 동기화한다.
  • component unmount, route change, account·workspace 변경 때 구독과 local state의 소유권을 정리한다.

중복·취소·재시도

  • disable만으로 중복 요청이 완전히 방지된다고 가정하지 않는다. 실행 단위, deduplication과 idempotency 경계를 정한다.
  • network abort, UI가 기다림을 중단하는 cancel, server job 취소를 같은 동작으로 표현하지 않는다.
  • 취소와 완료가 경합하면 어떤 terminal state를 채택할지 backend 계약에 맞춰 결정한다.
  • retry는 새 operation인지 같은 job의 재개인지 구분하고, 생성·결제·전송 같은 side effect에는 검증된 idempotency를 사용한다.

낙관적 갱신과 부분 결과

  • optimistic update는 해당 mutation의 이전 값·version과 rollback 범위를 보존할 수 있을 때만 사용한다.
  • 늦은 실패가 이후의 성공한 편집을 되돌리지 않도록 mutation identity와 version을 비교한다.
  • batch·stream의 일부가 성공하면 전체 성공이나 전체 실패로 축약하지 않고 완료·실패·대기 항목을 구분한다.
  • 실패 항목만 안전하게 재시도할 수 있는 단위를 제공하고 이미 성공한 side effect를 반복하지 않는다.

Read the full file on GitHub · 89 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 89 lines · 183 tokens per session scan A a8abcfce512a

Subscribe to this mod's changes

implement-async-ui-state is a skill published in the GitHub repository HYEXE/codex-plugins (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 183 tokens to every session and 1,646 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

stss

Reduce defensive disclaimers, stacked hedging, and self-protective narration when drafting, rewriting, or auditing proposals, articles, case studies, captions, and other reader-facing prose. Use when defensive wording is requested for review or appears in a draft, including wording the assistant adds. Preserve…

lennney/stop-that-shit · 75 tokens

decision-report

Generate a portable stakeholder decision report for a CV deployment decision. TRIGGER when: user explicitly asks for a decision report, manager report, or stakeholder doc after a cost crossover has been computed; phrases: "write me a decision report", "generate a report for my manager", "I need a stakeholder doc"…

Borda/vision-delivery · 124 tokens

deliver-cv-project

Turn an independently evaluated CV model or pipeline into a verified delivery handoff without copying volatile platform recipes. TRIGGER when: user has a working model, Workflow, OCR pipeline, or tracker and asks to export it, run locally, integrate an app/camera/RTSP source, deploy, productionize, monitor drift, add…

Borda/vision-delivery · 166 tokens

detect-and-analyze

Detect instances and analyze boxes, counts, crops, regions, or metadata. TRIGGER when: user asks to count/detect objects, report the number of defects, build a model that counts trucks, tally boxes/pallets on a conveyor, find workers lacking PPE, crop detections, extract an ROI, estimate box-relative size, or report…

Borda/vision-delivery · 166 tokens

recognize-pose-or-gesture

Build keypoint-based pose, gesture, action, ergonomics, posture, or fall analysis. TRIGGER when: user asks for body/hand pose, gestures, action recognition, skeletons, keypoints, joint angles, raised hands, bending, squats, falls, sign language, or posture compliance. SKIP when: user needs an exact body contour/mask…

Borda/vision-delivery · 158 tokens

check-sentinel-setup

Run an offline Sentinel package doctor and separate local installation defects from host enablement or Roboflow sign-in problems. TRIGGER when: the user asks to check, verify, diagnose, or troubleshoot a Sentinel plugin installation; run the setup doctor; find missing skills, packaged files, or Roboflow tools; or…

Borda/vision-delivery · 127 tokens