360 Secure SkillHub
360 安全技能中心

Chain

该 Skill 以本地脚本提供链式设计模式、中间件管道、Promise 链、过滤器链和区块链基础等概念的快速参考,通过 intro、middleware、pipeline 等命令输出文本说明与跨语言示例。未声明外部 API 密钥或宿主专属依赖,运行需要 Shell。

bytesagain
bytesagain
热度 20.89
最近更新 2026-03-21 20:22:00
分类:知识依赖:代码执行应用场景:概念解释 / 教学辅导 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add chain
Metadata
name
chain
version
1.0.0
description
Chain of Responsibility reference — design pattern, middleware pipelines, command chains, blockchain basics. Use when building request processing pipelines or implementing handler chains.
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["chain","design-pattern","pipeline","middleware","handler","workflow"]
category
general

Chain — Chain Pattern & Pipeline Reference

Quick-reference skill for chain-based design patterns, middleware pipelines, and sequential processing architectures.

When to Use

  • Implementing Chain of Responsibility design pattern
  • Building middleware pipelines (Express, Koa, Django)
  • Designing multi-step data processing workflows
  • Understanding promise chains and async pipelines
  • Building event processing or filter chains

Commands

intro

scripts/script.sh intro

Overview of chain patterns — concept, variants, and applications.

responsibility

scripts/script.sh responsibility

Chain of Responsibility design pattern — GoF pattern with examples.

middleware

scripts/script.sh middleware

Middleware chains — Express, Koa, Django, and custom implementations.

promise

scripts/script.sh promise

Promise chains and async pipelines — chaining, error handling, patterns.

pipeline

scripts/script.sh pipeline

Unix pipeline philosophy and data transformation chains.

filter

scripts/script.sh filter

Filter chains — servlet filters, interceptors, decorators.

blockchain

scripts/script.sh blockchain

Blockchain fundamentals — hash chains, blocks, consensus basics.

examples

scripts/script.sh examples

Implementation examples across languages and frameworks.

help

scripts/script.sh help

version

scripts/script.sh version

Configuration

Variable Description
CHAIN_DIR Data directory (default: ~/.chain/)

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com