ln-001-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. If../ln-*is missing, fetch files via WebFetch fromshared/.https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}
路径: 文件路径(、shared/、references/)是相对于技能仓库根目录的。如果在当前工作目录未找到,请定位到该SKILL.md所在目录,向上跳转一级即为仓库根目录。如果缺少../ln-*目录,请通过WebFetch从shared/获取文件。https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}
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 → CHANGELOG → Lint Check → Stage → Commit → Push → ReportAnalyze → Doc Check → CHANGELOG → 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 (version fields in SKILL.md, README badge) — those are done only on explicit user request.
检查是否需要更新相关文档:
| 变更类型 | 操作 |
|---|---|
| 代码行为变更 | 更新受影响的文档、注释、示例 |
| 新增文件/文件夹 | 更新相关索引或列表章节 |
| 配置文件变更 | 检查README或安装文档 |
| 无文档影响 | 跳过 |
跳过: 版本号升级(SKILL.md中的版本字段、README徽章)—— 仅在用户明确要求时执行此类操作。
Phase 3: CHANGELOG Update
阶段3:更新CHANGELOG
If exists and changes are significant (not just lint/formatting fixes):
CHANGELOG.md- Check if today's date already has an entry ()
## YYYY-MM-DD - If yes — append new bullets to existing entry
- If no — add new entry (newest first)
## YYYY-MM-DD - Write max 5 bullets, each starting with
- **Bold label** — description - Only user-visible or architecturally significant changes. Skip: renumbering, internal refactoring, structural fixes, deduplication
| Include | Skip |
|---|---|
| New capabilities / skills | Renumbering, renaming |
| Workflow changes | Internal refactoring (D1-D9 fixes) |
| Breaking changes | Deduplication passes |
| New integrations | Reference file moves |
| Performance improvements users notice | Token efficiency numbers |
Skip if: no in project, or changes are trivial (whitespace, lint auto-fixes only).
CHANGELOG.md如果项目存在且变更为重要变更(不只是lint/格式修复):
CHANGELOG.md- 检查是否已存在当日日期的条目()
## YYYY-MM-DD - 如果已有 —— 在现有条目下追加新的列表项
- 如果没有 —— 新增条目(最新的放在最前面)
## YYYY-MM-DD - 最多写5个列表项,每个都以的格式编写
- **加粗标签** — 描述 - 仅记录用户可见或架构层面的重要变更。跳过:编号调整、内部重构、结构修复、去重操作
| 包含 | 跳过 |
|---|---|
| 新功能/新技能 | 编号调整、重命名 |
| 工作流变更 | 内部重构(D1-D9修复) |
| 破坏性变更 | 去重优化 |
| 新集成 | 参考文件移动 |
| 用户可感知的性能提升 | Token效率数值 |
跳过条件: 项目中没有,或变更为无关紧要的修改(仅空白字符调整、lint自动修复)。
CHANGELOG.mdPhase 4: Lint Check
阶段4: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 — first check for explicit lint/format commands (they take priority over auto-detection), then follow ci_tool_detection.md discovery hierarchy. Also check: , , for lint instructions.
docs/project/runbook.mdCLAUDE.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的要求,提交前发现并运行项目的lint工具。
步骤1:发现lint配置 —— 首先检查中明确的lint/格式化命令(优先级高于自动发现),之后按照ci_tool_detection.md的发现层级查找。同时检查:、、中的lint说明。
docs/project/runbook.mdCLAUDE.mdREADME.mdCONTRIBUTING.md步骤2:运行带自动修复的lint命令
- 运行发现的lint命令,添加参数(或ci_tool_detection.md自动修复列中对应的等价参数)
--fix - 如果lint报告自动修复无法解决的错误 —— 手动修复
- 如果项目中未找到lint配置 —— 跳过该阶段(日志记录:"未找到linter配置,跳过该阶段") 步骤3:验证
- 不带参数重新运行lint命令,确认无错误
--fix - 如果经过2次修复尝试后仍有错误 —— 向用户报告剩余错误后继续后续流程
Phase 5: Stage and Commit
阶段5:暂存并提交
- 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 6: Push and Report
阶段6:推送并报告
- 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 version field updates (SKILL.md Version, README badge) unless explicitly requested
- Lint before commit: Always attempt lint discovery; skip gracefully if no config found
- 全量暂存: 执行—— 不允许部分提交
git add -A - 匹配提交风格: 遵循项目现有的提交信息规范
- 共同作者标签: 始终包含行
Co-Authored-By - 不自动升级版本: 跳过版本字段更新(SKILL.md版本、README徽章),除非用户明确要求
- 提交前先lint: 始终尝试发现lint配置;如果未找到配置则优雅跳过
Definition of Done
完成定义
- All changes staged (untracked + modified)
- Commit created with descriptive message
- Pushed to remote successfully
Version: 1.0.0
Last Updated: 2026-02-12
- 所有变更已暂存(未追踪的 + 已修改的)
- 已创建带描述性信息的提交
- 已成功推送到远程仓库
版本: 1.0.0
最后更新: 2026-02-12