跳到正文
cccskills
免费在 GitHub 公开

xquic-safe-push

Safely stage, commit, and push XQUIC changes after scoped Git checks. Use when asked to stage, commit, push, publish a branch to a fork, or verify that only intended files will be sent to a remote.

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

查看安装方法

包含的文件(1)

  • SKILL.md3.9 KB

SKILL.md(原文)

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

XQUIC Safe Push

This skill owns local Git scope, commit, and push safety. It does not own pull request body content, review state, validation semantics, or PR pre-review. Use PR-specific skills only when those tasks are explicitly in scope.

Preflight

  1. Read AGENTS.md and honor branch policy: never push directly to remote main or master.
  2. Check git status --short --untracked-files=all, git branch --show-current, and git remote -v.
  3. Resolve the intended push remote from the user request and the repository's current configuration:
    git remote -v
    git remote get-url --push <target-remote>
    
    Remote names such as origin, upstream, or fork are local conventions, not portable identities. Do not create, rename, or repoint a remote unless the user explicitly requests that configuration change.
  4. Use an explicitly named target when the user provides one. Otherwise use the current branch's configured upstream only when its push URL and intended ownership are unambiguous; ask before pushing when multiple or unclear writable targets exist.
  5. Show staged and unstaged scopes separately using git diff --cached --name-status and git diff --name-status.
  6. If the user requested staged-only behavior, do not add any other files.
  7. If user-owned unrelated edits exist, leave them untouched and name them before proceeding.
  8. Confirm the target remote and branch before pushing.

Commit

  • Commit only the intended staged files.
  • Follow CONTRIBUTING.md: commit headers use [<type>]: <subject> with +, -, =, or ~.
  • Use one concern per commit and keep debug/log-only commits out of the final branch history.
  • After commit, verify the new commit with git log --oneline --decorate --max-count=3.

Push

Before pushing, show:

  • current branch
  • target remote, resolved push URL, and branch
  • commits that will be pushed
  • local uncommitted files that will remain local

Push when the requester explicitly asks to push or create a pull request. Also push when the development pipeline reaches its default publication stage and the requester has not asked to stop before publication. A missing, ambiguous, or apparently unwritable target still requires confirmation.

Push to the resolved target without embedding repository ownership in the skill:

git push <target-remote> <branch-name>

Forbidden

  • Do not push to origin main, origin master, or any remote main/master.
  • Do not assume a remote name identifies an upstream repository, a personal fork, or a writable target; resolve its configured push URL first.
  • Do not hard-code or automatically add a contributor-owned repository URL.
  • Do not use --force unless the user explicitly requested it. Prefer --force-with-lease when force is necessary.
  • Do not reset, checkout, clean, or remove files to simplify the state unless explicitly requested.

Git Conventions

Remotes

  • Treat all remote names and URLs as repository-local configuration.
  • Resolve the selected remote with git remote get-url --push immediately before pushing.
  • Prefer the target named by the user. If none is named, use a configured branch upstream only when it is clearly intended and writable.
  • Keep contributor usernames, fork URLs, and machine-specific paths out of this public skill.

Worktree Convention

Each issue uses an independent git worktree for parallel isolation:

<project-root>/                         (main worktree)
<workspace-parent>/<repo>-<task-id>/    (task worktree)

Lifecycle: git worktree add -> work -> push to the resolved target -> PR handling by the relevant PR skill -> git worktree remove.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Classify XQUIC GitHub issues with an evidence-backed L1-L4 resolution-complexity label while keeping validity, priority, severity, and disposition separate and skipping uniquely labeled issues unless the user explicitly forces a recheck. Use when triaging one issue or a batch of issues, creating an issue-complexity backlog, or applying or correcting L1-L4 GitHub labels.

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

alibaba/xquic19312026年10月22日 更新

Address actionable GitHub pull request review comments for xquic. Use when asked to handle PR review feedback, requested changes, unresolved inline threads, or reviewer comments while preserving unrelated edits.

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

alibaba/xquic19312026年10月22日 更新

gh-fix-ci

免费

Debug and fix failing GitHub PR checks for xquic. Use when a PR, branch, or commit has failed CI, GitHub Actions, build checks, test checks, or requested validation failures that should be diagnosed from logs before editing.

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

alibaba/xquic19312026年10月22日 更新

Review XQUIC harness structure for bloat, duplicated facts, trigger overlap, reference drift, and missing hard checks. Use when changing AGENTS.md, harness specs, pipelines, skills, setup scripts, validation routing, or when asked to audit harness design.

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

alibaba/xquic19312026年10月22日 更新

Verify whether a proposed XQUIC bug issue is real by checking the cited RFC or Internet-Draft mechanism against the repository's actual source behavior, tracing any root cause to current file and line evidence, and returning a fail-closed boolean gate. Use when validating an issue draft, investigating a claimed QUIC, HTTP/3, QPACK, or MoQT protocol violation, or before issue-submit may publish an issue.

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

alibaba/xquic19312026年10月22日 更新

Draft and submit evidence-backed XQUIC GitHub bug issues in the repository's CONTRIBUTING and issue-template format. Use when preparing or opening an alibaba/xquic issue that must identify an exact RFC or draft mechanism, expected-versus-actual behavior, reproduction evidence, and optional verified source root cause; requires issue-check to return true before any GitHub submission.

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

alibaba/xquic19312026年10月22日 更新

查看 alibaba 的全部技能

报告此技能的问题