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

redux-saga-skill终极版传奇技能

Agent Skill

redux-saga-skill 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,262

周安装

331

GitHub Stars

公开资料未说明

下载量

2,674
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install redux-saga-skill

简介

Redux-Saga 最佳实践与 API 指南,助力构建副作用中间件。

  • 涵盖测试、调试与模式设计,提升前端状态管理能力。
  • 适合大型 React/Redux 项目维护与技术债务治理。
  • 建议结合具体业务逻辑选择合适实现方式。redux-saga-skill 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 需熟悉 Redux 生态与生成器语法基础。

SKILL.md

name
redux-saga
description
>
license
MIT
user-invocable
false
agentic
false
compatibility
JavaScript/TypeScript projects using redux-saga ^1.4.2 with Redux Toolkit
metadata
author
Anivar Aravind
author_url
https://anivar.net
source_url
https://github.com/anivar/redux-saga-skill
version
1.0.0
tags
redux-saga, redux, redux-toolkit, side-effects, generators, middleware, async, channels, testing

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

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

98.96%
按下载量换算2,646

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

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

安装前确认

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

来源信息

继续浏览同类 Skills