Agent skill
github-publish-readiness-check
Audit a local repository before creating a new public GitHub remote
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/github-publish-readiness-check
SKILL.md
Context
Use this when someone asks whether a local codebase is ready to become a new public GitHub repository, especially when the repo may have local-only IDE state, build outputs, or an incomplete tracked history.
Patterns
1. Separate transport readiness from content readiness
- Check
git remote -v, branch, and working-tree state first. - Check
ghavailability/auth separately. - Check target repo-name availability on GitHub before any create/push step.
Passing auth is not enough; a dirty or incomplete working tree is still a publish blocker.
2. Trust git status only after ignore hygiene
Before judging what is really ready to publish, make sure common local-only state is ignored:
.vs/.copilot/bin/obj/TestResults/*.user,*.suo,*.slnLaunch.user
This removes noise from WPF/.NET/VS workflows so the remaining untracked set reflects intended repo content.
3. Check for public-repo blockers explicitly
- Existing remote already bound to another destination
- No
ghCLI or not authenticated - Target repo name already exists under the owner
- Large build artifacts that should not be committed
- Secret-like strings in the working tree
- Core app source still untracked
4. Stop when provenance is ambiguous
If most real source files are still untracked after ignore cleanup, do not create the public repo yet. That means the local repo history does not yet represent the product honestly.
Checklist
git rev-parse --show-toplevel- Read team/project context if applicable
git status --short --branchgit remote -v- Confirm
ghexists andgh auth statussucceeds - Check whether the likely repo name already exists on GitHub
- Tighten
.gitignorefor local-only files if needed - Re-check
git status - Scan for obvious secrets / oversized artifacts
- Report blockers in human terms; do not publish until source content is intentionally committed
Anti-Patterns
- Creating the remote just because
ghis authenticated - Trusting a noisy
git statusthat still includes build outputs and IDE caches - Publishing a docs-only tracked history while the real app is untracked locally
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?