mrskiro/dotfiles/setting-up-repo
Claude Code and agent skill by mrskiro/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
"setup the repo" "configure repo settings" "リポジトリの設定" "squash mergeにして" "branch protection" — Apply standard GitHub repository settings via gh API. Use when creating a new repository, after "gh repo create", when reviewing repository configuration, or when the user mentions branch protection, SHA pinning, or wants to align a repo with their standard settings.
Install
npx vskill@latest install mrskiro/dotfiles/setting-up-repoSKILL.md
The same SKILL.md was published earlier as mrskiro/dotfiles/setting-up-repo.
Apply a consistent set of GitHub repository settings via gh api. The values below are the owner's standard, derived from their existing repositories.
Workflow
1. Identify the target repository
- If an argument is provided, use it as the repo (e.g.,
owner/repo) - Otherwise, detect from the current git remote:
git remote get-url origin - Confirm the repo with the user before making changes
2. Fetch current settings
Run and display the current state so the user can see what will change:
Also fetch Actions permissions:
3. Apply repository settings
4. Enable SHA pinning for Actions
This forces all GitHub Actions to use full-length commit SHA references instead of tags.
5. Branch protection (public repos only)
Check if the repo is public. If public, apply branch protection to the default branch:
If private, branch protection API requires GitHub Pro. Instead:
- Create a Claude Code hook to block direct pushes to main. Write
.claude/hooks/block-main-push.sh:
Register it in .claude/settings.json:
- Guide the user to optionally create a ruleset in GitHub UI:
https://github.com/{owner}/{repo}/settings/rules
6. Report
Show a before/after summary of what changed. Only report settings that actually changed — skip ones that were already correct.
Format:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdot_claude/skills/mrskiro/skills/setting-up-repo/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mrskiro/dotfiles/setting-up-repo)