Apify Fix Git Connection skill for Claude
Repair an Apify Actor's broken Git connection - pushes to GitHub that no longer start a build, builds that fail to clone the repository, or a GitHub integration rejected as invalid or expired (for example after Apify API tokens were revoked).
When Claude uses it
Use when a Git-sourced Actor stopped deploying from its repository.
Apify Fix Git Connection SKILL.md
A preview of the skill file from apify/agent-skills.
Fix an Actor's Git connection
A Git-sourced Actor deploys through two links, and each one breaks on its own:
- Clone: Apify reads the repository when it builds.
- Trigger: a push to the repository starts that build.
Diagnose both links, repair the broken ones, then prove the chain with one push. Runs keep using the last successful build the whole time, so the Actor stays up while you work.
The steps use the Apify CLI (apify login first) and the GitHub CLI (gh). They are written for GitHub; GitLab and Bitbucket have the same two links behind different commands and screens.
Two rules hold in every step:
- Ask before a deploy. A successful build moves the version's build tag (usually
latest) to the head of the branch, so starting a build and pushing a commit are both deploys. Get the user's go-ahead for each. - Tokens stay with the user. A webhook URL embeds an Apify API token. Print only its host, as the commands below do, and judge a delivery by its status code: its response body repeats the URL. The user performs every step that handles a key, a token or that URL.
1. Find the Git version
apify api GET '/v2/actors/<username>~<actor-name>'
apify api GET '/v2/actors/<username>~<actor-name>/builds?desc=true&limit=5'
In versions, take the entry with sourceType: "GIT_REPO" and note its versionNumber, gitRepoUrl and buildTag. In taggedBuilds, note the build that tag points at. An Actor with no GIT_REPO version deploys with apify push and is outside this skill.
How to install Apify Fix Git Connection
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit apify/agent-skills/skills/apify-fix-git-connection#main ~/.claude/skills/apify-fix-git-connectionCodex
npx degit apify/agent-skills/skills/apify-fix-git-connection#main ~/.codex/skills/apify-fix-git-connectionClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What does the Apify Fix Git Connection skill do?
Repair an Apify Actor's broken Git connection - pushes to GitHub that no longer start a build, builds that fail to clone the repository, or a GitHub integration rejected as invalid or expired (for example after Apify API tokens were revoked). Use when a Git-sourced Actor stopped deploying from its repository.
+How do I install Apify Fix Git Connection in Claude Code?
Copy the skill folder into ~/.claude/skills/apify-fix-git-connection, for example with "npx degit apify/agent-skills/skills/apify-fix-git-connection#main ~/.claude/skills/apify-fix-git-connection". Claude Code loads it automatically and uses it when a task matches.
+Does Apify Fix Git Connection work with ChatGPT or Codex?
Yes. Apify Fix Git Connection uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/apify-fix-git-connection. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is Apify Fix Git Connection free?
Apify Fix Git Connection is published on GitHub by apify. The repository does not declare a license, so check with the author before reusing it.