Agent skill
mob
Use when the user wants to set, change, or clear git commit co-authors for pair or mob programming.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/mob
SKILL.md
Mob Programming Co-author Manager
Workflow
1. Solo Mode
If arguments indicate solo work (e.g., "solo", "just me"): run git solo, report primary author, exit.
2. Load Co-authors
Use git mob -p to find coauthors file, read with Read tool, parse JSON for available co-authors and initials.
3. Match Names to Initials
Match each name: exact initials → name substring (case-insensitive) → email prefix. If ambiguous, ask user to clarify.
4. Handle Unknown Names
If no match:
- Infer email from existing patterns (domain, naming convention)
- Generate initials from name (avoid collisions)
- Prompt for confirmation (show initials, name, inferred email)
- Run
git add-coauthor <initials> "<name>" <email>
5. Set Mob
Run git mob <initials...> with resolved initials.
6. Report
Show primary author and all co-authors with names.
Example
/mob alice dana
→ alice → aw (Alice Wong)
→ dana not found → infer dana@acme.com → add as dw
→ git mob aw dw
Edge Cases
Handle: missing coauthors file (create it), empty args (show status), ambiguous matches (prompt), mixed known/unknown (resolve known first).
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?