Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

paxs-apipaxs API 文档

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

441

周安装

18

GitHub Stars

公开资料未说明

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:paxs-api(paxs API 文档)
来源仓库:https://github.com/developerpaxs/paxs-skills
仓库路径:skills/paxs-api
安装命令:
npx skills add https://github.com/developerpaxs/paxs-skills --skill paxs-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/developerpaxs/paxs-skills --skill paxs-api

简介

paxs-api 用于辅助 API 设计、接口文档、请求响应结构和服务集成说明,适合梳理 endpoint、生成 OpenAPI 草稿或检查字段命名。

  • 适用于开发类任务,需结合真实业务语义和现有代码提取事实。
  • 通过 npx skills add 命令从 GitHub 安装,需确认权限范围和维护状态。
  • 涉及接口文档生成时应避免凭空补字段,最好从现有 schema 或样例中提取。
  • paxs-api 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

PAXS AI Platform Integration

You help users connect to and use the PAXS AI platform for transcription, meeting notes, and meeting management.

Authentication

PAXS uses OAuth2 with Google login via an agent polling flow. Before calling any API, check if the user has a valid access token.

If No Token Exists

  1. Generate a random state string for CSRF protection
  2. Present the user with an authorization link (do NOT open a browser automatically):
https://dzd.paxs.ai/api/oauth/provider/authorize?response_type=code&state={STATE}&flow=agent
  1. Immediately start polling — do NOT wait for the user to reply "OK" or confirm. Begin polling right after presenting the link:
GET https://dzd.paxs.ai/api/oauth/provider/poll?state={STATE}

Response while waiting:

{"status": "pending"}

Response when user completes authorization:

{"status": "complete", "code": "..."}

Poll every 3 seconds, timeout after 5 minutes.

  1. Exchange the code for tokens:
POST https://dzd.paxs.ai/api/oauth/provider/token
Content-Type: application/json

{
  "grant_type": "authorization_code",
  "code": "<CODE>",
  "redirect_uri": "https://dzd.paxs.ai/api/oauth/provider/agent-callback"
}

Response:

{
  "access_token": "...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "refresh_token": "...",
  "scope": "session media analysis user:read"
}
  1. Store the tokens in .claude/skills/paxs-api/.tokens.json:
{
  "access_token": "...",
  "refresh_token": "..."
}

Token Storage

  • Tokens are stored at .claude/skills/paxs-api/.tokens.json
  • Always read tokens from this file before making API calls
  • After obtaining or refreshing tokens, update this file immediately

If Token Expired (401 Response)

Refresh the token:

POST https://dzd.paxs.ai/api/oauth/provider/token
Content-Type: application/json

{
  "grant_type": "refresh_token",
  "refresh_token": "<REFRESH_TOKEN>"
}

The response returns new access_token and refresh_token. Always store the latest tokens.

Token Lifetime

  • Access token: 1 hour
  • Refresh token: 30 days

Supported File Formats

Audio: MP3, WAV, FLAC, MPA, AAC, Opus, M4A Video: MPEG, MP4, FLV, WebM, WMV, 3GP

Before uploading, validate the file extension. Reject unsupported formats with a clear error message listing the accepted formats above.

API Reference

All API calls require the header: Authorization: Bearer <ACCESS_TOKEN>

Base URL: https://dzd.paxs.ai (hardcoded for local development)

Get Current User

GET /api/users/me

Use this to verify the token works and get the user's profile.

Create a Meeting

POST /api/sessions
Content-Type: application/json

{
  "title": "Meeting title",
  "description": "Optional description",
  "attendees": [
    {"email": "user@example.com", "displayName": "User Name", "role": "participant", "source": "manual"},
    {"email": "other@example.com", "displayName": "Other Person", "role": "participant", "source": "manual"}
  ]
}

Attendee fields:

FieldTypeRequiredDefaultDescription
emailstringYesAttendee email (cannot be empty)
displayNamestringYesAttendee display name (cannot be empty)
rolestringNo"Unknown"Attendee role
sourcestringNo"manual"Source: "manual", "event", or "zoom_participant"

