360 Secure SkillHub
360 安全技能中心

pr-writing

读取本地 git 仓库的分支、提交和改动文件,按前端、Go、Dart 或通用 profile 生成 PR 标题与描述,包含测试计划、结果和链接等章节,并明确标注未知信息。

分类:开发
DarknessKiller
热度 0.00
最近更新 2026-11-14 23:50:03

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add darknesskiller/skills/pr-writing
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
pr-writing
description
Draft PR titles and descriptions from local git history.

PR Writing

The helper script lives at scripts/pr_writer.py relative to this skill's directory (the harness resolves it). Run it from the user's repo with the script's absolute or skill-relative path:

python3 <skill-dir>/scripts/pr_writer.py

Steps

  1. Run helper or inspect branch. Done when source, target, commits, changed files known.
  2. Detect profile or accept --profile. Draft with Description, Test Plan, Test Result, Links. Add Screenshot only for frontend.
  3. Compose title. feat adds behavior, fix repairs, refactor restructures. Ticket in branch or commits: <feat|fix|refactor> [TICKET-123]: concise description. No ticket: <feat|fix|refactor> (feature-name): concise description.
  4. Every claim must be supported by local context. Unknowns labeled, not invented.

Completion: title follows the ticket rule, body has applicable headings, profile matches repo, unknowns labeled.

Commands

draft --repo-dir . [--target main] [--format toon] [--profile frontend]

Profiles

Signal Profile
React, Next, Vue, Nuxt, Svelte, Angular, Astro, Preact, React Native frontend
Flutter pubspec.yaml frontend
Dart pubspec.yaml dart
go.mod go
None generic