writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
orchestration-and-deploymentBuild and route Jina Flow and Gateway topologies, multi-Executor deployments, readiness checks, and export commands.
Independent GitHub snapshot · Automated classification · Original documentation governs
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()