Important: attendees is required when creating a meeting. The user must provide at least the attendee list. If the user does not provide attendees, ask them before proceeding.

Returns the created meeting with an id.

Upload a Recording

POST /api/recordings?session_id={SESSION_ID}
Content-Type: multipart/form-data

file: <audio/video file>

Returns the attachment with an id.

Important: The session_id must be sent as a form field (not a query parameter).

Constraints:

  • One recording per meeting — Each meeting can only have one active recording. Uploading a new recording replaces the existing one.
  • Auto-pipeline — After a successful upload, the backend automatically triggers the full analysis pipeline: transcription first, then meeting note upon transcription completion. No manual analysis request is needed.
  • MIME type required — When uploading via curl, specify the correct MIME type (e.g., file=@recording.wav;type=audio/wav). Without it, the server rejects the file.
  • If the user provides multiple audio files, create a separate meeting for each file.

Request Analysis

POST /api/analysis/request
Content-Type: application/json

{
  "session_id": "<SESSION_ID>",
  "attachment_id": "<ATTACHMENT_ID>",
  "analysis_types": ["transcription", "meeting note"],
  "instruction": "Generate a detailed meeting summary",
  "meeting_type": "group"
}

Available analysis types:

  • transcription — Speech-to-text
  • meeting note — Meeting summary (requires instruction)
  • key_points — Extract key discussion points
  • sentiment — Sentiment analysis

Meeting types: group, team, department, cross_functional, organization, company

Note: If requesting meeting note, the instruction field is required.

Dependency handling: All analysis types depend on transcription. Before requesting any analysis (meeting note, business note, key_points, etc.), you MUST ensure a completed transcription exists for the recording:

  1. Check if the recording already has a completed transcription via GET /api/recordings/{RECORDING_ID}/analysis?session_id={SESSION_ID}&analysis_type=transcription
  2. If no transcription exists or it failed → include "transcription" in the analysis_types array alongside the requested type
  3. The backend will automatically resolve the dependency chain: transcription completes first, then the requested analysis runs

For example, if the user asks for a meeting note but no transcription exists, send ["transcription", "meeting note"] in a single request.

Get Recording Analysis

GET /api/recordings/{RECORDING_ID}/analysis?session_id={SESSION_ID}

Returns all analysis reports for a recording. Each report has a status field:

  • pending — Not yet started
  • processing — In progress
  • completed — Done, results available
  • failed — Analysis failed

Optional query parameters:

  • analysis_type — Filter by specific type (e.g., transcription, meeting note)

Polling Strategy

Analysis is asynchronous. After uploading a recording, poll this endpoint:

  1. Wait 5 seconds before the first poll
  2. Poll every 5 seconds: GET /api/recordings/{RECORDING_ID}/analysis?session_id={SESSION_ID}
  3. Only check the status field of each item in the response — ignore report_content during polling to avoid flooding context with large payloads
  4. Present each analysis result as soon as its status changes to completed (see Displaying Results below)
  5. Stop when all requested analysis types are completed or failed
  6. Timeout after 5 minutes (60 polls)

Displaying Results

When an analysis completes, parse report_content (JSON string) and extract only the relevant fields:

  • Transcription — show content.transcription.summary and content.transcription.speakers
  • Meeting Note — show markdown

Do NOT dump the full report_content. Ignore internal fields like segments, prompt_tokens, completion_tokens, task_id, etc.

List meeting

GET /api/sessions?page=1&page_size=20

Get meeting Details

GET /api/sessions/{SESSION_ID}

One-Shot Mode

When a user provides audio file(s), automatically handle the entire pipeline. The user must provide:

  • Audio file(s) — local path or URL
  • Attendees — list of participants with at least email and displayName

If attendees are not provided, ask the user before proceeding.

Single File

  1. Validate file format (must be a supported audio/video format)
  2. Load tokens from .claude/skills/paxs-api/.tokens.json (run OAuth if missing)
  3. Create a meeting with the filename as title and the provided attendees
  4. Upload the recording (backend auto-triggers transcription → meeting note pipeline)
  5. Poll analysis status every 5 seconds via GET /api/recordings/{RECORDING_ID}/analysis?session_id={SESSION_ID}
  6. Present each analysis result as soon as it completes — do not wait for all analyses to finish before showing results
  7. If any analysis fails, use POST /api/analysis/request to re-request only the failed types (max 3 retries). After 3 failures, notify the user with the error details.

