AGENT SKILL

open-assistant

Use Open-Assistant repository guidance for backend task APIs, OA JSONL data utilities, Next.js contribution/chat UI, and local inference services.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
open-assistant
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use Open-Assistant repository guidance for backend task APIs, OA JSONL data utilities, Next.js contribution/chat UI, and local inference services.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Open-Assistant repo skill

Use this repo skill when a task involves the LAION Open-Assistant repository: data-collection backend APIs, shared protocol schemas, OA JSONL exports, the Next.js website/task UI, or the local inference server/worker/chat stack. The upstream project is completed, so prefer targeted maintenance, debugging, local development, and data/inference workflow support over broad product-roadmap changes.

First decisions

  1. Check staleness: read references/repo-provenance.md before assuming this skill matches a checkout. If the commit, package versions, service layout, or major evidence paths changed, run refresh-repo-skill.

  2. Orient in the repo: read references/setup-and-architecture.md for the selected source scope, Docker profiles, service boundaries, and excluded heavy areas.

  3. Review managed routing: inspect references/repo-routing-metadata.json when you need the structured scenario metadata that keeps repo-skills-router placement aligned with this skill.

  4. Diagnose shared failures: read references/troubleshooting.md for cross-cutting Docker, Python, Node, secrets, and boundary-handoff issues.

  5. Run a safe layout check when a checkout is available:

    python scripts/check_open_assistant_stack.py --repo-root <repo-root>
    

Setup at a glance

Use the smallest stack that matches the task:

  • Backend and OA data utilities: python -m pip install -r backend/requirements.txt followed by python -m pip install -e 'oasst-shared[dev]' -e 'oasst-data[dev]'.
  • Website work: from website/, run npm ci before npm run lint, npm run typecheck, or Jest/Cypress checks.
  • Inference server/worker inspection: python -m pip install -r inference/server/requirements.txt for server imports and lightweight route checks. Keep _lorem for CPU-only plumbing checks before any real model config.
  • Full local stack debugging: use the Docker compose profile that matches the layer you are touching rather than starting every service.

Minimal verification once a checkout is available:

python scripts/check_open_assistant_stack.py --repo-root <repo-root>

Route by task

User intent Go to Why
FastAPI backend, task lifecycle, /api/v1/tasks, messages/users/stats/text labels, backend settings, DB export/import, shared Python API client, or backend errors sub-skills/backend/SKILL.md Owns backend API semantics, oasst_shared protocol models, oasst_data, and safe OA JSONL tooling.
OA JSONL files, message trees, flatten/filter/split operations, backend exports, data schema validation sub-skills/backend/SKILL.md Owns bundled oasst_jsonl_tool.py and data-format reference.
Next.js website, contribution task pages, label/rank/reply UI, frontend API client, chat UI, Prisma, NextAuth, Jest, Cypress, Storybook, feature flags, or localization sub-skills/website/SKILL.md Owns browser/Next layer, website package scripts, UI route maps, tests, and locale helpers.
Inference FastAPI server, websocket workers, text client, _lorem/distilgpt2 smoke paths, model config names, SSE chat events, plugins, safety server, GPU sizing/OOM sub-skills/inference/SKILL.md Owns inference services, model registry, worker protocol, and generation troubleshooting.
Docker profile confusion, local stack selection, service boundaries, or whether a task crosses backend/website/inference references/setup-and-architecture.md Summarizes profiles, service ownership, and handoff boundaries.

Safe bundled scripts

Scripts that accept --repo-root are intended for a user's current checkout, not for this skill's original construction checkout.

Scope boundaries

Included in this generated skill:

  • Backend REST API, settings, task lifecycle, DB export/import semantics, shared Python schemas/API client, and oasst_data JSONL utilities.
  • Website local dev, task UI, chat UI integration, frontend API client behavior, tests, Prisma, feature flags, and localization.
  • Inference server/worker/text-client/safety stack, model config registry, worker websocket protocol, SSE events, plugin parsing, and GPU sizing guidance.

Excluded from this generated skill run:

  • model/ training, reward modeling, RLHF, evaluation, pretokenization, and large-model export tools. These require a separate model-training extension because they involve heavy torch/DeepSpeed/FlashAttention/model/dataset/GPU dependencies.
  • Production deployment, Ansible, infrastructure operations, and credentials-bound systems.
  • Exploratory notebooks and historical analysis artifacts.
  • Docusaurus docs-site maintenance except where it informs setup boundaries.

Operating cautions

  • Do not start Docker services, download model weights, run GPU workers, call Hugging Face APIs, mutate databases, or run production/infrastructure scripts unless the user explicitly asks and accepts resource, credential, and rollback requirements.
  • Keep backend, website, and inference symptoms separate. Report the exact failing layer, command/route, status/body, and environment signals when routing to another sub-skill.
  • Use _lorem for no-download inference plumbing checks before attempting real model configurations.
  • Use safe JSONL file helpers before any DB import/export workflow. Real DB import is mutating unless a dry-run rollback is explicitly selected.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351