{"slug": "llm-handoff-install-a-custom-github-profile-header-with-github-cli-setup", "title": "LLM handoff: install a custom GitHub profile header with GitHub CLI setup", "summary": "A developer published a GitHub CLI-based handoff procedure that lets an LLM install a custom header image on a user's GitHub profile README. The gist instructs the receiving model to check for and install gh and Git, run gh auth status, drive an interactive gh auth login without asking for passwords or tokens, then create or update the USERNAME/USERNAME profile repository, generate the header image from a supplied .mjs script or design, and commit and push it while preserving existing profile content.", "body_md": "**Let your LLM do the magic:** Share this gist link with a friend, or give it directly to your LLM: [https://gist.github.com/dschinkel/16ce250f477c24b1d5dee1b9ce85ea13](https://gist.github.com/dschinkel/16ce250f477c24b1d5dee1b9ce85ea13). Include your header script or design, and your LLM will handle the setup and publishing, guiding you through GitHub sign-in only if needed. No extra prompt to copy.\n\nInstructions for the LLM receiving this handoff: carry out the setup below. The user does not need to copy another prompt or perform the repository setup themselves.\n\nAdd a personalized header image at the top of the user's GitHub profile README, like the header on [Dave Schinkel's profile](https://github.com/dschinkel).\n\nThe user must supply **either a header-generation `.mjs` script or a header design**. Either works; both are not required. A design can be a link, an exported image, or source code, including [this Claude artifact](https://claude.ai/artifact/QTsTkxABFTkpFWBcpBy6P5).\n\nUse input already supplied in the conversation. If it is missing or inaccessible, ask the user to provide it. Get the name/text they want on the header and any requested style changes.\n\n**Use GitHub CLI (`gh`) for this task.** Handle the setup and repository work yourself:\n\n1. Check whether `gh` and Git are installed. If needed, install them using the environment's supported package manager and required permissions.\n2. Run `gh auth status` . If the correct account is already authenticated, continue without asking the user to sign in again.\n3. If authentication is needed, explain that GitHub access is required to update their profile, then start `gh auth login` interactively. Prompt the user to complete the browser sign-in and authorization steps, passing along the login URL and one-time device code if shown. Handle the CLI prompts and resume after they finish. Never ask them to paste a password or access token into chat.\n4. Verify authentication and identify the account with `gh api user` . Confirm the intended GitHub username if it differs from the authenticated account or is unclear.\n\n- Inspect the user's profile repository, `USERNAME/USERNAME` , and any repository instructions. Create it as a public repository if it does not exist.\n- Use the supplied script or design to create a GitHub-compatible header image personalized for the user. Inspect supplied code before running it. If they provide a script, keep it in the repository so they can customize the header later.\n- Save the image in the profile repository and add it at the top of `README.md` , replacing an existing header if present. Preserve all other profile content.\n- Check the image layout and README reference, commit and push the header changes, and verify the published image is accessible on GitHub.\n- Give the user their profile link and a brief explanation of where to edit the header image or script later. Report any incomplete work clearly.\n\nThe requested scope is the header image and its supporting script or assets. Do not add contribution calendars, extra profile sections, or scheduled workflows.", "url": "https://wpnews.pro/news/llm-handoff-install-a-custom-github-profile-header-with-github-cli-setup", "canonical_source": "https://gist.github.com/dschinkel/16ce250f477c24b1d5dee1b9ce85ea13", "published_at": "2026-10-07 05:32:41+00:00", "updated_at": "2026-10-07 06:48:52.944897+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools"], "entities": ["GitHub", "GitHub CLI", "Dave Schinkel", "Claude"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/llm-handoff-install-a-custom-github-profile-header-with-github-cli-setup", "markdown": "https://wpnews.pro/news/llm-handoff-install-a-custom-github-profile-header-with-github-cli-setup.md", "text": "https://wpnews.pro/news/llm-handoff-install-a-custom-github-profile-header-with-github-cli-setup.txt", "jsonld": "https://wpnews.pro/news/llm-handoff-install-a-custom-github-profile-header-with-github-cli-setup.jsonld"}}