git-this
Bootstrap a private GitHub repo for the current folder and wire the origin remote.
Skill by bravros
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/bravros-git-this
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/git-this
What's inside
- Skill name
git-this- Description
- Bootstrap a private GitHub repo for the current folder and wire the origin remote. Invoke via /git-this.
- License
- MIT
- Instructions
- 27 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- briefing.md · references/
- skill.yaml
SKILL.md (first lines)
# /git-this — bootstrap a private GitHub repo from the current folder
Read [briefing.md](references/briefing.md) on demand for detailed context and instructions.
Creates `<owner>/<folder>` (private), wires `origin`, scaffolds `CLAUDE.md` declaring the
direct-main policy for personal/scratch repos. Owner: `gh api user -q .login`.
## Hard constraints
1. **Refuse if `origin` already exists** or `gh auth status` fails — never clobber a wired repo.
2. **Never overwrite** an existing `CLAUDE.md`. Create only if missing.
3. Commit via `bravros commit "✨ feat: initial commit"` — never raw `git commit`; no AI signatures.
4. **Use the Write tool, not bash heredocs**, for templates — keeps generated files out of bash quoting.
5. Each Bash call is a fresh shell — variables do NOT persist between steps; substitute literal values from earlier output.
6. `git rev-parse` fails when the folder isn't a repo yet — that is the normal case; fall back to `basename "$PWD"`.
7. **Direct-to-main unless `WANT_HOMOLOG`.** After `git init -b main`, run `bravros police direct-main on` (writes `.bravros/config.json` with `police.direct_main: true`) and include that file in the initial commit — skipped otherwise, the police hook blocks the first `git push -u origin main` (observed 2026-09-10 on a freshly scaffolded personal site repo). With `WANT_HOMOLOG` the file carries `{"staging_branch": "homolog"}` instead and the first push to `main` is the one and only direct push.
## Flow
1. **Preflight**: `gh auth status`; owner; sanitize folder name to repo slug; check `gh repo view "$OWNER/$NAME"` collision.
2. **One ask**: "Set up a `homolog` staging branch from day one?" (default **No** — most personal repos are main-only). Record `WANT_HOMOLOG`.
3. **Collision**: announce, propose 3 free alternatives, ask user via user prompt, loop max 3.
4. **Create + wire**: `gh repo create "$OWNER/$NAME" --private`; `git init -b main`; `git remote add origin git@github.com:$OWNER/$NAME.git`. Then, per constraint 7: no `WANT_HOMOLOG` → `bravros police direct-main on`; `WANT_HOMOLOG` → write `.bravros/config.json` with `{"staging_branch": "homolog"}` instead. Do NOT create `homolog` yet — there is no commit for it to point at, and `git push -u origin homolog` fails with `src refspec homolog does not match any`.
5. **Scaffold**: empty folder → `README.md` (`# {NAME}`) + `CLAUDE.md`; non-empty → `CLAUDE.md` only if missing. The CLAUDE.md branch-policy paragraph switches on `WANT_HOMOLOG` (direct-main text vs `feature/* → homolog → main`). `.bravros/config.json` from step 4 is always included.
6. **Commit + push**: `bravros commit` (stage `.bravros/config.json` alongside the scaffolded files), `git push -u origin main`. Then, only with `WANT_HOMOLOG`: `git branch homolog main && git push -u origin homolog` — stay on `main`. Print repo URL summary.From bravros/bravros, MIT.
More from bravros/bravros
- 0.609score
laravel-pest5-upgrade
bravros
Upgrade a PHP/Laravel repo from Pest 4 to Pest 5 and turn on Test Impact Analysis (TIA) so local full runs only re-execute the tests a change can reach.
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
after-merge
bravros
Generate an after-merge.md operational deploy checklist for homolog-to-main aggregate releases.
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
context
bravros
Scan project and generate/audit CLAUDE.md files with stack auto-detection and Context7 docs.
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
doctor-plus
bravros
Runs Claude Code's built-in /doctor health check, then audits the workspace against Anthropic's 6 then-and-now context-engineering shifts (rules→judgement…
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
interview-me
bravros
Stress-test a plan or design via a round-by-round interview — ask the whole frontier of independent questions each round until every branch of the decision…
SkillAFreshness: A★ 3Claude Code +9 - 0.606score
graphify-this-project
bravros
Set up a graphify knowledge graph for the current project — in-project committed graph.json, AST extraction + external labelling, tracked refresh hooks…
SkillAFreshness: A★ 3Claude Code +9 - 0.606score
finish
bravros
Complete a feature — merge the approved PR, record plan completion, route the homolog→main decision.
SkillAFreshness: A★ 3Claude Code +9 - 0.606score
laravel-pest-rector
bravros
Adopt Pest's Rector plugin on a Pest 5 project and refactor tests into Pest matchers — scoped to tests/, dry-run gated.
SkillAFreshness: A★ 3Claude Code +9 - 0.606score
advise-project-approach
bravros
Research and advise how a software project should be built — stack selection, architecture, operating-cost tradeoffs, and real-world comparables.
SkillAFreshness: A★ 3Claude Code +9 - 0.606score
graphify-status
bravros
Report knowledge-graph label coverage across every graphify-enabled project on this machine — communities, labels, and how many nodes still render as…
SkillAFreshness: A★ 3Claude Code +9 - 0.606score
backlog
bravros
Capture, list, and promote pre-planning ideas.
SkillAFreshness: A★ 3Claude Code +9 - 0.606score
batch-merge-prs
bravros
Verify N PRs, address review feedback, ordered-merge to the staging branch (never main), close linked issues/backlog per merge, then hand off the full test…
SkillAFreshness: A★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 11, 2026 (1 month ago)
- Last release
- Oct 1, 2026 (28 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/bravros/bravros
- Website
- bravros.dev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from bravros
- 0.609score
interview-me
bravros
Stress-test a plan or design via a round-by-round interview — ask the whole frontier of independent questions each round until every branch of the decision…
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
laravel-pest5-upgrade
bravros
Upgrade a PHP/Laravel repo from Pest 4 to Pest 5 and turn on Test Impact Analysis (TIA) so local full runs only re-execute the tests a change can reach.
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
context
bravros
Scan project and generate/audit CLAUDE.md files with stack auto-detection and Context7 docs.
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
doctor-plus
bravros
Runs Claude Code's built-in /doctor health check, then audits the workspace against Anthropic's 6 then-and-now context-engineering shifts (rules→judgement…
SkillAFreshness: A★ 3Claude Code +9 - 0.609score
after-merge
bravros
Generate an after-merge.md operational deploy checklist for homolog-to-main aggregate releases.
SkillAFreshness: A★ 3Claude Code +9 - 0.606score
backlog
bravros
Capture, list, and promote pre-planning ideas.
SkillAFreshness: A★ 3Claude Code +9
Cite this page
git-this skill. Agent Mart. https://agentmart.dev/skills/bravros-git-this (last updated 2026-10-24)