Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Init?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/madvil2-init)
---
name: init
description: First-run setup of a job-search workspace: files, tools, mail, calendar, board logins.
disable-model-invocation: true
---
# /init
Files: `templates/`, `scripts/`, `docs/`, `examples/` and `routines/` are in the method root, `${CLAUDE_PLUGIN_ROOT}` (the clone holding this skill when that is not replaced by a path); every other relative path is in the workspace, the current folder. Before acting on the person's behalf, read `profile.md`, `docs/rules.md` and the workspace `rules.md`; the workspace one wins on conflict.
Run in the folder that will hold the job search (an empty folder, or the clone itself). Every question below follows `docs/rules.md` "Asking me".
## 0. Tool servers
If the workspace has no `.claude/settings.json`, copy `templates/settings.json` to `.claude/settings.json`. It pre-approves exactly the tools `/sweep` calls. In a clone the file is already committed.
If the workspace has no `.mcp.json`, copy `templates/mcp.json` to `.mcp.json`. It declares the JobCubby MCP (HTTP, OAuth) and the Playwright MCP (started through `npx`). Tell the person to leave the session, run `claude` again in this folder, approve the two servers, then run this skill again; it continues from step 1.
## 1. Workspace files
Create these from `templates/` if they do not exist yet (never overwrite an existing one):
| Workspace file | From |
|---|---|
| `profile.md` | `templates/profile.md` |
| `rules.md` | `templates/rules.md` |
| `sources.md` | `templates/sources.md` |
| `cv/old/` | empty folder (the CV they already have, in any format; `/profile` reads it first, `/cv` writes `cv/base.md` from it) |
| `cover-letters/` | empty folder |
| `prep/` | empty folder |
| `photos/` | empty folder |
| `documents/` | empty folder (degrees, language certificates, reference letters; listed under Files in `profile.md`) |
| `transcripts/` | empty folder |
| `recordings/` | empty folder |
| `reports/` | empty folder |
## 1b. Data history (one question)
1. Private history of my data on GitHub, set up now through `gh` (recommended: CV versions, prep files and reports get a history, nothing to run by hand afterwards)
2. Private history on another remote I name
3. No history, plain files only
On 1, run:
```bash
"${CLAUDE_PLUGIN_ROOT}/scripts/data" init --github
```
It creates `.data.git/` (a second git tracking only the personal paths), creates a private GitHub repo `autopilot-jobsearch-data` through `gh`, and pushes the first snapshot. If `gh` is missing or not logged in, the script says what to do. On 2, run `"${CLAUDE_PLUGIN_ROOT}/scripts/data" init` plus `"${CLAUDE_PLUGIN_ROOT}/scripts/data" remote <url>`. On 3, skip.
## 2. Tools
Check each one by calling it, and report what works:
- **JobCubby MCP**: call `get_profile`. If it fails, the person approves the OAuth prompt for the `jobcubby` server (Claude Code shows it on first use, or they run `/mcp`). Then read `https://jobcubby.com/SKILL.md`. Point them to the referral link in `README.md` if they have no account yet.
- **Playwright MCP**: call `browser_navigate` to `https://example.com`. The `.mcp.json` entry starts it through `npx`; the first start downloads a browser.
- **PDF renderer**: needs the `playwright` package next to `scripts/render.mjs`: a plugin install has it, in a clone run `npm install` once. Chromium downloads on the first render (about 150 MB), or now with `node "${CLAUDE_PLUGIN_ROOT}/node_modules/playwright/cli.js" install chromium`.
- **Mail and calendar**: step 2a.
## 2a. Mail and calendar (two questions)
On Windows, first check for classic Outlook with `powershell -NoProfile -Command "[bool][type]::GetTypeFromProgID('Outlook.Application')"`: `False` means it is not installed.
Ask these one at a time. Email applications with the CV attached go out through the mail app on this machine, `applemail` on macOS or `outlook` (classic Outlook) on Windows; say so instead of asking. With no such app, on Linux or on Windows without classic Outlook (the new Outlook has no scripting interface), reading and the calendar are `connector` and nothing sends email applications: the sweep escalates email-only postings for the person to send. Say so instead of asking either question.
Reading and answering mail:
1. `connector` (recommended: reads Gmail on the server, never misses mail the app has not downloaded): the claude.ai Gmail connector or any mail MCP
2. `app`: the mail app on this machine (Mail.app on macOS, classic Outlook on Windows) through `scripts/mail.mjs`
Writing interviews and deadlines to the calendar:
1. `app` (recommended: works in every scheduled run without a connector): the calendar app on this machine (Calendar.app on macOS, classic Outlook on Windows) through `scripts/calendar.mjs`
2. `connector`: the claude.ai Google Calendar connector or any calendar MCP
## 2b. Writing the choices
**`.mail.env`.** The person copies `templates/mail.env` to `.mail.env` in the workspace and sets `MAIL_USER` (the address), `MAIL_FROM_NAME`, `MAIL_READ` (`connector` or `app`) and `MAIL_TRANSPORT` (`applemail` on macOS, `outlook` on Windows) to the answers. Tell them what to put there and do none of it yourself; never read `.mail.env`. For the mail app, the person adds the account in System Settings > Internet Accounts on macOS (for Gmail, the Google entry with Mail switched on) and opens Mail once, or adds it to classic Outlook on Windows. When they say it is done:
```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/mail.mjs" check
node "${CLAUDE_PLUGIN_ROOT}/scripts/mail.mjs" test
```
`check` prints the sending transport, the address and the read path. `test` mails the account itself with the subject "autopilot-jobsearch mail test"; ask whether it arrived. With reading `connector`, also call the connector's inbox search once; with `app`, run `node "${CLAUDE_PLUGIN_ROOT}/scripts/mail.mjs" list --since 1d`. On macOS the first run makes macOS ask whether the terminal (or Claude) may control Mail; the person allows it. When a command prints an error, repeat it to the person; it names the fix.
With no mail app (Linux, or Windows without classic Outlook), `.mail.env` holds `MAIL_USER`, `MAIL_FROM_NAME` and `MAIL_READ=connector`, with `MAIL_TRANSPORT` left empty; skip `check` and `test`, set the calendar to `connector`, and tell the person that email-only postings are escalated in the sweep report for them to send.
**`.calendar.env`.** Copy `templates/calendar.env` to `.calendar.env` in the workspace and set `CALENDAR_VIA` to the answer (it holds no secret, so you may write it yourself when the person says so). For `app`, run `node "${CLAUDE_PLUGIN_ROOT}/scripts/calendar.mjs" calendars` (on macOS the first run asks whether the terminal or Claude may control Calendar; the person allows it) and ask which of the writable calendars to write to, for example:
1. the Google account's calendar, usually named after the address (recommended: the events reach the phone and every device through Google)
2. an iCloud or local calendar such as Home or Work
Put the name in `CALENDAR_NAME`. A Google calendar shows up in Calendar.app once the Google account is added in System Settings > Internet Accounts with Calendars switched on. For `connector`, call the connector once to list today's events. Then, for either:
```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/calendar.mjs" check
```
It prints the calendar path, and for `app` whether the calendar exists and is writable.
## 2c. Sources (one question)
1. Fill `sources.md` together now from the template, market by market (recommended: the sweep is only as good as its source list)
2. Later, before the first `/sweep`
## 3. Log in to the boards
For every source in `sources.md` with `login: yes`, open its login page in the Playwright browser and ask the person to log in there themselves, including any bot check. Wait for them to say they are done, then verify by loading a page that needs a session (the messaging page on LinkedIn, the profile page elsewhere).
## 4. Next steps
Tell the person the steps in this order, plus `sources.md` first if it was left for later:
1. Drop the current CV into `cv/old/` (any format; skip when there is none).
2. `/profile`: fills `profile.md` from that CV and asks only for what is missing.
3. `/cv`: builds `cv/base.md` from the profile and the old CV, asks only for what is missing or weak, renders the PDF and asks for approval.
4. `/profiles`: takes the approved CV to LinkedIn and the boards.
5. The first `/sweep` by hand; after that it runs twice a day (`docs/scheduling.md`).