Start Issue

vkehfdl1/Marshroom/marshroom-skills/skills/start-issue

作者 vkehfdl16dabba42757a5d39217043103391e59b4337c43d无许可证收录于 2026年10月9日更新于 2026年10月9日

Start working on a Marshroom cart issue — creates branch, injects context, updates status to running

AI 生成的概览

开始处理 Marshroom 购物车中的 issue:创建 git 分支、将状态标记为 running 并注入上下文。

功能
读取 Marshroom 状态文件,将购物车条目与当前仓库的 git 远程地址匹配,并按编号或用户选择确定 issue。它会更新 main、创建 Feature/#N 或 HotFix/#N 分支,并在 state.json 中将该 issue 状态设为 running。随后显示 issue 正文作为上下文,并询问是否开始规划。
适用场景
适用于开始处理当前仓库在 Marshroom 购物车中跟踪的 issue 时。适合希望在规划前先准备好分支、状态更新和 issue 上下文的开发者。
运行要求
需要带有 origin 远程地址的 git 仓库、Marshroom 的 state.json 文件(路径来自 MARSHROOM_STATE 或 ~/.config/marshroom/state.json),以及 marsh 命令行工具或 jq 用于原子更新状态。仅为指令,不附带脚本。

Start working on a Marshroom cart issue in the current repository.

Critical Requirements

  • state.json update is MANDATORY. After creating the branch, you MUST update the issue status to running in ${MARSHROOM_STATE:-~/.config/marshroom/state.json}. If this fails, stop and report the error — do NOT silently continue.
  • Use marsh start if available; otherwise fall back to direct jq atomic write (see step 10).

Steps

  1. Read ${MARSHROOM_STATE:-~/.config/marshroom/state.json} and parse the JSON
  2. Extract the cart array. If the cart is empty, tell the user to add issues in the Marshroom app
  3. Run git remote get-url origin to get the current repo's remote URL
  4. Extract owner/repo from the remote URL (handle both HTTPS and SSH formats)
  5. Filter cart entries where repoCloneURL (HTTPS) or repoSSHURL (SSH) matches the current remote. Compare by extracting owner/repo from each
  6. If no matching cart entries, tell the user this repo has no cart issues
  7. If $ARGUMENTS contains an issue number, find that entry; otherwise if multiple matches, list them and ask the user to pick one
  8. Run git checkout main && git pull origin main to ensure main is up to date
  9. Create and checkout the branch: git checkout -b {branchName} The branch name should be Feature/#N or HotFix/#N. N is issue number.
  10. Update issue status (MANDATORY):
    • First try: marsh start #{issueNumber}
    • If marsh is not found in PATH, fall back to direct atomic update:
      bash
      STATE_FILE="${MARSHROOM_STATE:-~/.config/marshroom/state.json}"TMP="$(mktemp "${STATE_FILE}.XXXXXX")"jq --argjson n ISSUE_NUMBER '.cart |= map(if .issueNumber == $n then .status = "running" else . end)' \  "$STATE_FILE" > "$TMP" && mv -f "$TMP" "$STATE_FILE"
    • Verify the update succeeded by reading state.json and confirming status is running
  11. Inject issue context:
    • Read the issueBody field from the matched cart entry
    • If non-null, display it under a "## Issue Details" header
    • This gives the agent full context about what needs to be done
  12. Confirm the branch was created and display:
    • Issue: #{issueNumber} {issueTitle}
    • Branch: {branchName}
    • Repository: {repoFullName}
    • Status: running
  13. Ask the user permission to start planning to resolve issue. If the user allows it, starts planning using /plan mode.

来源与署名

来源:vkehfdl1/Marshroom位于marshroom-skills/skills/start-issue提交6dabba4

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架