garrytan/gstack · error · Error

Unknown subcommand: ${sub} Cause: not one of save|list|show|

Error message

Unknown subcommand: ${sub}
Cause: not one of save|list|show|edit|promote-to-global|rollback|rm.
Action: $B domain-skill help for the full list.

What it means

Error "Unknown subcommand: ${sub} Cause: not one of save|list|show|edit|promote-to-global|rollback|rm. Action: $B domain-skill help for the full list." thrown in garrytan/gstack.

Source

Thrown at browse/src/domain-skill-commands.ts:294

    case 'delete':
      return handleRm(rest);
    case undefined:
    case '':
    case 'help':
      return [
        '$B domain-skill — agent-authored per-site notes',
        '',
        'Subcommands:',
        '  save              save body from stdin or --from-file (host derived from active tab)',
        '  list              list all skills visible to current project',
        '  show <host>       print skill body',
        '  edit <host>       open in $EDITOR',
        '  promote-to-global <host>  promote active skill to global scope',
        '  rollback <host> [--global]  restore prior version',
        '  rm <host> [--global]  tombstone',
      ].join('\n');
    default:
      throw new Error(
        `Unknown subcommand: ${sub}\n` +
          'Cause: not one of save|list|show|edit|promote-to-global|rollback|rm.\n' +
          'Action: $B domain-skill help for the full list.'
      );
  }
}

View on GitHub (pinned to 94993f7401)

When it happens

Trigger: Thrown at browse/src/domain-skill-commands.ts:294 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of garrytan/gstack@94993f7401 (2026-08-12). Data as JSON: /api/errors/7f0fd10739d57a88. Report an issue: GitHub.