360 Secure SkillHub
360 安全技能中心

do-issue

面向软件开发的 Issue 处理 Skill:自动识别 GitHub/GitLab/Bitbucket,抓取一个或多个 Issue 的需求,做依赖分析与任务拆分,用并行子代理执行并在任务批次之间插入代码审查门禁,最终汇总为一个 PR 并回写 Issue。

athola
athola
热度 61.59
最近更新 2026-08-26 21:21:15
分类:开发依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:代码生成 / 代码审查 / 任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nm-sanctum-do-issue
Metadata
name
do-issue
description
Implements GitHub or GitLab issues via parallel subagents with review gates between task batches
version
1.9.8
triggers
["github","gitlab","issues","subagents","parallel","automation","cross-platform","resolving multi-step issues end-to-end"]
metadata
{"openclaw":{"homepage":"https://github.com/athola/claude-night-market/tree/master/plugins/sanctum","emoji":"⚙️","requires":{"config":["night-market.leyline:git-platform","night-market.superpowers:subagent-driven-development","night-market.superpowers:writing-plans","night-market.superpowers:test-driven-development","night-market.superpowers:requesting-code-review","night-market.superpowers:finishing-a-development-branch"]}}}
source
claude-night-market
source_plugin
sanctum

Night Market Skill — ported from claude-night-market/sanctum. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Table of Contents

Fix Issue(s)

Retrieves issue content from the detected git platform (GitHub, GitLab, or Bitbucket) and uses subagent-driven-development to systematically address requirements, executing tasks in parallel where dependencies allow.

Platform detection is automatic via the leyline:git-platform SessionStart hook. Check session context for git_platform: to determine which CLI to use.

Key Features

  • Cross-Platform: Automatically detects GitHub/GitLab/Bitbucket and uses appropriate CLI
  • Flexible Input: Single issue number, platform URL, or space-delimited list
  • Parallel Execution: Independent tasks run concurrently via subagents
  • One PR: All issues produce one consolidated PR (never per-issue PRs)
  • Quality Gates: Code review between task groups
  • Fresh Context: Each subagent starts with clean context for focused work

Workflow Overview

Phase Description Module
1. Discovery Parse input, fetch issues, extract requirements issue-discovery
2. Planning Analyze dependencies, create task breakdown task-planning
3. Execution Dispatch parallel subagents for independent tasks parallel-execution
4. Quality Code review gates between task batches quality-gates
5-6. Completion Sequential tasks, final review, issue updates completion

Required TodoWrite Items

  1. do-issue:discovery-complete
  2. do-issue:tasks-planned
  3. do-issue:parallel-batch-complete
  4. do-issue:review-passed
  5. do-issue:sequential-complete
  6. do-issue:issues-updated

Forge CLI Commands

Use the platform detected in session context (git_platform:). See Skill(leyline:git-platform) for full mapping.

Operation GitHub (gh) GitLab (glab)
Fetch issue gh issue view <N> --json title,body,labels,comments glab issue view <N>
Comment gh issue comment <N> --body "msg" glab issue note <N> --message "msg"
Close gh issue close <N> --comment "reason" glab issue close <N>
Search gh issue list --search "query" glab issue list --search "query"

Verification: Run the command with --help flag to verify availability.

Agent Teams (Default Execution Mode)

Agent teams is the default parallel execution backend for do-issue. Teammates coordinate via filesystem-based messaging, enabling real-time communication when shared files or dependencies are discovered mid-implementation.

Automatic downgrade: For single issues with --scope minor, agent teams is skipped (Task tool or inline execution is used instead). Use --no-agent-teams to force Task tool dispatch for any invocation.

Requires: Claude Code 2.1.32+, tmux, CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1. If prerequisites are missing, silently falls back to Task tool dispatch.

# Agent teams configuration
fix_issue:
  agent_teams:
    enabled: true           # on by default; --no-agent-teams to disable
    max_teammates: 4        # limit concurrent workers
    model: sonnet           # teammate model (lead uses current model)
    auto_downgrade: true    # skip agent teams for --scope minor

See modules/parallel-execution.md for detailed agent teams patterns.

Configuration

fix_issue:
  parallel_execution: true
  max_parallel_subagents: 3
  review_between_batches: true
  auto_close_issues: false
  commit_per_task: true

Verification: Run the command with --help flag to verify availability.

Detailed Resources