ln-003-push-all

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Paths: File paths (
shared/
,
references/
,
../ln-*
) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.
路径: 文件路径(
shared/
references/
../ln-*
)相对于技能仓库根目录。如果在当前工作目录下找不到,请找到该SKILL.md所在目录,再向上返回一级就是仓库根目录。

Push All (Standalone Utility)

推送所有变更(独立实用工具)

Type: Standalone Utility Category: 0XX Shared
Commits and pushes ALL current changes (staged, unstaged, untracked) to the remote repository in a single operation.

类型: 独立实用工具 分类: 0XX 共享类
单次操作即可提交并推送所有当前变更(已暂存、未暂存、未跟踪)到远程仓库。

When to Use This Skill

什么时候使用这个技能

  • Quick push of all accumulated changes without manual staging
  • End-of-session commit when all changes are ready
  • Any situation where
    git add -A && git commit && git push
    is the intent

  • 无需手动暂存,快速推送所有累计变更
  • 会话结束时所有变更都已准备就绪的提交场景
  • 任何你想要执行
    git add -A && git commit && git push
    的场景

Workflow

工作流

Analyze → Doc Check → Lint Check → Stage → Commit → Push → Report
Analyze → Doc Check → Lint Check → Stage → Commit → Push → Report

Phase 1: Analyze Changes

阶段1:分析变更

  1. Run
    git diff --stat
    and
    git status
    to understand ALL changes (staged, unstaged, untracked)
  2. Identify what was changed and why
  1. 运行
    git diff --stat
    git status
    以了解所有变更(已暂存、未暂存、未跟踪)
  2. 识别变更内容和变更原因

Phase 2: Documentation Check

阶段2:文档检查

Check if related documentation needs updating:
Change TypeAction
Code behavior changedUpdate affected docs, comments, examples
New files/folders addedUpdate relevant index or list sections
Config files changedCheck README or setup docs
No doc impactSkip
Skip: Version bumps (CHANGELOG, version fields) — those are done only on explicit user request.
检查是否需要更新相关文档:
变更类型操作
代码行为变更更新受影响的文档、注释、示例
新增文件/文件夹更新相关索引或列表章节
配置文件变更检查README或设置类文档
无文档影响跳过
跳过: 版本升级(CHANGELOG、版本字段)——仅在用户明确要求时才进行这些操作。

Phase 3: Lint Check

阶段3:Lint检查

MANDATORY READ:
shared/references/ci_tool_detection.md
(Discovery Hierarchy + Command Registry)
Discover and run project linters before committing, per ci_tool_detection.md.
Step 1: Discover linter setup per ci_tool_detection.md discovery hierarchy. Also check:
CLAUDE.md
,
README.md
,
CONTRIBUTING.md
for lint instructions.
Step 2: Run linters with auto-fix
  1. Run discovered lint commands with
    --fix
    flag (or equivalent per ci_tool_detection.md Auto-Fix column)
  2. If linter reports errors that auto-fix cannot resolve — fix manually
  3. If no linter config found in project — skip this phase (log: "No linter configuration found, skipping") Step 3: Verify
  4. Re-run linters without
    --fix
    to confirm zero errors
  5. If errors remain after 2 fix attempts — report remaining errors to user and proceed
必读:
shared/references/ci_tool_detection.md
(发现层级 + 命令注册表)
提交前按照ci_tool_detection.md的要求发现并运行项目linter。
步骤1:按照ci_tool_detection.md的发现层级查找linter配置。同时检查:
CLAUDE.md
README.md
CONTRIBUTING.md
中的lint相关说明。
步骤2:带自动修复功能运行linter
  1. 为找到的lint命令添加
    --fix
    参数(或ci_tool_detection.md自动修复列中对应的等效参数)运行
  2. 如果linter报告了自动修复无法解决的错误,请手动修复
  3. 如果项目中没有找到linter配置——跳过本阶段(日志:"No linter configuration found, skipping") 步骤3:验证
  4. 不带
    --fix
    参数重新运行linter,确认没有错误
  5. 如果经过2次修复尝试后仍有错误——向用户报告剩余错误后继续流程

Phase 4: Stage and Commit

阶段4:暂存并提交

  1. Run
    git add -A
    to stage everything
  2. Run
    git diff --cached --stat
    to show what will be committed
  3. Run
    git log --oneline -3
    to match recent commit style
  4. Compose a concise commit message summarizing ALL changes
  5. Commit with
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
  1. 运行
    git add -A
    暂存所有内容
  2. 运行
    git diff --cached --stat
    展示即将提交的内容
  3. 运行
    git log --oneline -3
    匹配最近的提交风格
  4. 编写简洁的提交信息,概括所有变更
  5. 提交时添加
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Phase 5: Push and Report

阶段5:推送并报告

  1. Push to the current branch's remote tracking branch
  2. Report: branch name, commit hash, files changed count

  1. 推送到当前分支对应的远程跟踪分支
  2. 报告内容:分支名称提交哈希变更文件数量

Critical Rules

关键规则

  • Stage everything:
    git add -A
    — no partial commits
  • Match commit style: Follow the project's existing commit message convention
  • Co-Author tag: Always include
    Co-Authored-By
    line
  • No version bumps: Skip CHANGELOG/version updates unless explicitly requested
  • Lint before commit: Always attempt lint discovery; skip gracefully if no config found

Version: 1.0.0 Last Updated: 2026-02-12
  • 暂存所有内容: 使用
    git add -A
    ——不允许部分提交
  • 匹配提交风格: 遵循项目现有的提交信息规范
  • 共同作者标签: 始终包含
    Co-Authored-By
  • 不自动升级版本: 除非明确要求,否则跳过CHANGELOG/版本更新
  • 提交前执行Lint: 始终尝试查找linter配置;如果没有找到则优雅跳过

版本: 1.0.0 最后更新: 2026-02-12