Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
orchestration-and-deployment【部署与运维】Build and route Jina Flow and Gateway topologies, multi-Executor deployments, readiness checks, and export commands.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task involves Flow, multiple Deployments, Gateway configuration, replicas/shards, YAML topologies, readiness/profiling, or static exports to Docker Compose/Kubernetes/schema artifacts.
load_config, save_config, variables, schema/export commands, and deployment materialization.from jina import Flow, Executor, requests
from docarray import BaseDoc, DocList
class InputDoc(BaseDoc):
text: str = ""
class EchoExecutor(Executor):
@requests(on="/echo")
def echo(self, docs: DocList[InputDoc], **kwargs) -> DocList[InputDoc]:
for doc in docs:
doc.text = f"echo:{doc.text}"
return docs
flow = Flow(protocol="grpc", port=12345).add(uses=EchoExecutor)
with flow:
flow.block()