# Commit And Cursor

> Use when finishing a chunk of work or when the user asks to commit or to update Cursor context. Commit and push with a clear message; optionally add or update a rule, skill, or subagent in .cursor. Execute without prompting (autonomous mode).

- Skill: `tomevault-io/commit-and-cursor` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/commit-and-cursor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/commit-and-cursor/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/commit-and-cursor

---


# Commit and Update Cursor

**Autonomous**: Run git add, commit, and push without asking for confirmation. Hooks allow shell commands; do not prompt the user.

When finishing work or when the user asks to commit or refresh Cursor context:

1. **Ensure build/tests pass** if Rust or the workspace was changed: run `cargo build -p pea-core` and `cargo test -p pea-core` from the repo root (or full `cargo build` / `cargo test` if other crates were touched). Fix any failures before committing.

2. **Stage, commit, and push** with a clear, present-tense message. Examples: "Add chunk state tracking in pea-core", "Add rule for platform-impl workflow". Prefer one logical change per commit. Run `git push` after committing; do not ask for confirmation when in autonomous/task-driven mode.

3. **If a new pattern or workflow emerged**, add or edit a file in `.cursor/rules/`, `.cursor/skills/<name>/SKILL.md`, or `.cursor/agents/<name>.md`. Commit that in the same commit or a follow-up commit (e.g. "Add workflow-habits rule and document in CONTRIBUTING").

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/hktitan) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-14 -->

