Skip to content

CLI Workflow Complexity ​

Gira should reduce task burden compared with raw gh. The right measurement is not character count. The useful unit is a workflow node: one thing a human operator or agent must understand, choose, or execute to finish a task.

Node Types ​

NodeMeaning
CommandA visible CLI command the operator or agent must run.
ArgumentA required value such as repo, ticket, parent, label, title, body, or SHA.
DecisionA workflow branch such as dry-run/apply, wait/fix, draft/ready, or merge/stop.
ProviderA provider primitive exposed to the user, such as issue IDs, REST endpoints, PR head SHAs, or Project field IDs.
FallbackA point where the user must leave Gira and use raw gh.
CognitiveA product concept the user must map correctly: ticket, issue, parent, child, epic, goal, PR, status, or queue.

Character count is a weak proxy. Object order, decision count, provider leakage, and fallback risk usually explain UX/AX discomfort better.

Representative Findings ​

FlowGira scoreRaw gh scoreDiagnosis
Ticket lifecycle20.542.0Gira has several commands, but each binds lifecycle state and emits next safe actions.
Create a native sub-issue10.522.0ticket new --parent is a good creation-time surface.
Attach an existing sub-issue12.020.0ticket parent CHILD --set PARENT is compact but not the most intuitive object order.
Supersede a ticket12.030.0Gira is much simpler when dry-run is bounded and observable.

The current attach-existing-sub-issue command should remain canonical:

bash
gira ticket parent 456 --set 123 --dry-run

But a future ergonomic alias may be clearer:

bash
gira ticket child add 123 456 --dry-run

The second form follows the user's sentence: add child #456 under parent #123.

Review Gate ​

Before adding or teaching a workflow command, answer:

  1. What task does the command complete?
  2. What is the Gira command graph for the happy path?
  3. What is the raw gh graph for the same task?
  4. Which provider nodes does Gira hide?
  5. Which decisions remain visible?
  6. Does each step emit a next safe command or structured blocker?
  7. Does the object order match the user's sentence?
  8. What fallback path remains?

Canonical source: docs/cli-workflow-complexity.md.

Related: Workflow Efficiency KPIs.

GitHub remains the source of truth.