基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/chchchadzilla/before-anything-else --skill github-safe-push命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | github-safe-push |
| description | Push GitHub remotes without leaking tokens or paths. |
| version | 0.1.0 |
| author | Chad Keith |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["GitHub","git","push","secrets","identity"],"related_skills":["github-auth","github-pr-workflow"]}} |
How Chad Keith's agent pushes. Auth setup lives in github-auth. PR lifecycle lives in github-pr-workflow. This skill is the push itself: identity, leak scan, remote hygiene, then git push.
git push, first-time origin, or "publish this repo".env holds GITHUB_TOKEN / GITHUB_USERNAMEDon't use for: creating a PAT, gh auth login, or opening a PR. Load github-auth or github-pr-workflow for those.
Commits and shipped author fields say Chad Keith. Nothing else.
| Field | Value |
|---|---|
git user.name | Chad Keith |
git user.email | chad@conversatrait.com |
SKILL.md / plugin.yaml / LICENSE author | Chad Keith |
Do not write Hermes Agent, Nous, a machine hostname, or a local username into author fields. Do not put C:\Users\..., /c/Users/..., or %USERPROFILE% into README, .env.example, comments, or commit messages.
Set identity local to the repo unless the user asked for global:
terminal(command="git config user.name \"Chad Keith\" && git config user.email \"chad@conversatrait.com\"")
git on PATH.env, $HERMES_HOME/.env, or gh auth — never from chat, never echoedOn Windows with git-bash, terminal is MSYS. Pass native C:/Users/<user>/... paths to git -C, not /c/Users/<user>/....
git rev-parse --show-toplevel). Criterion: one repo, expected name.user.name / user.email to the table above if missing. Criterion: git log -1 --format='%an <%ae>' would show Chad Keith.git status + git diff + git ls-files.env, *.pem, id_rsa, or any file matching a GitHub token regex (ghp_, github_pat_, gho_, ghu_, ghs_) is staged or already trackedclean or the push did not run.https://user:token@github.com/.... If origin is missing, add https://github.com/<owner>/<repo>.git from .env GITHUB_USERNAME + GITHUB_REPO (no defaults that bake one person into the script). Criterion: git remote get-url origin has no @ before github.com on HTTPS.gh if gh auth status worksgit remote set-url with the token in it
Criterion: push succeeded and .git/config still has a clean URL.git status -sb and git ls-files | grep -E '\\.env$' (expect not tracked). Criterion: branch tracks origin; .env still untracked.READMEs and examples look like any other project:
$HERMES_HOME, ~/.hermes, %LOCALAPPDATA%/hermes, /path/to/clonehttps://github.com/<owner>/<repo>.git or this project's real homepage URL — not a home-directory checkoutGITHUB_TOKEN=, GITHUB_USERNAME=your-github-username.git/config.credential.helper store writes a plaintext token to disk. Prefer askpass for a one-shot push.keys from .env is fine. Printing values is not.git -C /c/Users/<user>/... fails. Use C:/Users/<user>/... for native git..env.example that contains a real username unless it is clearly a placeholder.git remote get-url origin is credential-freegit ls-files does not include .envauthor is Chad Keith <chad@conversatrait.com>C:\Users\ or /c/Users/ home path