Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
discoart【部署与运维】Use this repo skill for DiscoArt image generation, configuration/prompt scheduling, CLI, Jina serving, Docker runtime planning, and troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when the task involves DiscoArt, the Python package for creating Disco Diffusion artworks through a one-line API, YAML/CLI workflows, and optional Jina service deployment.
DiscoArt is CUDA-oriented: config and CLI planning can be checked safely, but actual create() runs may download large diffusion/CLIP/secondary-model weights and need GPU memory. Do not start generation, model downloads, Docker builds, or persistent servers unless the user explicitly wants that runtime action.
scripts/check_discoart_environment.py --check-cuda to verify package imports, version, default config access, and CUDA visibility without loading models.discoart.config.load_config or the bundled validators before calling create() or starting a service.name_docarray, DISCOART_OUTPUT_DIR, and DISCOART_CACHE_DIR so outputs and cache behavior are predictable.references/repo-provenance.md before refreshing this skill or comparing it with a newer checkout.| If the user asks to... | Read |
|---|---|
Generate or plan artwork with Python create(), choose model/runtime settings, handle DocumentArray outputs, recover local/cloud results, or use go_big() | sub-skills/artwork-generation/SKILL.md |
| Write, validate, repair, or explain configs, prompt schema v1, legacy prompt weights, schedule strings, CLIP guidance routing, cut schedule groups, cheatsheets, or config import/export helpers | sub-skills/configuration-and-prompts/SKILL.md |
Use python -m discoart, export/run YAML from CLI, serve through Jina Flow, call /create//result//skip//stop, or plan Docker/Jupyter GPU execution | sub-skills/cli-and-serving/SKILL.md |
| Debug package-wide install/import, CUDA/model-cache, network/version-check, output/cache, or optional dependency issues before choosing a workflow | references/troubleshooting.md |
python scripts/check_discoart_environment.py --check-cuda
This helper imports DiscoArt with remote model lookup disabled, checks the default configuration can be loaded, prints key dependency versions, and optionally probes torch.cuda without running diffusion.
pip install discoart
For local development against a checkout, use an editable install only in a disposable environment:
python -m pip install -e .
discoart.0.12.2.from discoart import create, cheatsheet, load_config, save_config, show_config, go_big and from discoart.config import save_config_svg, export_python.create(**kwargs) -> Optional[DocumentArray]; static overload/docstring facts are generated from the packaged YAML resources.For a concise package overview, outputs, environment variables, and evidence-backed constraints, read references/package-overview.md.
python -m discoart serve as a default check; it blocks as a persistent service.references/package-overview.md — package purpose, APIs, outputs, runtime prerequisites, and environment variables.references/troubleshooting.md — cross-cutting install/import, CUDA/cache, network, DocArray, and service setup failures.references/repo-provenance.md — source repository snapshot and refresh baseline.references/repo-routing-metadata.json — structured scenario metadata consumed by the repo-skills router importer.