Multiple Files

Each file gets its own meeting (one recording per meeting). Process sequentially:

  1. Validate all file formats first — reject any unsupported files before starting
  2. For each file, repeat the single file flow (steps 2-7)
  3. Present results grouped by file

Workflow

When a user wants to transcribe or analyze a meeting recording:

  1. Load tokens — Read .claude/skills/paxs-api/.tokens.json for stored credentials
  2. Authenticate — If no tokens, run the OAuth agent polling flow (present link → poll for code → exchange token); if token expired (401), refresh it
  3. Collect inputs — Ensure the user has provided: audio file + attendees list (ask if missing)
  4. Validate file — Check the file extension is a supported format before proceeding
  5. Create meetingPOST /api/sessions with title and attendees (attendees required)
  6. Upload recordingPOST /api/recordings with the audio file as multipart form data (include session_id as form field and correct MIME type)
  7. Monitor — The backend auto-triggers: transcription → meeting note. Poll via GET /api/recordings/{RECORDING_ID}/analysis?session_id={SESSION_ID} every 5 seconds.
  8. Retry on failure — While polling, if any analysis status is failed (e.g., transcription, meeting note), use POST /api/analysis/request to re-request only the failed analysis types on the same meeting. Do NOT re-create the meeting or re-upload the recording. Max 3 retry attempts per failed analysis; after 3 failures, notify the user with the error details.

Error Handling

  • 401 Unauthorized → Token expired, refresh it
  • 403 Forbidden → Insufficient scope or permissions
  • 400 Bad Request → Check request parameters
  • 404 Not Found → Resource does not exist

Guidelines

Step 0: Token Check (MANDATORY before any API call)

Before calling ANY PAXS API endpoint, you MUST:

  1. Read .claude/skills/paxs-api/.tokens.json
  2. If the file does not exist or is empty → immediately start the OAuth flow (do NOT attempt any API call first)
  3. If tokens exist → proceed with API calls
  4. If any API call returns 401 → refresh the token, update .tokens.json, and retry

Never attempt an API call without first confirming a token exists.

User-Facing Response Rules

  • Filter ALL API responses — this applies to every endpoint (/api/users/me, /api/sessions, /api/recordings, etc.). Do not dump raw API responses. Use your judgement to show only information that is meaningful to the user (e.g., title, participants, time, status). Hide internal or sensitive fields (IDs, tokens, database metadata, permissions, etc.) — keep them in memory for follow-up operations only.
  • Attendees are always required — if the user does not provide attendees, ask before proceeding. Do not create a meeting without them.
  • Title is optional — prompt the user for a title. If not provided, auto-generate one (e.g., based on date/time or filename).
  • No duplicate meetings — after a meeting is successfully created, do not create it again. If a step fails after meeting creation (e.g., upload fails), reuse the existing meeting ID for retries instead of creating a new one. If transcription or analysis fails, do NOT re-create the meeting or re-upload the recording — use /api/analysis/request to re-generate only the failed analyses.

General

  • Present the authorization link clearly and explain what it does, then immediately start polling — do not wait for user confirmation
  • After uploading a recording, the backend handles the full pipeline automatically (transcription → meeting note)
  • Do not manually call /api/analysis/request in the standard upload flow — only use it for: (1) retrying failed analyses detected during polling, or (2) on-demand analysis requests (e.g., user explicitly asks for meeting note or key_points on an existing meeting)
  • When requesting on-demand analysis, always verify transcription exists first (see Dependency handling)
  • Follow the Polling Strategy and Displaying Results sections for polling behavior and result presentation
  • When uploading via curl, always include the correct MIME type for the file

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

32.43%
按下载量换算46

Codex

32.24%
按下载量换算45

Cursor

19.33%
按下载量换算27

Gemini CLI

8.67%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills