跳到正文
cccskills
免费在 GitHub 公开

pr

Create a pull request with WSL-safe workflow. Uses --body-file to avoid heredoc permission corruption.

中文简介正在准备中。当前显示原文说明。

集成工具GitHub
查看安装方法

包含的文件(1)

  • SKILL.md2.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Create Pull Request

Create a PR from the current branch using WSL-safe patterns.

Process

  1. Check state:

    • git status — note any uncommitted changes
    • git log main..HEAD — review commits to include
    • git diff main...HEAD --stat — files changed
  2. Prepare:

    • If uncommitted changes exist, ask user whether to commit first
    • Push the branch directly from WSL: git push -u origin BRANCH (the Windows credential manager is wired into WSL git). Fallback ONLY if GCM crashes ("could not read Username"): powershell.exe -Command 'cd C:\Projects\cqs; git push -u origin BRANCH'
  3. Write PR body to /mnt/c/Projects/cqs/pr_body.md:

    ## Summary
    - Bullet points summarizing changes
    
    ## Test plan
    - [ ] cargo test passes
    - [ ] cargo clippy clean
    - [ ] Manual verification steps
    
  4. Create PR via PowerShell:

    powershell.exe -Command 'cd C:\Projects\cqs; gh pr create --title "..." --body-file pr_body.md'
    
  5. Clean up: Delete pr_body.md

  6. Wait for CI — pin the run ID (gh pr checks --watch latches onto the previous commit's completed run after a push; do not use it):

    sleep 45   # new run needs ~45s to register after the push
    powershell.exe -Command 'cd C:\Projects\cqs; gh run list --branch BRANCH --workflow CI --limit 1'
    powershell.exe -Command 'cd C:\Projects\cqs; gh run watch RUN_ID --exit-status'
    
  7. Report: Show PR URL

Critical rules

  • ALWAYS use --body-file — never inline heredocs in gh pr create --body
  • Heredocs get captured as permission entries in settings.local.json, corrupting startup
  • git push works directly from WSL (credential helper wired); PowerShell is the fallback when GCM crashes. All gh commands still go through PowerShell (with cd C:\Projects\cqs or -R jamie8johnson/cqs)
  • main is protected — all changes require PR

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

archeo

免费

Comment-archaeology sweep - find work items hiding in TODO/FIXME/for-now comments and plan-doc ledgers, judge them, file issues, queue trivial fixes. Good idle-loop activity.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

audit

免费

Run a multi-category code audit on the cqs codebase. Spawns parallel agents per batch.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

Run before modifying a function — impact + test-map + explain in one pass, presented as a modification checklist.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

Trust-boundary security audit of cqs — fans out unbiddable-auditor agents across 6 categories (RT-INJ/RT-FS/RT-RES/RT-DATA/RT-RELAY/RT-EXFIL), attacker mindset, run-the-attack PoC + regression guard.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

Run after making changes, before committing — reviews the current git diff for impact and risk via cqs review.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

cqs

免费

Unified cqs CLI dispatcher — semantic code search, call graph navigation, impact analysis, quality tools, notes, and infrastructure. Use `/cqs <command> [args]` for any cqs operation.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

查看 jamie8johnson 的全部技能

报告此技能的问题