upgrade-claude-adapter
Skill by PostHog
Syncs PostHog's fork of the Claude agent ACP adapter with a newer upstream release. It bumps SDK versions, ports upstream fixes while keeping the fork's divergences, and updates UPSTREAM.md. Written for maintainers of this fork.
Install upgrade-claude-adapter
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/packages/agent/packages/agent/src/adapters/claude ~/.claude/skills/upgrade-claude-adapterRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/packages/agent/packages/agent/src/adapters/claude ~/.gemini/antigravity-cli/skills/upgrade-claude-adapterAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install upgrade-claude-adapter in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a runbook for syncing PostHog's fork of @anthropic-ai/claude-agent-acp, located in packages/agent/src/adapters/claude, with a newer upstream release. It walks the assistant through triaging upstream commits, bumping the claude-agent-sdk and @agentclientprotocol/sdk versions, mapping upstream code to the fork's split file layout, and fixing typecheck errors.
The runbook asks the assistant to port upstream bug fixes and new SDK message handling while preserving the fork's intentional divergences. It ends with verification commands run through pnpm and an update to UPSTREAM.md. It is written for maintainers of this fork and does not apply to other projects.
Written from the project's SKILL.md and checked against it.
What it can do
- Triage upstream commitsSorts each upstream commit since the last sync into port, dependency bump, or skip.
- Bump SDK dependenciesSets the claude-agent-sdk, @agentclientprotocol/sdk and @anthropic-ai/sdk versions to match upstream.
- Find breaking changesUses pnpm typecheck errors to list ACP and SDK breaking changes.
- Port changes in phasesPorts bug fixes first, then features, while preserving listed divergences.
- Verify the syncRuns typecheck, build, biome, and test commands across the agent package and the whole repo.
- Update UPSTREAM.mdRecords the new sync version, ported changes, and skipped changes with reasons.
What you need
- Local git clone of github.com/agentclientprotocol/claude-agent-acp
- Checkout of this repo with the packages/agent workspace
- pnpm for install, build, typecheck and test commands
Try asking
- Upgrade the claude adapter to the latest upstream release
- Bump the agent SDK and port upstream claude-agent-acp bug fixes
- Sync the claude adapter with upstream and update UPSTREAM.md
Good to know
- Written for this specific fork, not a general tool.
- Does not commit or push unless the user asks.
- Some apps/code renderer tests are described as flaky.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/agent/packages/agent/src/adapters/claude/SKILL.md, packages/agent/packages/agent/src/adapters/claude/claude-agent.clear.test.ts, packages/agent/packages/agent/src/adapters/claude/claude-agent.finish.test.ts, packages/agent/packages/agent/src/adapters/claude/claude-agent.permission-mode.test.ts, packages/agent/packages/agent/src/adapters/claude/claude-agent.refresh.test.ts, packages/agent/packages/agent/src/adapters/claude/claude-agent.resume-model.test.ts, packages/agent/packages/agent/src/adapters/claude/claude-agent.side-question.test.ts, packages/agent/packages/agent/src/adapters/claude/claude-agent.slash-command.test.ts, packages/agent/packages/agent/src/adapters/claude/claude-agent.streamed-text.test.ts. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
UPSTREAM.md32 KB -
claude-agent.clear.test.ts28 KB -
claude-agent.finish.test.ts4 KB -
claude-agent.permission-mode.test.ts6 KB
Show all 75 files
-
claude-agent.refresh.test.ts32 KB -
claude-agent.resume-model.test.ts35 KB -
claude-agent.side-question.test.ts12 KB -
claude-agent.slash-command.test.ts9 KB -
claude-agent.streamed-text.test.ts24 KB -
claude-agent.task-notification.test.ts24 KB -
claude-agent.ts153 KB -
claude-agent.turn-queue.test.ts15 KB -
context-breakdown.test.ts4 KB -
context-breakdown.ts3 KB -
conversion/acp-to-sdk.test.ts7 KB -
conversion/acp-to-sdk.ts6 KB -
conversion/sdk-to-acp.test.ts22 KB -
conversion/sdk-to-acp.ts42 KB -
conversion/task-state.test.ts9 KB -
conversion/task-state.ts5 KB -
conversion/tool-use-to-acp.test.ts2 KB -
conversion/tool-use-to-acp.ts24 KB -
hooks.test.ts22 KB -
hooks.ts15 KB -
image-sanitization.ts2 KB -
machine-auth.ts3 KB -
mcp/local-tools.test.ts4 KB -
mcp/local-tools.ts1 KB -
mcp/tool-metadata.test.ts4 KB
And 45 more files on GitHub.
Alternatives to upgrade-claude-adapter
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
upgrade-claude-adapter: common questions
Does this sync make the fork identical to upstream?
No. The runbook says the goal is to port valuable upstream changes while preserving every intentional divergence.
Will the assistant commit the changes automatically?
No. The source says not to commit or push unless the user explicitly asks, and to leave work on the current branch.
How is this skill invoked?
The source says it is a runbook, not a slash command, so you tell Claude to follow the upgrade skill in the claude adapter directory.
How do I install upgrade-claude-adapter?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is upgrade-claude-adapter free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is upgrade-claude-adapter safe to use?
It scores 87 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to upgrade-claude-adapter?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
