# Finish Work

> Run quality gates, commit changes, push branch, and create a pull request.

- Skill: `majiayu000/finish-work-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/finish-work-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/finish-work-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/finish-work-2

---


1. **Run quality gates**: Execute each check and fix any failures before proceeding.
   ```bash
   pnpm lint:affected
   pnpm ts:affected
   pnpm test:affected
   ```

2. **Fix failures**: If any check fails, fix the issue and re-run. Do not skip or ignore failures.

3. **Stage and commit**:
   - Run `git status` and `git diff` to review changes
   - Stage specific files by name (never use `git add .` or `git add -A`)
   - Write a conventional commit message: `<type>(<scope>): <description>`
   - Types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `chore`, `revert`
   - Scopes: `nx`, `rule`, `shared`, `script`

4. **Push the branch**: Run `git push -u origin <branch-name>` to push and set the upstream.

5. **Create the pull request**:
   ```bash
   gh pr create \
     -a @me \
     -r @carrot-foundation/developers \
     --label <label> \
     -R carrot-foundation/methodology-rules \
     -t "<type>(<scope>): <title>"
   ```
   - Labels: `feature`, `bug`, `chore`, `docs`, `refactoring`
   - Include a summary of changes in the PR body

6. **Verify**: Confirm the PR was created successfully and share the PR URL.

