shunk031-github-cgd-identity
Use this skill for all GitHub write operations in creative-graphic-design organization repositories (such as design-generators), including git commits and pushes, PR creation and updates, issue and PR comments, labels, milestones, and user-requested merges. Perform them as the creative-graphic-design-dev machine user. Use it both when the user explicitly requests the bot or dev account and whenever beginning write work in a creative-graphic-design organization repository without an explicit request; never use it in repositories of any other organization or host.
How do I install this agent skill?
npx skills add https://github.com/shunk031/skills --skill shunk031-github-cgd-identityIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill establishes a protocol for using a dedicated GitHub machine user identity for operations within the 'creative-graphic-design' organization. It includes several security-conscious instructions, such as using per-command environment variables for tokens and verifying repository ownership before proceeding, but it maintains a standard vulnerability surface for indirect prompt injection via repository metadata.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
[!NOTE] After reading this
SKILL.md, say:🎨 I read shunk031-github-cgd-identity.
CGD Dev Identity
Overview
Perform git and gh write operations for creative-graphic-design organization repositories as the creative-graphic-design-dev machine user (user ID 176740601), not a personal account. A bot-authored PR lets a human account formally review and approve it. Because GitHub does not permit users to approve their own PRs, creating a PR with a personal account would prevent the review flow from working.
Setup
Before starting write operations, perform the following checks in the working shell and worktree. Run them as a starting procedure rather than investigating only after a failure.
-
For repository writes, confirm that
git remote get-url originpoints togithub.com/creative-graphic-design.If it does not, this skill does not apply; use normal git identity and authentication. New-machine
setup-gh-cgdbootstrap is exempt. -
Ensure that GitHub CLI has the bot account in its system credential store. On a new machine, run the interactive setup command once and authenticate in the browser as
creative-graphic-design-dev:setup-gh-cgdDo not use
gh auth switchduring agent work. It changes the active account for the whole host and can race with concurrent sessions. -
Retrieve the stored bot token by account name and pass it only to each write command that uses gh or git credentials:
bot_token="$(gh auth token --hostname github.com --user creative-graphic-design-dev)" && test -n "$bot_token" && GH_TOKEN="$bot_token" gh pr create ... bot_token="$(gh auth token --hostname github.com --user creative-graphic-design-dev)" && test -n "$bot_token" && GH_TOKEN="$bot_token" git -c credential.helper= -c 'credential.helper=!gh auth git-credential' pushDo not export the token into a persistent shell and do not print it. The per-command prefix keeps account selection explicit and avoids changing GitHub CLI's global active account.
-
Verify the GitHub identity and push permission for the organization repository.
gh api useronly confirms the logged-in account and cannot verify access to organization resources:bot_token="$(gh auth token --hostname github.com --user creative-graphic-design-dev)" && test -n "$bot_token" && GH_TOKEN="$bot_token" gh api user --jq .login bot_token="$(gh auth token --hostname github.com --user creative-graphic-design-dev)" && test -n "$bot_token" && GH_TOKEN="$bot_token" gh api repos/creative-graphic-design/<repo> --jq .permissions.pushDo not start write operations unless the first command returns
creative-graphic-design-devand the second returnstrue. -
Set the commit author to the bot for each commit command:
git -c user.name=creative-graphic-design-dev \ -c user.email=176740601+creative-graphic-design-dev@users.noreply.github.com \ commit ...Do not use
git config user.name/emailin a linked worktree: it writes to the shared.git/configand changes the author for the main checkout and concurrent worktrees as well. -
Push over HTTPS because SSH does not use the proxy in this environment. Set an explicit push URL:
git remote set-url --push origin https://github.com/creative-graphic-design/<repo>
The guard stops failed or empty token retrieval from letting GitHub CLI fall back to another credential.
Scope
- This skill applies only to creative-graphic-design organization repositories on github.com. Do not use the stored bot credential or the bot commit identity for other hosts, organizations, or personal repositories; use normal authentication and the normal git identity there.
- Attribute every coding-agent write to a creative-graphic-design organization repository to the bot. This includes commits, pushes, PR creation and updates, PR replies, issue comments, labels, milestones, and user-requested merges.
- If any Setup verification fails, abandon the bot identity entirely: do not apply it partially, such as setting the bot commit author while the credential check failed or pushing through another account. Stop and report instead.
- The human (
shunk031) approves PRs in GitHub's UI. Approval is the merge decision for that PR, and it stays valid after later head changes under the merge-approval rule in Authority Boundaries of the user-levelAGENTS.md. Do not approve PRs as the bot.
Troubleshooting
- If
gh auth token --user creative-graphic-design-devfails or the stored credential is rejected, remove that account withgh auth logout --hostname github.com --user creative-graphic-design-dev, then rerunsetup-gh-cgd. This changes local authentication state and must be done interactively by the user. - If the identity check succeeds but repository permission is
false, grantcreative-graphic-design-devaccess to the target repository before retrying. Reauthentication is unnecessary when only repository membership changes.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/shunk031/skills/shunk031-github-cgd-identity">View shunk031-github-cgd-identity on skillZs</a>