How ztc1522021381/github-repo-publish works
github-repo-publish is an Agent Skill and small Python CLI for auditing and publishing a local Git repository to GitHub, including restricted-network fallback and server-side verification. The documented workflow is audit, check credentials and reachability, create a repository if needed, push through a selected transport, then verify remote state. The CLI implementation is partly sampled; capability nodes share its source path, while links not supported by the excerpts or README are omitted.
Main entry points: gh_repo.py Command-line tool · SKILL.md Publishing instructions · sandbox-git-pitfalls.md Network pitfalls
Components 14
Skill guidance
- Publishing instructions
SKILL.md - Network pitfalls
references/sandbox-git-pitfalls.md
Publishing CLI
- Command-line tool
scripts/gh_repo.py - Content audit
scripts/gh_repo.py - Credential and channel check
scripts/gh_repo.py - Repository creation
scripts/gh_repo.py - Push orchestration
scripts/gh_repo.py - Git push channel
scripts/gh_repo.py - Git Data API channel
scripts/gh_repo.py - Remote verification
scripts/gh_repo.py
External systems
- Local Git repository
- Git credential manager
- GitHub API and Git
Other components
- User or agent
Connections 24
- User or agent → Publishing instructions: reads guidance
- User or agent → Command-line tool: runs commands
- Publishing instructions → Network pitfalls: references
- Command-line tool → Content audit: dispatches
- Command-line tool → Credential and channel check: dispatches
- Command-line tool → Repository creation: dispatches
- Command-line tool → Push orchestration: dispatches
- Command-line tool → Remote verification: dispatches
- Credential and channel check → Git credential manager: gets token
- Credential and channel check → GitHub API and Git: probes API and hosts
- Repository creation → Git credential manager: gets token
- Repository creation → GitHub API and Git: creates repository
- Push orchestration → Local Git repository: reads HEAD and files
- Push orchestration → Git credential manager: gets token
- Push orchestration → GitHub API and Git: checks remote state
- Push orchestration → Git push channel: selects channel
- Push orchestration → Git Data API channel: selects or falls back
- Git push channel → Local Git repository: pushes HEAD
- Git push channel → GitHub API and Git: sends Git push
- Git Data API channel → Local Git repository: reads Git objects
- Git Data API channel → GitHub API and Git: uploads objects and updates ref
- Remote verification → Local Git repository: reads HEAD and tree
- Remote verification → Git credential manager: gets token
- Remote verification → GitHub API and Git: reads ref and tree