with one click
pm-git-file-tracking
// Protocol for tracking files immediately after agent creation
// Protocol for tracking files immediately after agent creation
| name | pm-git-file-tracking |
| version | 1.0.0 |
| description | Protocol for tracking files immediately after agent creation |
| when_to_use | after agent creates files, before marking todo complete, git operations |
| category | pm-workflow |
| tags | ["git","file-tracking","workflow","pm-required"] |
Critical Principle: Track files IMMEDIATELY after an agent creates them, not at session end.
Agent completes work and returns to PM
ā
Did agent create files? ā NO ā Mark todo complete, continue
ā YES
MANDATORY FILE TRACKING (BLOCKING)
ā
Step 1: Run `git status` to see new files
Step 2: Check decision matrix (deliverable vs temp/ignored)
Step 3: Run `git add <files>` for all deliverables
Step 4: Run `git commit -m "..."` with proper context
Step 5: Verify tracking with `git status`
ā
ONLY NOW: Mark todo as completed
BLOCKING REQUIREMENT: PM cannot mark todo complete until files are tracked.
| File Type | Track? | Reason |
|---|---|---|
New source files (.py, .js, etc.) | ā YES | Production code must be versioned |
New config files (.json, .yaml, etc.) | ā YES | Configuration changes must be tracked |
New documentation (.md in /docs/) | ā YES | Documentation is part of deliverables |
Documentation in project root (.md) | ā NO | Only core docs allowed (README, CHANGELOG, CONTRIBUTING) |
New test files (test_*.py, *.test.js) | ā YES | Tests are critical artifacts |
New scripts (.sh, .py in /scripts/) | ā YES | Automation must be versioned |
Files in /tmp/ directory | ā NO | Temporary by design (gitignored) |
Files in .gitignore | ā NO | Intentionally excluded |
Build artifacts (dist/, build/) | ā NO | Generated, not source |
Virtual environments (venv/, node_modules/) | ā NO | Dependencies, not source |
git commit -m "feat: add {description}
- Created {file_type} for {purpose}
- Includes {key_features}
- Part of {initiative}
š¤ Generated with [Claude MPM](https://github.com/bobmatnyc/claude-mpm)
Co-Authored-By: Claude MPM <https://github.com/bobmatnyc/claude-mpm>"
Final verification checklist:
# 1. Check for untracked files
git status
# 2. If any deliverable files found (should be rare):
git add <files>
git commit -m "feat: final session deliverables..."
# 3. Verify tracking complete
git status # Should show "nothing to commit, working tree clean"
Ideal State: git status shows NO untracked deliverable files because PM tracked them immediately after each agent.
# After Engineer creates new OAuth files
git status
# Shows: src/auth/oauth2.js (untracked)
# src/routes/auth.js (untracked)
git add src/auth/oauth2.js src/routes/auth.js
git commit -m "feat: add OAuth2 authentication
- Created OAuth2 authentication module
- Added authentication routes
- Part of user login feature
š¤ Generated with [Claude MPM](https://github.com/bobmatnyc/claude-mpm)
Co-Authored-By: Claude MPM <https://github.com/bobmatnyc/claude-mpm>"
# Verify tracking complete
git status # Should show clean working tree
BLOCKING SEQUENCE:
This ensures no deliverables are lost between agent completion and session end.
Build MCP (Model Context Protocol) servers - expose tools, resources, and prompts to LLMs. TypeScript/Python SDKs for Claude Desktop integration. NOTE: Do NOT invoke for the built-in /mcp Claude Code command ā that lists configured MCP servers and is unrelated to building MCP server code.
MCP (Model Context Protocol) server build and evaluation guide, including local conventions for tool surfaces, config, and testing
Guide for creating effective skills
Re-authenticate Google Workspace MCP in-flight - refresh tokens, setup OAuth, check status
Bug reporting protocol for PM and agents to file GitHub issues
Send cross-project messages to other Claude MPM instances