writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
cli-and-servingOperate DiscoArt command-line, YAML execution, Jina serving, endpoint polling/control, and Docker/Jupyter runtime planning.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task asks to use python -m discoart, export or run a YAML file from the command line, launch or tune DiscoArt as a Jina service, call /create//result//skip//stop, or plan Docker/Jupyter GPU execution.
create(**kwargs) parameter meanings, outputs, DocumentArray post-processing, generation runtime, and model/cache behavior belong to ../artwork-generation/SKILL.md.../configuration-and-prompts/SKILL.md.python -m discoart config [EXPORT_YAML_FILE]. With no output path, the default YAML is printed to stdout.python -m discoart create [YAML_CONFIG_FILE]. With no file path, create reads YAML from stdin; avoid leaving it waiting on an interactive terminal by accident.python -m discoart serve [FLOW_YAML_FILE]. The command loads the flow and blocks the terminal until interrupted./post route with execEndpoint. Use a stable name_docarray in /create if the workflow needs /result polling.jina.Client(...).post(endpoint, parameters=...); the service endpoints remain /create, /result, /skip, and /stop.DISCOART_OUTPUT_DIR, DISCOART_CACHE_DIR, DISCOART_DEFAULT_PARAMETERS_YAML, and WANDB_MODE into the container.--help; do not run full generation, Docker, or persistent service checks by default.python -m discoart [-h] [-v] {create,config,serve} ....config accepts optional EXPORT_YAML_FILE and defaults to stdout.create accepts optional YAML_CONFIG_FILE and defaults to stdin.serve accepts optional FLOW_YAML_FILE and defaults to DiscoArt's packaged Jina flow./create, /skip, and /stop; result polling endpoint is /result.51001, monitoring port 51002, DiscoArtExecutor, ResultPoller, replicas: 1, and floating: false.scripts/service_config_helper.py prints flow YAML only; it never launches a server, downloads models, opens ports, or writes files by default.