Token导航 LogoToken导航

Agent Skill · 前端设计

av-cli(AV CLI 命令行)

av-cli 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

av-cli 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 6,173。

总安装 544周安装 22GitHub Stars 6下载 171核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/aviator-co/agent-plugins --skill av-cli

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

av-cli 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行整理。支持 stacked pull requests 管理、分支堆叠操作和 Aviator 工作流集成,提升代码审查效率。

可读取 av/av.db 文件理解分支结构,但禁止直接修改该 JSON 文件,必须使用 av 命令变更。安装命令为 npx skills add https://github.com/aviator-co/agent-plugins --skill av-cli。

建议确认权限范围和 git 目录位置,避免误操作共享数据库文件或触发网络请求。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

av-cli 怎么安装?

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

av-cli 支持哪些 AI 工具?

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

av-cli 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

av-cli 是免费的吗?

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

av-cli 用的人多吗?

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

av-cli 安全吗?

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

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

值得选的地方

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

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

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

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
av-cli

AV CLI 命令行 · 本页

5446需要联网未明确有提醒

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

SKILL.md 原文

Aviator CLI (av) for Stacked PRs

You are helping the user work with stacked pull requests using Aviator's av CLI tool.

IMPORTANT: NEVER modify the av/av.db file inside the git dir (found via git rev-parse --git-common-dir) directly. This JSON file is managed by av commands. You may read it to understand stack structure, but always use av CLI commands to make changes.

First Steps (ALWAYS DO THIS)

When working with av, ALWAYS read av/av.db from the git common dir first to understand the branch structure. This JSON file is the source of truth.

git rev-parse --git-common-dir

Then use the result to read the db file:

cat <git-common-dir>/av/av.db

IMPORTANT: Always use cat to read av.db, NEVER the Read tool. The .db extension causes Read to incorrectly treat it as binary.

Tip: Use git branch --show-current to identify the current branch, then look up that branch's entry in av.db for its stack context and PR info.

Do NOT use av tree to understand structure - its visual output is misleading. Only use av.db.

Critical Rules

NEVER use git commit or git push directly. Always use av commit for commits and av pr (which pushes automatically) or av sync --push=yes --prune=yes for pushing. Using git directly skips restacking and breaks the stack.

NEVER pass --no-edit to av commit --amend. The flag doesn't exist — no-edit is already the default behavior. Just use av commit --amend.

Detection & Setup

Check if av is initialized: run git rev-parse --git-common-dir, then test -f <git-common-dir>/av/av.db

  • If the file exists, the repo is av-initialized. Use av commands for branch/PR operations.
  • If the file does NOT exist, ask the user if they want to initialize with av init.
  • For detailed command reference, see reference.md.
  • For workflow examples, see examples.md.
  • Run av <command> --help or man av-<command> for up-to-date command documentation.

Non-Interactive Mode (Agents & Automation)

Many av commands default to interactive TUI prompts that agents cannot use. Always use the non-interactive flags listed below.

Critical syntax note: Flag values require = (equals sign), not a space. --push=yes works; --push yes does NOT.

CommandInteractive behaviorNon-interactive flags
av syncPrompts for push and prune confirmation--push=yes (or =no), --prune=yes (or =no)
av pr (new PR)Opens editor for title/body--title "..." --body "..."
av pr (existing PR)No prompt — just pushesNo flags needed; bare av pr works
av switch (no args)Opens branch pickerav switch <branch-name>
av adopt (no args)Interactive branch selectionav adopt --parent <parent> on the target branch
av split-commitInteractive chunk pickerNo non-interactive mode. Use git reset + manual staging instead
av reorderOpens editor for rebase planNo non-interactive mode. Use av reparent + manual operations instead

Recommended agent workflow:

# Creating a new PR:
av commit -A -m "message"
av pr --title "Title" --body "Body"  # pushes the branch and creates the PR

# Pushing updates to an existing PR (single branch, not in a stack):
av commit -A -m "message"
av pr  # no args needed — just pushes the branch and updates the PR, no editor prompt

# Pushing updates when working in a stack (syncs the entire stack):
av commit -A -m "message"
av sync --push=yes --prune=yes

