Loading...
Loading...
Git workflow standards, commit conventions, hooks, and pull request practices. Use this when users need guidance on Conventional Commits, Git hooks with Lefthook, pull request templates, .gitignore configuration, or Git workflow best practices for team collaboration.
npx skill4agent add leovido/leo-skills git<type>[optional scope]: <description>
[optional body]
[optional footer(s)]featfixdocsstylerefactorperftestchorefeat(auth): add user login functionality
fix(api): resolve race condition in data fetching
docs: update README with setup instructions# Environment variables
.env
.env.local
.env.*.local
# Dependencies
node_modules/
.pnp
.pnp.js
# Build outputs
dist/
build/
.next/
out/
# Testing
coverage/
.nyc_output/
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
pnpm-debug.log*
# pnpm
.pnpm-store/
# Misc
.cache/
.temp/
.turbo/lefthook.ymlpre-commit:
parallel: true
commands:
lint:
run: pnpm run lint
stage_fixed: true
format:
run: pnpm run format:check
stage_fixed: true
test:
run: pnpm run test:ci
stage_fixed: true
pre-push:
parallel: true
commands:
test:
run: pnpm run test
typecheck:
run: pnpm run typechecktsc.github/pull_request_template.md## Overview
<!-- Brief description of what this PR accomplishes -->
## Solution
<!-- Detailed explanation of the approach and implementation -->
## Screenshots
<!-- Add screenshots or screen recordings if applicable -->
<!-- For web: browser screenshots -->
<!-- For mobile: iOS/Android screenshots -->
## Ticket
<!-- Link to JIRA ticket or other project management tool -->
<!-- Format: [PROJECT-123](link-to-ticket) -->
## Tested On
<!-- Check all that apply -->
- [ ] Web
- [ ] Mobile
- [ ] iOS
- [ ] Android
- [ ] Other: ___________
## Additional Notes
<!-- Any additional context, breaking changes, or follow-up items -->gh# Login to GitHub
gh auth login
# Check authentication status
gh auth status
# Refresh authentication token
gh auth refreshgh auth tokengh auth setup-git# Create a PR interactively
gh pr create
# Create a PR with title and body
gh pr create --title "feat: add user authentication" --body "Implements OAuth2 login flow"
# Create a PR from current branch to main
gh pr create --base main --head feature/auth --title "feat: add authentication"
# Create a draft PR
gh pr create --draft# List open PRs
gh pr list
# View PR details
gh pr view <number>
# View PR diff
gh pr diff <number>
# Checkout PR locally
gh pr checkout <number>
# Review PR status and checks
gh pr checks <number>
# Comment on PR
gh pr comment <number> --body "LGTM! Great work."
# Approve PR
gh pr review <number> --approve
# Merge PR
gh pr merge <number> --squash
gh pr merge <number> --merge
gh pr merge <number> --rebase# Create an issue
gh issue create --title "Bug: login fails" --body "Description of the bug"
# List issues
gh issue list
# View issue details
gh issue view <number>
# Comment on issue
gh issue comment <number> --body "This is fixed in PR #123"
# Close issue
gh issue close <number>
# Reopen issue
gh issue reopen <number># Clone a repository
gh repo clone owner/repo
# View repository details
gh repo view
# Create a new repository
gh repo create my-project --public --clone
# Fork a repository
gh repo fork owner/repo
# View repository settings
gh repo view --web# List branches
gh repo view --json defaultBranchRef
# Create branch from issue
gh issue develop <number> --branch feature/issue-123# Open current PR in browser
gh pr view --web
# Open current issue in browser
gh issue view --web
# Open repository in browser
gh repo view --web# Search code
gh search code "function authenticate"
# Search repositories
gh search repos "react typescript"
# Search issues
gh search issues "bug login"
# Search pull requests
gh search prs "is:open author:@me"# Make authenticated API calls
gh api repos/:owner/:repo/pulls
# Get specific data
gh api repos/:owner/:repo/pulls/123 --jq '.title, .body'
# POST requests
gh api repos/:owner/:repo/issues -X POST -f title="New Issue" -f body="Description"# 1. Create and checkout feature branch
git checkout -b feature/new-feature
# 2. Make changes and commit
git add .
git commit -m "feat: implement new feature"
# 3. Push branch
git push -u origin feature/new-feature
# 4. Create PR
gh pr create --title "feat: implement new feature" --body "Description" --draft
# 5. Wait for CI checks
gh pr checks --watch
# 6. After approval, merge
gh pr merge --squash --delete-branchgh auth status--draft--fillgh pr checks --watchCloses #123--json