Agent Skills › gmickel/flow-next › flow-next-make-pr

flow-next-make-pr

GitHub

用于在flow-next仓库中生成并打开Pull Request。通过解析spec状态,利用gh工具自动创建PR,支持草稿/就绪模式、基础分支指定及更新现有PR等功能,简化代码合并流程。

plugins/flow-next/codex/skills/flow-next-make-pr/SKILL.md gmickel/flow-next

Trigger Scenarios

需要为flow-next仓库创建或打开PR 请求自动化生成Pull Request

Install

npx skills add gmickel/flow-next --skill flow-next-make-pr -g -y
More Options

Non-standard path

npx skills add https://github.com/gmickel/flow-next/tree/main/plugins/flow-next/codex/skills/flow-next-make-pr -g -y

Use without installing

npx skills use gmickel/flow-next@flow-next-make-pr

指定 Agent (Claude Code)

npx skills add gmickel/flow-next --skill flow-next-make-pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add gmickel/flow-next --all -g -y

预览 repo 内 skill

npx skills add gmickel/flow-next --list

SKILL.md

Frontmatter
{
    "name": "flow-next-make-pr",
    "description": "Open a PR with a cognitive-aid body rendered from flow-next spec state via gh. Use whenever asked to make or open a PR in a flow-next repo.",
    "allowed-tools": "Read, Bash, Grep, Glob, Write, Edit, Task",
    "user-invocable": false
}

/flow-next:make-pr

The host authors one grounded aid object; flowctl validates, stores and renders the briefing. Read workflow.md, then its reached references. No extra model call or hand-assembled sections. Invocation authorizes push and PR creation; --dry-run previews without repository writes, push, PR edits or memory writes.

Read working-rules.md first unless you already have this run; it holds for every step of this skill.

Define FLOWCTL from ${CODEX_HOME:-$HOME/.codex}/scripts/flowctl, then <plugin-root>/scripts/flowctl (two levels above this SKILL.md), then .flow/bin/flowctl, choosing the first executable. Never assume a global install. Parse $ARGUMENTS: the positional token is SPEC_ID; reject unknown flags and missing base values. Carry these values between prompt turns:

Argument Variable / effect
--draft, --ready `DRAFT_FORCE=draft
--base <ref> or --base=<ref> BASE_REF; default empty
--memory WRITE_MEMORY=1; default 0
--dry-run DRY_RUN=1; default 0
--update UPDATE_MODE=1; default 0; refresh an existing open PR
mode:autonomous or FLOW_AUTONOMOUS=1 AUTONOMOUS=1; default 0

Ask the user via plain text. Render the options below as a numbered list 1. … N., followed by a final option N+1. Other — type your own answer. Print the question, then the numbered list, then stop and wait for the user's next message before continuing. Parse the reply as: a bare number 1–N+1 → that option; the literal text of an option label → that option; free text after Other → custom answer.

Keep this skill inline so plain-text numbered prompt remains available. Ask only for missing information, with a recommended option; use a numbered prompt if the tool is unavailable. NEED_INPUT: means ask outside Bash and rerun with the answer. Autonomous gaps hard-error instead. PRs open ready unless --draft or open items (rules in create-and-finalize); a branch without a spec takes workflow.md's no-spec path. Never merge here. Evidence, paths and requirement attribution must be grounded in the export and receipts, with unknowns explicit rather than invented.

Version History

  • 4eba935 Current 2026-10-19 16:48

    移除HTML渲染镜头功能以提升性能;默认将PR设为就绪状态并支持无spec分支;优化规则读取与问题分组逻辑。

  • b91f43c 2026-09-22 21:15

    重构为单一命名 PR 和渲染简报,支持多规格合并至一个 PR 正文。

  • 8baa538 2026-08-20 07:58

Same Skill Collection

optimization/audit/baseline/SKILL.md
optimization/interview/baseline/SKILL.md
optimization/make-pr/baseline/SKILL.md
optimization/plan/baseline/SKILL.md
optimization/prospect/baseline/SKILL.md
plugins/flow-next/codex/skills/flow-next-audit/SKILL.md
plugins/flow-next/codex/skills/flow-next-capture/SKILL.md
plugins/flow-next/codex/skills/flow-next-chart/SKILL.md
plugins/flow-next/codex/skills/flow-next-deps/SKILL.md
plugins/flow-next/codex/skills/flow-next-export-context/SKILL.md
plugins/flow-next/codex/skills/flow-next-features/SKILL.md
plugins/flow-next/codex/skills/flow-next-flow/SKILL.md
plugins/flow-next/codex/skills/flow-next-guide/SKILL.md
plugins/flow-next/codex/skills/flow-next-impl-review/SKILL.md
plugins/flow-next/codex/skills/flow-next-interview/SKILL.md
plugins/flow-next/codex/skills/flow-next-land/SKILL.md
plugins/flow-next/codex/skills/flow-next-map/SKILL.md
plugins/flow-next/codex/skills/flow-next-memory-migrate/SKILL.md
plugins/flow-next/codex/skills/flow-next-pilot/SKILL.md
plugins/flow-next/codex/skills/flow-next-plan-review/SKILL.md
plugins/flow-next/codex/skills/flow-next-plan/SKILL.md
plugins/flow-next/codex/skills/flow-next-prime/SKILL.md
plugins/flow-next/codex/skills/flow-next-prose/SKILL.md
plugins/flow-next/codex/skills/flow-next-prospect/SKILL.md
plugins/flow-next/codex/skills/flow-next-qa/SKILL.md
plugins/flow-next/codex/skills/flow-next-ralph-init/SKILL.md
plugins/flow-next/codex/skills/flow-next-resolve-pr/SKILL.md
plugins/flow-next/codex/skills/flow-next-setup/SKILL.md
plugins/flow-next/codex/skills/flow-next-spec-completion-review/SKILL.md
plugins/flow-next/codex/skills/flow-next-strategy/SKILL.md
plugins/flow-next/codex/skills/flow-next-sync/SKILL.md
plugins/flow-next/codex/skills/flow-next-tracker-sync/SKILL.md
plugins/flow-next/codex/skills/flow-next-visual/SKILL.md
plugins/flow-next/codex/skills/flow-next-work-rolling/SKILL.md
plugins/flow-next/codex/skills/flow-next-work/SKILL.md
plugins/flow-next/codex/skills/flow-next-worktree-kit/SKILL.md
plugins/flow-next/codex/skills/flow-next/SKILL.md
plugins/flow-next/skills/flow-next-chart/SKILL.md
plugins/flow-next/skills/flow-next-deps/SKILL.md
plugins/flow-next/skills/flow-next-export-context/SKILL.md
plugins/flow-next/skills/flow-next-features/SKILL.md
plugins/flow-next/skills/flow-next-guide/SKILL.md
plugins/flow-next/skills/flow-next-impl-review/SKILL.md
plugins/flow-next/skills/flow-next-interview/SKILL.md
plugins/flow-next/skills/flow-next-land/SKILL.md
plugins/flow-next/skills/flow-next-make-pr/SKILL.md
plugins/flow-next/skills/flow-next-map/SKILL.md
plugins/flow-next/skills/flow-next-pilot/SKILL.md
plugins/flow-next/skills/flow-next-plan-review/SKILL.md

Metadata

Files
0
Version
4eba935
Hash
063762f3
Indexed
2026-08-20 07:58

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-31 07:19
浙ICP备14020137号-1