github-projects by existential-birds/beagle
npx skills add https://github.com/existential-birds/beagle --skill github-projects通过 gh project 命令管理 GitHub Projects (v2)。需要 project 作用域,可通过 gh auth refresh -s project 添加。
验证认证是否包含项目作用域:
gh auth status # 检查当前作用域
gh auth refresh -s project # 如果缺少则添加项目作用域
# 列出您的项目
gh project list
# 列出组织项目(包括已关闭的)
gh project list --owner ORG_NAME --closed
# 查看项目详情
gh project view PROJECT_NUM --owner OWNER
# 在浏览器中打开
gh project view PROJECT_NUM --owner OWNER --web
# JSON 输出并使用 jq 过滤
gh project list --format json | jq '.projects[] | {number, title}'
# 创建项目
gh project create --owner OWNER --title "项目标题"
# 编辑项目
gh project edit PROJECT_NUM --owner OWNER --title "新标题"
gh project edit PROJECT_NUM --owner OWNER --description "新描述"
gh project edit PROJECT_NUM --owner OWNER --visibility PUBLIC
# 关闭/重新打开项目
gh project close PROJECT_NUM --owner OWNER
gh project close PROJECT_NUM --owner OWNER --undo # 重新打开
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# 链接到仓库
gh project link PROJECT_NUM --owner OWNER --repo REPO_NAME
# 链接到团队
gh project link PROJECT_NUM --owner ORG --team TEAM_NAME
# 取消链接
gh project unlink PROJECT_NUM --owner OWNER --repo REPO_NAME
# 将议题添加到项目
gh project item-add PROJECT_NUM --owner OWNER --url https://github.com/OWNER/REPO/issues/123
# 将拉取请求添加到项目
gh project item-add PROJECT_NUM --owner OWNER --url https://github.com/OWNER/REPO/pull/456
gh project item-create PROJECT_NUM --owner OWNER --title "草稿项" --body "描述"
# 列出项(默认 30 个)
gh project item-list PROJECT_NUM --owner OWNER
# 列出更多项
gh project item-list PROJECT_NUM --owner OWNER --limit 100
# JSON 输出
gh project item-list PROJECT_NUM --owner OWNER --format json
通过项的 ID(从 item-list --format json 获取)编辑项。
# 编辑草稿议题的标题/正文
gh project item-edit --id ITEM_ID --title "新标题" --body "新正文"
# 更新字段值(需要 field-id 和 project-id)
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --text "值"
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --number 42
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --date "2024-12-31"
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --single-select-option-id OPTION_ID
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --iteration-id ITER_ID
# 清除字段值
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --clear
gh project item-archive PROJECT_NUM --owner OWNER --id ITEM_ID
gh project item-delete PROJECT_NUM --owner OWNER --id ITEM_ID
gh project field-list PROJECT_NUM --owner OWNER
gh project field-list PROJECT_NUM --owner OWNER --format json
# 文本字段
gh project field-create PROJECT_NUM --owner OWNER --name "备注" --data-type TEXT
# 数字字段
gh project field-create PROJECT_NUM --owner OWNER --name "点数" --data-type NUMBER
# 日期字段
gh project field-create PROJECT_NUM --owner OWNER --name "截止日期" --data-type DATE
# 带选项的单选字段
gh project field-create PROJECT_NUM --owner OWNER --name "优先级" \
--data-type SINGLE_SELECT \
--single-select-options "低,中,高,紧急"
gh project field-delete --id FIELD_ID
# 1. 将议题添加到项目
gh project item-add 1 --owner "@me" --url https://github.com/owner/repo/issues/123
# 2. 获取项 ID 和字段 ID
gh project item-list 1 --owner "@me" --format json | jq '.items[-1]'
gh project field-list 1 --owner "@me" --format json
# 3. 更新状态字段
gh project item-edit --id ITEM_ID --project-id PROJECT_ID \
--field-id STATUS_FIELD_ID --single-select-option-id OPTION_ID
# 从仓库添加所有打开的议题
gh issue list --repo owner/repo --state open --json url -q '.[].url' | \
xargs -I {} gh project item-add 1 --owner "@me" --url {}
# 获取项目 ID
gh project list --format json | jq '.projects[] | {number, id, title}'
# 获取字段 ID 和选项
gh project field-list 1 --owner "@me" --format json | jq '.fields[] | {id, name, options}'
# 获取带字段值的项 ID
gh project item-list 1 --owner "@me" --format json | jq '.items[] | {id, title, fieldValues}'
# 按状态筛选项
gh project item-list 1 --owner "@me" --format json | \
jq '.items[] | select(.status == "In Progress")'
| 命令 | 用途 |
|---|---|
project list | 列出项目 |
project view | 查看项目详情 |
project create | 创建新项目 |
project edit | 修改项目设置 |
project close | 关闭/重新打开项目 |
project link/unlink | 连接到仓库/团队 |
project item-add | 添加现有议题/拉取请求 |
project item-create | 创建草稿项 |
project item-list | 列出项目项 |
project item-edit | 更新项字段 |
project item-archive | 归档项 |
project item-delete | 移除项 |
project field-list | 列出项目字段 |
project field-create | 添加自定义字段 |
project field-delete | 移除字段 |
每周安装次数
78
仓库
GitHub 星标数
41
首次出现
2026 年 1 月 20 日
安全审计
安装于
opencode64
gemini-cli62
codex61
claude-code61
cursor58
github-copilot54
GitHub Projects (v2) management via gh project commands. Requires the project scope which can be added with gh auth refresh -s project.
Verify authentication includes project scope:
gh auth status # Check current scopes
gh auth refresh -s project # Add project scope if missing
# List your projects
gh project list
# List org projects (including closed)
gh project list --owner ORG_NAME --closed
# View project details
gh project view PROJECT_NUM --owner OWNER
# Open in browser
gh project view PROJECT_NUM --owner OWNER --web
# JSON output with jq filtering
gh project list --format json | jq '.projects[] | {number, title}'
# Create project
gh project create --owner OWNER --title "Project Title"
# Edit project
gh project edit PROJECT_NUM --owner OWNER --title "New Title"
gh project edit PROJECT_NUM --owner OWNER --description "New description"
gh project edit PROJECT_NUM --owner OWNER --visibility PUBLIC
# Close/reopen project
gh project close PROJECT_NUM --owner OWNER
gh project close PROJECT_NUM --owner OWNER --undo # Reopen
# Link to repo
gh project link PROJECT_NUM --owner OWNER --repo REPO_NAME
# Link to team
gh project link PROJECT_NUM --owner ORG --team TEAM_NAME
# Unlink
gh project unlink PROJECT_NUM --owner OWNER --repo REPO_NAME
# Add issue to project
gh project item-add PROJECT_NUM --owner OWNER --url https://github.com/OWNER/REPO/issues/123
# Add PR to project
gh project item-add PROJECT_NUM --owner OWNER --url https://github.com/OWNER/REPO/pull/456
gh project item-create PROJECT_NUM --owner OWNER --title "Draft item" --body "Description"
# List items (default 30)
gh project item-list PROJECT_NUM --owner OWNER
# List more items
gh project item-list PROJECT_NUM --owner OWNER --limit 100
# JSON output
gh project item-list PROJECT_NUM --owner OWNER --format json
Items are edited by their ID (obtained from item-list --format json).
# Edit draft issue title/body
gh project item-edit --id ITEM_ID --title "New Title" --body "New body"
# Update field value (requires field-id and project-id)
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --text "value"
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --number 42
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --date "2024-12-31"
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --single-select-option-id OPTION_ID
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --iteration-id ITER_ID
# Clear field value
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --clear
gh project item-archive PROJECT_NUM --owner OWNER --id ITEM_ID
gh project item-delete PROJECT_NUM --owner OWNER --id ITEM_ID
gh project field-list PROJECT_NUM --owner OWNER
gh project field-list PROJECT_NUM --owner OWNER --format json
# Text field
gh project field-create PROJECT_NUM --owner OWNER --name "Notes" --data-type TEXT
# Number field
gh project field-create PROJECT_NUM --owner OWNER --name "Points" --data-type NUMBER
# Date field
gh project field-create PROJECT_NUM --owner OWNER --name "Due Date" --data-type DATE
# Single select with options
gh project field-create PROJECT_NUM --owner OWNER --name "Priority" \
--data-type SINGLE_SELECT \
--single-select-options "Low,Medium,High,Critical"
gh project field-delete --id FIELD_ID
# 1. Add issue to project
gh project item-add 1 --owner "@me" --url https://github.com/owner/repo/issues/123
# 2. Get item ID and field IDs
gh project item-list 1 --owner "@me" --format json | jq '.items[-1]'
gh project field-list 1 --owner "@me" --format json
# 3. Update status field
gh project item-edit --id ITEM_ID --project-id PROJECT_ID \
--field-id STATUS_FIELD_ID --single-select-option-id OPTION_ID
# Add all open issues from a repo
gh issue list --repo owner/repo --state open --json url -q '.[].url' | \
xargs -I {} gh project item-add 1 --owner "@me" --url {}
# Get project IDs
gh project list --format json | jq '.projects[] | {number, id, title}'
# Get field IDs and options
gh project field-list 1 --owner "@me" --format json | jq '.fields[] | {id, name, options}'
# Get item IDs with field values
gh project item-list 1 --owner "@me" --format json | jq '.items[] | {id, title, fieldValues}'
# Filter items by status
gh project item-list 1 --owner "@me" --format json | \
jq '.items[] | select(.status == "In Progress")'
| Command | Purpose |
|---|---|
project list | List projects |
project view | View project details |
project create | Create new project |
project edit | Modify project settings |
project close | Close/reopen project |
project link/unlink | Connect to repo/team |
Weekly Installs
78
Repository
GitHub Stars
41
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode64
gemini-cli62
codex61
claude-code61
cursor58
github-copilot54
Lark CLI Wiki API 使用指南:获取知识空间节点信息与权限管理
39,100 周安装
project item-add | Add existing issue/PR |
project item-create | Create draft item |
project item-list | List project items |
project item-edit | Update item fields |
project item-archive | Archive item |
project item-delete | Remove item |
project field-list | List project fields |
project field-create | Add custom field |
project field-delete | Remove field |