sub-pages-data.ts

 1/**
 2 * Command category and relationship data for docs pages.
 3 * Extracted from scripts/lib/sub-pages-data.js for use in Astro templates.
 4 */
 5
 6export const SKILL_CATEGORIES: Record<string, string> = {
 7  impeccable: 'create',
 8  craft: 'create',
 9  shape: 'create',
10  critique: 'evaluate',
11  audit: 'evaluate',
12  typeset: 'refine',
13  layout: 'refine',
14  colorize: 'refine',
15  animate: 'refine',
16  delight: 'refine',
17  bolder: 'refine',
18  quieter: 'refine',
19  overdrive: 'refine',
20  distill: 'simplify',
21  clarify: 'simplify',
22  adapt: 'simplify',
23  polish: 'harden',
24  optimize: 'harden',
25  harden: 'harden',
26  onboard: 'harden',
27  teach: 'system',
28  document: 'system',
29  extract: 'system',
30  live: 'system',
31};
32
33export const CATEGORY_ORDER = ['create', 'evaluate', 'refine', 'simplify', 'harden', 'system'];
34
35export const CATEGORY_LABELS: Record<string, string> = {
36  create: 'Create',
37  evaluate: 'Evaluate',
38  refine: 'Refine',
39  simplify: 'Simplify',
40  harden: 'Harden',
41  system: 'System',
42};
43
44export const CATEGORY_DESCRIPTIONS: Record<string, string> = {
45  create: 'Build something new, from a blank page to a working feature.',
46  evaluate: 'Review what you have. Score it, critique it, find what to fix.',
47  refine: 'Improve one dimension at a time: type, layout, color, motion.',
48  simplify: 'Strip complexity. Remove what does not earn its place.',
49  harden: 'Make it production-ready. Edge cases, performance, polish.',
50  system: 'Setup and tooling. Design system work, extraction, organization.',
51};
52
53export const COMMAND_RELATIONSHIPS: Record<string, {
54  leadsTo?: string[];
55  pairs?: string;
56  combinesWith?: string[];
57}> = {
58  craft: { combinesWith: ['shape'] },
59  shape: { combinesWith: ['craft'] },
60  audit: { leadsTo: ['harden', 'optimize', 'adapt', 'clarify'] },
61  critique: { leadsTo: ['polish', 'distill', 'bolder', 'quieter', 'typeset', 'layout'] },
62  typeset: { combinesWith: ['bolder', 'polish'] },
63  layout: { combinesWith: ['distill', 'adapt'] },
64  colorize: { combinesWith: ['bolder', 'delight'] },
65  animate: { combinesWith: ['delight'] },
66  delight: { combinesWith: ['bolder', 'animate'] },
67  bolder: { pairs: 'quieter' },
68  quieter: { pairs: 'bolder' },
69  overdrive: { combinesWith: ['animate', 'delight'] },
70  distill: { combinesWith: ['quieter', 'polish'] },
71  clarify: { combinesWith: ['polish', 'adapt'] },
72  adapt: { combinesWith: ['polish', 'clarify'] },
73  polish: {},
74  optimize: {},
75  harden: { combinesWith: ['optimize'] },
76  onboard: { combinesWith: ['clarify', 'delight'] },
77  teach: { combinesWith: ['document'] },
78  document: { combinesWith: ['teach', 'extract'] },
79  extract: { combinesWith: ['document'] },
80  live: {},
81};