Skip to content

docs(adr/0031): cross-ref git:push skill for push-failure diagnosis#8

Open
technicalpickles wants to merge 2 commits intomainfrom
adr-0031-see-also-git-push-skill
Open

docs(adr/0031): cross-ref git:push skill for push-failure diagnosis#8
technicalpickles wants to merge 2 commits intomainfrom
adr-0031-see-also-git-push-skill

Conversation

@technicalpickles
Copy link
Copy Markdown
Owner

Summary

Adds a short `See also` section to ADR 0031 (role-scoped agent git identity) that points at the `git:push` skill in pickled-claude-plugins. Specifically calls out the `GIT_SSH_COMMAND="ssh -v"` trap: it replaces `core.sshCommand` entirely, dropping the agent-key flags configured by this ADR and making the wrong keys appear to be offered.

Why

Real session (07e498f8 on 2026-05-07) misread a failed push as an SSH issue when in fact pre-push lefthook tests had failed, then debugged with `GIT_SSH_COMMAND="ssh -v"` and dropped the `-i ~/.ssh/agents/work/id_ed25519 -o IdentitiesOnly=yes` flags this ADR sets up. Pure debug artifact, but compounded the misdiagnosis. Cross-ref makes the agent-side guidance discoverable from the SSH-setup documentation.

The deeper guidance lives in the `git:push` skill (PR technicalpickles/pickled-claude-plugins#72) so it's loaded into agent context via Claude Code, not as ADR prose.

Test plan

  • Markdown renders correctly on GitHub
  • Link to pickled-claude-plugins works

🤖 Generated with Claude Code

technicalpickles and others added 2 commits May 8, 2026 09:41
When a push under the agent identity fails with mixed lefthook + SSH
output, agents have misread it as an SSH transport issue and then
debugged with GIT_SSH_COMMAND="ssh -v", which silently drops the -i
and IdentitiesOnly flags configured here. Cross-ref the new git:push
skill in pickled-claude-plugins for the diagnosis recipe.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant