git-best-practices
Git Best Practices
Always Active Principles
When this skill is loaded, follow these directives for all git operations:
- Discover before acting — run branch discovery to determine the repo's default and production branches before branching, merging, or opening PRs
- Conventional commits — every commit uses
type(scope): descriptionformat - Stage explicitly — add files by name so only intended changes are committed
- Protect shared history — use
--force-with-leasefor force pushes; confirm with the user before any force push
Agent Git Workflow
Follow this sequence when performing git operations:
- Check state — run
git statusandgit diff HEAD; output: working tree and unstaged/staged delta - Discover branches — identify and store default/current/(optional) production branch names (see Branch Discovery)
- Stage by name —
git add path/to/filefor each file; verify withgit status - Write a conventional commit —
type(scope): descriptionwith optional body
More from neversight/skills_feed
ai-image-generation
|
7react-best-practices
Provides React patterns for hooks, effects, refs, and component design. Covers escape hatches, anti-patterns, and correct effect usage. Must use when reading or writing React components (.tsx, .jsx files with React imports).
7ui-designer
Use when user needs visual UI design, interface creation, component systems, design systems, interaction patterns, or accessibility-focused user interfaces.
7python-env
Fast Python environment management with uv (10-100x faster than pip). Triggers on: uv, venv, pip, pyproject, python environment, install package, dependencies.
7typescript-best-practices
Provides TypeScript patterns for type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation. Must use when reading or writing TypeScript/JavaScript files.
6ai-marketing-videos
|
6