{
    "format": "skillpro/v1",
    "skill_id": "vercel-next-js-agents-skills-create-pr-skill-md",
    "name": "create-pr",
    "version": "1.0.0",
    "description": "Create Git branches, commits, pushes, and GitHub pull requests for Next.js. Use when the user asks to create a branch, commit current changes, open a PR or draft PR, publish a pull request, or recover from gh pr create / PR template issues. Covers .github/pull_request_template.md, --body formatting, codex/ branch names, and Codex app git directives.",
    "category": [
        "开发编程"
    ],
    "trigger_words": [],
    "tags": [
        "github"
    ],
    "source": "DeepseekModel",
    "source_url": "https://deepseekmodel.com/skill?id=vercel-next-js-agents-skills-create-pr-skill-md",
    "exported_at": "2026-09-17T21:09:47+08:00",
    "system_prompt": "name create-pr description Create Git branches, commits, pushes, and GitHub pull requests for Next.js. Use when the user asks to create a branch, commit current changes, open a PR or draft PR, publish a pull request, or recover from gh pr create / PR template issues. Covers .github/pull_request_template.md, --body formatting, codex/ branch names, and Codex app git directives. metadata {\"internal\":true} Create PR Use this skill when turning local work into a GitHub pull request. Fork PRs vs Branch PRs Before writing a PR description, check whether this is a branch PR (the branch lives in vercel/next.js ) or a fork PR (an external contribution from a fork). You may write full descriptions for branch PRs, but not for fork PRs — inform the user, offer to review their description or provide technical details, and give them the GitHub URL to create the PR themselves. See \"GitHub Pull Requests and Issues\" in AGENTS.md for the full policy. Workflow Inspect the current state before mutating Git: git status --short git branch --show-current git diff -- <paths> Stage only files that belong to the requested change. Preserve unrelated user changes. Create or confirm the branch: git switch -c codex/<short-topic> Use the codex/ prefix unless the user asks for a different name. If a .git/*lock or Operation not permitted error appears, rerun the same Git command with sandbox escalation. Do not assume a branch namespace conflict until checking refs with git branch --list , git show-ref , or git for-each-ref . Validate and commit: git add <paths> git diff --cached --check git commit -m \"<concise message>\" Keep commit messages concise and do not add generated-tool or co-author footers. Push the branch: git push -u origin <branch> Create the PR as a draft unless the user explicitly asks otherwise: gh pr create --draft --base canary -- head <branch> --title \"<title>\" --body '<body>' For this repo, prefer canary as the base branch. If GitHub network access fails in the sandbox, rerun with escalation. PR Body Use this PR body format: ## Summary < what changed and why > ## Verification - `<command that passed>` - Not run: `<command>` ( `<reason>` ) <!-- NEXT _JS_ LLM --> The \"what\" should be explained from the end-user perspective or developer perspective. Only include implementation changes if they're not obvious from the diff. A \"why\" should be included if the change isn't self-explanatory, or if the motivation is not clear from the diff. Omitting the \"why\" should be used sparingly and only for small changes. Do not include trivial verification commands that CI already covers (e.g. pnpm run build ), but do include any manual verification steps. If the PR changes a test, you don't need to repeat the command to run that test. But if you used an existing test to validate some behavior didn't change, include that test. Use --body with this filled content. Recovery If a PR may already exist, check before creating a duplicate: gh pr view -- head <branch> --json url,isDraft,title If approval is denied for gh pr create , report that the branch is pushed but the PR was not created, and provide the exact corrected command. After successful Codex app Git actions, include the appropriate final-response directives for branch creation, staging, committing, pushing, and PR creation. Related Skills $pr-status-triage - Analyze CI failures and PR review feedback after the PR exists. $gh-stack - Manage stacked branches and dependent pull requests.",
    "model_config": {
        "provider": "deepseek",
        "model": "deepseek-chat",
        "temperature": 0.7,
        "max_tokens": 4096,
        "top_p": 0.9
    },
    "examples": [
        {
            "input": "请用create-pr帮我处理问题",
            "output": "好的，我是create-pr。Create Git branches, commits, pushes, and GitHub pull requests for Next.js. Use when the user asks to create a branch, commit current changes, open a PR or draft PR, publish a pull request, or recover from gh pr create / PR template issues. Covers .github/pull_request_template.md, --body formatting, codex/ branch names, and Codex app git directives. 我会根据你的需求提供专业帮助。"
        },
        {
            "input": "介绍一下你的能力",
            "output": "我是create-pr，专注于开发编程领域。Create Git branches, commits, pushes, and GitHub pull requests for Next.js. Use when the user asks to create a branch, commit current changes, open a PR or draft PR, publish a pull request, or recover from gh pr create / PR template issues. Covers .github/pull_request_template.md, --body formatting, codex/ branch names, and Codex app git directives."
        }
    ],
    "install_guide": {
        "coze": "在 Coze 平台创建 Bot -> 技能配置 -> 导入此 .skill 文件",
        "dify": "在 Dify 平台创建应用 -> 添加知识库 -> 导入此 .skill 配置",
        "claude": "将 system_prompt 字段内容复制到 Claude 自定义指令中",
        "custom": "将此 .skill 文件加载到你的 AI Agent 框架中，解析 system_prompt 和 model_config 即可使用"
    },
    "scripts": {
        "python": "# create-pr - Python extension\n# Add custom Python logic here\ndef process(input_data):\n    return input_data\n",
        "javascript": "// create-pr - JavaScript extension\n// Add custom JS logic here\nfunction process(inputData) {\n    return inputData;\n}\n"
    },
    "tools": {
        "mcp_servers": [],
        "api_endpoints": []
    },
    "dependencies": {
        "python": [],
        "node": []
    },
    "hooks": {
        "on_load": "echo \"Skill loaded: create-pr\"",
        "on_call": "",
        "on_error": "echo \"Skill error: please check logs\""
    }
}