CLI tools guide for git, gh, npm, and other development tools. Best practices for command-line operations in development workflows. Triggers: CLI, command line, git, gh, npm, yarn, pnpm, terminal, コマンドライン, ターミナル, GitHub CLI, package manager, パッケージマネージャ, Conventional Commits, HEREDOC, シェル.
This skill is limited to using the following tools:
tools/coderabbit.mdtools/gh-github-cli.mdtools/git-essentials.mdtools/npm-scripts.mdBest practices for CLI tool usage in development workflows.
Provide guidance on effective CLI tool usage for:
| Category | Tools | Reference |
|---|---|---|
| Version Control | git | @./tools/git-essentials.md |
| GitHub | gh | @./tools/gh-github-cli.md |
| Package Management | npm, yarn, pnpm | @./tools/npm-scripts.md |
| Code Review | coderabbit | @./tools/coderabbit.md |
| Action | Command |
|---|---|
| Status | git status --short |
| Diff | git diff --staged |
| Branch | git branch --show-current |
| Log | git log --oneline -10 |
| Commit (HEREDOC) | See below |
HEREDOC Commit (avoids shell escaping issues):
git commit -m "$(cat <<'EOF'
feat(auth): add OAuth authentication
- Add Google OAuth provider
- Add session management
EOF
)"
| Action | Command |
|---|---|
| Create PR | gh pr create --title "..." --body "..." |
| Create Issue | gh issue create --title "..." --body "..." |
| View PR | gh pr view [number] |
| PR Status | gh pr status |
| Check Runs | gh pr checks |
| Action | npm | yarn | pnpm |
|---|---|---|---|
| Install | npm install | yarn | pnpm install |
| Run script | npm run <script> | yarn <script> | pnpm <script> |
| Add dep | npm install <pkg> | yarn add <pkg> | pnpm add <pkg> |
| Dev dep | npm install -D <pkg> | yarn add -D <pkg> | pnpm add -D <pkg> |
One logical change per commit:
# ❌ Bad: Multiple unrelated changes
git commit -m "fix bug and add feature and update docs"
# ✅ Good: One change at a time
git commit -m "fix(auth): resolve token refresh issue"
git commit -m "feat(user): add profile settings page"
Format: type(scope): description
| Type | Purpose |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation |
refactor | Code restructuring |
test | Test changes |
chore | Build/tooling |
Never run without confirmation:
git push --force (use --force-with-lease instead)git reset --hardrm -rf (use mv ~/.Trash/ instead)tdd-fundamentals - TDD with CLI test runnerscreating-hooks - Git hooks configuration/commit - Generate Conventional Commits format/pr - Create PR and push/branch - Suggest branch names/issue - Create GitHub issues/rabbit - CodeRabbit AI review