Dashboard › cli › Distillation
99930a64-0f46-4f81-a73b-d527f8ed14f0["lore_tm_v1_pL1R5yTaMwiMPz0t06evwJnvkbYBQbin2tDjOpqxExc"]
/home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-skill.ts, formatFlag(flag: FlagInfo, aliases: Record<string, string>): string at lines 531-550 finds the first alias whose mapped value equals flag.name, formats syntax as -${alias}, --${flag.name} or just --${flag.name}, appends <value> for non-variadic "parsed"/"enum" flags or <value>... for variadic flags, adds flag.brief when present, adds (default: ${JSON.stringify(flag.default)}) for defined non-boolean defaults, and joins parts with " - "./home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-skill.ts, getVisibleFlags(cmd: CommandInfo): FlagInfo[] at lines 557-559 returns flags that are neither hidden nor included in GLOBAL_FLAG_NAMES; its documentation says this excludes hidden, help, and globally injected flags./home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-skill.ts, generateFullCommandDoc(cmd: CommandInfo): string at lines 566-604 creates a command heading as ### \${cmd.path} ${cmd.positional}`whencmd.positionalexists, otherwise### `${cmd.path}`, followed by cmd.brief`.generateFullCommandDoc(cmd) adds a **Flags:** section when getVisibleFlags(cmd) is nonempty and renders each flag as - \${formatFlag(flag, cmd.aliases)}``.generateFullCommandDoc(cmd) adds a JSON-fields section when cmd.jsonFields is nonempty, headed **JSON Fields** (use \--json --fields` to select specific fields):, with columns Field, Type, and Description; it escapes |as|in field types and descriptions and uses an empty string whenfield.description` is absent.generateFullCommandDoc(cmd) calls formatCommandExamples(cmd.examples), appends the returned content after a blank line when truthy, and returns all generated lines joined with "\n"./home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-skill.ts, TITLE_ACRONYMS at line 607 is new Set(["api", "cli"])./home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-skill.ts, capitalize(s: string): string at lines 610-615 fully uppercases strings found in TITLE_ACRONYMS; otherwise it uppercases the first character and retains the remainder unchanged./home/byk/Code/getsentry/cli-pr-1558/packages/cli/script/generate-skill.ts, generateReferenceFile(refName: string, groupRoutes: RouteInfo[], version: string): string begins at line 627; its contract says each route produces its own complete reference file, with title and description derived from route metadata and no manual mapping. refName is the reference-file key and same as the route name, groupRoutes is a single-element route array, and version supplies the CLI version for frontmatter.generateReferenceFile(...) selects const route = groupRoutes[0], derives title as ${capitalize(refName)} Commands, and derives description from route.brief at lines 632-634.