Understanding Stack Structure

Run git rev-parse --git-common-dir, then cat <result>/av/av.db to understand branch relationships. Format:

{
  "branches": {
    "feature-api": {
      "name": "feature-api",
      "parent": { "name": "master", "trunk": true },
      "pullRequest": {
        "number": 123,
        "permalink": "https://github.com/org/repo/pull/123"  // USE THIS URL
      }
    },
    "feature-ui": {
      "name": "feature-ui",
      "parent": { "name": "feature-api", "head": "abc123" }
    }
  }
}

Key fields:

  • parent.trunk: true → branch is directly off main/master (not stacked)
  • parent.name + parent.head → branch is stacked on another branch
  • pullRequest.permalink → full PR URL (always use this when displaying PR info, not just the number)
  • excludeFromSyncAll: true → branch excluded from av sync --all

Reading the structure: Each branch's parent.name tells you what it's based on. Build the tree by following parent relationships. Branches with trunk: true are all independent roots.

Core Concepts

What is a Stack?

A stack is a chain of dependent branches where each branch builds on the previous one:

main
 └── feature-auth (PR #1: adds auth)
      └── feature-login (PR #2: adds login, depends on auth)
           └── feature-logout (PR #3: adds logout, depends on login)

Why Use av?

  1. Automatic rebasing: When you update a branch mid-stack, av rebases all child branches.
  2. Correct PR bases: av pr automatically sets the correct base branch (parent branch, not trunk).
  3. Coordinated syncing: av sync fetches, rebases, and pushes all branches in one command.

How Stacked PRs Work

Each PR shows only its own diff (changes relative to its parent branch), not the cumulative diff against trunk. This makes code review focused and manageable.

Common Use Case: Full-Stack Features

The most common workflow is building features that span multiple layers:

main
 └── add-feature-db       (DB schema/migrations)
      └── add-feature-service  (Backend service logic)
           └── add-feature-api      (REST/GraphQL endpoints)
                └── add-feature-ui       (Frontend components)

Each layer gets its own focused PR. Reviewers with different expertise (DBA, backend, frontend) review the relevant parts. When the DB schema changes during review, av sync propagates updates through the entire stack automatically.

Essential Commands

Branch Management

CommandPurpose
av branch <name>Create a new branch stacked on current branch
av branch --parent <parent> <name>Create branch with specific parent
av branch -m <new-name>Rename current branch
av adopt --parent <parent>Adopt current branch into the stack with given parent
av adopt --remote <branch>Fetch and adopt a remote branch (e.g., colleague's work)
av reparent --parent <new-parent>Move current branch to a different parent
av orphanRemove current branch from av management

av adopt --remote is particularly useful for pulling in a colleague's branch (or any remote branch not yet tracked locally) and automatically setting up the correct stack relationships. It fetches the branch, detects its parent chain, and integrates it into your local av state — much more reliable than manually checking out and adopting.

Committing

CommandPurpose
av commit -m "message"Commit and auto-restack children
av commit -a -m "message"Stage modified files and commit
av commit -A -m "message"Stage ALL files (including untracked) and commit
git add <files> && av commit -m "msg"Stage specific files, then commit
av commit --amendAmend last commit, then restack children
av split-commitInteractively split current commit (no non-interactive mode)
av squashSquash all branch commits into one

av commit vs git commit — key differences:

  • --amend reuses the existing message by default. There is no --no-edit flag — it is the default behavior.
  • --edit explicitly opens the editor when amending (the opposite default from git).
  • -a behaves the same as git's -a (stages modified/deleted tracked files only).
  • -A / --all-changes is av-specific: stages ALL files including untracked (git has no equivalent single flag).

Selective staging: -a and -A stage everything (tracked or all). To commit only specific files, stage them first with git add <files>, then run av commit without -a/-A. This works for both new commits and amends.

Common mistakes:

  • git commit -m "message" → use av commit -m "message" instead
  • git push → use av pr when creating a PR (it pushes automatically); use av sync --push=yes --prune=yes to push changes and rebase across the stack
  • av pr --title "..." --body "..." when PR already exists → just av pr (no args needed, no editor prompt)
  • av sync --push=yes --prune=yes just to push a single standalone branch → use av pr instead (but av sync is correct when working in a stack)
  • av commit --amend --no-edit → just av commit --amend (no-edit is the default, the flag doesn't exist)
  • av sync before/after av pr → unnecessary; av pr pushes on its own

Pull Requests

CommandPurpose
av pr --title "Title" --body "Description"Create/update PR for current branch
av pr --allCreate/update PRs for entire stack
av pr --all --currentCreate/update PRs up to current branch
av pr --draftCreate PR as draft
av pr --editEdit existing PR title/body

av pr automatically pushes the current branch to the remote before creating or updating the PR. No prior av sync or git push is needed.

Note: Pass --title and --body when creating a new PR to avoid editor prompts. When the branch already has a PR, bare av pr just pushes — no editor, no prompt.

Synchronization

CommandPurpose
av syncFetch, restack current stack, push
av sync --rebase-to-trunkRebase stack root onto latest trunk
av sync --all --rebase-to-trunkRebase all stacks onto latest trunk
av restackRebase children locally (no push)
av fetchFetch latest state from GitHub

Non-interactive mode: av sync prompts for confirmation by default. Use explicit flags (note the = syntax — a space does not work):

av sync --push=yes --prune=yes          # Sync current stack
av sync --all --push=no --prune=yes     # Sync all stacks (use after PRs are merged, ask user before pushing)

Both --push and --prune must always be specified — omitting either triggers a TUI prompt. Options: yes, no, or ask (default). --prune=yes is safe in most cases — it only deletes local branches whose PRs have already been merged. Use --prune=no if you need to keep merged branches around locally (e.g., for reference or if other worktrees have them checked out).

Timeout: av sync performs a fetch + rebase + push cycle and can take 15-30+ seconds. Use a timeout of at least 60 seconds for any av sync command.

Navigation

CommandPurpose
av switchInteractive branch switcher
av switch <branch>Switch to specific branch
av nextMove to child branch
av prevMove to parent branch
av next --lastJump to end of stack
av prev --firstJump to stack root

Conflict Resolution

When rebasing causes conflicts:

  1. Resolve conflicts in your editor
  2. Stage resolved files with git add
  3. Continue with av sync --continue or av restack --continue

Or abort with --abort, or skip the problematic commit with --skip.

Using av for All Workflows

Once a repo is av-initialized, use av for everything - even single PRs. av works great for non-stacked workflows too and keeps things consistent.

ScenarioCommand
Create a branchav branch <name>
Commit changesav commit -m "message"
Create a new PRav pr --title "Title" --body "Description"
Push updates (single branch)av pr
Create PRs for part of a stackav pr --all --current
Create PRs for entire stackav pr --all
Sync after making changesav sync --push=yes --prune=yes
After a PR is mergedav sync --all --push=no --prune=yes
Adopt a remote branchav adopt --remote origin/<branch>
Switch branchesav switch <branch>
View diff against parentav diff

av pr vs av sync: av pr pushes the current branch and creates/updates its PR — it's the simplest way to push a single standalone branch. av sync fetches, rebases, and pushes across the entire stack — use it when working in a stack so all branches stay in sync, and for cleanup after merges.

Important Behaviors

  1. Use av commands consistently - they work for single PRs and stacks alike.
  2. av commit auto-restacks child branches when you have them.
  3. Let av pr set the base - don't manually specify base branches.
  4. After PR merges, run av sync --all --push=no --prune=yes to clean up and rebase remaining branches. Ask the user before pushing all stacks.
  5. Don't mention stacks in commits/PRs - never reference stack position, parent branches, or stack relationships in commit messages, PR titles, or PR bodies. The av tooling handles this metadata automatically.
  6. Always show full PR URLs - when displaying PR info, use the permalink field from av.db. Never show just "PR #123" - always show the full clickable URL like https://github.com/org/repo/pull/123.

平台分布

Codex

33.93%
按下载量换算58

Claude

30.27%
按下载量换算52

Cursor

18.53%
按下载量换算32

Gemini CLI

8.98%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills