ln-003-push-all
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePaths: File paths (,shared/,references/) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.../ln-*
路径: 文件路径(、shared/、references/)相对于技能仓库根目录。如果在当前工作目录下找不到,请找到该SKILL.md所在目录,再向上返回一级就是仓库根目录。../ln-*
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 is the intent
git add -A && git commit && git push
- 无需手动暂存,快速推送所有累计变更
- 会话结束时所有变更都已准备就绪的提交场景
- 任何你想要执行的场景
git add -A && git commit && git push
Workflow
工作流
Analyze → Doc Check → Lint Check → Stage → Commit → Push → ReportAnalyze → Doc Check → Lint Check → Stage → Commit → Push → ReportPhase 1: Analyze Changes
阶段1:分析变更
- Run and
git diff --statto understand ALL changes (staged, unstaged, untracked)git status - Identify what was changed and why
- 运行和
git diff --stat以了解所有变更(已暂存、未暂存、未跟踪)git status - 识别变更内容和变更原因
Phase 2: Documentation Check
阶段2:文档检查
Check if related documentation needs updating:
| Change Type | Action |
|---|---|
| Code behavior changed | Update affected docs, comments, examples |
| New files/folders added | Update relevant index or list sections |
| Config files changed | Check README or setup docs |
| No doc impact | Skip |
Skip: Version bumps (CHANGELOG, version fields) — those are done only on explicit user request.
检查是否需要更新相关文档:
| 变更类型 | 操作 |
|---|---|
| 代码行为变更 | 更新受影响的文档、注释、示例 |
| 新增文件/文件夹 | 更新相关索引或列表章节 |
| 配置文件变更 | 检查README或设置类文档 |
| 无文档影响 | 跳过 |
跳过: 版本升级(CHANGELOG、版本字段)——仅在用户明确要求时才进行这些操作。
Phase 3: Lint Check
阶段3:Lint检查
MANDATORY READ: (Discovery Hierarchy + Command Registry)
shared/references/ci_tool_detection.mdDiscover 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: , , for lint instructions.
CLAUDE.mdREADME.mdCONTRIBUTING.mdStep 2: Run linters with auto-fix
- Run discovered lint commands with flag (or equivalent per ci_tool_detection.md Auto-Fix column)
--fix - If linter reports errors that auto-fix cannot resolve — fix manually
- If no linter config found in project — skip this phase (log: "No linter configuration found, skipping") Step 3: Verify
- Re-run linters without to confirm zero errors
--fix - 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配置。同时检查:、、中的lint相关说明。
CLAUDE.mdREADME.mdCONTRIBUTING.md步骤2:带自动修复功能运行linter
- 为找到的lint命令添加参数(或ci_tool_detection.md自动修复列中对应的等效参数)运行
--fix - 如果linter报告了自动修复无法解决的错误,请手动修复
- 如果项目中没有找到linter配置——跳过本阶段(日志:"No linter configuration found, skipping") 步骤3:验证
- 不带参数重新运行linter,确认没有错误
--fix - 如果经过2次修复尝试后仍有错误——向用户报告剩余错误后继续流程
Phase 4: Stage and Commit
阶段4:暂存并提交
- Run to stage everything
git add -A - Run to show what will be committed
git diff --cached --stat - Run to match recent commit style
git log --oneline -3 - Compose a concise commit message summarizing ALL changes
- Commit with
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 运行暂存所有内容
git add -A - 运行展示即将提交的内容
git diff --cached --stat - 运行匹配最近的提交风格
git log --oneline -3 - 编写简洁的提交信息,概括所有变更
- 提交时添加
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Phase 5: Push and Report
阶段5:推送并报告
- Push to the current branch's remote tracking branch
- Report: branch name, commit hash, files changed count
- 推送到当前分支对应的远程跟踪分支
- 报告内容:分支名称、提交哈希、变更文件数量
Critical Rules
关键规则
- Stage everything: — no partial commits
git add -A - Match commit style: Follow the project's existing commit message convention
- Co-Author tag: Always include line
Co-Authored-By - 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