返回顶部
s

shortcutShortcut管理

Manage stories on Shortcut.com kanban boards. Use when creating, updating, or listing tasks/stories on Shortcut project management boards. Supports creating stories with descriptions and types (feature/bug/chore), updating story status, and listing active/completed stories. Includes full checklist task management and comment support.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.4.1
安全检测
已通过
2,090
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

shortcut

Shortcut看板集成

通过API管理Shortcut.com项目看板上的任务和故事。

前置条件

  • - 通过以下任一方式配置Shortcut API令牌:
- 环境变量:SHORTCUTAPITOKEN - 文件:~/.config/shortcut/api-token
  • - 拥有具备相应权限的Shortcut工作区访问权限

设置

  1. 1. 从Shortcut.com获取API令牌(设置 → API令牌)
  2. 通过以下任一方式存储:
- 作为环境变量:export SHORTCUTAPITOKEN=your-token - 写入文件:echo your-token > ~/.config/shortcut/api-token && chmod 600 ~/.config/shortcut/api-token
  1. 3. 为工作区初始化工作流状态:
bash scripts/shortcut-init-workflow.sh

该命令会在~/.config/shortcut/workflow-states中创建工作区的实际状态ID。

  1. 4. 可选:将以下内容添加到~/.bashrc以实现持久化:

bash
export SHORTCUTAPITOKEN=$(cat ~/.config/shortcut/api-token 2>/dev/null | tr -d \n)
source ~/.config/shortcut/workflow-states

可用操作

列出故事

bash
scripts/shortcut-list-stories.sh [--active|--completed|--all] [--json]

选项:

  • - --active - 仅显示未完成的故事(默认)
  • --completed - 仅显示已完成的故事
  • --all - 包含已归档的故事
  • --json - 输出原始JSON格式

查看故事详情

bash
scripts/shortcut-show-story.sh <故事ID>

显示完整的故事信息,包括:

  • - 故事名称和状态
  • 描述(如有)
  • 检查清单项及其完成状态

创建故事

bash
scripts/shortcut-create-story.sh 故事名称 [--description 文本] [--type feature|bug|chore]

故事类型:

  • - feature(默认)- 新功能
  • bug - 缺陷修复
  • chore - 维护任务

更新故事

bash
scripts/shortcut-update-story.sh <故事ID> [--complete|--todo|--in-progress] [--description 新文本]

工作流状态: 脚本使用~/.config/shortcut/workflow-states中的状态ID(由shortcut-init-workflow.sh创建)。如果未配置,则回退到通用默认值:

  • - 待办事项:500000006
  • 待处理:500000007
  • 进行中:500000008
  • 审核中:500000009
  • 已完成:500000010

注意: 不同的Shortcut工作区可能使用不同的状态ID。请始终运行shortcut-init-workflow.sh来配置工作区的实际ID。

管理检查清单任务

创建任务:
bash
scripts/shortcut-create-task.sh <故事ID> 任务描述

更新任务完成状态:
bash
scripts/shortcut-update-task.sh <故事ID> <任务ID> [--complete|--incomplete]

编辑任务描述:
bash
scripts/shortcut-edit-task.sh <故事ID> <任务ID> 新描述

删除任务:
bash
scripts/shortcut-delete-task.sh <故事ID> <任务ID>

使用shortcut-show-story.sh查看任务ID。

管理评论

添加评论:
bash
scripts/shortcut-add-comment.sh <故事ID> 评论内容

更新评论:
bash
scripts/shortcut-update-comment.sh <故事ID> <评论ID> 新文本

删除评论:
bash
scripts/shortcut-delete-comment.sh <故事ID> <评论ID>

使用shortcut-show-story.sh查看评论ID。

工作流程

  1. 1. 列出现有故事以了解当前看板状态
  2. 使用描述性名称和适当类型创建新故事
  3. 随着工作进展更新故事状态

注意事项

  • - 脚本使用SHORTCUTAPITOKEN环境变量,或回退到~/.config/shortcut/api-token
  • 故事默认创建为未开始状态(workflowstateid: 500000006)
  • 如果工作区使用不同的工作流状态ID,可能需要调整脚本
  • 令牌必须具有要管理工作区的相应权限

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 shortcut-1775939133 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 shortcut-1775939133 技能

通过命令行安装

skillhub install shortcut-1775939133

下载

⬇ 下载 shortcut v1.4.1(免费)

文件大小: 13.39 KB | 发布时间: 2026-4-12 11:23

v1.4.1 最新 2026-4-12 11:23
- Updated documentation in CHANGELOG.md, README.md, and SKILL.md.
- Removed the file clawhub-submission.md.
- Incremented version to 1.4.1.
- No changes to implementation or features; this is strictly a documentation and cleanup update.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部