git-status
Use this skill when the user asks to run the migrated command git-status or invokes $git-status.
Command Template
Analyze the current git status and provide an intelligent summary of what's happening in the project.
Efficiency Note:
Be concise. Skip verbose explanations of what commands you're running. Focus on the actual status results.
Instructions for Codex:
- Run all git commands in a single bash call for speed:
!git status --porcelain=v1 && echo "---" && git diff --stat 2>/dev/null && echo "---" && git branch -vv | grep "^\*" && echo "---" && git log --oneline -1 && echo "---" && git diff --cached --stat 2>/dev/null
Note: The output will be separated by "---" markers. Parse each section accordingly.
- Provide results directly without explaining the process:
- Summary: Brief overview of the current state
- Modified Files: Group by type (docs, code, tests, config)
- Uncommitted Changes: What's been changed and why it might matter
- Branch Status: Relationship to remote branch
- Suggestions: What actions might be appropriate
Provide insights about:
- Whether changes appear related or should be separate commits
- If any critical files are modified (package.json, config files, etc.)
- Whether the working directory is clean for operations like rebasing
- Any patterns in the modifications (e.g., all test files, all docs, etc.)
- If there are stashed changes that might be forgotten
Make the output concise but informative, focusing on what matters most to the developer.
Example of concise output:
- Skip: "I'll analyze the current git status for you."
- Skip: "Let me gather the details efficiently:"
- Skip: "I see there are changes. Let me gather the details:"
- Just show the results directly