بنقرة واحدة
git-helper
Standardized git operations for AI agents with modular instructions for conventional, atomic commits.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Standardized git operations for AI agents with modular instructions for conventional, atomic commits.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | git-helper |
| version | 2.0.0 |
| type | skill |
| description | Standardized git operations for AI agents with modular instructions for conventional, atomic commits. |
Standardized git operations for AI agents with human-in-the-loop safety and agentic guidelines for atomic, conventional commits.
To ensure high-quality project history, you MUST follow these modular instructions:
Follow these rules to maintain a clean and auditable project history:
git apply --cached with a patch file to stage specific lines.git status --short and git diff before staging.docs changes first, then feat).git diff --staged before committing.stageStage changes into the index (staging area).
sh scripts/git-helper.sh stage <file1> [file2...]commitRecord changes to the repository.
--yes flag to bypass the CLI prompt, but you MUST request and receive explicit conversational approval from the user BEFORE executing this command. Present the affected files, the reasoning for the commit breakdown, and the drafted commit message for their review (do NOT print the raw git diff).--author flag to append a Git Trailer identifying yourself natively.sh scripts/git-helper.sh commit "$(cat << 'EOF'
<emoji> <type>[optional scope]: <description>
<body>
EOF
)" --author "<Your Agent Name>" --yes
For operations that do not require special formatting or agent safety wrappers, use standard Git commands:
git status --short and git diffgit diff --stagedFollow the Guidelines & Rules defined above for every operation.
git status --short and git diff.sh scripts/git-helper.sh stage <file> to move changes to the index. If you need to stage specific lines, create a patch file and use git apply --cached.git diff --staged to ensure the staging area contains ONLY the intended logical unit.instructions/commit-spec.md. Present the affected files, your reasoning for grouping them into this commit, and the drafted commit message to the user for explicit conversational approval. Do NOT print the raw git diff as it clutters the chat. You MUST wait for their confirmation before proceeding.sh scripts/git-helper.sh commit using the HEREDOC format with the --yes flag.--yes is used.