npx skills add https://github.com/vkehfdl1/marshroom --skill start-issue在当前仓库中开始处理一个 Marshroom 工单。
${MARSHROOM_STATE:-~/.config/marshroom/state.json} 中将工单状态更新为 running。如果更新失败,请停止并报告错误——不要静默继续。marsh start;否则回退到直接的 jq 原子写入(参见步骤 10)。读取 ${MARSHROOM_STATE:-~/.config/marshroom/state.json} 并解析 JSON
提取 cart 数组。如果购物车为空,请告知用户在 Marshroom 应用中添加工单
运行 git remote get-url origin 以获取当前仓库的远程 URL
从远程 URL 中提取 owner/repo(同时处理 HTTPS 和 SSH 格式)
Start working on a Marshroom cart issue in the current repository.
running in ${MARSHROOM_STATE:-~/.config/marshroom/state.json}. If this fails, stop and report the error — do NOT silently continue.marsh start if available; otherwise fall back to direct jq atomic write (see step 10).Read ${MARSHROOM_STATE:-~/.config/marshroom/state.json} and parse the JSON
Extract the cart array. If the cart is empty, tell the user to add issues in the Marshroom app
Run git remote get-url origin to get the current repo's remote URL
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
筛选购物车条目,其中 repoCloneURL(HTTPS)或 repoSSHURL(SSH)与当前远程仓库匹配。通过从每个条目中提取 owner/repo 进行比较
如果没有匹配的购物车条目,告知用户此仓库没有购物车工单
如果 $ARGUMENTS 包含工单号,则查找该条目;否则,如果有多个匹配项,列出它们并让用户选择一个
运行 git checkout main && git pull origin main 以确保 main 分支是最新的
创建并检出分支:git checkout -b {branchName}。分支名称应为 Feature/#N 或 HotFix/#N。N 是工单号。
更新工单状态(必须):
* 首选尝试:marsh start #{issueNumber}
* 如果在 PATH 中找不到 marsh,则回退到直接原子更新:
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"
* 通过读取 state.json 并确认状态为 `running` 来验证更新是否成功
issueBody 字段
* 如果非空,则在 "## 工单详情" 标题下显示它
* 这为代理提供了关于需要完成的工作的完整上下文每周安装量
1.2K
仓库
首次出现
2026年2月8日
安全审计
安装于
codex943
kimi-cli942
gemini-cli942
github-copilot942
opencode942
amp942
Extract owner/repo from the remote URL (handle both HTTPS and SSH formats)
Filter cart entries where repoCloneURL (HTTPS) or repoSSHURL (SSH) matches the current remote. Compare by extracting owner/repo from each
If no matching cart entries, tell the user this repo has no cart issues
If $ARGUMENTS contains an issue number, find that entry; otherwise if multiple matches, list them and ask the user to pick one
Run git checkout main && git pull origin main to ensure main is up to date
Create and checkout the branch: git checkout -b {branchName} The branch name should be Feature/#N or HotFix/#N. N is issue number.
Update issue status (MANDATORY) :
* First try: marsh start #{issueNumber}
* If marsh is not found in PATH, fall back to direct atomic update:
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`
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 doneWeekly Installs
1.2K
Repository
First Seen
Feb 8, 2026
Security Audits
Installed on
codex943
kimi-cli942
gemini-cli942
github-copilot942
opencode942
amp942
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装