Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问许可证需确认审计通过

redux-saga终极版传奇

Agent Skill

redux-saga 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

447

周安装

19

GitHub Stars

2

下载量

157
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:redux-saga(终极版传奇)
来源仓库:https://github.com/anivar/redux-saga-skill
仓库路径:skills/redux-saga
安装命令:
npx skills add https://github.com/anivar/redux-saga-skill --skill redux-saga
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/anivar/redux-saga-skill --skill redux-saga

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适合围绕代码变更和团队协作事项进行整理。
  • 建议结合具体项目上下文理解功能边界。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 使用前请确认是否具备相应仓库访问权限。
  • redux-saga 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Redux-Saga

IMPORTANT: Your training data about redux-saga may be outdated or incorrect — API behavior, middleware setup patterns, and RTK integration have changed. Always rely on this skill's rule files and the project's actual source code as the source of truth. Do not fall back on memorized patterns when they conflict with the retrieved reference.

When to Use Redux-Saga

Sagas are for workflow orchestration — complex async flows with concurrency, cancellation, racing, or long-running background processes. For simpler patterns, prefer:

NeedRecommended Tool
Data fetching + cachingRTK Query
Simple async (submit → status)createAsyncThunk
Reactive logic within slicescreateListenerMiddleware
Complex workflows, parallel tasks, cancellation, channelsRedux-Saga

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Effects & YieldingCRITICALeffect-
2Fork Model & ConcurrencyCRITICALfork-
3Error HandlingHIGHerror-
4Recipes & PatternsMEDIUMrecipe-
5Channels & External I/OMEDIUMchannel-
6RTK IntegrationMEDIUMrtk-
7TroubleshootingLOWtroubleshoot-

Quick Reference

1. Effects & Yielding (CRITICAL)

  • effect-always-yield — Every effect must be yielded; missing yield freezes the app
  • effect-use-call — Use yield call() for async functions; never call directly
  • effect-take-concurrency — Choose takeEvery/takeLatest/takeLeading based on concurrency needs
  • effect-select-usage — Use selector functions with select(); never access state paths directly
  • effect-race-patterns — Use race for timeouts and cancellation; only blocking effects inside

2. Fork Model & Concurrency (CRITICAL)

  • fork-attached-vs-detachedfork shares lifecycle/errors with parent; spawn is independent
  • fork-error-handling — Errors from forks bubble to parent's caller; can't catch at fork site
  • fork-no-race — Never use fork inside race; fork is non-blocking and always wins
  • fork-nonblocking-login — Use fork+take+cancel for auth flows that stay responsive to logout

3. Error Handling (HIGH)

  • error-saga-cleanup — Use try/finally with cancelled() for proper cancellation cleanup
  • error-root-saga — Use spawn in root saga for error isolation; avoid all for critical watchers

4. Recipes & Patterns (MEDIUM)

  • recipe-throttle-debounce — Rate-limiting with throttle, debounce, retry, exponential backoff
  • recipe-polling — Cancellable polling with error backoff using fork+take+cancel
  • recipe-optimistic-update — Optimistic UI with undo using race(undo, delay)

5. Channels & External I/O (MEDIUM)

  • channel-event-channel — Bridge WebSockets, DOM events, timers into sagas via eventChannel
  • channel-action-channel — Buffer Redux actions for sequential or worker-pool processing

6. RTK Integration (MEDIUM)

  • rtk-configure-store — Integrate saga middleware with RTK's configureStore without breaking defaults
  • rtk-with-slices — Use action creators from createSlice for type-safe saga triggers

7. Troubleshooting (LOW)

  • troubleshoot-frozen-app — Frozen apps, missed actions, bad stack traces, TypeScript yield types

Effect Creators Quick Reference

EffectBlockingPurpose
take(pattern)YesWait for matching action
takeMaybe(pattern)YesLike take, receives END
takeEvery(pattern, saga)NoConcurrent on every match
takeLatest(pattern, saga)NoCancel previous, run latest
takeLeading(pattern, saga)NoIgnore until current completes
put(action)NoDispatch action
putResolve(action)YesDispatch, wait for promise
call(fn,...args)YesCall, wait for result
apply(ctx, fn, [args])YesCall with context
cps(fn,...args)YesNode-style callback
fork(fn,...args)NoAttached fork
spawn(fn,...args)NoDetached fork
join(task)YesWait for task
cancel(task)NoCancel task
cancel()NoSelf-cancel
select(selector)YesQuery store state
actionChannel(pattern)NoBuffer actions
flush(channel)YesDrain buffered messages
cancelled()YesCheck cancellation in finally
delay(ms)YesPause execution
throttle(ms, pattern, saga)NoRate-limit
debounce(ms, pattern, saga)NoWait for silence
retry(n, delay, fn)YesRetry with backoff
race(effects)YesFirst wins
all([effects])YesParallel, wait all
setContext(props) / getContext(prop)No / YesSaga context

Pattern Matching

take, takeEvery, takeLatest, takeLeading, throttle, debounce accept:

PatternMatches
'*' or omittedAll actions
'ACTION_TYPE'Exact action.type match
[type1, type2]Any type in array
fn => booleanCustom predicate

How to Use

Read individual rule files for detailed explanations and code examples:

rules/effect-always-yield.md
rules/fork-attached-vs-detached.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and decision tables

References

PriorityReferenceWhen to read
1references/effects-and-api.mdWriting or debugging any saga
2references/fork-model.mdConcurrency, error propagation, cancellation
3references/testing.mdWriting or reviewing saga tests
4references/channels.mdExternal I/O, buffering, worker pools
5references/recipes.mdThrottle, debounce, retry, undo, batching, polling
6references/anti-patterns.mdCommon mistakes to avoid
7references/troubleshooting.mdDebugging frozen apps, missed actions, stack traces

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.66%
按下载量换算62

Claude

29.19%
按下载量换算46

Cursor

19.45%
按下载量换算31

Gemini CLI

8.8%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/anivar/redux-saga-skill --skill redux-saga 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills