agent-comms
SendMessage recipient validation and worktreePath safety (CWE-59). TRIGGER when: validating a SendMessage `to:` recipient against the agent whitelist, or a…
Git command patterns, branching strategy, and safety protocols. TRIGGER when: managing branches, resolving merge conflicts, or running commit/merge/push operations. SKIP: worktree lifecycle and isolation recovery (use worktree-management); CI automation (use
$ npx -y skills add komluk/scaffolding --skill git-operations --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/git-operationsContext preview
The summary Claude sees to decide when to auto-load this skill.
Git command patterns, branching strategy, and safety protocols. TRIGGER when: managing branches, resolving merge conflicts, or running commit/merge/push operations. SKIP: worktree lifecycle and isolation recovery (use worktree-management); CI automation (use
name: git-operations description: "Git command patterns, branching strategy, and safety protocols. TRIGGER when: managing branches, resolving merge conflicts, or running commit/merge/push operations. SKIP: worktree lifecycle and isolation recovery (use worktree-management); CI automation (use github-actions-template)."
Core git command patterns, branching strategies, and safety protocols for a project.
Current branch: !`git branch --show-current 2>/dev/null || true`
| Branch Pattern | Purpose | |----------------|---------| | `main` | Production branch, always stable | | `scaffolding/{task_id[:12]}` | Worktree task branches (auto-created) | | `backup/{task_id[:12]}` | Safety backup before destructive ops |
git status git stash list git log --oneline -5 git branch backup/$(date +%s) HEAD
git merge --no-commit --no-ff branch_name git diff --cached --stat git merge --continue # or --abort
git diff --name-only --diff-filter=U git checkout --ours path/to/file # keep ours git checkout --theirs path/to/file # keep theirs
git cherry-pick --no-commit <commit> git diff --cached --stat git cherry-pick --continue
| Error | Fix | |-------|-----| | `fatal: not a git repository` | Verify path, check .git exists | | `CONFLICT (content)` | Use conflict resolution protocol | | `cannot lock ref` | Wait and retry, check stale locks | | `worktree is not clean` | Stage+commit or stash |
# 1. Verify unpushed commits exist git log --oneline origin/main..HEAD # 2. Push to remote git push origin main # 3. Verify push succeeded git log --oneline origin/main..HEAD # should be empty
After work is complete on a branch, execute one of these four actions based on context.
git checkout main git merge --ff-only <branch> # try fast-forward first # if ff fails: git merge --no-ff <branch> git branch -d <branch> git worktree remove .scaffolding/worktrees/<task_id> 2>/dev/null git worktree prune
git push -u origin <branch> gh pr create --title "<title>" --body "<body>" # keep branch and worktree
# no action needed -- branch stays as-is git push -u origin <branch> # optional: push to remote for safety
git checkout main git worktree remove .scaffolding/worktrees/<task_id> 2>/dev/null git branch -D <branch> git worktree prune
Spec-driven multi-agent orchestration for Claude Code — pure markdown, zero backend, runs on the stock runtime. 13 agents, 36 skills, 19 commands, 15 hooks, per-phase model tiers, opt-in lifecycle hooks, optional cross-device semantic memory.
Repo: komluk/scaffolding
SendMessage recipient validation and worktreePath safety (CWE-59). TRIGGER when: validating a SendMessage `to:` recipient against the agent whitelist, or a…
3-tier markdown memory protocol (shared/agent/conversation) for cross-session knowledge. TRIGGER when: reading or writing agent memory files, choosing which…
RESTful API design standards: resource naming, HTTP methods, status codes, pagination, versioning. TRIGGER when: designing new API endpoints, defining error…
Optimize Claude Code context-window usage for accuracy and cost. TRIGGER when: hitting context limits, structuring prompts for an agent, or trimming what gets…
Schema design, index strategy, migration safety, and query analysis. TRIGGER when: designing tables or indexes, writing a migration, or diagnosing a slow…