@xiaotianxt/skills 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/EXCLUDED.md +42 -0
  2. package/LICENSE +21 -0
  3. package/README.md +165 -0
  4. package/SECURITY.md +23 -0
  5. package/SOURCES.md +45 -0
  6. package/bin/skills.mjs +241 -0
  7. package/package.json +38 -0
  8. package/skills/1password/SKILL.md +94 -0
  9. package/skills/1password/agents/openai.yaml +4 -0
  10. package/skills/1password/references/item-management.md +80 -0
  11. package/skills/1password/references/op-cli.md +107 -0
  12. package/skills/apple-calendar-event/SKILL.md +81 -0
  13. package/skills/apple-calendar-event/agents/openai.yaml +4 -0
  14. package/skills/apple-calendar-event/scripts/calendar_audit.py +201 -0
  15. package/skills/apple-calendar-event/scripts/calendar_event.py +164 -0
  16. package/skills/bro-browser/SKILL.md +118 -0
  17. package/skills/bro-browser/agents/openai.yaml +4 -0
  18. package/skills/bro-browser/references/tool-map.md +102 -0
  19. package/skills/bro-browser/references/workflows.md +146 -0
  20. package/skills/bro-browser/scripts/bro-call.mjs +189 -0
  21. package/skills/calendar/SKILL.md +182 -0
  22. package/skills/calendar/agents/openai.yaml +4 -0
  23. package/skills/calendar/references/operations.md +255 -0
  24. package/skills/calendar/scripts/calendar_list_review.py +157 -0
  25. package/skills/calendar/scripts/event_dedupe_preview.py +155 -0
  26. package/skills/canvas/SKILL.md +70 -0
  27. package/skills/canvas/agents/openai.yaml +4 -0
  28. package/skills/canvas/references/canvas-api.md +76 -0
  29. package/skills/course-exam-review-planner/SKILL.md +127 -0
  30. package/skills/cx/SKILL.md +25 -0
  31. package/skills/gh-fix-ci/LICENSE.txt +201 -0
  32. package/skills/gh-fix-ci/SKILL.md +81 -0
  33. package/skills/gh-fix-ci/agents/openai.yaml +6 -0
  34. package/skills/gh-fix-ci/assets/github-small.svg +3 -0
  35. package/skills/gh-fix-ci/assets/github.png +0 -0
  36. package/skills/gh-fix-ci/scripts/inspect_pr_checks.py +509 -0
  37. package/skills/gh-review-workflow/SKILL.md +61 -0
  38. package/skills/gh-review-workflow/agents/openai.yaml +4 -0
  39. package/skills/gh-review-workflow/references/workflow.md +48 -0
  40. package/skills/gh-review-workflow/scripts/fetch_review_state.py +222 -0
  41. package/skills/gh-review-workflow/scripts/resolve_review_threads.py +83 -0
  42. package/skills/github/SKILL.md +74 -0
  43. package/skills/github/agents/openai.yaml +6 -0
  44. package/skills/github/assets/github-small.svg +3 -0
  45. package/skills/github/assets/github.png +0 -0
  46. package/skills/gws-calendar/SKILL.md +126 -0
  47. package/skills/gws-calendar-agenda/SKILL.md +52 -0
  48. package/skills/gws-calendar-insert/SKILL.md +66 -0
  49. package/skills/gws-docs/SKILL.md +48 -0
  50. package/skills/gws-docs-write/SKILL.md +49 -0
  51. package/skills/gws-drive/SKILL.md +137 -0
  52. package/skills/gws-drive-upload/SKILL.md +52 -0
  53. package/skills/gws-gmail/SKILL.md +62 -0
  54. package/skills/gws-gmail-forward/SKILL.md +55 -0
  55. package/skills/gws-gmail-reply/SKILL.md +58 -0
  56. package/skills/gws-gmail-reply-all/SKILL.md +62 -0
  57. package/skills/gws-gmail-send/SKILL.md +57 -0
  58. package/skills/gws-gmail-triage/SKILL.md +50 -0
  59. package/skills/gws-gmail-watch/SKILL.md +58 -0
  60. package/skills/gws-shared/SKILL.md +27 -0
  61. package/skills/helium-browser-mcp/SKILL.md +137 -0
  62. package/skills/helium-browser-mcp/agents/openai.yaml +4 -0
  63. package/skills/helium-browser-mcp/scripts/obmcp.mjs +92 -0
  64. package/skills/helium-browser-mcp/scripts/openbrowsermcp-stdio-proxy.mjs +170 -0
  65. package/skills/learn/SKILL.md +122 -0
  66. package/skills/learn/agents/openai.yaml +7 -0
  67. package/skills/learn/assets/AGENTS.template.md +33 -0
  68. package/skills/learn/assets/errorlog.template.typ +61 -0
  69. package/skills/learn/assets/reading-sequence.template.md +23 -0
  70. package/skills/learn/assets/source-index.template.md +17 -0
  71. package/skills/learn/assets/tasklog.template.typ +57 -0
  72. package/skills/learn/assets/workbook.template.typ +60 -0
  73. package/skills/learn/references/learning-science.md +103 -0
  74. package/skills/learn/scripts/init_learning_workspace.py +70 -0
  75. package/skills/macos-messages/SKILL.md +258 -0
  76. package/skills/memory/SKILL.md +33 -0
  77. package/skills/memory/codex.md +186 -0
  78. package/skills/memory/opencode.md +164 -0
  79. package/skills/mimestreamctl/SKILL.md +170 -0
  80. package/skills/mimestreamctl/agents/openai.yaml +4 -0
  81. package/skills/mimestreamctl/scripts/mimestreamctl +33 -0
  82. package/skills/mon/SKILL.md +51 -0
  83. package/skills/mon/scripts/mon_spend_review.py +458 -0
  84. package/skills/ocr/SKILL.md +136 -0
  85. package/skills/ocr/agents/openai.yaml +4 -0
  86. package/skills/ocr/references/local-ocr-best-practices.md +297 -0
  87. package/skills/ocr/references/mineru-api.md +159 -0
  88. package/skills/ocr/scripts/ocr-router +22 -0
  89. package/skills/ocr/scripts/ocr_router.py +741 -0
  90. package/skills/panopto-mp4-bulk-download/SKILL.md +57 -0
  91. package/skills/panopto-mp4-bulk-download/agents/openai.yaml +4 -0
  92. package/skills/panopto-mp4-bulk-download/references/url-patterns.md +26 -0
  93. package/skills/panopto-mp4-bulk-download/scripts/panopto_bulk_mp4.sh +213 -0
  94. package/skills/rust-systems-style/SKILL.md +109 -0
  95. package/skills/rust-systems-style/agents/openai.yaml +4 -0
  96. package/skills/rust-systems-style/references/rust-review-checklist.md +77 -0
  97. package/skills/rust-systems-style/references/style-sources.md +68 -0
  98. package/skills/ship-ai-native-cli/SKILL.md +76 -0
  99. package/skills/ship-ai-native-cli/agents/openai.yaml +4 -0
  100. package/skills/ship-ai-native-cli/references/case-notes.md +83 -0
  101. package/skills/ship-ai-native-cli/references/product-method.md +82 -0
  102. package/skills/ship-ai-native-cli/references/release-checklist.md +147 -0
  103. package/skills/ship-ai-native-cli/references/rust-cli-shape.md +111 -0
  104. package/skills/telegram-mtproto-session/SKILL.md +125 -0
  105. package/skills/telegram-mtproto-session/agents/openai.yaml +4 -0
  106. package/skills/telegram-mtproto-session/scripts/telegram_session.py +687 -0
  107. package/skills/tg/SKILL.md +173 -0
  108. package/skills/things3-manager/SKILL.md +116 -0
  109. package/skills/things3-manager/scripts/things +42 -0
  110. package/skills/things3-manager/scripts/things_cli.py +514 -0
  111. package/skills/web-artifacts-builder/LICENSE.txt +202 -0
  112. package/skills/web-artifacts-builder/SKILL.md +74 -0
  113. package/skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
  114. package/skills/web-artifacts-builder/scripts/init-artifact.sh +379 -0
  115. package/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
  116. package/skills/yeet/LICENSE.txt +201 -0
  117. package/skills/yeet/SKILL.md +71 -0
  118. package/skills/yeet/agents/openai.yaml +6 -0
  119. package/skills/yeet/assets/yeet-small.svg +3 -0
  120. package/skills/yeet/assets/yeet.png +0 -0
