用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/zhengwenze/mindbridge --skill git-push-to-github命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Knowledge and governance closeout: reconcile project docs, rule files (CLAUDE.md/AGENTS.md), authorized agent memory, and workspace residue with what the code and runtime actually do, so the next session or the next person starts from one current answer. Trigger when the user names "neat-freak", "洁癖", or "/neat" — and also on clear knowledge-closeout intent without the name: syncing or tidying project docs/rules/memory after development ("把文档和记忆整理一下", "收尾时把文档同步掉", "docs 和代码对不上了"), stale or conflicting CLAUDE.md/memory, a clean handoff to a teammate or a fresh session, or auditing whether workspace rules are actually followed. Do not trigger for pure coding/refactoring/debugging tasks, tidying data or prose (JSON, 周报, changelog announcements), or a bare "整理" with no project-knowledge context.
将 React、Next.js、Ant Design 或 Tailwind 管理后台中松散、纵向堆叠、自动换行或超出内容区的筛选组件,重构为页面最大宽度内的单行水平筛选栏。用于用户要求“筛选框排成一行”“仿照其他管理页面的筛选栏”“压缩筛选区间距”“不要超过页面宽度”或统一同项目列表页工具栏布局时;同时保留原有筛选、重置、刷新、批量操作等业务行为并完成回归验证。
Simplify frontend pages and UI components with page-element minimalism. Use when Codex is asked to reduce visual clutter, remove explanatory copy, make a page cleaner or more focused, audit noisy UI, redesign a dashboard/chat/tool page for minimalism, or decide which labels, helper text, headings, cards, badges, buttons, and status elements should remain visible.
基于 SOC 职业分类
正在显示 SKILL.md
| name | git-push-to-github |
| description | Safely commits intended local changes and pushes them to a GitHub branch. 当用户明确要求提交并推送代码到 GitHub 时调用。 |
不要用于只读状态查询、回滚、强制推送或未经授权的分支合并。
repo_path: 仓库路径,默认当前目录。remote: 远程名称,默认 origin。branch: 目标分支,默认当前分支;不要擅自假定为 main。commit_message: 可选提交说明;未提供时根据本次明确范围内的变更生成简短中文说明。paths: 本次允许暂存的文件路径;应从任务范围和 git status 中明确得出。scope: 提交范围,可选值为 task、all-worktree 或 existing-commits-only,默认 task。即使选择 all-worktree,仍必须排除敏感信息、缓存和构建产物。success: 是否完成。branch: 实际推送的目标分支。commit_hash: 推送后的提交哈希。commit_message: 提交说明。push_result: 推送与远程校验结果。error_message: 失败原因及安全的下一步建议。git status --short --branch、git remote、git branch -vv,并确认当前不是 detached HEAD。git remote -v 结果。git fetch <remote> --prune。git rev-list --left-right --count HEAD...<remote>/<branch> 判断分叉:
git pull --ff-only <remote> <branch>;工作区不干净时停止,不自动 stash。git add -- <明确文件路径...>,禁止无条件使用 git add .、git add -A。git diff --cached --check 和 git diff --cached --stat 检查暂存内容。.env、证书、私钥、凭据、数据库、日志、构建缓存和临时文件是否被意外纳入。AGENTS.md、CONTRIBUTING.md 或等效项目规范。git commit -m "<说明>"。--no-verify 绕过 Git Hooks。git status --porcelain 和 git show --stat --oneline HEAD;若 Hook 或工具产生新改动,明确说明并重新确认范围。git fetch <remote>,防止验证和提交期间远端已发生变化。<remote>/<branch> 仍是 HEAD 的祖先;若远端出现新的独立提交,停止并报告,不在此阶段执行 pull、merge 或 rebase。git push <remote> HEAD:<branch>。--force、--force-with-lease,除非用户在了解风险后单独明确授权。git fetch <remote>。git rev-parse HEAD 与 git rev-parse <remote>/<branch> 一致。git status --porcelain,不得把仍有未提交改动的状态描述为“工作区干净”。user.name 或 user.email。--no-verify 绕过。/etc/hosts、SSH 配置或全局 Git 配置。git reset --hard、git clean -fd 或强制推送。