Add ambulnz-github-app-auth skill#6
Closed
vigo-agent[bot] wants to merge 2 commits into
Closed
Conversation
Adds a skill plus bundled wrapper script for authenticating to AmbulnzLLC GitHub repos as the Vigo (Agent) GitHub App. - skills/github/ambulnz-github-app-auth/SKILL.md Slim trigger doc (~5k chars). When/why, usage examples, App scopes, pitfalls, verification checklist. Body points at the bundled script rather than re-encoding the minting procedure. - skills/github/ambulnz-github-app-auth/scripts/get-token.sh Wrapper that fetches the App private key from AWS Secrets Manager, signs a JWT, exchanges it for a ~1h installation token, and caches at ~/.cache/ambulnz-gh-token.json (mode 0600) with auto-refresh near expiry. Stdout = token; diagnostics on stderr; safe to call on every operation. Defends against literal-\\n vs real-newline secrets. Effect: agents needing AmbulnzLLC repo access run the script and get a live ghs_... token — no need to load the full skill into context.
🔎 Lint report:
|
SKILL.md goes from ~4.8k to ~2.8k by relocating pitfalls, configuration, and the verification checklist into references/troubleshooting.md. The slim SKILL.md keeps only the always-resident bits: - Trigger and don't-use cases - The one command + 3 usage examples - App scope table (so 403s are recognized as permission gaps) - The literal x-access-token git username gotcha (1 line, prevents 100% of git clone 401s) - Symptom-indexed pointer to references/troubleshooting.md troubleshooting.md is symptom-indexed: HTTP 401, 403, 404, InvalidKeyError, AccessDeniedException, hangs, missing cache. Each section explains what the symptom means and how to fix it. Only loaded when the agent hits a problem — most successful runs never read it.
Author
|
Superseded by AmbulnzLLC/hermes-shared-skills#7 (https://github.com/AmbulnzLLC/hermes-shared-skills/pull/7). This skill belongs in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
ambulnz-github-app-authskill so agents can authenticate as the Vigo (Agent) GitHub App for any work againstgithub.com/AmbulnzLLC/...repos.What's in it
SKILL.md(~5k chars) — slim trigger doc. When to use, usage examples, App scopes table, common pitfalls, verification checklist. Intentionally short: the body points at the bundled script rather than re-encoding the JWT/minting procedure inline.scripts/get-token.sh— wrapper that fetches the App private key from AWS Secrets Manager, signs a 10-min JWT, exchanges it for a ~1h installation token, printsghs_...to stdout, and caches at~/.cache/ambulnz-gh-token.json(mode 0600) with auto-refresh when within 5 min of expiry. Diagnostics on stderr; safe to call on every operation.Why a script, not just docs
Future agents needing AmbulnzLLC access just need to run something. The script encodes all the gotchas (secret-as-JSON-not-PEM, literal
\nvs real newline normalization, JWT clock skew,x-access-tokenusername) as code instead of prose, so they don't have to load the full SKILL.md to do the right thing.Verified
scripts/get-token.shmints a live token andcurl https://api.github.com/repos/AmbulnzLLC/datalake-jobsreturns 200reusing cached token (expires in ...s)on stderr)tools/skill_manager_tool.py::_validate_frontmatter