Logo Revyl Cli Create

Revyl Cli Create

Tổ chức
RevylAI
revyl-cli-create

Create robust Revyl E2E tests using CLI commands from app source analysis or exploratory sessions.

Tổng quan

Nhà phát hànhRevylAI
Kho mãrevyl-cli
Tên kỹ năngrevyl-cli-create
Sao
522
Bản fork
25
Tệp đi kèm
1
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được RevylAI công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Revyl Cli Create trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/RevylAI/revyl-cli/tree/main/skills/revyl-cli-create
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RevylAI/revyl-cli.git /tmp/revyl-cli
mkdir -p .claude/skills
cp -r /tmp/revyl-cli/skills/revyl-cli-create .claude/skills/revyl-cli-create
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Revyl Cli Create trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Revyl Cli Create ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Revyl Cli Create không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Revyl CLI Test Authoring Skill

Native Agent Behavior

  • Ask at most 1-3 concise clarification questions only when the target app, platform, session, URL, or sensitive action cannot be inferred from the repo or Revyl CLI.
  • Prefer safe defaults and keep moving when revyl init --detect, revyl app list, revyl test list, screenshots, or reports can answer the question.
  • When Revyl prints an editor, report, viewer, or local app URL, open it in the native browser/tool surface when available: Codex Browser/in-app browser for local URLs, Revyl editor/report URLs, screenshots, and page checks; Claude Code .claude/skills compatibility links plus WebFetch/WebSearch or configured MCP/browser tools; Cursor .cursor/skills when using --copy, otherwise shared .agents/skills, plus available MCP/browser tools. Codex also discovers shared .agents/skills directly.
  • If no browser tool is exposed, report the URL and verify through revyl test report, revyl device screenshot, or revyl device report instead of claiming browser access.
  • Confirm before entering sensitive data, submitting forms, uploading files, accepting browser permissions, changing sharing/access, or deleting data.

End-to-End Authoring Loop

bash
# 1) Confirm auth and target app/build
revyl auth status
revyl app list --platform <ios|android>

# 2) Establish project config (choose the applicable flow)
revyl config pull                          # Existing registered project
# revyl init -y                            # New local project
# revyl config migrate --check             # Legacy config: inspect first
# revyl config migrate                     # Legacy config: then convert

# 3) Create from YAML
revyl test create <test-name> --from-file ./<test-name>.yaml

# 4) Iterate on .revyl/tests/<test-name>.yaml, then push and run
revyl test push <test-name> --force
revyl test run <test-name>

# 5) Inspect results and refine
revyl test status <test-name>
revyl test report <test-name> --json

YAML-first creation requires the selected project to already have a valid .revyl/config.yaml:

bash
revyl test create <test-name> --from-file ./test.yaml

The CLI checks the YAML with backend validation, copies it into .revyl/tests/, and pushes it. It never creates or migrates project configuration.

If you prefer to scaffold first:

bash
revyl test create <test-name> --platform ios --no-open
# edit .revyl/tests/<test-name>.yaml
revyl test push <test-name> --force

If you have a completed exploratory device session:

bash
revyl test create --from-session <session-id> <test-name> --app <app-id>
revyl test run <test-name>

The name can be omitted; the compiler will use its suggested session title.

For full examples and troubleshooting, see docs/tests/creating-tests.md.

If this test comes from a running revyl dev session:

bash
revyl device screenshot --out /tmp/revyl-current.png
revyl device report --session-id <session-id> --json

Then author YAML explicitly and create it with revyl test create --from-file. Put repeated setup such as login, onboarding, or seed data in a reusable module/setup block so feature tests do not duplicate it.

Tool Map

  • Tests: revyl test create, push, run, report, status, and history.
  • Modules: revyl module create/list/get/update/usage/insert for reusable block groups.
  • Scripts: revyl script create/list/get/update/usage/insert for code_execution blocks.
  • Variables: test.variables, revyl test var, revyl global var, extraction.variable_name, and code_execution.variable_name.
  • Launch env: revyl global launch-var plus repeated --launch-var only when app startup needs environment config.
  • Grouping: revyl workflow and revyl tag after individual tests are stable.

YAML Building Blocks

Start from the smallest complete test:

yaml
test:
  metadata:
    name: smoke-login-ios
    platform: ios
    tags:
      - smoke
  build:
    name: ios-test
  variables:
    email: "{{global.login-email}}"
  blocks:
    - type: instructions
      step_description: "Sign in with {{email}}."
    - type: validation
      step_description: "The home screen is visible."

Use these block types:

  • instructions: one meaningful user intent.
  • validation: a durable assertion about user-visible state.
  • manual: framework actions such as wait, go_home, navigate, set_location, kill_app, and open_app.
  • extraction: read screen data into variable_name.
  • code_execution: run a saved script or lightweight inline code.
  • module_import: import a reusable module by name or ID.
  • if / while: conditional branches and loops with nested blocks.

Variables and Secrets

  • Local YAML variables go under test.variables and are referenced as {{variable-name}} or {{variable_name}}.
  • Extracted values and code execution output become variables when the block has variable_name.
  • Test-scoped variables can be managed after creation with revyl test var set/list/get/delete.
  • Org-level secrets use revyl global var set name=value --secret and are referenced as {{global.name}}.
  • Define or extract variables before use. Never hardcode secrets in reusable YAML or modules.
bash
revyl test var set <test-name> email=test@example.com
revyl global var set login-password='secret' --secret
revyl global launch-var create API_URL=https://staging.example.com

Code Execution

Prefer saved scripts for setup, API seeding, backend assertions, or reusable logic:

bash
revyl script create seed-user --file scripts/seed_user.py --runtime python
revyl script insert seed-user
revyl script usage seed-user

Use the snippet from revyl script insert, or write the block directly:

yaml
- type: code_execution
  script: "seed-user"
  variable_name: seeded_user_id

Legacy YAML may use step_description to hold an internal script UUID, but new authored YAML should use script.

Use inline code only for small one-offs when a saved script would be unnecessary:

yaml
- type: code_execution
  step_description: |
    print("ready")
  code_execution_runtime: python

Reusable Modules

Use modules for stable shared setup like login, onboarding, account creation, or checkout prep.

yaml
# modules/login.yaml
blocks:
  - type: instructions
    step_description: "Sign in with {{email}} and {{global.login-password}}."
  - type: validation
    step_description: "The home screen is visible."
bash
revyl module create login-flow --from-file modules/login.yaml --description "Standard login"
revyl module insert login-flow
revyl module usage login-flow

Import with the snippet from revyl module insert:

yaml
- type: module_import
  module: "login-flow"

Legacy YAML may use module_id to hold an internal module UUID, but new authored YAML should use module.

Full Flow Example

yaml
test:
  metadata:
    name: checkout-e2e-ios
    platform: ios
    tags:
      - checkout
      - e2e
  build:
    name: ios-test
  variables:
    email: checkout-user@example.com
    product-name: Orchid Mantis
  blocks:
    - type: code_execution
      script: "seed-checkout-user"
      variable_name: seeded_user_id

    - type: module_import
      module: "login-flow"

    - type: instructions
      step_description: "Complete checkout for {{product-name}} using the saved shipping address."
    - type: extraction
      step_description: "Extract the order confirmation number."
      variable_name: order_number
    - type: validation
      step_description: "The confirmation page shows order {{order_number}}."

Conversion Rules

  1. One action per instruction step.
  2. Keep validation in separate validation steps.
  3. Validate user-facing outcomes, not transient loading text.
  4. Replace secrets with variables or global variables.
  5. Use module_import blocks for reusable setup like login or onboarding.
  6. Preserve the exact target language that worked in the device report when it is more specific than a generic tap.
  7. Use code_execution for API setup, data seeding, backend checks, and deterministic helper logic.

Good:

yaml
- type: instructions
  step_description: "Complete checkout for Orchid Mantis using the saved shipping address."
- type: validation
  step_description: "The confirmation screen shows an order number."

Bad:

yaml
- type: instructions
  step_description: "Tap Cart, verify the total, tap Checkout, verify the shipping form, enter the address, tap Continue, verify payment, then place the order."
- type: validation
  step_description: "The Cart tab is visible."
- type: validation
  step_description: "The Checkout button is visible."
- type: validation
  step_description: "The payment form is visible."

Definition of Done

  1. Test name communicates intent.
  2. Test passes on correct behavior.
  3. Test fails on intended regression.
  4. Validations are stable across expected data variation.
  5. Variables, scripts, modules, launch vars, tags, and workflows are created only when the test actually needs them.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Revyl Cli Create làm được gì?

Create robust Revyl E2E tests using CLI commands from app source analysis or exploratory sessions.

Vì sao nên dùng Revyl Cli Create trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Revyl Cli Create là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Revyl Cli Create trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/RevylAI/revyl-cli/tree/main/skills/revyl-cli-create. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Revyl Cli Create?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Revyl Cli Create với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Revyl Cli Create với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Revyl Cli Create có miễn phí không?

Kỹ năng này được RevylAI phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