Skip to content
OpenSmartRoute
Skillv1.0.0

auto-commit

Auto-commit session changes via git. Use at the end of every session to ensure all file changes are committed. This replaces the former session.idle plugin with a skill-based approach.

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

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

See reviews

About

Imported from hencter/Nova (.agents/skills/auto-commit/SKILL.md). Install upstream with npx skills add hencter/Nova --skill auto-commit. Copyright stays with the author (MIT).

Auto-Commit — Session Git Commit Skill

Agent Skills Standard: This skill conforms to the [[agent-skills-standard|Agent Skills Standard]] (agentskills.io). Compatible with any Agent Skills-compliant runtime including Crush, Claude Code, Cursor, and GitHub Copilot.

Runtime note (DeepSeek Harness): this vault skill lives in .agents/skills/ and is auto-registered in the DSH skill catalog — load it via the skill tool at session end (AGENTS.md §7) and run the git commands below via pwsh.

You are responsible for ensuring all vault file changes are committed to git at the end of every session. This skill replaces the former session.idle plugin with a deterministic skill-based workflow.

Core Workflow

Session End Commit

At the end of every session, as part of the shutdown sequence:

  1. Check if the working directory is a git repository:

    git rev-parse --git-dir
    

    If not a git repo, skip silently.

  2. Check for uncommitted changes:

    git status --porcelain
    

    If no output, nothing to commit — skip.

  3. If there are changes, commit them:

    git add -A && git commit -m "chore: auto-commit session changes"
    

Integration with Session End Protocol

This skill integrates with the Session End protocol defined in AGENTS.md §7. The auto-commit step runs after the session log is written and indexes are updated.

When to Run

  • At the end of every interactive session
  • After completing a significant unit of work (ingest, lint, refactor)
  • Before the agent's context window is about to expire

Error Handling

  • If git is not installed or not in PATH → skip silently
  • If the directory is not a git repository → skip silently
  • If git commit fails (e.g., no changes after git add) → skip silently
  • If there's a merge conflict or other git error → log the error in /log.md but do NOT block

Notes

  • Always use -c core.safecrlf=false on Windows to avoid CRLF warnings
  • Commit messages follow the convention: chore: auto-commit session changes
  • This skill does NOT push — only local commits. Pushing is the human owner's responsibility.

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/hencter-nova-auto-commit/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.

hencter-nova-auto-commit.ocm.jsonjson
{
  "ocm": "1",
  "id": "hencter-nova-auto-commit",
  "kind": "skill",
  "name": "auto-commit",
  "description": "Auto-commit session changes via git. Use at the end of every session to ensure all file changes are committed. This replaces the former session.idle plugin with a skill-based approach.",
  "publisher": "hencter",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "git",
      "auto-commit",
      "session",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Auto-commit session changes via git. Use at the end of every session to ensure all file changes are committed. This replaces the former session.idle plugin with a skill-based approach."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/hencter/Nova",
      "path": ".agents/skills/auto-commit/SKILL.md",
      "ref": "b1177faabfa84a794d30c7b9e2f31a61df791cc9",
      "url": "https://github.com/hencter/Nova/blob/b1177faabfa84a794d30c7b9e2f31a61df791cc9/.agents/skills/auto-commit/SKILL.md",
      "key": "hencter/Nova/.agents/skills/auto-commit/SKILL.md"
    },
    "compatibility": "all",
    "license": "MIT"
  },
  "instructions": "# Auto-Commit — Session Git Commit Skill\n\n> **Agent Skills Standard**: This skill conforms to the [[agent-skills-standard|Agent Skills Standard]] (agentskills.io). Compatible with any Agent Skills-compliant runtime including Crush, Claude Code, Cursor, and GitHub Copilot.\n>\n> **Runtime note (DeepSeek Harness)**: this vault skill lives in `.agents/skills/` and is auto-registered in the DSH skill catalog — load it via the `skill` tool at session end (AGENTS.md §7) and run the git commands below via `pwsh`.\n\nYou are responsible for ensuring all vault file changes are committed to git at the end o",
  "cost": {
    "context_tokens": 536
  }
}

Fetch it by URL: GET /api/v1/registry/hencter-nova-auto-commit/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.

auto-commit - Skill - OpenSmartRoute