yuxi
Operate and maintain Yuxi, a Docker Compose managed FastAPI, LangGraph, Vue, RAG, OCR, knowledge graph, and CLI platform.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- yuxi
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Operate and maintain Yuxi, a Docker Compose managed FastAPI, LangGraph, Vue, RAG, OCR, knowledge graph, and CLI platform.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/capability-map.md5.1 KB
- 参考文档references/repo-provenance.md3.7 KB
- 参考文档references/repo-routing-metadata.json496 B
- 参考文档references/source-script-policy.md3.5 KB
- 参考文档references/troubleshooting.md3.5 KB
03 SKILL.md 正文
Yuxi repo skill
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.
First safety gates
- Do not expose secrets.
.env,.env.prod, provider keys, admin credentials, Langfuse keys, API keys, MinIO data, and local database contents are sensitive. - Classify the backend requirement. Core package/CLI guidance is CPU/any. Compose integration/e2e checks require live services. Model providers, Langfuse, cloud OCR, and external API calls require explicit credentials/network approval.
- Prefer bundled references and scripts. Generated files are self-contained. If a source repo helper is mutating or credentialed, use the bundled policy reference instead of auto-running it.
- Keep import disabled for this production run. This skill was generated with final managed import intentionally disabled; do not import it into the live repo-skills library unless a later user explicitly asks.
Route tasks to sub-skills
| 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. |
Quick operating sequence
- Read
references/repo-provenance.mdbefore relying on this skill for a new checkout; compare the checkout branch/commit and package versions to the recorded evidence. - Pick the sub-skill from the routing table. If the task spans areas, start with deployment/config for live stack prerequisites, then load the runtime/knowledge/CLI/development sub-skill that owns the behavior.
- Use the sub-skill's
references/troubleshooting.mdbefore changing code or configuration. - For validation, use the owner sub-skill's native candidate notes and any bundled script. Treat service-required and external-credential candidates as blocked until prerequisites are visibly available.
Minimal local verification
Use the owning sub-skill before running broad checks, but these smoke paths are safe starting points in a Yuxi checkout:
- Backend package import:
cd backend && uv run --group test pytest test/unit/test_package_import.py - CLI help/config:
sub-skills/cli-and-external-integration/scripts/check-cli.sh - Running stack health:
sub-skills/deployment-and-configuration/scripts/check-runtime-health.sh --project-dir . --dev - Check selection for code changes:
sub-skills/repo-development/scripts/run-selected-checks.sh all-safe
Do not treat service-required or external-credential workflows as verified unless their prerequisites are visible and the user approved the run.
Bundled references
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.
Bundled scripts
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.
Verification status
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.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).