Token导航 LogoToken导航

Agent Skill · 研究检索

stably-cli(stably CLI 搜索)

stably-cli 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

stably-cli 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 38,602。

总安装 1,536周安装 64GitHub Stars 6下载 512核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/stablyai/agent-skills --skill stably-cli

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找和筛选相关信息以支持任务决策。适合根据关键词快速定位候选结果或技术资料。需结合具体场景判断检索结果的适用性。stably-cli 属于研究检索类 Skill,可作为该场景下的辅助能力补充。安装前应核实仓库维护状态与联网权限。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。工具输出不可直接作为最终结论,需人工复核。

来源仓库内路径:skills/stably-cli

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/stablyai/agent-skills --skill stably-cli;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

stably-cli 怎么安装?

在终端执行 npx skills add https://github.com/stablyai/agent-skills --skill stably-cli。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

stably-cli 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

stably-cli 需要什么权限?

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

stably-cli 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

stably-cli 用的人多吗?

公开数据是累计安装 1,536 次,近一周安装 64 次,下载 512 次,GitHub 6 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

stably-cli 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
stably-cli

stably CLI 搜索 · 本页

1,5366接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Stably CLI Assistant

AI-assisted Playwright test management: plan, create, run, fix, and maintain tests via CLI.

Pre-flight

Always run stably --version first. If not found, install with npm install -g stably or use npx stably. Requires Node.js 20+, Playwright, and a Stably account.

Warning: Do NOT run stably with no arguments — it launches interactive chat mode that requires human input and will hang an AI agent.

Command Reference

IntentCommand
Interactive AI chat (human only)stably (no args) — do NOT invoke from an AI agent
Plan test coveragestably plan
Plan specific areastably plan "focus on checkout"
Generate test from promptstably create "description"
Generate test from branch diffstably create (no prompt)
Run testsstably test
Run tests with custom namestably test --suiteName="nightly"
Run tests with remote envstably --env staging test
Fix failing testsstably fix [runId]
Initialize projectstably init
Install browsersstably install (use --with-deps chromium in CI)
List remote environmentsstably env list
Inspect env variablesstably env inspect <name>
Authstably login / logout / whoami
Verify app behaviorstably verify "description"
Verify with URLstably verify "description" --url http://localhost:3000
List recent test runsstably runs list
View run detailsstably runs view <runId>
Flaky test analyticsstably analytics flaky
Failure analyticsstably analytics failures
Update CLIstably upgrade [--check]

Global Options

OptionDescription
--cwd <path> / -CChange working directory
--env <name>Load vars from remote Stably environment
--env-file <path>Load vars from local file (repeatable)
--browser <type>Browser type: local or cloud (default: local). Also settable via STABLY_CLOUD_BROWSER=1 env var
--verbose / -vVerbose logging
--no-telemetryDisable telemetry

Env var precedence (highest → lowest): Stably auth (STABLY_API_KEY) → process.env → --env-file → --env

Core Commands

stably plan [prompt...]

Discovers coverage gaps by exploring the codebase and generates test.fixme() skeleton files with priority tags (@p0–@p3). Without a prompt, analyzes the entire app; with a prompt, scopes discovery to that area.

stably plan                                         # full autonomous discovery
stably plan "focus on checkout and auth"             # scoped plan
stably plan "plan tests for features in this PR"     # PR-scoped

Outputs one spec file per group in the repo's existing test directory. Each file contains test.describe() flows with test.fixme() scenarios. Existing files with real test() implementations are never modified. Safe to re-run (idempotent, max 200 flows per invocation).

Typical workflow: stably plan → team reviews/adjusts priorities → stably create "implement all @p0 tests" → stably test → stably fix

Also writes key project discoveries (auth patterns, framework conventions) to STABLY.md for future agent runs.

stably create [prompt...]

Generates tests from a prompt (quotes optional) or infers from branch diff when no prompt given.

  • --output <dir> — override output directory (auto-detected from playwright.config.ts testDir or common dirs like tests/, e2e/)
  • --browser <type> — use cloud for cloud browser execution (default: local)
stably create "test the checkout flow"
stably create                              # infer from diff
stably create "test registration" --output ./e2e
stably create "implement all @p0 tests"    # implement planned test.fixme() skeletons
stably create --browser cloud "test login" # use cloud browser

