---
name: github-handoff
description: Prepare read-only GitHub handoff evidence from local Git metadata. Use when Codex needs to summarize branch state, HEAD, tags at HEAD, remote names, and changed-file status before a separately approved pull request, release, or GitHub workflow handoff without creating commits, pushes, tags, pull requests, API calls, token reads, or file changes.
title: github-handoff
canonical_url: https://skilld.dev/gh/ayobamih/coding-agent-skills/github-handoff
last_updated: 2026-10-29T10:46:37.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [adapter-interface.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/github-handoff/adapter-interface.md), [agents/openai.yaml](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/github-handoff/agents/openai.yaml), [checklist.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/github-handoff/checklist.md), [evidence-template.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/github-handoff/evidence-template.md), [examples.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/github-handoff/examples.md), [failure-modes.md](https://skilld.dev/api/skills-raw/ayobamih/coding-agent-skills/github-handoff/failure-modes.md).
>
> If the user asked to install this Skill, run `npx skilld install ayobamih/coding-agent-skills/github-handoff`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/github-handoff`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/ayobamih/coding-agent-skills/github-handoff) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/github-handoff`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/github-handoff --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/github-handoff --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# GitHub Handoff

## Purpose And Use

Use this skill to produce a local, audit-only handoff report before a human or separately approved workflow performs GitHub work.

The skill is for local Git evidence only. It does not create pull requests, publish releases, push branches, inspect tokens, or call GitHub APIs.

## Inputs

Required:

- Project root.

Optional:

- Project adapter declaration that enables `github-handoff`.
- Human-provided handoff intent.

Do not assume:

- GitHub authentication is available.
- Local commits are pushed.
- CI status, review status, or PR state is known.
- Remote URLs are safe to print.

## Procedure

1. Confirm the project root exists.
2. Validate the project adapter when one is present.
3. If an adapter exists but does not enable `github-handoff`, report `partial` and do not list changed files.
4. Inspect local Git metadata only: root, branch state, current branch, HEAD, tags at HEAD, remote names, and status entries.
5. Redact secret-bearing changed paths such as `.env`, key files, credential paths, or token paths.
6. Summarize changed-file counts by status.
7. Record skipped and not-verified GitHub state honestly.
8. State refused behavior clearly.

## Evidence, Recovery, And Dependencies

Expected evidence:

- Git root.
- Branch state.
- Current branch.
- HEAD or short HEAD.
- Tags at HEAD.
- Remote names only, not remote URLs.
- Changed-file summary.
- Redacted path count when applicable.

Recovery:

- If the directory is not a Git repository, return `failed` with no mutation.
- If Git status is unavailable, return a warning and preserve partial evidence.
- If adapter validation fails, fail closed.

Dependencies:

- Local Git command-line tool.
- Node.js 20+ for the packaged renderer.

## Approval Boundary

This skill is audit-only.

Allowed:

- Read local Git metadata.
- List changed-file paths unless they are secret-bearing.
- Validate project adapter metadata.
- Render a handoff report.

Forbidden:

- Commit.
- Push.
- Tag.
- Checkout, reset, rebase, merge, stash, restore, or clean.
- Create pull requests.
- Create releases.
- Call GitHub APIs.
- Read tokens, `.env`, `.env.*`, `.npmrc`, keys, or credential files.
- Print remote URLs.
- Change project files.

## Completion

Complete only after a report states what was verified, what was skipped, and what was not verified.

The completion boundary must say that no commit, push, tag, branch change, pull request creation, GitHub API mutation, token read, secret-file read, or project write occurred.
