phab

Automate Phabricator tasks, revisions, and diffs via the phab CLI.

40|12|Updated Oct 17, 2011
One-click install
npx skills add https://github.com/lanej/dotfiles --skill phab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phab
Source: https://github.com/lanej/dotfiles/tree/main/claude/skills/phab
Command: npx skills add https://github.com/lanej/dotfiles --skill phab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires phab-cli.

What problem does it solve?

This Skill eliminates the manual overhead of managing Phabricator tasks, code reviews (revisions), and projects through the web UI. It provides a powerful command-line interface to automate common development workflows, saving developers time and integrating seamlessly with Git.

Core Features & Use Cases

  • Task Management: Search, create, edit, comment on, and view task trees, keeping your project work organized and up-to-date.
  • Code Review Workflows: Create and update code review revisions, specify reviewers, add test plans, and manage revision status directly from your terminal.
  • Git Integration: Automatically detect changes, commit ranges, and link revisions to tasks, streamlining your development and review process.
  • Use Case: After making changes on a feature branch, quickly create a new Phabricator code review (revision), assign reviewers, add a test plan, and open it in your browser, then update it with new commits as feedback comes in.

Quick Start

Create a new Phabricator task with the title "Fix login bug" and assign it to yourself.

Frequently Asked Questions about phab

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

FAQPage Schema
How do I automate code reviews and task management in Phabricator from the command line?

Automate Phabricator code reviews and tasks using the phab CLI to create revisions, assign reviewers, manage tasks, and handle diffs programmatically. The Skill integrates Git workflows, detects changes, links revisions to tasks, and outputs results in JSON, table, or markdown formats without manual web UI interaction.

Can I create and update Phabricator revisions directly from my terminal after committing code?

Yes. The phab CLI automatically detects Git changes and commit ranges, enabling you to create revisions, specify reviewers, add test plans, and update revisions with new commits as feedback arrives, all from your terminal without switching to the web UI.

What can I do with the phab CLI beyond creating revisions?

The phab CLI operates on tasks, revisions, diffs, projects, users, and repositories. You can search, create, edit, comment, view task trees, traverse relationships, visualize hierarchies, and query entities with support for edge and tree operations via command options.

Does the phab CLI work with Git workflows and link tasks to code reviews?

Yes. The Skill integrates with Git to detect branch changes, commit ranges, and automatically link revisions to Phabricator tasks, streamlining development workflows so code reviews and task management stay synchronized without manual linking.

Can I query and search Phabricator tasks and revisions programmatically?

Yes. Search, view, edit, and comment on tasks and revisions using phab CLI commands. Traverse relationships between entities, visualize task trees, and export results in JSON, JSONL, table, or markdown formats for integration with other tools or scripts.

What output formats does the phab CLI support for automation and integration?

The phab CLI supports JSON, JSONL, table, and markdown output formats, enabling integration with scripts, dashboards, and reporting tools. MCP Server and LSP integration enable deeper automation within development environments and workflows.