Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计提醒

1k-create-pr1k 创建公关

Agent Skill

1k-create-pr 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,058

周安装

45

GitHub Stars

2,398

下载量

371
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:1k-create-pr(1k 创建公关)
来源仓库:https://github.com/onekeyhq/app-monorepo
仓库路径:skills/1k-create-pr
安装命令:
npx skills add https://github.com/onekeyhq/app-monorepo --skill 1k-create-pr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/onekeyhq/app-monorepo --skill 1k-create-pr

简介

专为 OneKey App 项目设计的 PR 自动化工作流工具, 适用于需要快速创建和管理代码变更拉取请求的场景。

  • 核心能力包括自动分析变更内容、生成规范分支名、执行代码检查和一键创建 PR。
  • 通过命令行交互完成从代码提交到 PR 发布的完整流程。
  • 安装前请确认 GitHub 权限及是否允许执行 git 命令和网络操作。

SKILL.md

Create OneKey App PR

Automates the complete PR creation workflow for OneKey app-monorepo changes.

Quick Reference

StepActionCommands
1Check statusgit status, git branch --show-current
2Create branch (if on x)git checkout -b <branch-name>
3Lint fixyarn lint --fix
4Stage & commitgit add., git commit -m "type: description"
5Push to remotegit push -u origin <branch-name>
6Extract contextAnalyze conversation for intent, decisions, risks
7Create PRgh pr create --base x --title "..." --body "..."
8Enable auto-mergegh pr merge <number> --auto --squash

Workflow

1. Check Current Branch Status

git status
git branch --show-current

2. Branch Handling

If on x branch:

  • Analyze current changes (staged and unstaged)
  • Generate descriptive branch name based on changes:

- feat/ - new features - fix/ - bug fixes - refactor/ - refactoring - chore/ - maintenance tasks

  • Create and switch: git checkout -b <branch-name>

If already on feature branch: Skip branch creation

3. Run Lint Fix

yarn lint --fix

Fix any remaining lint errors before committing.

4. Stage and Commit Changes

git add .
git commit -m "<type>: <description>"

Commit format:

  • Follow conventional commits
  • Do NOT add Claude signatures or Co-Authored-By

5. Push to Remote

git push -u origin <branch-name>

6. Extract Context and Intent (CRITICAL)

Before creating the PR, analyze the full conversation history to extract:

  • Intent: Why were these changes made? What problem was being solved?
  • Root Cause: If this is a bug fix, what was the root cause?
  • Design Decisions: What approaches were considered? Why was this approach chosen?
  • Trade-offs: Any compromises or known limitations?
  • Risk Areas: Which parts of the change are riskiest or most complex?
  • Platform Impact: Which platforms are affected (desktop/mobile/web/extension)?
  • Related Issues: Any OK-{number} issue IDs mentioned in conversation

Context extraction guidelines:

  1. User's original request - What did the user ask for? Quote key phrases if helpful.
  2. Problem diagnosis - How was the problem identified and understood?
  3. Implementation rationale - Why was this specific approach taken over alternatives?
  4. Constraints discussed - Any constraints or requirements the user mentioned.
  5. Edge cases considered - Any edge cases discussed during development.
  6. Security considerations - Any security implications discussed.
  7. Performance considerations - Any performance trade-offs discussed.

7. Create Pull Request with Context

gh pr create --base x --title "<title>" --body "<description>"

Issue ID handling:

  • Extract OK-{number} from commit summary/description and conversation history
  • Append to PR title: fix: description(OK-49185)
  • No space before opening parenthesis

PR Body Template:

The PR body MUST use this template. Omit sections that don't apply (don't write "N/A").

## Summary
<1-3 bullet points describing WHAT changed>

## Intent & Context
<WHY these changes were made. What problem was being solved? What was the user's original request or the bug report that triggered this work?>

## Root Cause
<For bug fixes: What was the root cause? How was it diagnosed?>

## Design Decisions
<Key decisions made during implementation and WHY. Alternatives considered and reasons for the chosen approach.>

## Changes Detail
<Brief description of each significant file change and its purpose>

## Risk Assessment
- **Risk Level**: Low / Medium / High
- **Affected Platforms**: Extension / Mobile / Desktop / Web
- **Risk Areas**: <Which parts of the change are riskiest?>

## Test plan
- [ ] <Testing steps to verify the changes>

8. Enable Auto-Merge

gh pr update-branch <PR_NUMBER>
gh pr merge <PR_NUMBER> --auto --squash

9. Return PR URL

Display PR URL to user and open in browser:

open <PR_URL>

Important Notes

  • Always target x as base branch
  • Use conventional commit format: type: description
  • Extract and append issue IDs (OK-{number}) to PR title
  • Context extraction is mandatory: The PR description MUST reflect the conversation context. Do NOT create generic descriptions. The code review AI relies on this context to understand the intent behind changes.
  • All PR content MUST be in English: title, body (summary, changes, test plan), branch name, and commit messages. Never use Chinese or other languages.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.87%
按下载量换算137

Claude

30.35%
按下载量换算113

Cursor

17.05%
按下载量换算63

Gemini CLI

10.08%
按下载量换算37

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills