osborn 0.9.4 → 0.9.9
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.
- package/.claude/settings.local.json +9 -0
- package/.claude/skills/browser-apply/SKILL.md +114 -0
- package/.claude/skills/markdown-to-pdf/SKILL.md +29 -0
- package/.claude/skills/pdf-to-markdown/SKILL.md +28 -0
- package/.claude/skills/playwright-browser/SKILL.md +90 -0
- package/.claude/skills/shadcn/SKILL.md +232 -0
- package/.claude/skills/shadcn/image.png +0 -0
- package/.claude/skills/youtube-transcript/SKILL.md +24 -0
- package/caresource-apply.js +50 -0
- package/caresource-apply.mjs +34 -0
- package/dist/claude-llm.js +219 -37
- package/dist/conversation-brain.d.ts +92 -0
- package/dist/conversation-brain.js +360 -0
- package/dist/fast-llm.d.ts +15 -0
- package/dist/fast-llm.js +81 -0
- package/dist/index.js +288 -57
- package/dist/pipeline-direct-llm.js +1 -1
- package/dist/prompts/compact-learnings-instruction.md +53 -10
- package/package.json +1 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# Skill: Browser Apply — Step-by-Step Workday Application
|
|
2
|
+
|
|
3
|
+
Automate Workday job applications interactively, one step at a time. Each step takes a screenshot, confirms what's on screen, fills the current page, and waits before proceeding.
|
|
4
|
+
|
|
5
|
+
**This skill uses the Playwright MCP tools** (`mcp__playwright__browser_*`) for direct browser control — no scripts needed.
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
- Any Workday ATS application (`*.wd1.myworkdayjobs.com`)
|
|
9
|
+
- Any multi-step JS-heavy job application form
|
|
10
|
+
- When you want visible, confirmable progress at each step
|
|
11
|
+
|
|
12
|
+
## Key Principle: Step-by-Step, Not One Big Script
|
|
13
|
+
|
|
14
|
+
Do NOT write a monolithic automation script. Instead:
|
|
15
|
+
1. Navigate to the URL
|
|
16
|
+
2. Take a screenshot — confirm what's on screen
|
|
17
|
+
3. Fill only the current step's fields
|
|
18
|
+
4. Take another screenshot — confirm fields filled correctly
|
|
19
|
+
5. Ask the user "Ready for next step?" before clicking Next
|
|
20
|
+
6. Click Next, wait for page load, screenshot again
|
|
21
|
+
7. Repeat for each step
|
|
22
|
+
|
|
23
|
+
This approach catches rendering issues, unexpected fields, and errors before they cascade.
|
|
24
|
+
|
|
25
|
+
## Step-by-Step Execution Pattern
|
|
26
|
+
|
|
27
|
+
### Step 0 — Open the browser
|
|
28
|
+
Use: `mcp__playwright__browser_navigate` with the applyManually URL
|
|
29
|
+
|
|
30
|
+
Then: `mcp__playwright__browser_take_screenshot` — show the user what loaded
|
|
31
|
+
|
|
32
|
+
### Step 1 — Create Account / Sign In
|
|
33
|
+
Take a snapshot with `mcp__playwright__browser_snapshot` to see element refs.
|
|
34
|
+
Fill fields using `mcp__playwright__browser_fill_form` or individual `mcp__playwright__browser_type` calls.
|
|
35
|
+
Screenshot to confirm. Then ask user before clicking Create Account / Sign In.
|
|
36
|
+
|
|
37
|
+
### Step 2 — Start Application
|
|
38
|
+
If "Start Your Application" screen appears with Apply Manually button:
|
|
39
|
+
Screenshot it. Click "Apply Manually" using `mcp__playwright__browser_click`.
|
|
40
|
+
Screenshot after.
|
|
41
|
+
|
|
42
|
+
### Step 3 — My Information
|
|
43
|
+
Snapshot → fill each field → screenshot → ask user before clicking Next.
|
|
44
|
+
|
|
45
|
+
Fields to fill:
|
|
46
|
+
- First Name, Last Name, Phone
|
|
47
|
+
- Address, City, State (dropdown), Zip
|
|
48
|
+
- Work authorization: Yes
|
|
49
|
+
- Sponsorship: No
|
|
50
|
+
|
|
51
|
+
### Step 4 — My Experience
|
|
52
|
+
Snapshot → click Add for each job entry → fill title/company/dates/description → save each → screenshot.
|
|
53
|
+
Then add education entries.
|
|
54
|
+
Ask user before clicking Next.
|
|
55
|
+
|
|
56
|
+
### Step 5 — Application Questions
|
|
57
|
+
Snapshot to see all questions. Fill each one. **Always confirm salary expectation with user before filling** — never guess. Screenshot. Ask before Next.
|
|
58
|
+
|
|
59
|
+
### Step 6 — Voluntary Disclosures
|
|
60
|
+
Select "I do not wish to answer" / "Prefer not to disclose" for all. Screenshot. Ask before Next.
|
|
61
|
+
|
|
62
|
+
### Step 7 — Self Identify
|
|
63
|
+
Fill name and date. Select disability option. Screenshot. Ask before Next.
|
|
64
|
+
|
|
65
|
+
### Step 8 — Review
|
|
66
|
+
Screenshot the full review page. Confirm with user before clicking Submit.
|
|
67
|
+
|
|
68
|
+
### Step 9 — Confirm submission
|
|
69
|
+
Screenshot the confirmation dialog. Save it.
|
|
70
|
+
|
|
71
|
+
## Candidate Data (Osborn Ojure)
|
|
72
|
+
|
|
73
|
+
- Email: osbornojure@gmail.com
|
|
74
|
+
- Password: Workday2026!
|
|
75
|
+
- First: Osborn, Last: Ojure
|
|
76
|
+
- Phone: 3127185561
|
|
77
|
+
- Address: 1234 N Michigan Ave, Chicago, IL 60601
|
|
78
|
+
|
|
79
|
+
Jobs:
|
|
80
|
+
1. Meta API Consultant at Prehype / Audos — April 2024 to Present
|
|
81
|
+
2. Full Stack Developer, Freelance — January 2016 to Present
|
|
82
|
+
|
|
83
|
+
Education:
|
|
84
|
+
1. A.S. Information Systems
|
|
85
|
+
2. B.S. Psychology
|
|
86
|
+
|
|
87
|
+
## Workday data-automation-id Selector Reference
|
|
88
|
+
|
|
89
|
+
| Field | Selector |
|
|
90
|
+
|---|---|
|
|
91
|
+
| Email | `input[type="email"]` |
|
|
92
|
+
| Password | `input[type="password"]` |
|
|
93
|
+
| First name | `[data-automation-id="legalNameSection_firstName"]` |
|
|
94
|
+
| Last name | `[data-automation-id="legalNameSection_lastName"]` |
|
|
95
|
+
| Phone | `[data-automation-id="phone-number"]` |
|
|
96
|
+
| Address | `[data-automation-id="addressSection_addressLine1"]` |
|
|
97
|
+
| City | `[data-automation-id="addressSection_city"]` |
|
|
98
|
+
| Zip | `[data-automation-id="addressSection_postalCode"]` |
|
|
99
|
+
| Job title | `[data-automation-id="jobTitle"]` |
|
|
100
|
+
| Company | `[data-automation-id="company"]` |
|
|
101
|
+
| Description | `[data-automation-id="description"]` |
|
|
102
|
+
| Next button | `[data-automation-id="bottom-navigation-next-btn"]` |
|
|
103
|
+
| Create Account | `[data-automation-id="click_filter"][aria-label="Create Account"]` |
|
|
104
|
+
|
|
105
|
+
## Critical Rules
|
|
106
|
+
- headless: false always (Workday renders blank in headless)
|
|
107
|
+
- Confirm salary with user before every submission — never auto-fill
|
|
108
|
+
- After "You already applied to this job" error — that confirms a previous submission worked
|
|
109
|
+
- Use `{ force: true }` on Workday buttons — overlay click filters block normal clicks
|
|
110
|
+
- Always wait for networkidle or waitForSelector after navigation before interacting
|
|
111
|
+
|
|
112
|
+
## Playwright Install Location
|
|
113
|
+
Run scripts from: `/Users/newupgrade/Desktop/Developer/osborn/frontend`
|
|
114
|
+
(playwright is in `node_modules` there)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Skill: Markdown to PDF
|
|
2
|
+
|
|
3
|
+
Export Markdown documents as formatted PDF files.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
When the user wants to create a PDF from a Markdown file, spec, or research findings.
|
|
7
|
+
|
|
8
|
+
## How to execute
|
|
9
|
+
|
|
10
|
+
Option 1 — Using md-to-pdf (best quality):
|
|
11
|
+
```bash
|
|
12
|
+
npx --yes md-to-pdf "<MARKDOWN_PATH>"
|
|
13
|
+
```
|
|
14
|
+
This creates a PDF alongside the source file with the same name.
|
|
15
|
+
|
|
16
|
+
Option 2 — Using pandoc (if available):
|
|
17
|
+
```bash
|
|
18
|
+
pandoc "<MARKDOWN_PATH>" -o "<OUTPUT_PATH>.pdf" --pdf-engine=wkhtmltopdf
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Option 3 — Using markdown-pdf:
|
|
22
|
+
```bash
|
|
23
|
+
npx --yes markdown-pdf "<MARKDOWN_PATH>" -o "<OUTPUT_PATH>.pdf"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Output
|
|
27
|
+
- Save the PDF to the session workspace (e.g., `library/{name}.pdf`)
|
|
28
|
+
- Confirm the output path and file size to the user
|
|
29
|
+
- If the source is spec.md, name the output `spec-export.pdf`
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Skill: PDF to Markdown
|
|
2
|
+
|
|
3
|
+
Convert PDF documents to readable Markdown text.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
When the user provides a PDF file path and wants to read, search, or work with its contents.
|
|
7
|
+
|
|
8
|
+
## How to execute
|
|
9
|
+
|
|
10
|
+
Option 1 — Using the built-in Read tool:
|
|
11
|
+
The Read tool can directly read PDF files. Use `pages` parameter for large PDFs (max 20 pages per request).
|
|
12
|
+
|
|
13
|
+
Option 2 — Full extraction via CLI (for better formatting or batch processing):
|
|
14
|
+
```bash
|
|
15
|
+
npx --yes pdf-parse-cli "<PDF_PATH>"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Option 3 — Using pdftotext (if available):
|
|
19
|
+
```bash
|
|
20
|
+
pdftotext -layout "<PDF_PATH>" -
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Output
|
|
24
|
+
Save the converted content to the session workspace as `library/{filename}.md` with:
|
|
25
|
+
- Document title and source path at the top
|
|
26
|
+
- Preserved heading structure where detectable
|
|
27
|
+
- Tables converted to Markdown tables where possible
|
|
28
|
+
- Page numbers as section markers
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Skill: Playwright Browser Automation
|
|
2
|
+
|
|
3
|
+
Automate web browser interactions — navigate pages, click buttons, fill forms, take screenshots, and extract content.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
- Navigate to a URL and interact with it
|
|
7
|
+
- Click buttons or links by their text or role
|
|
8
|
+
- Fill form fields and submit data
|
|
9
|
+
- Take screenshots of web pages
|
|
10
|
+
- Extract text or structured data from pages
|
|
11
|
+
- Automate multi-step web workflows (e.g. join a room, test a UI flow)
|
|
12
|
+
|
|
13
|
+
## How to execute
|
|
14
|
+
|
|
15
|
+
Uses `@playwright/cli` via npx — no global install needed. Token-efficient: uses element references (e.g. `e15`) instead of pixel coordinates.
|
|
16
|
+
|
|
17
|
+
### First time only — install browser binaries
|
|
18
|
+
```bash
|
|
19
|
+
npx playwright install chromium
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Step 1 — Open a URL
|
|
23
|
+
```bash
|
|
24
|
+
npx @playwright/cli open https://localhost:3000
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Step 2 — Get page structure and element references
|
|
28
|
+
```bash
|
|
29
|
+
npx @playwright/cli snapshot
|
|
30
|
+
```
|
|
31
|
+
Returns an accessibility tree with element IDs like e1, e2, e15. Use these in subsequent commands.
|
|
32
|
+
|
|
33
|
+
### Step 3 — Interact with elements
|
|
34
|
+
```bash
|
|
35
|
+
npx @playwright/cli click e15
|
|
36
|
+
npx @playwright/cli fill e3 "some text"
|
|
37
|
+
npx @playwright/cli press e3 Enter
|
|
38
|
+
npx @playwright/cli select e7 "optionValue"
|
|
39
|
+
npx @playwright/cli check e9
|
|
40
|
+
npx @playwright/cli hover e12
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Take a screenshot
|
|
44
|
+
```bash
|
|
45
|
+
npx @playwright/cli screenshot --path=/tmp/page.png
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Take a screenshot at a specific viewport size (mobile check)
|
|
49
|
+
```bash
|
|
50
|
+
npx @playwright/cli screenshot --viewport-size=375,812 --path=/tmp/page-mobile.png
|
|
51
|
+
```
|
|
52
|
+
Common mobile sizes: `375,812` (iPhone 14), `390,844` (iPhone 14 Pro), `412,915` (Pixel 7), `768,1024` (iPad).
|
|
53
|
+
|
|
54
|
+
### Close the browser
|
|
55
|
+
```bash
|
|
56
|
+
npx @playwright/cli close
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Named sessions (persistent state across commands)
|
|
60
|
+
```bash
|
|
61
|
+
npx @playwright/cli -s=myflow open https://localhost:3000
|
|
62
|
+
npx @playwright/cli -s=myflow snapshot
|
|
63
|
+
npx @playwright/cli -s=myflow fill e3 "abc123"
|
|
64
|
+
npx @playwright/cli -s=myflow click e5
|
|
65
|
+
npx @playwright/cli -s=myflow close
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Complete example — join Osborn voice room
|
|
69
|
+
```bash
|
|
70
|
+
npx @playwright/cli open http://localhost:3000
|
|
71
|
+
npx @playwright/cli snapshot
|
|
72
|
+
npx @playwright/cli fill e3 "abc123"
|
|
73
|
+
npx @playwright/cli click e4
|
|
74
|
+
npx @playwright/cli screenshot --path=/tmp/osborn-joined.png
|
|
75
|
+
npx @playwright/cli close
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Complete example — check mobile layout
|
|
79
|
+
```bash
|
|
80
|
+
npx @playwright/cli open http://localhost:3000
|
|
81
|
+
npx @playwright/cli screenshot --viewport-size=375,812 --path=/tmp/mobile-375.png
|
|
82
|
+
npx @playwright/cli close
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Notes
|
|
86
|
+
- Runs headless by default. Add --headed to see the browser window.
|
|
87
|
+
- Install browsers first if needed: npx playwright install chromium
|
|
88
|
+
- Element IDs are session-scoped — run snapshot again after page changes
|
|
89
|
+
- Use `--viewport-size=WIDTH,HEIGHT` to simulate mobile screen sizes (e.g. `375,812` for iPhone 14)
|
|
90
|
+
- Use `--storage-state=/tmp/state.json` to save and restore session state (cookies, localStorage) across runs
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# Skill: shadcn/ui Components
|
|
2
|
+
|
|
3
|
+
Add and configure shadcn/ui components in a Next.js or React project.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
When the user wants to add UI components (buttons, dialogs, cards, forms, tables, etc.) using shadcn/ui — the copy-paste component library built on Radix UI and Tailwind CSS.
|
|
7
|
+
|
|
8
|
+
## Setup (first time only)
|
|
9
|
+
|
|
10
|
+
Initialize shadcn in the project root (where package.json lives):
|
|
11
|
+
```bash
|
|
12
|
+
npx shadcn@latest init
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This creates `components.json` and sets up `src/components/ui/`. Answer the prompts to match your project's style preferences.
|
|
16
|
+
|
|
17
|
+
## Add a component
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx shadcn@latest add <component-name>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Add multiple components at once
|
|
24
|
+
```bash
|
|
25
|
+
npx shadcn@latest add button card dialog input form
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Commonly used components
|
|
29
|
+
|
|
30
|
+
| Component | Install name | Description |
|
|
31
|
+
|-----------|-------------|-------------|
|
|
32
|
+
| Button | `button` | Clickable button with variants |
|
|
33
|
+
| Card | `card` | Container with header/content/footer |
|
|
34
|
+
| Input | `input` | Text input field |
|
|
35
|
+
| Label | `label` | Form label |
|
|
36
|
+
| Textarea | `textarea` | Multi-line text input |
|
|
37
|
+
| Select | `select` | Dropdown select |
|
|
38
|
+
| Checkbox | `checkbox` | Checkbox with label |
|
|
39
|
+
| Switch | `switch` | Toggle switch |
|
|
40
|
+
| Dialog | `dialog` | Modal dialog |
|
|
41
|
+
| Sheet | `sheet` | Slide-in panel (drawer) |
|
|
42
|
+
| Popover | `popover` | Floating content panel |
|
|
43
|
+
| Tooltip | `tooltip` | Hover tooltip |
|
|
44
|
+
| Dropdown Menu | `dropdown-menu` | Contextual dropdown |
|
|
45
|
+
| Command | `command` | Command palette / search |
|
|
46
|
+
| Badge | `badge` | Small status indicator |
|
|
47
|
+
| Avatar | `avatar` | User avatar with fallback |
|
|
48
|
+
| Separator | `separator` | Visual divider |
|
|
49
|
+
| Table | `table` | Data table |
|
|
50
|
+
| Tabs | `tabs` | Tabbed interface |
|
|
51
|
+
| Accordion | `accordion` | Collapsible sections |
|
|
52
|
+
| Sonner | `sonner` | Toast notifications (preferred over toast) |
|
|
53
|
+
| Alert | `alert` | Inline alert message |
|
|
54
|
+
| Alert Dialog | `alert-dialog` | Confirmation dialog |
|
|
55
|
+
| Progress | `progress` | Progress bar |
|
|
56
|
+
| Skeleton | `skeleton` | Loading placeholder |
|
|
57
|
+
| Scroll Area | `scroll-area` | Custom scrollbar container |
|
|
58
|
+
| Calendar | `calendar` | Date picker calendar |
|
|
59
|
+
| Form | `form` | React Hook Form integration |
|
|
60
|
+
| Slider | `slider` | Range slider |
|
|
61
|
+
| Toggle | `toggle` | Toggle button |
|
|
62
|
+
| Navigation Menu | `navigation-menu` | Site navigation |
|
|
63
|
+
| Breadcrumb | `breadcrumb` | Page navigation breadcrumbs |
|
|
64
|
+
| Collapsible | `collapsible` | Expandable/collapsible section |
|
|
65
|
+
| Context Menu | `context-menu` | Right-click context menu |
|
|
66
|
+
| Menubar | `menubar` | Application menu bar |
|
|
67
|
+
| Resizable | `resizable` | Resizable panel groups |
|
|
68
|
+
|
|
69
|
+
## Import pattern
|
|
70
|
+
|
|
71
|
+
```tsx
|
|
72
|
+
import { Button } from "@/components/ui/button"
|
|
73
|
+
import { Card, CardContent, CardHeader, CardTitle, CardDescription, CardFooter } from "@/components/ui/card"
|
|
74
|
+
import { Input } from "@/components/ui/input"
|
|
75
|
+
import { Label } from "@/components/ui/label"
|
|
76
|
+
import {
|
|
77
|
+
Dialog,
|
|
78
|
+
DialogContent,
|
|
79
|
+
DialogDescription,
|
|
80
|
+
DialogHeader,
|
|
81
|
+
DialogTitle,
|
|
82
|
+
DialogTrigger,
|
|
83
|
+
} from "@/components/ui/dialog"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Example — Button variants
|
|
87
|
+
|
|
88
|
+
```tsx
|
|
89
|
+
<Button>Default</Button>
|
|
90
|
+
<Button variant="destructive">Delete</Button>
|
|
91
|
+
<Button variant="outline">Cancel</Button>
|
|
92
|
+
<Button variant="ghost">Ghost</Button>
|
|
93
|
+
<Button variant="link">Link</Button>
|
|
94
|
+
<Button size="sm">Small</Button>
|
|
95
|
+
<Button size="lg">Large</Button>
|
|
96
|
+
<Button disabled>Disabled</Button>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Example — Card
|
|
100
|
+
|
|
101
|
+
```tsx
|
|
102
|
+
<Card>
|
|
103
|
+
<CardHeader>
|
|
104
|
+
<CardTitle>Card Title</CardTitle>
|
|
105
|
+
<CardDescription>Card description goes here</CardDescription>
|
|
106
|
+
</CardHeader>
|
|
107
|
+
<CardContent>
|
|
108
|
+
<p>Card content here</p>
|
|
109
|
+
</CardContent>
|
|
110
|
+
<CardFooter>
|
|
111
|
+
<Button>Action</Button>
|
|
112
|
+
</CardFooter>
|
|
113
|
+
</Card>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Example — Form with validation (React Hook Form + Zod)
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npx shadcn@latest add form input
|
|
120
|
+
npm install zod react-hook-form @hookform/resolvers
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
```tsx
|
|
124
|
+
import { useForm } from "react-hook-form"
|
|
125
|
+
import { zodResolver } from "@hookform/resolvers/zod"
|
|
126
|
+
import * as z from "zod"
|
|
127
|
+
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form"
|
|
128
|
+
import { Input } from "@/components/ui/input"
|
|
129
|
+
import { Button } from "@/components/ui/button"
|
|
130
|
+
|
|
131
|
+
const formSchema = z.object({
|
|
132
|
+
email: z.string().email("Invalid email address"),
|
|
133
|
+
password: z.string().min(8, "Password must be at least 8 characters"),
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
export function LoginForm() {
|
|
137
|
+
const form = useForm<z.infer<typeof formSchema>>({
|
|
138
|
+
resolver: zodResolver(formSchema),
|
|
139
|
+
defaultValues: { email: "", password: "" },
|
|
140
|
+
})
|
|
141
|
+
|
|
142
|
+
function onSubmit(values: z.infer<typeof formSchema>) {
|
|
143
|
+
console.log(values)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return (
|
|
147
|
+
<Form {...form}>
|
|
148
|
+
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
|
|
149
|
+
<FormField
|
|
150
|
+
control={form.control}
|
|
151
|
+
name="email"
|
|
152
|
+
render={({ field }) => (
|
|
153
|
+
<FormItem>
|
|
154
|
+
<FormLabel>Email</FormLabel>
|
|
155
|
+
<FormControl>
|
|
156
|
+
<Input placeholder="you@example.com" {...field} />
|
|
157
|
+
</FormControl>
|
|
158
|
+
<FormMessage />
|
|
159
|
+
</FormItem>
|
|
160
|
+
)}
|
|
161
|
+
/>
|
|
162
|
+
<FormField
|
|
163
|
+
control={form.control}
|
|
164
|
+
name="password"
|
|
165
|
+
render={({ field }) => (
|
|
166
|
+
<FormItem>
|
|
167
|
+
<FormLabel>Password</FormLabel>
|
|
168
|
+
<FormControl>
|
|
169
|
+
<Input type="password" {...field} />
|
|
170
|
+
</FormControl>
|
|
171
|
+
<FormMessage />
|
|
172
|
+
</FormItem>
|
|
173
|
+
)}
|
|
174
|
+
/>
|
|
175
|
+
<Button type="submit" className="w-full">Sign in</Button>
|
|
176
|
+
</form>
|
|
177
|
+
</Form>
|
|
178
|
+
)
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
## Example — Toast notifications (Sonner)
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
npx shadcn@latest add sonner
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
```tsx
|
|
189
|
+
// In your root layout — add the Toaster once
|
|
190
|
+
import { Toaster } from "@/components/ui/sonner"
|
|
191
|
+
export default function RootLayout({ children }) {
|
|
192
|
+
return (
|
|
193
|
+
<html>
|
|
194
|
+
<body>
|
|
195
|
+
{children}
|
|
196
|
+
<Toaster />
|
|
197
|
+
</body>
|
|
198
|
+
</html>
|
|
199
|
+
)
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Then anywhere in your app
|
|
203
|
+
import { toast } from "sonner"
|
|
204
|
+
|
|
205
|
+
toast("Event created")
|
|
206
|
+
toast.success("Profile saved")
|
|
207
|
+
toast.error("Something went wrong")
|
|
208
|
+
toast.promise(saveData(), {
|
|
209
|
+
loading: "Saving...",
|
|
210
|
+
success: "Saved!",
|
|
211
|
+
error: "Failed to save",
|
|
212
|
+
})
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
## The cn() utility
|
|
216
|
+
|
|
217
|
+
shadcn uses `clsx` + `tailwind-merge` via a `cn()` helper for conditional classes:
|
|
218
|
+
|
|
219
|
+
```tsx
|
|
220
|
+
import { cn } from "@/lib/utils"
|
|
221
|
+
|
|
222
|
+
<div className={cn("base-class", isActive && "active-class", className)} />
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## Notes
|
|
226
|
+
- Components are **copied into your project** (not a node_modules dependency) — edit them freely
|
|
227
|
+
- Requires **Tailwind CSS** configured in the project
|
|
228
|
+
- Uses **Radix UI** primitives for accessibility
|
|
229
|
+
- Components land in `src/components/ui/` by default
|
|
230
|
+
- Run `npx shadcn@latest diff` to see if upstream components have changed
|
|
231
|
+
- Check `components.json` for path and style config
|
|
232
|
+
- Use Sonner (`sonner`) instead of the legacy `toast` component for notifications
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Skill: YouTube Transcript
|
|
2
|
+
|
|
3
|
+
Fetch and save transcripts from YouTube videos.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
When the user asks to get a transcript, subtitles, captions, or summary from a YouTube video URL.
|
|
7
|
+
|
|
8
|
+
## How to execute
|
|
9
|
+
|
|
10
|
+
yt-dlp is installed on this system. Use this exact command:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
yt-dlp --skip-download --write-auto-sub --sub-lang en --convert-subs srt -o "/tmp/yt-%(id)s" "<VIDEO_URL>"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
This downloads auto-generated English subtitles as an SRT file to /tmp/yt-{video-id}.en.srt
|
|
17
|
+
|
|
18
|
+
Then read the SRT file and strip the timing markers to get clean transcript text.
|
|
19
|
+
|
|
20
|
+
## Output
|
|
21
|
+
Save the cleaned transcript to the session workspace as `library/youtube-{video-id}-transcript.md` with:
|
|
22
|
+
- Video title and URL at the top
|
|
23
|
+
- Cleaned transcript text (strip SRT timing markers and duplicate lines)
|
|
24
|
+
- Key timestamps preserved as section markers if meaningful breaks exist
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const { chromium } = require('playwright');
|
|
2
|
+
|
|
3
|
+
(async () => {
|
|
4
|
+
const browser = await chromium.launch({ headless: false });
|
|
5
|
+
const page = await browser.newPage();
|
|
6
|
+
|
|
7
|
+
await page.goto('https://caresource.wd1.myworkdayjobs.com/CareSource/job/Remote/AI-Developer_R10487/apply', { waitUntil: 'networkidle' });
|
|
8
|
+
await page.waitForTimeout(2000);
|
|
9
|
+
|
|
10
|
+
// Click Apply Manually
|
|
11
|
+
console.log('Clicking Apply Manually...');
|
|
12
|
+
await page.click('text=Apply Manually');
|
|
13
|
+
await page.waitForTimeout(3000);
|
|
14
|
+
|
|
15
|
+
// Fill in email
|
|
16
|
+
console.log('Filling email field...');
|
|
17
|
+
const emailInput = await page.$('input[type="email"]');
|
|
18
|
+
if (emailInput) {
|
|
19
|
+
await emailInput.fill('osbornojure@gmail.com');
|
|
20
|
+
console.log('Email filled: osbornojure@gmail.com');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Fill in password
|
|
24
|
+
console.log('Filling password fields...');
|
|
25
|
+
const passwordInputs = await page.$$('input[type="password"]');
|
|
26
|
+
if (passwordInputs.length >= 2) {
|
|
27
|
+
await passwordInputs[0].fill('workday2026!');
|
|
28
|
+
await passwordInputs[1].fill('workday2026!');
|
|
29
|
+
console.log('Passwords filled');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
await page.waitForTimeout(1000);
|
|
33
|
+
|
|
34
|
+
// Click Create Account
|
|
35
|
+
const createBtn = await page.$('text=Create Account');
|
|
36
|
+
if (createBtn) {
|
|
37
|
+
console.log('Clicking Create Account...');
|
|
38
|
+
await createBtn.click();
|
|
39
|
+
await page.waitForTimeout(3000);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Take screenshot
|
|
43
|
+
await page.screenshot({ path: '/tmp/caresource-step1.png' });
|
|
44
|
+
console.log('Screenshot saved to /tmp/caresource-step1.png');
|
|
45
|
+
|
|
46
|
+
// Get current page text
|
|
47
|
+
const text = await page.evaluate(() => document.body.innerText);
|
|
48
|
+
console.log('\n--- PAGE CONTENT ---');
|
|
49
|
+
console.log(text);
|
|
50
|
+
})();
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { chromium } from 'playwright';
|
|
2
|
+
|
|
3
|
+
(async () => {
|
|
4
|
+
const browser = await chromium.launch({ headless: false });
|
|
5
|
+
const page = await browser.newPage();
|
|
6
|
+
|
|
7
|
+
console.log('🌐 Navigating to CareSource...');
|
|
8
|
+
await page.goto('https://caresource.wd1.myworkdayjobs.com/CareSource/job/Remote/AI-Developer_R10487/apply', { waitUntil: 'networkidle' });
|
|
9
|
+
await page.waitForTimeout(2000);
|
|
10
|
+
|
|
11
|
+
console.log('📋 Clicking Apply Manually...');
|
|
12
|
+
await page.click('text=Apply Manually');
|
|
13
|
+
await page.waitForTimeout(3000);
|
|
14
|
+
|
|
15
|
+
console.log('📧 Filling email...');
|
|
16
|
+
const emailInput = await page.$('input[type="email"]');
|
|
17
|
+
if (emailInput) {
|
|
18
|
+
await emailInput.fill('osbornojure@gmail.com');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
console.log('🔐 Filling passwords...');
|
|
22
|
+
const passwordInputs = await page.$$('input[type="password"]');
|
|
23
|
+
if (passwordInputs.length >= 2) {
|
|
24
|
+
await passwordInputs[0].fill('workday2026!');
|
|
25
|
+
await passwordInputs[1].fill('workday2026!');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
await page.waitForTimeout(1000);
|
|
29
|
+
await page.screenshot({ path: '/tmp/caresource-step1.png' });
|
|
30
|
+
|
|
31
|
+
console.log('✅ Account form filled. Screenshot saved.');
|
|
32
|
+
console.log('\n📝 Browser is now open. You can review before submitting.');
|
|
33
|
+
console.log('Keep this window open and ready to proceed.\n');
|
|
34
|
+
})();
|