Answer: To use the gh-stack skill with an agent, you'll first need to install GitHub CLI and the gh-stack CLI extension. You'll need GitHub CLI (gh) 2.90.0 or later, Git 2.20 or later, authentication with gh auth login, a GitHub repository you can push to, and GitHub Copilot CLI installed and signed in. Status: Confirmed Entry: tool/github-copilot/agents-and-automation/stacking-prerequisites Revision: 2 Digest: sha256:61ec21759b1b6073 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:35:26Z Last changed: 2026-11-16T13:03:01Z (Skill install command: — → gh skill install github/gh-stack) Last verified: 2026-11-20T13:18:19Z Next check: 2026-11-21T13:18:19Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of GitHub CLI version | 2.90.0 or later | [1] | 2026-11-20 Git version | 2.20 or later | [1] | 2026-11-20 Authentication | gh auth login | [1] | 2026-11-20 Repository requirement | A GitHub repository you can push to | [1] | 2026-11-20 Copilot CLI requirement | GitHub Copilot CLI installed and signed in | [1] | 2026-11-20 Extension install command | gh extension install github/gh-stack | [1] | 2026-11-20 Skill install command | gh skill install github/gh-stack | [1] | 2026-11-20 Sources: [1] GitHub. "Stack AI-generated code in pull requests - GitHub Docs". https://docs.github.com/en/copilot/tutorials/stack-ai-generated-code-in-pull-requests Role: primary. Accessed: 2026-11-20T13:18:19Z Quote: "GitHub CLI ( gh ) 2.90.0 or later" (Supports: GitHub CLI version) Quote: "Git 2.20 or later" (Supports: Git version) Quote: "Authenticate GitHub CLI with gh auth login ." (Supports: Authentication) Quote: "A GitHub repository you can push to." (Supports: Repository requirement) Quote: "GitHub Copilot CLI installed and signed in." (Supports: Copilot CLI requirement) Quote: "gh extension install github/gh-stack" (Supports: Extension install command) Quote: "gh skill install github/gh-stack" (Supports: Skill install command) Snapshot SHA-256: ccb37acb057e11e940a407b02ec09ccf0452175beba54ea1af32dbf7b7a83ba8 (captured 2026-11-18T13:15:11Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:15:11Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:18:19Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:18:19Z Last attempt: 2026-11-20T13:18:19Z Notes and limitations: Extracted automatically from a single official source (section "Prerequisites"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/start-cloud-agent-mcp-session How do I start a session with the GitHub Copilot cloud agent using the GitHub MCP Server? https://latestn.com/tool/github-copilot/agents-and-automation/start-cloud-agent-session How do I start a GitHub Copilot cloud agent session from an issue or pull request? https://latestn.com/tool/github-copilot/agents-and-automation/start-cloud-agent-session-cli How do I start a GitHub Copilot cloud agent session from the GitHub CLI? https://latestn.com/tool/github-copilot/agents-and-automation/session-start-add-project-context How do I add project context when a GitHub Copilot SDK session starts? https://latestn.com/tool/github-copilot/agents-and-automation/set-repository-automation-level How do I set my repository's automation level for GitHub Copilot issue suggestions? https://latestn.com/tool/github-copilot/agents-and-automation/set-up-recurring-work How do I set up recurring work in the GitHub Copilot app? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-16T13:03:01Z | changed | Skill install command: — → gh skill install github/gh-stack | [1] 2026-11-16T13:03:01Z | changed | Extension install command: — → gh extension install github/gh-stack | [1] 2026-11-16T13:03:01Z | changed | Install gh-stack skill: gh skill install github/gh-stack → — | [1] 2026-11-16T13:03:01Z | changed | Install gh-stack extension: gh extension install github/gh-stack → — | [1] 2026-11-16T13:03:01Z | changed | Git version: 2.20 → 2.20 or later | [1] 2026-11-16T13:03:01Z | changed | GitHub CLI version: 2.90.0 → 2.90.0 or later | [1] 2026-11-13T03:35:26Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/stacking-prerequisites/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/stacking-prerequisites POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/stacking-prerequisites with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/stacking-prerequisites?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What are the prerequisites for stacking AI-generated code in pull requests with GitHub Copilot? Revision 2, last verified 2026-11-20T13:18:19Z. https://latestn.com/tool/github-copilot/agents-and-automation/stacking-prerequisites (accessed 2026-11-21T09:59:20Z). @misc{LatestN_tool_github_copilot_agents_and_automation_stacking_prerequisites_r2, title = {What are the prerequisites for stacking AI-generated code in pull requests with GitHub Copilot?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/stacking-prerequisites}}, note = {Revision 2; digest sha256:61ec21759b1b6073; last verified 2026-11-20T13:18:19Z; accessed 2026-11-21T09:59:20Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/agents-and-automation/stacking-prerequisites