@@ -0,0 +1,379 @@
1
+ #!/bin/bash
2
+
3
+ # Exit on error
4
+ set -e
5
+
6
+ # Detect Node version
7
+ NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
8
+
9
+ echo "🔍 Detected Node.js version: $NODE_VERSION"
10
+
11
+ if [ "$NODE_VERSION" -lt 18 ]; then
12
+ echo "❌ Error: Node.js 18 or higher is required"
13
+ echo " Current version: $(node -v)"
14
+ exit 1
15
+ fi
16
+
17
+ echo "✅ Using current Vite / React / TypeScript toolchain"
18
+ echo " Template patches keep TypeScript 6, React 19, and pnpm 11 builds clean"
19
+
20
+ # Portable in-place sed. Keeping this as a function avoids macOS backup
21
+ # files like `index.html''` that appear when `sed -i ''` is expanded from a variable.
22
+ sed_inplace() {
23
+ if [[ "$OSTYPE" == "darwin"* ]]; then
24
+ sed -i '' "$@"
25
+ else
26
+ sed -i "$@"
27
+ fi
28
+ }
29
+
30
+ # Check if pnpm is installed
31
+ if ! command -v pnpm &> /dev/null; then
32
+ echo "📦 pnpm not found. Installing pnpm..."
33
+ npm install -g pnpm
34
+ fi
35
+
36
+ # Check if project name is provided
37
+ if [ -z "$1" ]; then
38
+ echo "❌ Usage: ./create-react-shadcn-complete.sh <project-name>"
39
+ exit 1
40
+ fi
41
+
42
+ PROJECT_NAME="$1"
43
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
44
+ COMPONENTS_TARBALL="$SCRIPT_DIR/shadcn-components.tar.gz"
45
+
46
+ # Check if components tarball exists
47
+ if [ ! -f "$COMPONENTS_TARBALL" ]; then
48
+ echo "❌ Error: shadcn-components.tar.gz not found in script directory"
49
+ echo " Expected location: $COMPONENTS_TARBALL"
50
+ exit 1
51
+ fi
52
+
53
+ echo "🚀 Creating new React + Vite project: $PROJECT_NAME"
54
+
55
+ # Create new Vite project with the current create-vite template
56
+ pnpm create vite "$PROJECT_NAME" --template react-ts
57
+
58
+ # Navigate into project directory
59
+ cd "$PROJECT_NAME"
60
+
61
+ echo "⚙️ Configuring pnpm for non-interactive artifact builds..."
62
+ cat > .npmrc << 'EOF'
63
+ confirmModulesPurge=false
64
+ EOF
65
+
66
+ cat > pnpm-workspace.yaml << 'EOF'
67
+ allowBuilds:
68
+ esbuild: true
69
+ EOF
70
+
71
+ echo "🧹 Cleaning up Vite template..."
72
+ sed_inplace '/<link rel="icon".*vite\.svg/d' index.html
73
+ sed_inplace 's/<title>.*<\/title>/<title>'"$PROJECT_NAME"'<\/title>/' index.html
74
+
75
+ echo "📦 Installing base dependencies..."
76
+ pnpm install
77
+
78
+ echo "📦 Installing Tailwind CSS and dependencies..."
79
+ pnpm install -D tailwindcss@3.4.1 postcss autoprefixer @types/node tailwindcss-animate
80
+ pnpm install class-variance-authority clsx tailwind-merge lucide-react next-themes
81
+
82
+ echo "⚙️ Creating Tailwind and PostCSS configuration..."
83
+ cat > postcss.config.js << 'EOF'
84
+ export default {
85
+ plugins: {
86
+ tailwindcss: {},
87
+ autoprefixer: {},
88
+ },
89
+ }
90
+ EOF
91
+
92
+ echo "📝 Configuring Tailwind with shadcn theme..."
93
+ cat > tailwind.config.js << 'EOF'
94
+ /** @type {import('tailwindcss').Config} */
95
+ module.exports = {
96
+ darkMode: ["class"],
97
+ content: [
98
+ "./index.html",
99
+ "./src/**/*.{js,ts,jsx,tsx}",
100
+ ],
101
+ theme: {
102
+ extend: {
103
+ colors: {
104
+ border: "hsl(var(--border))",
105
+ input: "hsl(var(--input))",
106
+ ring: "hsl(var(--ring))",
107
+ background: "hsl(var(--background))",
108
+ foreground: "hsl(var(--foreground))",
109
+ primary: {
110
+ DEFAULT: "hsl(var(--primary))",
111
+ foreground: "hsl(var(--primary-foreground))",
112
+ },
113
+ secondary: {
114
+ DEFAULT: "hsl(var(--secondary))",
115
+ foreground: "hsl(var(--secondary-foreground))",
116
+ },
117
+ destructive: {
118
+ DEFAULT: "hsl(var(--destructive))",
119
+ foreground: "hsl(var(--destructive-foreground))",
120
+ },
121
+ muted: {
122
+ DEFAULT: "hsl(var(--muted))",
123
+ foreground: "hsl(var(--muted-foreground))",
124
+ },
125
+ accent: {
126
+ DEFAULT: "hsl(var(--accent))",
127
+ foreground: "hsl(var(--accent-foreground))",
128
+ },
129
+ popover: {
130
+ DEFAULT: "hsl(var(--popover))",
131
+ foreground: "hsl(var(--popover-foreground))",
132
+ },
133
+ card: {
134
+ DEFAULT: "hsl(var(--card))",
135
+ foreground: "hsl(var(--card-foreground))",
136
+ },
137
+ },
138
+ borderRadius: {
139
+ lg: "var(--radius)",
140
+ md: "calc(var(--radius) - 2px)",
141
+ sm: "calc(var(--radius) - 4px)",
142
+ },
143
+ keyframes: {
144
+ "accordion-down": {
145
+ from: { height: "0" },
146
+ to: { height: "var(--radix-accordion-content-height)" },
147
+ },
148
+ "accordion-up": {
149
+ from: { height: "var(--radix-accordion-content-height)" },
150
+ to: { height: "0" },
151
+ },
152
+ },
153
+ animation: {
154
+ "accordion-down": "accordion-down 0.2s ease-out",
155
+ "accordion-up": "accordion-up 0.2s ease-out",
156
+ },
157
+ },
158
+ },
159
+ plugins: [require("tailwindcss-animate")],
160
+ }
161
+ EOF
162
+
163
+ # Add Tailwind directives and CSS variables to index.css
164
+ echo "🎨 Adding Tailwind directives and CSS variables..."
165
+ cat > src/index.css << 'EOF'
166
+ @tailwind base;
167
+ @tailwind components;
168
+ @tailwind utilities;
169
+
170
+ @layer base {
171
+ :root {
172
+ --background: 0 0% 100%;
173
+ --foreground: 0 0% 3.9%;
174
+ --card: 0 0% 100%;
175
+ --card-foreground: 0 0% 3.9%;
176
+ --popover: 0 0% 100%;
177
+ --popover-foreground: 0 0% 3.9%;
178
+ --primary: 0 0% 9%;
179
+ --primary-foreground: 0 0% 98%;
180
+ --secondary: 0 0% 96.1%;
181
+ --secondary-foreground: 0 0% 9%;
182
+ --muted: 0 0% 96.1%;
183
+ --muted-foreground: 0 0% 45.1%;
184
+ --accent: 0 0% 96.1%;
185
+ --accent-foreground: 0 0% 9%;
186
+ --destructive: 0 84.2% 60.2%;
187
+ --destructive-foreground: 0 0% 98%;
188
+ --border: 0 0% 89.8%;
189
+ --input: 0 0% 89.8%;
190
+ --ring: 0 0% 3.9%;
191
+ --radius: 0.5rem;
192
+ }
193
+
194
+ .dark {
195
+ --background: 0 0% 3.9%;
196
+ --foreground: 0 0% 98%;
197
+ --card: 0 0% 3.9%;
198
+ --card-foreground: 0 0% 98%;
199
+ --popover: 0 0% 3.9%;
200
+ --popover-foreground: 0 0% 98%;
201
+ --primary: 0 0% 98%;
202
+ --primary-foreground: 0 0% 9%;
203
+ --secondary: 0 0% 14.9%;
204
+ --secondary-foreground: 0 0% 98%;
205
+ --muted: 0 0% 14.9%;
206
+ --muted-foreground: 0 0% 63.9%;
207
+ --accent: 0 0% 14.9%;
208
+ --accent-foreground: 0 0% 98%;
209
+ --destructive: 0 62.8% 30.6%;
210
+ --destructive-foreground: 0 0% 98%;
211
+ --border: 0 0% 14.9%;
212
+ --input: 0 0% 14.9%;
213
+ --ring: 0 0% 83.1%;
214
+ }
215
+ }
216
+
217
+ @layer base {
218
+ * {
219
+ @apply border-border;
220
+ }
221
+ body {
222
+ @apply bg-background text-foreground;
223
+ }
224
+ }
225
+ EOF
226
+
227
+ # Add path aliases to tsconfig.json
228
+ echo "🔧 Adding path aliases to tsconfig.json..."
229
+ node -e "
230
+ const fs = require('fs');
231
+ const config = JSON.parse(fs.readFileSync('tsconfig.json', 'utf8'));
232
+ config.compilerOptions = config.compilerOptions || {};
233
+ config.compilerOptions.paths = { '@/*': ['./src/*'] };
234
+ fs.writeFileSync('tsconfig.json', JSON.stringify(config, null, 2));
235
+ "
236
+
237
+ # Add path aliases to tsconfig.app.json
238
+ echo "🔧 Adding path aliases to tsconfig.app.json..."
239
+ node -e "
240
+ const fs = require('fs');
241
+ const path = 'tsconfig.app.json';
242
+ const content = fs.readFileSync(path, 'utf8');
243
+ // Remove comments manually
244
+ const lines = content.split('\n').filter(line => !line.trim().startsWith('//'));
245
+ const jsonContent = lines.join('\n');
246
+ const config = JSON.parse(jsonContent.replace(/\/\*[\s\S]*?\*\//g, '').replace(/,(\s*[}\]])/g, '\$1'));
247
+ config.compilerOptions = config.compilerOptions || {};
248
+ config.compilerOptions.paths = { '@/*': ['./src/*'] };
249
+ fs.writeFileSync(path, JSON.stringify(config, null, 2));
250
+ "
251
+
252
+ # Update vite.config.ts
253
+ echo "⚙️ Updating Vite configuration..."
254
+ cat > vite.config.ts << 'EOF'
255
+ import path from "path";
256
+ import react from "@vitejs/plugin-react";
257
+ import { defineConfig } from "vite";
258
+
259
+ export default defineConfig({
260
+ plugins: [react()],
261
+ resolve: {
262
+ alias: {
263
+ "@": path.resolve(__dirname, "./src"),
264
+ },
265
+ },
266
+ });
267
+ EOF
268
+
269
+ # Install all shadcn/ui dependencies
270
+ echo "📦 Installing shadcn/ui dependencies..."
271
+ pnpm install @radix-ui/react-accordion @radix-ui/react-aspect-ratio @radix-ui/react-avatar @radix-ui/react-checkbox @radix-ui/react-collapsible @radix-ui/react-context-menu @radix-ui/react-dialog @radix-ui/react-dropdown-menu @radix-ui/react-hover-card @radix-ui/react-label @radix-ui/react-menubar @radix-ui/react-navigation-menu @radix-ui/react-popover @radix-ui/react-progress @radix-ui/react-radio-group @radix-ui/react-scroll-area @radix-ui/react-select @radix-ui/react-separator @radix-ui/react-slider @radix-ui/react-slot @radix-ui/react-switch @radix-ui/react-tabs @radix-ui/react-toast @radix-ui/react-toggle @radix-ui/react-toggle-group @radix-ui/react-tooltip
272
+ pnpm install sonner cmdk vaul embla-carousel-react react-day-picker react-resizable-panels date-fns react-hook-form @hookform/resolvers zod
273
+
274
+ # Extract shadcn components from tarball
275
+ echo "📦 Extracting shadcn/ui components..."
276
+ tar -xzf "$COMPONENTS_TARBALL" -C src/
277
+
278
+ # Keep bundled shadcn components buildable with the current dependency set.
279
+ # react-day-picker v10 no longer exposes a `table` ClassNames key.
280
+ if [ -f src/components/ui/calendar.tsx ]; then
281
+ sed_inplace '/^[[:space:]]*table: "w-full border-collapse",$/d' src/components/ui/calendar.tsx
282
+ fi
283
+
284
+ # react-resizable-panels v4 renamed the public primitives used by the bundled component.
285
+ if [ -f src/components/ui/resizable.tsx ]; then
286
+ cat > src/components/ui/resizable.tsx << 'EOF'
287
+ import * as React from "react"
288
+ import { GripVertical } from "lucide-react"
289
+ import {
290
+ Group as ResizablePanelGroupPrimitive,
291
+ Panel as ResizablePanel,
292
+ Separator as ResizableHandlePrimitive,
293
+ } from "react-resizable-panels"
294
+
295
+ import { cn } from "@/lib/utils"
296
+
297
+ const ResizablePanelGroup = ({
298
+ className,
299
+ ...props
300
+ }: React.ComponentProps<typeof ResizablePanelGroupPrimitive>) => (
301
+ <ResizablePanelGroupPrimitive
302
+ className={cn(
303
+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
304
+ className
305
+ )}
306
+ {...props}
307
+ />
308
+ )
309
+
310
+ const ResizableHandle = ({
311
+ withHandle,
312
+ className,
313
+ ...props
314
+ }: React.ComponentProps<typeof ResizableHandlePrimitive> & {
315
+ withHandle?: boolean
316
+ }) => (
317
+ <ResizableHandlePrimitive
318
+ className={cn(
319
+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
320
+ className
321
+ )}
322
+ {...props}
323
+ >
324
+ {withHandle && (
325
+ <div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">
326
+ <GripVertical className="h-2.5 w-2.5" />
327
+ </div>
328
+ )}
329
+ </ResizableHandlePrimitive>
330
+ )
331
+
332
+ export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
333
+ EOF
334
+ fi
335
+
336
+ # Create components.json for reference
337
+ echo "📝 Creating components.json config..."
338
+ cat > components.json << 'EOF'
339
+ {
340
+ "$schema": "https://ui.shadcn.com/schema.json",
341
+ "style": "default",
342
+ "rsc": false,
343
+ "tsx": true,
344
+ "tailwind": {
345
+ "config": "tailwind.config.js",
346
+ "css": "src/index.css",
347
+ "baseColor": "slate",
348
+ "cssVariables": true,
349
+ "prefix": ""
350
+ },
351
+ "aliases": {
352
+ "components": "@/components",
353
+ "utils": "@/lib/utils",
354
+ "ui": "@/components/ui",
355
+ "lib": "@/lib",
356
+ "hooks": "@/hooks"
357
+ }
358
+ }
359
+ EOF
360
+
361
+ echo "✅ Setup complete! You can now use Tailwind CSS and shadcn/ui in your project."
362
+ echo ""
363
+ echo "📦 Included components (40+ total):"
364
+ echo " - accordion, alert, aspect-ratio, avatar, badge, breadcrumb"
365
+ echo " - button, calendar, card, carousel, checkbox, collapsible"
366
+ echo " - command, context-menu, dialog, drawer, dropdown-menu"
367
+ echo " - form, hover-card, input, label, menubar, navigation-menu"
368
+ echo " - popover, progress, radio-group, resizable, scroll-area"
369
+ echo " - select, separator, sheet, skeleton, slider, sonner"
370
+ echo " - switch, table, tabs, textarea, toast, toggle, toggle-group, tooltip"
371
+ echo ""
372
+ echo "To start developing:"
373
+ echo " cd $PROJECT_NAME"
374
+ echo " pnpm dev"
375
+ echo ""
376
+ echo "📚 Import components like:"
377
+ echo " import { Button } from '@/components/ui/button'"
378
+ echo " import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card'"
379
+ echo " import { Dialog, DialogContent, DialogTrigger } from '@/components/ui/dialog'"
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf of
171
+ any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don\'t include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: "yeet"
3
+ description: "Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through GitHub MCP tools, with `gh` used only as a fallback where connector coverage is insufficient."
4
+ ---
5
+
6
+ # GitHub Publish Changes
7
+
8
+ ## Overview
9
+
10
+ Use this skill only when the user explicitly wants the full publish flow from the local checkout: branch setup if needed, staging, commit, push, and opening a pull request.
11
+
12
+ This workflow is hybrid:
13
+
14
+ - Use local `git` for branch creation, staging, commit, and push.
15
+ - Prefer GitHub MCP tools for pull request creation after the branch is on the remote.
16
+ - Use `gh` as a fallback for current-branch PR discovery, auth checks, or PR creation when the connector path cannot infer the repository or head branch cleanly.
17
+
18
+ ## Prerequisites
19
+
20
+ - Require GitHub CLI `gh`. Check `gh --version`. If missing, ask the user to install `gh` and stop.
21
+ - Require authenticated `gh` session. Run `gh auth status`. If not authenticated, ask the user to run `gh auth login` (and re-run `gh auth status`) before continuing.
22
+ - Require a local git repository with a clean understanding of which changes belong in the PR.
23
+
24
+ ## Naming conventions
25
+
26
+ - Branch: `codex/{description}` when starting from main/master/default.
27
+ - Commit: `{description}` (terse).
28
+ - PR title: `[codex] {description}` summarizing the full diff.
29
+
30
+ ## Workflow
31
+
32
+ 1. Confirm intended scope.
33
+ - Run `git status -sb` and inspect the diff before staging.
34
+ - If the working tree contains unrelated changes, do not default to `git add -A`. Ask the user which files belong in the PR.
35
+ 2. Determine the branch strategy.
36
+ - If on `main`, `master`, or another default branch, create `codex/{description}`.
37
+ - Otherwise stay on the current branch.
38
+ 3. Stage only the intended changes.
39
+ - Prefer explicit file paths when the worktree is mixed.
40
+ - Use `git add -A` only when the user has confirmed the whole worktree belongs in scope.
41
+ 4. Commit tersely with the confirmed description.
42
+ 5. Run the most relevant checks available if they have not already been run.
43
+ - If checks fail due to missing dependencies or tools, install what is needed and rerun once.
44
+ 6. Push with tracking: `git push -u origin $(git branch --show-current)`.
45
+ 7. Open a draft PR.
46
+ - Prefer GitHub MCP tools for PR creation after the push succeeds.
47
+ - Derive `repository_full_name` from the remote, for example by normalizing `git remote get-url origin` or by using `gh repo view --json nameWithOwner`.
48
+ - Derive `head_branch` from `git branch --show-current`.
49
+ - Derive `base_branch` from the user request when specified; otherwise use the remote default branch, for example via `gh repo view --json defaultBranchRef`.
50
+ - If the branch is being pushed from a fork or the PR target differs from the remote that was just pushed, prefer `gh pr create` fallback because the connector PR creation flow expects one repository target and may not encode cross-repo head semantics cleanly.
51
+ - If GitHub MCP-based PR creation cannot infer the repository or branch cleanly, fall back to `gh pr create --draft --fill --head $(git branch --show-current)`.
52
+ - Write the PR body to a temp file with real newlines when using CLI fallback so the markdown renders cleanly.
53
+ 8. Summarize the result with branch name, commit, PR target, validation, and anything the user still needs to confirm.
54
+
55
+ ## Write Safety
56
+
57
+ - Never stage unrelated user changes silently.
58
+ - Never push without confirming scope when the worktree is mixed.
59
+ - Use the default signed-commit flow. Do not pass `--no-gpg-sign` or bypass signing to make a commit succeed.
60
+ - Default to a draft PR unless the user explicitly asks for a ready-for-review PR.
61
+ - If the repository does not appear to be connected to an accessible GitHub remote, stop and explain the blocker before making assumptions.
62
+
63
+ ## PR Body Expectations
64
+
65
+ The PR description should use real Markdown prose and cover:
66
+
67
+ - what changed
68
+ - why it changed
69
+ - the user or developer impact
70
+ - the root cause when the PR is a fix
71
+ - the checks used to validate it
@@ -0,0 +1,6 @@
1
+ interface:
2
+ display_name: "Publish Changes"
3
+ short_description: "Commit, push, and open a PR"
4
+ icon_small: "./assets/yeet-small.svg"
5
+ icon_large: "./assets/yeet.png"
6
+ default_prompt: "Use $yeet to confirm the intended changes, create a focused commit, push it, and open a draft pull request."
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 14 14">
2
+ <path d="M6.873 11.887a1.06 1.06 0 0 1-.813.38.971.971 0 0 1-.8-.34c-.2-.231-.242-.551-.127-.96l.58-2.107h-2.78c-.31 0-.553-.087-.726-.26a.896.896 0 0 1-.254-.64c0-.253.085-.482.254-.687l4.9-5.82c.209-.244.477-.37.806-.38.334-.008.6.105.8.34.205.236.25.556.134.96l-.6 2.147h2.786c.307 0 .547.089.72.267a.859.859 0 0 1 .267.64c0 .253-.087.48-.26.68l-4.887 5.78Zm4.054-6.22a.178.178 0 0 0 .04-.107.091.091 0 0 0-.034-.087.154.154 0 0 0-.113-.04H7.733a.544.544 0 0 1-.32-.093.467.467 0 0 1-.173-.253.663.663 0 0 1 .007-.36l.64-2.314c.017-.066.01-.117-.02-.153a.136.136 0 0 0-.127-.053.18.18 0 0 0-.127.073l-4.58 5.433a.225.225 0 0 0-.046.107c0 .036.013.065.04.087.026.022.066.033.12.033h3.046c.143 0 .258.031.347.093a.447.447 0 0 1 .187.26.664.664 0 0 1-.007.36l-.627 2.274c-.017.066-.01.12.02.16a.135.135 0 0 0 .12.046.194.194 0 0 0 .134-.066l4.56-5.4Z"/>
3
+ </svg>
Binary file