sync-branch
The sync-branch command updates a feature branch by rebasing it onto the latest main branch, then force-pushes the changes to keep a pull request current. Use this when your branch has fallen behind upstream development and needs integration with recent main branch updates while maintaining a clean commit history.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/alirezarezvani/claude-code-skill-factory/HEAD/.claude/commands/sync-branch.md -o ~/.claude/commands/sync-branch.mdsync-branch.md
1. Fetch latest upstream refs: `git fetch origin --prune`.
2. Identify target branch (default `main`, or override via argument).
3. Rebase current branch onto target:
```bash
git rebase origin/${target:-main}
```
4. Resolve any conflicts, rerun `/review` and `/security-scan` afterwards.
5. Force-with-lease push to update the PR:
```bash
git push --force-with-lease origin $(git branch --show-current)
```Interactive guide for building custom Claude Code Agents and subagents. Asks straightforward questions, generates enhanced YAML frontmatter with tools/model/color/field/expertise, creates agent .md files, validates format, and helps install to .claude/agents/ or ~/.claude/agents/. Use when user wants to build workflow specialist agents.
Main navigation guide for Claude Code Skills Factory. Use when user wants to build custom Skills, Prompts, or Agents. Orchestrates and delegates to specialized guide agents.
Interactive guide for building custom Claude Code hooks. Asks straightforward questions, uses hook-factory skill, generates complete hooks with validation, and provides installation instructions.
Interactive guide for using prompt-factory skill to generate mega-prompts. Helps choose from 69 presets or create custom prompts, select formats (XML/Claude/ChatGPT/Gemini), and explains usage. Use when user wants to generate production-ready prompts for any LLM.
Interactive guide for building custom Claude Skills. Asks straightforward questions, uses SKILLS_FACTORY_PROMPT template, generates complete skill files, validates format, creates ZIP, and helps install. Use when user wants to build multi-file skill capabilities.
Trigger the Commit & Branch Guard workflow on demand.
Stage working tree changes and create a Conventional Commit (no push).
Stage, commit, and push the current branch following git governance rules.