一键导入
git-push-to-github
Safely commits intended local changes and pushes them to a GitHub branch. 当用户明确要求提交并推送代码到 GitHub 时调用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Safely commits intended local changes and pushes them to a GitHub branch. 当用户明确要求提交并推送代码到 GitHub 时调用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.
Use when a student describes exams, coursework, grades, papers, burnout, or academic pressure; turns pressure into a small next-step plan.
Use when a student describes anxiety, panic, overwhelm, racing thoughts, or physical tension; provides grounding and stabilization steps.
Use when creating a staff-facing handoff summary for counselors or administrators after a psychological risk report is generated.
| 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 中明确得出。success: 是否完成。branch: 实际推送的目标分支。commit_hash: 推送后的提交哈希。commit_message: 提交说明。push_result: 推送与远程校验结果。error_message: 失败原因及安全的下一步建议。git status --short --branch、git remote -v、git branch -vv。git fetch <remote> --prune。<remote>/<branch>,禁止在不了解远程新提交时直接推送。git add -- <明确文件路径...>,禁止无条件使用 git add .、git add -A。git diff --cached --check 和 git diff --cached --stat 检查暂存内容。git commit -m "<说明>"。git pull --ff-only <remote> <branch> 更新。--ff-only 同步远程,再 cherry-pick 本次明确提交。git push <remote> HEAD:<branch>。--force、--force-with-lease,除非用户在了解风险后单独明确授权。git fetch <remote>。git rev-parse HEAD 与 git rev-parse <remote>/<branch> 一致。user.name 或 user.email。/etc/hosts、SSH 配置或全局 Git 配置。git reset --hard、git clean -fd 或强制推送。