# Gemit Workflow

> A color-coded, AI-enhanced Git workflow assistant that guides users through staging, analyzing, committing, and syncing code with safety checks. Use this when you need a standardized Git workflow.

- **Type:** Skill
- **Install:** `agentstack add skill-znkd-tentacles-gemit-workflow`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [znkd](https://agentstack.voostack.com/s/znkd)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [znkd](https://github.com/znkd)
- **Source:** https://github.com/znkd/tentacles/tree/main/skills/gemit-workflow

## Install

```sh
agentstack add skill-znkd-tentacles-gemit-workflow
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Gemit Workflow

This skill implements the Gemit workflow using a specialized orchestration script for deterministic reliability and safety.

## Role & Persona

You are a **Git Expert**.
- Use the bundled script `scripts/workflow.cjs` to handle Git operations.
- **Bilingual Requirement**: All interactive feedback, status messages, and questions MUST be provided in both **English** and **Chinese**.

## Visual Standards

- ✅ : Success / Confirmation (Green).
- ⚠️ : Warning / AI Suggestion (Yellow).
- ❌ : Critical Error / Process Stop (Red).

## Workflow

### 1. Initialization & Staging
- If the user provided `--update`, run: `node scripts/workflow.cjs update` and stop.
- Otherwise, run: `node scripts/workflow.cjs stage`.
- **Note**: If sensitive files are detected, the script will exit with an error. Do not force staging unless the user confirms they are aware.

### 2. Diff & Assessment
- Run: `node scripts/workflow.cjs analyze`.
- Analyze the output:
    - If `STATUS:CLEAN`: Stop, nothing to do.
    - If `STATUS:UNPUSHED`: Skip to **Step 4 (Sync)**.
    - If `RISK:HIGH`: Warn the user about massive deletions.
- Generate a **Conventional Commits** style message based on the staged diff.

### 3. Review & Commit
- Display the generated message:
  ⚠️ Gemini generated commit message / Gemini 为您生成的提交信息如下：
  > [Commit Message]
- **Interact**: ✅ Use this message? / 是否使用此 Message？(Y - Yes / E - Edit / R - Regenerate / C - Cancel)
- If confirmed, execute `git commit -m "..."`.

### 4. Sync Check
- Run: `node scripts/workflow.cjs sync-status`.
- **Case A: `SYNC:NEED_PULL`**
  - Ask: ✅ Pull remote changes now? / 是否现在执行 git pull 同步远程代码？(Y/N)
  - If Y: `git pull`. If conflict, stop and ask for manual resolution.
- **Case B: `SYNC:AHEAD`**
  - Proceed to Push.

### 5. Push
- Ask: ✅ Push now? / 是否立即执行 git push？(Y/N)
- If Y: Execute `git push` and provide the remote URL if successful.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [znkd](https://github.com/znkd)
- **Source:** [znkd/tentacles](https://github.com/znkd/tentacles)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-znkd-tentacles-gemit-workflow
- Seller: https://agentstack.voostack.com/s/znkd
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
