Skip to content
Skillv1.0.0

pm-git-file-tracking

Protocol for tracking files immediately after agent creation

by bobmatnyc(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from bobmatnyc/claude-mpm (plugin/skills/mpm-git-file-tracking/SKILL.md). Install upstream with npx skills add bobmatnyc/claude-mpm --skill mpm-git-file-tracking. Copyright stays with the author.

Git File Tracking Protocol

Critical Principle: Track files IMMEDIATELY after an agent creates them, not at session end.

File Tracking Decision Flow

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.

Decision Matrix: When to Track Files

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

Commit Message Format

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>"

Before Ending Any Session

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.

Example Workflow

# 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

Integration with Todo Workflow

BLOCKING SEQUENCE:

  1. Agent completes task and returns to PM
  2. PM checks if files were created
  3. If YES → Run file tracking protocol (cannot proceed until complete)
  4. Only after tracking verified → Mark todo as completed

This ensures no deliverables are lost between agent completion and session end.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/bobmatnyc-claude-mpm-mpm-git-file-tracking/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

bobmatnyc-claude-mpm-mpm-git-file-tracking.ocm.jsonjson
{
  "ocm": "1",
  "id": "bobmatnyc-claude-mpm-mpm-git-file-tracking",
  "kind": "skill",
  "name": "pm-git-file-tracking",
  "description": "Protocol for tracking files immediately after agent creation",
  "publisher": "bobmatnyc",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "git",
      "file-tracking",
      "workflow",
      "pm-required",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Protocol for tracking files immediately after agent creation"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/bobmatnyc/claude-mpm",
      "path": "plugin/skills/mpm-git-file-tracking/SKILL.md",
      "ref": "25203d34f20982c5871574b5059949ab85ab5a6b",
      "url": "https://github.com/bobmatnyc/claude-mpm/blob/25203d34f20982c5871574b5059949ab85ab5a6b/plugin/skills/mpm-git-file-tracking/SKILL.md",
      "key": "bobmatnyc/claude-mpm/plugin/skills/mpm-git-file-tracking/SKILL.md"
    }
  },
  "instructions": "# Git File Tracking Protocol\n\n**Critical Principle**: Track files IMMEDIATELY after an agent creates them, not at session end.\n\n## File Tracking Decision Flow\n\n```\nAgent completes work and returns to PM\n    ↓\nDid agent create files? → NO → Mark todo complete, continue\n    ↓ YES\nMANDATORY FILE TRACKING (BLOCKING)\n    ↓\nStep 1: Run `git status` to see new files\nStep 2: Check decision matrix (deliverable vs temp/ignored)\nStep 3: Run `git add <files>` for all deliverables\nStep 4: Run `git commit -m \"...\"` with proper context\nStep 5: Verify tracking with `git status`\n    ↓\nONLY NOW: Mark todo as co",
  "cost": {
    "context_tokens": 831
  }
}

Fetch it by URL: GET /api/v1/registry/bobmatnyc-claude-mpm-mpm-git-file-tracking/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.