Learn-skills.dev git-workflow
[AUTO-INVOKE] MUST be invoked BEFORE creating git commits, PRs, or code reviews. Covers Conventional Commits, PR templates, review requirements, and AI-assisted development rules. Trigger: any task involving git commit, git push, PR creation, or code review.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/0xlayerghost/solidity-agent-kit/git-workflow" ~/.claude/skills/neversight-learn-skills-dev-git-workflow-0cb6ae && rm -rf "$T"
manifest:
data/skills-md/0xlayerghost/solidity-agent-kit/git-workflow/SKILL.mdsource content
Git Collaboration Standards
Language Rule
- Always respond in the same language the user is using. If the user asks in Chinese, respond in Chinese. If in English, respond in English.
Commit Rules
Use Conventional Commits format:
<type>: <short description>
| Type | When to use |
|---|---|
| New feature or contract |
| Bug fix |
| Code restructure without behavior change |
| Add or update tests |
| Documentation changes |
| Build config, dependency updates, toolchain |
| Security fix or hardening |
Commit Workflow
- Run
to review all changes before staginggit diff - Stage specific files — avoid
to prevent committinggit add .
or artifacts.env - Write concise commit message describing the why, not the what
- Only commit — never
unless explicitly requestedgit push - Never push directly to main/master — always use feature branches
Branch Naming
| Pattern | Example |
|---|---|
| |
| |
| |
PR Requirements
Every PR must include:
| Section | Content |
|---|---|
| Change description | What was changed and why |
| Test results | output (all pass) |
| Gas impact | diff for changed functions |
| Deployment impact | Does this affect deployed contracts? Migration needed? |
| Review focus | Specific areas that need careful review |
Code Review Rules
| Scenario | Requirement |
|---|---|
| Standard changes | Minimum 1 maintainer approval |
| Security-related changes | Minimum 2 maintainer approvals |
| AI-generated code | Must pass manual review + before merge |
| Contract upgrades | Requires full team review + upgrade simulation on fork |
AI Assistance Rules
- AI-generated code must pass
before committingforge test - Always review AI output for: correct import paths, proper access control, gas implications
- Include relevant file paths and test cases in AI prompts for better results
- Run
after AI generates code to ensure consistent formattingforge fmt