Prompt tips: be specific about user flows, UI elements, auth requirements, and error states.

stably test

Runs Playwright tests with Stably reporter. Auto-enables --trace=on. All Playwright CLI options pass through:

stably test --headed --project=chromium --workers=4
stably test --grep="login" tests/login.spec.ts
stably --env staging test --headed
stably test --suiteName="nightly smoke tests"
  • --suiteName <name> — Override the reported suite name shown on the dashboard and in Slack notifications. When omitted, defaults to the full list of Playwright project names being run (sorted alphabetically, joined with ,). Also settable via STABLY_SUITE_NAME env var or stablyReporter({suiteName: "..."}) in Playwright config.

stably fix [runId]

Fixes failing tests using AI analysis of traces, screenshots, logs, and DOM state.

Run ID resolution: explicit arg → CI env (the CLI maps GitHub's run ID to the corresponding Stably run) → .stably/last-run.json (warns if >24h old). Requires git repo.

stably fix          # auto-detect last run
stably fix abc123   # explicit run ID

Typical workflow: stably test → (failures?) → stably fix → stably test

stably verify <prompt...>

Verifies app behavior against a natural-language description without generating test files.

  • -u, --url <url> — target URL (otherwise auto-detected)
  • --max-budget <dollars> — max budget in USD (default: 5)
  • --no-interactive — disable interactive prompts
  • --browser <type> — use cloud for cloud browser execution (default: local)

Exit codes: 0 = PASS, 1 = FAIL, 2 = INCONCLUSIVE.

stably verify "users can sign up with email"
stably verify "checkout flow works" --url http://localhost:3000
stably verify "login page loads" --no-interactive

Agent note: The default $5 budget is sufficient for most verifications. Avoid increasing --max-budget without explicit user approval.

stably runs list [options]

Lists recent test runs for the current project.

  • -b, --branch <name> — filter by git branch
  • -n, --limit <number> — max results (default 20, max 100)
  • --after <runId> / --before <runId> — cursor-based pagination by run ID
  • --source <source> — filter by source (local, ci, web)
  • -s, --status <status> — filter by status: queued, running, passed, failed, timedout, cancelled, interrupted
  • --suite <name> — filter by test suite
  • --trigger <trigger> — filter by trigger type: manual, scheduled, ui, api, github_action, suite_run
  • --json — output as JSON (preferred for AI agents)
stably runs list                           # recent runs
stably runs list --status failed           # find failed runs
stably runs list --branch main --limit 5   # recent runs on main
stably runs list --json                    # machine-readable output

Agent note: Always use --json for machine-readable output when parsing run data programmatically.

stably runs view <runId> [options]

Shows details for a specific test run including metadata, issues with root causes, and individual test results.

  • --json — output as JSON (preferred for AI agents)
stably runs view abc123
stably runs view abc123 --json

stably analytics flaky [options]

Shows the most flaky tests ranked by flaky rate over a configurable time window.

  • --days <n> — look-back window in days (1–90, default: 7)
  • -b, --branch <name> — filter by branch name
  • -n, --limit <n> — max rows returned (1–100, default: 10)
  • --json — output as JSON (preferred for AI agents)
stably analytics flaky                          # flaky tests, last 7 days
stably analytics flaky --days 30 --limit 20     # wider window, more results
stably analytics flaky --branch main --json     # machine-readable, main only

stably analytics failures [options]

Shows the most failing tests ranked by failure rate over a configurable time window.

  • --days <n> — look-back window in days (1–90, default: 7)
  • -b, --branch <name> — filter by branch name
  • -n, --limit <n> — max rows returned (1–100, default: 10)
  • --json — output as JSON (preferred for AI agents)
stably analytics failures                       # failing tests, last 7 days
stably analytics failures --days 14             # last 2 weeks
stably analytics failures --branch main --json  # machine-readable, main only

Agent note: Always use --json for machine-readable output when parsing analytics data programmatically.

Remote Environments

stably env list — list environments in current project. stably env inspect <name> — show variable names/metadata (values never printed).

Use --env for team-shared dashboard variables; --env-file for local .env files. Both combine (--env wins).

Long-Running Commands (AI Agents)

stably plan, stably create, stably fix, and stably verify are AI-powered and can take several minutes.

AgentConfiguration
Claude Codetimeout: 600000 (preferred — retains command output), or run_in_background: true when parallel work is needed
Cursorblock_until_ms: 900000 (default 30s is too short)

stably test duration depends on suite size — use the same timeout for large suites. All other commands complete in seconds.

If a command times out or fails: retry once with --verbose for diagnostics. AI-powered commands are idempotent — retrying is safe. If failures persist, check stably whoami (auth) and network connectivity.

For general long-running command patterns (dev servers, watchers), see bash-commands skill.

Configuration

Required Env Vars

# NEVER hardcode real values — use .env files (gitignored) or CI secrets
STABLY_API_KEY=your_key       # from https://auth.stably.ai/org/api_keys/
STABLY_PROJECT_ID=your_id     # from dashboard

Set via .env file, --env-file, or --env (remote).

Playwright Config

stably test auto-enables tracing. Set trace: 'on' in config too for direct npx playwright test runs:

import { defineConfig, stablyReporter } from '@stablyai/playwright-test';

export default defineConfig({
  use: { trace: 'on' },
  reporter: [
    ['list'],
    stablyReporter({
      apiKey: process.env.STABLY_API_KEY,
      projectId: process.env.STABLY_PROJECT_ID,
    }),
  ],
});

CI/CD: GitHub Actions

Important CI patterns

  • Use continue-on-error: true on test, fix, and PR steps so the pipeline can run fix/PR steps after failures — but always add a final step that fails the workflow if tests failed. Without continue-on-error on the fix/PR steps, a failure there blocks downstream steps.

Self-healing test pipeline

name: E2E Tests with Auto-Fix
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: '20' }
      - run: npm ci
      - name: Install browsers
        run: npx stably install
        env:
          STABLY_API_KEY: ${{ secrets.STABLY_API_KEY }}
          STABLY_PROJECT_ID: ${{ secrets.STABLY_PROJECT_ID }}
      - name: Run tests
        id: test
        continue-on-error: true
        run: npx stably --env staging test
        env:
          STABLY_API_KEY: ${{ secrets.STABLY_API_KEY }}
          STABLY_PROJECT_ID: ${{ secrets.STABLY_PROJECT_ID }}
      - name: Auto-fix failures
        if: steps.test.outcome == 'failure'
        continue-on-error: true
        run: npx stably --env staging fix
        env:
          STABLY_API_KEY: ${{ secrets.STABLY_API_KEY }}
          STABLY_PROJECT_ID: ${{ secrets.STABLY_PROJECT_ID }}
      - name: Create PR with fixes
        if: steps.test.outcome == 'failure'
        continue-on-error: true
        run: |
          if [ -n "$(git status --porcelain)" ]; then
            BRANCH="stably-fix/$(date +%Y%m%d-%H%M%S)"
            git config user.name "github-actions[bot]"
            git config user.email "github-actions[bot]@users.noreply.github.com"
            git checkout -b "$BRANCH"
            git add -A
            git commit -m "fix: auto-repair failing tests"
            git push origin "$BRANCH"
            gh pr create \
              --title "fix: auto-repair failing tests" \
              --body "Automated PR from Stably Fix after test failures in run #${{ github.run_number }}." \
              --base "${{ github.ref_name }}" \
              --head "$BRANCH"
          fi
        env:
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - name: Fail if tests failed
        if: steps.test.outcome == 'failure'
        run: |
          echo "::error::Tests failed"
          exit 1

Troubleshooting

ProblemSolution
"Not authenticated"stably login
API key not recognizedstably whoami to verify
Tests in wrong directorystably create "..." --output./tests/e2e
Missing browserstably install
Traces not uploadingSet trace: 'on' in playwright.config.ts
"Run ID not found"Run stably test first, then stably fix

Links

Docs · CLI Quickstart · Dashboard · API Keys

平台分布

Codex

36.23%
按下载量换算185

Claude

30.06%
按下载量换算154

Cursor

18.76%
按下载量换算96

Gemini CLI

9.3%
按下载量换算48

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills