wordpress-workspace-transcription-smoke-test

Chạy hoặc giải thích các bài kiểm tra khói điểm cuối phiên âm WordPress Workspace bằng tập lệnh shell không phụ thuộc, mã thông báo bearer, ID/miền trang web, tệp âm thanh,…

npx skills add https://github.com/automattic/workspace --skill wordpress-workspace-transcription-smoke-test

WordPress Workspace Transcription Smoke Test

Use this skill for direct endpoint testing of WordPress.com transcription.

Workflow

  1. Use the existing script first.
    • Script: Tools/wpcom-transcribe.sh
    • Endpoint: POST /wpcom/v2/sites/{site}/ai/transcription
    • Required: bearer token or auth header, site ID/domain, and audio file.
  2. Keep it dependency-free.
    • The script is POSIX shell plus curl.
    • Do not add jq, Python, local OAuth flows, or extra dependencies unless the user explicitly asks.
  3. Choose the narrowest invocation.
    • Dictation: WPCOM_BEARER_TOKEN="$TOKEN" Tools/wpcom-transcribe.sh --site 123456 --file ./sample.mp3
    • Command mode: add --intent command --selected-text "Rewrite this."
    • Debug REST proxy: add --envelope.
    • Network debugging: add --verbose and optional --proxy <url>.
    • Custom context: add --app-context '<json>'.
  4. Protect secrets.
    • Never print token values.
    • Prefer environment variables or redacted examples.
  5. Interpret failures by layer.
    • Local file and MIME detection.
    • Auth header or token scope.
    • Site ID/domain and selected-site permissions.
    • Endpoint response body and HTTP status.
    • Proxy, timeout, or WordPress.com API availability.

Product Notes

  • The app uses the same site-scoped endpoint for dictation and selected-text command mode.
  • The selected site may provide a server-side wp_guideline skill with slug transcribe, so connected apps share the same spelling, cleanup, and style rules.
  • The endpoint may create the Transcription guideline as a WordPress Guideline skill on first use.
  • Saving artifacts is controlled by the save_artifact field in app requests and should create WordPress Guideline artifacts on the selected site.

Thêm skills từ automattic

dn-info
automattic
Lấy thông tin chi tiết về một tên miền đã đăng ký bằng dn CLI. Sử dụng khi người dùng muốn xem chi tiết tên miền như ngày hết hạn, máy chủ tên, thông tin liên hệ,…
official
wordpress-plugin-publish
automattic
Sử dụng kỹ năng này khi xuất bản, gửi, tải lại, xác minh, đóng gói, kiểm tra, demo hoặc phát hành plugin WordPress.org với Pressship. Nó bao gồm…
official
dev
automattic
Quy trình phát triển cho plugin WordPress ActivityPub bao gồm thiết lập wp-env, lệnh kiểm thử, linting và quy trình xây dựng. Sử dụng khi thiết lập môi trường phát triển…
official
gitattributes
automattic
Sử dụng khi kiểm tra hoặc cập nhật phạm vi export-ignore trong .gitattributes để các tệp chỉ dành cho nhà phát triển (cấu hình lint, CI, kiểm thử, tài liệu, công cụ xây dựng) không được đưa vào bản phát hành…
official
integrations
automattic
Các mẫu tích hợp plugin WordPress của bên thứ ba. Sử dụng khi thêm tích hợp mới, gỡ lỗi tương thích với các plugin khác, hoặc làm việc với các…
official
design-systems
automattic
Hướng dẫn định hướng thẩm mỹ táo bạo cho thiết kế web. Sử dụng khi đưa ra các quyết định sáng tạo về kiểu chữ, màu sắc, chuyển động, bố cục không gian và tổng thể hình ảnh…
official
site-specification
automattic
Trích xuất thông số kỹ thuật toàn diện của trang web từ các mô tả đơn giản. Sử dụng khi phân tích yêu cầu chủ đề của người dùng để xác định loại trang, đối tượng, giọng điệu, bố cục…
official
wordpress-block-theming
automattic
Kiến trúc chủ đề WordPress Full Site Editing (FSE). Sử dụng khi tạo theme.json, block templates, template parts, patterns và functions.php cho…
official