ワンクリックで
git-workflow
Use for branch management, commits, PRs, and git operations via gh CLI.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use for branch management, commits, PRs, and git operations via gh CLI.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Enhance session checkpoints with git context and diff summaries. Use after completing significant work to enrich checkpoint.md files with repository state, recent commits, and code change summaries. Triggers include "enhance checkpoint", "update checkpoint with git", "add git context to checkpoint", or when finishing a multi-file change session.
Use for model training, hyperparameter tuning, and Modal GPU training.
Use when invoking training, evaluation, and dataset preparation via CLI. Provides all standard commands for this project.
Multi-perspective code analysis using three AI personas (RYAN, FLASH, SOCRATES) for comprehensive decision-making. Use when complex code decisions need analysis from multiple viewpoints, or when avoiding single-perspective blind spots is critical.
Use for authentication management, token validation, and credential troubleshooting.
Use for secrets management, credentials handling, and security best practices.
| name | git-workflow |
| description | Use for branch management, commits, PRs, and git operations via gh CLI. |
This skill covers git operations using GitHub CLI (gh).
# Create and switch to new branch
git checkout -b feature/my-feature
# List branches
git branch -a
# Delete local branch
git branch -d feature/my-feature
# Delete remote branch
git push origin --delete feature/my-feature
# Stage all changes
git add -A
# Stage specific file
git add src/model.py
# Commit with message
git commit -m "feat: add new model layer"
# Amend last commit (ONLY if not pushed)
git commit --amend
# View commit history
git log --oneline -10
# Create PR from current branch
gh pr create --title "feat: new feature" --body "## Summary
- Added new feature"
# List PRs
gh pr list
# View PR
gh pr view <pr-number>
# Check PR status
gh pr status
# Merge PR
gh pr merge <pr-number> --squash
# Add PR reviewers
gh pr edit <pr-number> --reviewer username
# View PR diff
gh pr diff <pr-number>
# Checkout PR locally
gh pr checkout <pr-number>
# Approve PR
gh pr review <pr-number> --approve
# Request changes
gh pr review <pr-number> --body "Please fix..."
# Fetch all branches
git fetch --all
# Rebase onto main
git rebase main
# Stash changes
git stash push -m "work in progress"
# Apply stash
git stash pop
# Quick fix workflow
git checkout -b fix/issue-123
# make changes
git add -A && git commit -m "fix: resolve issue"
git push -u origin fix/issue-123
gh pr create --title "fix: resolve issue" --body "## Summary
- Fixed the bug"
# Feature workflow
git checkout main && git pull
git checkout -b feature/new-feature
# develop...
git push -u origin feature/new-feature
gh pr create
Run quality checks before every commit (ADR-014):
bash scripts/quality-gate.sh
This runs the same checks as GitHub Actions CI:
.flake8)Configuration:
.flake8 - Flake8 config (single source of truth)pyproject.toml - Black, isort, mypy configTo run automatically before each commit:
# Create .git/hooks/pre-commit
cat > .git/hooks/pre-commit << 'EOF'
#!/bin/bash
exec bash scripts/quality-gate.sh
EOF
chmod +x .git/hooks/pre-commit
bash scripts/quality-gate.shfeat:, fix:, docs:, refactor:After every commit, follow this atomic loop:
1. git commit → git push
2. gh run list → get run-id
3. gh run view <id> → identify failures
4. FOR EACH failure:
a. Analyze error type → determine skill needed
b. Spawn specialist agent with @skill
c. Agent fixes → commits → pushes
d. Repeat from step 2 until all pass
5. NEVER skip: each fix must go through full cycle
# View latest workflow runs
gh run list --repo owner/tiny-cats-model
# View specific run details
gh run view <run-id>
# Get failure summary
gh run view <run-id> --log | grep "^ERR"
# Check if passed
gh run view <run-id> --json conclusion
| Failure Type | Use Skill |
|---|---|
| Lint error | @skill code-quality |
| Test failure | @skill testing-workflow |
| Type error | @skill code-quality |
| CI/workflow | @skill gh-actions |
| Model/training | @skill model-training |
| Security | @skill security |
Before implementing fixes:
websearch for latest solutionscodesearch for API patternsplans/ADR-*.md if significantplans/GOAP.md with action items@skill goap for planning tasks# After push fails:
gh run list
gh run view <run-id> # See failures
# Identify: lint error → use code-quality
# @skill code-quality
# Agent fixes → commits → pushes
# Re-check:
gh run view <run-id> # If still failing, repeat
# Loop until SUCCESS