openspec-new-change

bởi rivet-dev

Bắt đầu một thay đổi OpenSpec mới bằng quy trình tạo phẩm thử nghiệm. Sử dụng khi người dùng muốn tạo một tính năng, bản sửa lỗi hoặc sửa đổi mới với cấu trúc…

npx skills add https://github.com/rivet-dev/rivet --skill openspec-new-change

Start a new change using the experimental artifact-driven approach.

Input: The user's request should include a change name (kebab-case) OR a description of what they want to build.

Steps

  1. If no clear input provided, ask what they want to build

    Use the AskUserQuestion tool (open-ended, no preset options) to ask:

    "What change do you want to work on? Describe what you want to build or fix."

    From their description, derive a kebab-case name (e.g., "add user authentication" → add-user-auth).

    IMPORTANT: Do NOT proceed without understanding what the user wants to build.

  2. Determine the workflow schema

    Use the default schema (omit --schema) unless the user explicitly requests a different workflow.

    Use a different schema only if the user mentions:

    • A specific schema name → use --schema <name>
    • "show workflows" or "what workflows" → run openspec schemas --json and let them choose

    Otherwise: Omit --schema to use the default.

  3. Create the change directory

    openspec new change "<name>"
    

    Add --schema <name> only if the user requested a specific workflow. This creates a scaffolded change at openspec/changes/<name>/ with the selected schema.

  4. Show the artifact status

    openspec status --change "<name>"
    

    This shows which artifacts need to be created and which are ready (dependencies satisfied).

  5. Get instructions for the first artifact The first artifact depends on the schema (e.g., proposal for spec-driven). Check the status output to find the first artifact with status "ready".

    openspec instructions <first-artifact-id> --change "<name>"
    

    This outputs the template and context for creating the first artifact.

  6. STOP and wait for user direction

Output

After completing the steps, summarize:

  • Change name and location
  • Schema/workflow being used and its artifact sequence
  • Current status (0/N artifacts complete)
  • The template for the first artifact
  • Prompt: "Ready to create the first artifact? Just describe what this change is about and I'll draft it, or ask me to continue."

Guardrails

  • Do NOT create any artifacts yet - just show the instructions
  • Do NOT advance beyond showing the first artifact template
  • If the name is invalid (not kebab-case), ask for a valid name
  • If a change with that name already exists, suggest continuing that change instead
  • Pass --schema if using a non-default workflow

Thêm skills từ rivet-dev

multiplayer-game
rivet-dev
Các mẫu thiết kế thực tế để xây dựng trò chơi nhiều người chơi: ghép trận, vòng lặp tick, trạng thái thời gian thực, quản lý tương tác và xác thực. Bao gồm mã khởi đầu và các mẫu kiến trúc cho 10 thể loại trò chơi (battle royale, đấu trường, phong cách IO, thế giới mở, tiệc, vật lý 2D/3D, xếp hạng, theo lượt, nhàn rỗi) với cấu trúc tác nhân, sơ đồ vòng đời và chiến lược mạng. Đề cập đến các nguyên tắc cơ bản của mô phỏng máy chủ: vòng lặp thời gian thực cố định so với cập nhật theo
rivetkit
rivet-dev
Tính toán có trạng thái, tồn tại lâu dài cho các tác nhân AI, ứng dụng đa người chơi và tự động hóa quy trình làm việc. Các tác nhân là các tiến trình trong bộ nhớ liên tục duy trì trạng thái qua các yêu cầu mà không cần truy vấn cơ sở dữ liệu, với khả năng tự động mở rộng từ 0 đến hàng triệu phiên bản đồng thời. Tích hợp sẵn giao tiếp thời gian thực qua WebSockets và sự kiện, hàng đợi bền vững để xử lý tin nhắn theo thứ tự, và SQLite cho các truy vấn dữ liệu có cấu trúc. Trạng thái tồn tại qua các lần khởi động lại và sự cố th
ai-agent
rivet-dev
Xây dựng backend cho AI agent với bộ nhớ liên tục: một Rivet Actor cho mỗi cuộc hội thoại, xử lý tin nhắn theo hàng đợi, và phản hồi LLM dạng stream dưới dạng sự kiện thời gian thực.
ai-agent-workspace
rivet-dev
Cung cấp cho mỗi tác nhân AI máy tính riêng của nó: một không gian làm việc liên tục với hệ thống tệp, tiến trình, shell, mạng và các phiên tác nhân trên một quy trình nhẹ…
chat-room
rivet-dev
Xây dựng backend phòng chat thời gian thực với Rivet Actors: một actor cho mỗi phòng, lịch sử tin nhắn dùng SQLite, và phát sóng WebSocket đến mọi client đã kết nối.
collaborative-text-editor
rivet-dev
Xây dựng backend cho trình soạn thảo văn bản cộng tác với Yjs CRDTs và Rivet Actors: các actor theo từng tài liệu chuyển tiếp đồng bộ hóa và cập nhật nhận thức, đồng thời lưu trữ ảnh chụp nhanh.
cron-jobs
rivet-dev
Các công việc cron bền bỉ với Rivet Actors: bộ hẹn giờ schedule.after và schedule.at tồn tại sau khi khởi động lại và sự cố, cùng với việc kích hoạt lại các công việc định kỳ và trình xử lý idempotent.
live-cursors
rivet-dev
Con trỏ trực tiếp và sự hiện diện đa người chơi với Rivet Actors: trạng thái con trỏ theo từng kết nối, cập nhật thời gian thực qua sự kiện hoặc WebSockets thô, và điều chỉnh tần suất.