スキル一覧に戻る
cuioss

workflow-integration-git

by cuioss

An orchestration layer for AI coding assistants (currently Claude Code) that enforces consistency, reliability, and more predictable outputs.

0🍴 0📅 2026年1月17日
GitHubで見るManusで実行

SKILL.md


name: workflow-integration-git description: Git commit workflow with conventional commits, artifact cleanup, and optional push/PR creation allowed-tools: Read, Glob, Bash(git:), Bash(rm:), Bash(gh:*), Skill

CUI Git Workflow Skill

EXECUTION MODE: You are now executing this skill. DO NOT explain or summarize these instructions to the user. IMMEDIATELY begin the workflow below based on the task context.

Provides git commit workflow following conventional commits specification. Includes artifact cleanup, commit formatting, and optional push/PR creation.

What This Skill Provides

Commit Workflow (Absorbs commit-changes Agent)

Complete git commit workflow:

  • Artifact detection and cleanup
  • Commit message generation following conventional commits
  • Optional push to remote
  • Optional PR creation

Commit Standards

  • Format: <type>(<scope>): <subject>
  • Types: feat, fix, docs, style, refactor, perf, test, chore
  • Quality: imperative mood, lowercase, no period, max 50 chars

When to Activate This Skill

  • Committing changes to repository
  • Generating commit messages from diffs
  • Cleaning build artifacts before commit
  • Creating pull requests after commit

Workflow: Commit Changes

Purpose: Commit all uncommitted changes following Git Commit Standards.

Input Parameters:

  • message (optional): Custom commit message
  • push (optional): Push after committing
  • create-pr (optional): Create PR after pushing

Steps

Step 1: Load Commit Standards

Read standards/git-commit-standards.md

Step 2: Check for Uncommitted Changes

git status --porcelain

If no changes → Report "No changes to commit"

Step 3: Analyze Changes for Artifacts

Use Glob to detect artifacts:

Glob pattern="**/*.class"
Glob pattern="**/*.temp"

Artifact patterns to clean:

  • *.class files in src/ directories
  • *.temp temporary files
  • Files in target/ or build/ accidentally staged

Step 4: Clean Artifacts

Safe Deletions (automatic):

  • *.class in src/main/java or src/test/java
  • *.temp anywhere
  • Delete using rm <file>

Uncertain Cases (ask user):

  • Files >1MB
  • Files outside safe list
  • Files in target/ that are tracked

Step 5: Generate Commit Message

If custom message provided:

  • Validate format
  • Use provided message

If no message:

  • Analyze diff using script:

    python3 .plan/execute-script.py pm-workflow:workflow-integration-git:git-workflow analyze-diff --file <diff-file>
    
  • Generate message following standards

Multi-type priority: fix > feat > perf > refactor > docs > style > test > chore

Step 6: Stage and Commit

git add .
git commit -m "$(cat <<'EOF'
{commit_message}

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"

Step 7: Push (Optional)

If push parameter:

git push

Step 8: Create PR (Optional)

If create-pr parameter:

gh pr create --title "{title}" --body "$(cat <<'EOF'
## Summary
{summary}

🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"

Output

{
  "status": "success",
  "commit_hash": "abc123",
  "commit_message": "feat(http): add retry configuration",
  "files_changed": 5,
  "artifacts_cleaned": 2,
  "pushed": true,
  "pr_url": "https://github.com/..."
}

Scripts

Script: pm-workflow:workflow-integration-git:git-workflow

CommandParametersDescription
format-commit--type --subject [--scope] [--body] [--breaking] [--footer]Format commit message
analyze-diff--fileAnalyze diff for commit suggestions

format-commit

Format commit message following conventional commits.

python3 .plan/execute-script.py pm-workflow:workflow-integration-git:git-workflow format-commit \
  --type feat \
  --scope http \
  --subject "add retry config" \
  [--body "Extended description..."] \
  [--breaking "API changed"] \
  [--footer "Fixes #123"]

Parameters:

  • --type (required): Commit type (feat, fix, docs, style, refactor, perf, test, chore)
  • --subject (required): Commit subject line
  • --scope: Optional component scope
  • --body: Optional commit body
  • --breaking: Optional breaking change description
  • --footer: Optional additional footer

Output (JSON):

{
  "type": "feat",
  "scope": "http",
  "subject": "add retry config",
  "formatted_message": "feat(http): add retry config\n\n🤖 Generated...",
  "validation": {"valid": true, "warnings": []},
  "status": "success"
}

analyze-diff

Analyze diff file to suggest commit message parameters.

python3 .plan/execute-script.py pm-workflow:workflow-integration-git:git-workflow analyze-diff \
  --file changes.diff

Parameters:

  • --file (required): Path to diff file to analyze

Output (JSON):

{
  "mode": "analysis",
  "suggestions": {
    "type": "feat",
    "scope": "auth",
    "subject": null,
    "detected_changes": ["Significant new code added"],
    "files_changed": ["src/main/java/auth/Login.java"]
  },
  "status": "success"
}

Standards (Load On-Demand)

Git Commit Standards

Read standards/git-commit-standards.md

Provides:

  • Conventional commits format specification
  • Commit type definitions and usage
  • Subject, body, and footer guidelines
  • Best practices and anti-patterns

Critical Rules

Artifacts: NEVER commit *.class, *.temp, *.backup* Permissions: NEVER push without push param, NEVER create PR without create-pr param Standards: Follow conventional commits format, add Co-Authored-By footer Safety: Ask user if uncertain about file deletion

Integration

Skills Using This Skill

  • plan-finalize - Commits and creates PR after plan execution
  • plan-execute - May commit after task completion
  • manage-lifecycle - Phase transitions that trigger finalize

Quality Verification

  • Self-contained with relative path pattern
  • Progressive disclosure (standards loaded on-demand)
  • Script outputs JSON for machine processing
  • commit-changes agent functionality absorbed
  • Clear workflow definition
  • Standards documentation maintained

References

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です