Token导航 LogoToken导航TokenDH.com
待分类敏感数据github未标认证来源可访问许可证需确认审计异常

backlog-clibacklog CLI 命令行

Agent Skill

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

总安装

259

周安装

11

GitHub Stars

6

下载量

91
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/simochee/backlog-cli --skill backlog-cli

简介

backlog-cli 是 Backlog 项目的命令行管理工具,支持认证、空间切换和问题查询。

  • 它自动解析名称到 ID,适用于团队协作和任务状态跟踪。
  • 使用时需显式指定所有必填参数,避免交互式提示导致流程卡住。
  • 安装前应验证网络连通性和 API 配额,防止因请求超限影响正常使用。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

backlog-cli

CLI tool for managing Backlog projects via the backlog command.

Authentication

Run backlog auth login before use. Verify with backlog auth status. Switch between spaces with --space <hostname> or BACKLOG_SPACE env var.

Key Concepts

Avoid Interactive Prompts

Some commands prompt interactively for missing required fields. Always specify all required flags explicitly to prevent hanging.

Name Resolution

The CLI automatically resolves human-readable names to IDs:

  • Status names → status ID
  • Issue type names → issue type ID
  • Priority names (//) → priority ID
  • Usernames → user ID (@me refers to the authenticated user)

Status and issue type names are project-specific. Query them first if unknown:

backlog issue-type list -p PROJECT_KEY
backlog status list -p PROJECT_KEY

Issue Keys

Format: PROJECT_KEY-number (e.g., PROJ-123). Since the key embeds the project, --project is not needed for issue view / issue edit.

Project Key

Specify with --project (-p) flag or BACKLOG_PROJECT env var.

Environment Variables

Environment variables provide defaults that can be overridden by CLI flags:

  • BACKLOG_SPACE — Default space hostname (e.g., example.backlog.com)
  • BACKLOG_PROJECT — Default project key (e.g., MYAPP)
  • BACKLOG_API_KEY — API key for CI/CD environments (requires BACKLOG_SPACE)

Priority order: CLI flag > Environment variable > Config file (~/.backlogrc)

# Set project for session
export BACKLOG_PROJECT=MYAPP

# Now -p flag can be omitted
backlog issue list
backlog milestone list

# CLI flag overrides environment variable
backlog issue list -p OTHER_PROJECT

JSON Output

Most commands support --json flag for machine-readable output:

  • --json — output all fields in JSON format
  • --json field1,field2 — output only specified fields (e.g., --json issueKey,summary,status)
  • Combine with jq for advanced filtering:
# Extract issue keys only
backlog issue list -p PROJ --json | jq '.[].issueKey'

# Filter by specific status
backlog issue list -p PROJ --json | jq '[.[] | select(.status.name == "処理中")]'

# Combine field filtering with jq
backlog issue list -p PROJ --json issueKey,summary | jq '.[].summary'

Always use --json in agent workflows to parse output reliably.

Common Workflows

Issues

# List my open issues
backlog issue list -p PROJ -a @me -S "未対応,処理中"

# View details with comments
backlog issue view PROJ-123 --comments

# Create (required: -p, -t, -T, -P)
backlog issue create -p PROJ -t "Title" -T "タスク" -P "中" -a @me -d "Description"

# Update status with comment
backlog issue edit PROJ-123 -S "処理中" -c "Starting work"

# Close
backlog issue close PROJ-123 -c "Done"

# Add comment
backlog issue comment PROJ-123 -b "Progress update"

Pull Requests

# Create (required: -p, -R, -t, -B, --branch)
backlog pr create -p PROJ -R repo -t "PR title" -B main --branch feat/xxx --issue PROJ-123

# List open PRs
backlog pr list -p PROJ -R repo

# View with comments
backlog pr view -p PROJ -R repo 42 --comments

# Merge
backlog pr merge -p PROJ -R repo 42

Project Info

backlog project list                  # List projects
backlog project users PROJECT_KEY     # List members
backlog category list -p PROJ         # List categories
backlog milestone list -p PROJ        # List milestones

Wiki

backlog wiki list -p PROJ
backlog wiki view <wiki-id>
backlog wiki create -p PROJ -n "Page title" -b "Content"
backlog wiki edit <wiki-id> -b "Updated content"

Raw API

For operations not covered by CLI commands. The /api/v2 prefix can be omitted.

backlog api /issues -X POST -f "projectId=123" -f "summary=New issue"
backlog api /issues --paginate -f "projectId[]=123"

Common Issues

Authentication Failed

If you encounter authentication errors:

# Check current authentication status
backlog auth status

# Re-authenticate
backlog auth login

"Status name not found" or "Issue type not found"

Status names and issue type names are project-specific. Always query them first:

# Get available statuses for a project
backlog status list -p PROJECT_KEY

# Get available issue types for a project
backlog issue-type list -p PROJECT_KEY

# Get available priorities (these are global)
# Built-in values: 高 (High), 中 (Normal), 低 (Low)

Before creating or editing issues:

  1. Query status names: backlog status list -p PROJECT
  2. Query issue types: backlog issue-type list -p PROJECT
  3. Use exact names from the query results

Missing Required Fields

If a command hangs or prompts for input:

  • You're missing a required field
  • Specify all required flags explicitly (see command help with --help)
  • Never rely on interactive prompts in agent workflows

Project Not Found

Ensure the project key is correct and you have access:

# List available projects
backlog project list

# Use exact project key from the list

References

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.48%
按下载量换算31

Claude

30.44%
按下载量换算28

Cursor

16.49%
按下载量换算15

Gemini CLI

9.16%
按下载量换算8

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills