ai/cursor-content-team/skills/content-git-workflow/SKILL.md
Git pull, commit (~/.gitmessage), push for content-repo automation. SSH pre-provisioned; fail-closed on conflicts. Emits stages for agent-observability.
npx skillsauth add akshay-na/dotfiles content-git-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
workspace_root is a clone with SSH remote (git@…) working in the environment.git_branch, git_remote, commit_template_path (default $HOME/.gitmessage), pull_before (default true), push_after_commit (default true for execution_mode: automation), task_id, idempotency_key.git fetch (and git pull --rebase or merge per project ADR) when pull_before — abort with error payload to n8n on merge conflict or unexpected dirty tree unless policy allows stash.target_paths[] from pipeline).git status/git diff — if no changes, skip commit (log git.commit_skipped_empty).git add path-scoped; git commit with --file composed message OR --template "$HOME/.gitmessage" — append --no-gpg-sign for content corpus / ~/ai-brain automation (see brain-conventions.mdc). Never use --no-gpg-sign when the git root is the DotMate dotfiles repository (sign those commits).
type[(optional-scope)]: imperative summary, ≤ ~72 chars for the summary portion, no trailing period before an optional suffix, imperative mood. For content vault commits, use lifecycle types draft, staging, published when the change is mainly that stage (per brain-conventions.mdc); otherwise feat / chore / … as usual. When git commit targets git-backed ~/ai-brain, the first line must end with from <short-hostname> (see brain-conventions.mdc).~/.gitmessage but brief: ≤ 2–3 bullets if any; Context: / Impact: one short line each by default.Notes: — optional brief operational refs (e.g. Task-ID, ticket keys) only — no Co-authored-by: for AI/tools, AI-authored, Generated-by:, or “written by AI” on corpus / non-brain repos. Git-backed ~/ai-brain: after body/Notes:, one Co-authored-by: <Product> <synthetic-email> for agent commits per brain-conventions.mdc item 7.git-safety.mdc — no AI attribution except one Co-authored-by on ~/ai-brain agent commits (item 7).git push to configured upstream; on non-FF → one retry with fetch/rebase/push; then fail closed (no git push --force to default branch).Suggest stable strings: git_pull_conflict, git_dirty_tree, git_commit_failed, git_push_rejected, git_ssh_failed, template_missing.
Same idempotency_key + clean tree + no new diff → no second empty commit; log skip observability row.
log_metric stages: git.sync, git.commit, git.push with task_id, branch, commit_sha when known.
development
Discovery + naming convention reference for typed dev/SME/QA/devops team members in any workspace folder. Primary consumer: `tech-lead` (org-tier).
devops
Automated task classification, agent selection, and state tracking. Use when routing tasks to agents, selecting pipelines, or managing task state.
testing
Use when designing scalable systems, evaluating consistency models, planning state management, making architectural decisions, or when trade-offs around coupling, failure isolation, and reversibility need explicit reasoning before implementation.
tools
CTO/tech-lead helper — split work into disjoint shard briefs with caps (instance_cap, partition_basis, determinism keys).