work

Create isolated Git worktrees for issues or pull requests via links or descriptions.

4.6k|161|Updated Oct 1, 2022
One-click install
npx skills add https://github.com/x-cmd/x-cmd --skill work-x-cmd
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: work
Source: https://github.com/x-cmd/x-cmd/tree/main/mod/slash/lib/preset/work
Command: npx skills add https://github.com/x-cmd/x-cmd --skill work-x-cmd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows you to isolate your work on issue/PRs using a dedicated worktree, reducing context switching and maintaining a clean main branch.

Core Features & Use Cases

  • Worktree Isolation: Create a separate branch for each issue/PR to avoid polluting the main branch.
  • Trigger with Link or Description: Start work by using the /work command followed by an issue/PR link or description.
  • Use Case: Use this Skill when you want to focus on a specific issue/PR without affecting the main branch, ensuring clean and organized development.

Quick Start

To start working on an issue, simply use the command: /work <issue_link or pr_link or natural_description>

Frequently Asked Questions about work

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an isolated Git worktree for a specific GitHub issue or PR?▼

You can create an isolated Git worktree by triggering the `/work` command followed by a GitHub issue or PR link. This automatically generates a separate branch, reducing context switching and maintaining a clean main branch.

What is the best way to keep my main branch clean while managing multiple GitHub issues?▼

The best way to keep your main branch clean is using worktree isolation for each issue or PR. This approach isolates development into separate branches, ensuring organized and focused development without polluting the main branch.

Do I need GitHub CLI to automate worktree creation for issue management?▼

Yes, you need both Git and GitHub CLI tools to automate worktree creation for issue management. These dependencies allow the system to parse issue links and automatically generate the corresponding isolated worktrees.

Can I start a PR workflow using a natural language description instead of an issue link?▼

Yes, you can start a PR workflow using a natural language description. By entering the `/work` command followed by text instead of an issue link, the system processes the description to set up your dedicated worktree.