Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
yuxi【部署与运维】Operate and maintain Yuxi, a Docker Compose managed FastAPI, LangGraph, Vue, RAG, OCR, knowledge graph, and CLI platform.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Load this repo skill when the task is about Yuxi / 语析: deploying the stack, debugging agent runtime behavior, working with knowledge bases or OCR, using or extending yuxi-cli, or choosing repository development checks.
Yuxi combines a FastAPI backend package, LangGraph agent runtime, Vue/Vite frontend, Docker Compose services, RAG/knowledge-graph/OCR workflows, and a Typer-based CLI. Treat Docker Compose as the canonical live runtime, but use CPU-safe package/CLI/static checks before escalating to service-required or external-credential tests.
.env, .env.prod, provider keys, admin credentials, Langfuse keys, API keys, MinIO data, and local database contents are sensitive.| Task signal | Use sub-skill | Why |
|---|---|---|
Start/diagnose the Docker stack, Compose profiles, .env, images, ports, logs, production deployment, sandbox-provisioner, OCR services, model-provider config | sub-skills/deployment-and-configuration/ | Owns service topology, configuration, health probes, and deployment troubleshooting. |
| Agent configs, run submission, request queue, steer, streaming, middleware, attachments, built-in tools, Skills, MCP, subagents, sandbox file semantics, API-key/SSE agent calls, Langfuse runtime hooks | sub-skills/agent-runtime/ | Owns Yuxi's LangGraph/FastAPI agent execution path and tool surfaces. |
Knowledge bases, document upload/parse/chunk/index/retrieve, Milvus/vector config, graph/mindmap, evaluation, OCR engines, read_file image/OCR fallback | sub-skills/knowledge-and-ocr/ | Owns RAG, KB, document processing, OCR, and knowledge evaluation behavior. |
yuxi CLI, remote discovery/login/status/logout, temporary browser chat, agent eval, kb upload/list/files/query/open/find, API-key external calls, SSE client behavior | sub-skills/cli-and-external-integration/ | Owns CLI and external integration commands, including safe offline smoke checks. |
| Code edits, monorepo boundaries, Docker hot reload, backend/frontend/CLI tests, lint/format, changelog/docs navigation, versioning/release policy | sub-skills/repo-development/ | Owns maintainer workflow and bounded check selection. |
references/repo-provenance.md before relying on this skill for a new checkout; compare the checkout branch/commit and package versions to the recorded evidence.references/troubleshooting.md before changing code or configuration.Use the owning sub-skill before running broad checks, but these smoke paths are safe starting points in a Yuxi checkout:
cd backend && uv run --group test pytest test/unit/test_package_import.pysub-skills/cli-and-external-integration/scripts/check-cli.shsub-skills/deployment-and-configuration/scripts/check-runtime-health.sh --project-dir . --devsub-skills/repo-development/scripts/run-selected-checks.sh all-safeDo not treat service-required or external-credential workflows as verified unless their prerequisites are visible and the user approved the run.
references/repo-provenance.md — commit, versions, dirty-state note, and evidence paths used to build the skill.references/repo-routing-metadata.json — structured router metadata for repo-skills import tooling.references/capability-map.md — public capability ownership and native verification candidate summary.references/source-script-policy.md — why repo-owned helpers were copied, adapted, wrapped, or left reference-only.references/troubleshooting.md — cross-cutting failure-mode index.Root does not own mutable scripts. Use scripts from the owning sub-skill:
sub-skills/deployment-and-configuration/scripts/check-runtime-health.sh — read-only health/log probe for an already running stack.sub-skills/cli-and-external-integration/scripts/check-cli.sh — offline CLI help/config smoke check with explicit opt-in remote ping.sub-skills/repo-development/scripts/run-selected-checks.sh — opt-in command printer/runner for bounded maintainer checks.This generated skill is an operating-knowledge candidate for Yuxi at the provenance recorded in references/repo-provenance.md. A private CPU/any Python inspection environment successfully imported the backend package, CLI package, selected agent/knowledge modules, and yuxi_cli --help. Final verify-repo-skill usability/native verification and managed import have not been performed by this creation phase.