/hq:setupfrom Personal AI HQ
Onboarding for the HQ plugin. Interviews the user (name, company, team, role, day to day, goals, tools, writing samples, languages, where tasks live), picks a role adapter, proposes areas and a tie-break, maps colleagues and their identities, creates the task board in the chosen tool (Asana, Notion, Monday, Trello or GitHub Projects), copies the workspace template to a folder, fills in the rules, context and tool routing, starts a local git repo, creates the scheduled tasks, and offers a first brief. Use when the user says "setup", "set up my AI workspace", "onboard me", "install HQ", "get started", or runs /hq:setup.
Ships in Personal AI HQ. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Goal: a working private workspace in about 20 minutes. Never push anything anywhere. Never put the workspace inside a synced folder (iCloud Drive, Dropbox, OneDrive, Google Drive, or an Obsidian-sync folder), because sync tools corrupt git repos and expose private notes.
~/.config/hq/workspace, or the old ~/.config/personal-ai-os/workspace if that is missing. If it exists and the folder has CLAUDE.md, ask: continue with that workspace, or create a new one. Continuing means resuming at the first incomplete stage, found by these checks (stop at the first that fails, say which one, and run from there):
grep -rn '{{' "<workspace>" --include='*.md' finds nothing outside meta/task-store.md and meta/chat-cursor.md is filled. Failing: steps 1 to 5 (reuse answers found in context/).meta/task-store.md has a store, a board_url and no {{, and one read through the adapter works. Failing: step 5b.<workspace>/.git, .hq-version and .hq-manifest.json exist. Failing: step 6.python3 --version and git --version must work. If not, tell the user what to install and stop.Start with one line: "I'll ask 10 short questions (about 12 minutes). Say skip to pass on any, or demo to see sample pages first, no connectors needed." If the user says demo, run the demo skill, then come back.
Rules for the interview:
skip is always allowed. A skipped answer becomes "to confirm" in the files; never invent one.The ten questions, in this order:
research/). Also: is there a company data gateway? Optional. Then ask where captures come from (a DM to yourself in the work chat, a private drop folder, a voice notes app) and any fixed handling rules ("receipts go to finance"). [none] If a DM to yourself is used, ask: "The morning brief can send you one DM to yourself with the headline and your top items (never a file path). A DM to yourself that you set up here counts as authorised; nothing else is sent without your yes. Send it? [yes]"Before writing anything, show a short summary (name, role, company, team, goals, languages, tools, task store, role adapter, areas, close team, workspace folder) and ask "Write this? [yes]". Change what they correct, then continue.
Choose from ${CLAUDE_PLUGIN_ROOT}/template/adapters/: product-manager, engineering-lead, sales-cs, founder-exec. Propose the best fit from the role and tools, and let the user pick. If none fits, use the closest and say what differs. Read the adapter: it gives tool defaults, routine emphasis, glossary seeds and typical meeting types.
Every task carries one Area. Propose the set; the user confirms.
ideas/, not in the task store."Claude needs to know who your close team is and who each person is in every tool, so briefs, 1:1 prep and "waiting on" lines name the right person. Follow routines/people.md in the workspace template (${CLAUDE_PLUGIN_ROOT}/template/workspace/routines/people.md, copied in step 5); the adapter's "Which people matter" section says which relations count for this role. Ask now, resolve after step 3 when the connectors work.
unknown otherwise.close: true only for the people the user confirmed. Remove the sample folder context/people/example-jordan-rivera/ (git rm -r) once the user's own profiles exist.A tool that is not connected yet leaves its ids empty; the first routines/people.md run fills them later.
For every tool named in step 1, say which connector to enable and how, one line each:
/mcp lists connectors; add a missing one with claude mcp add (see the tool's own docs) or install the tool's plugin from /plugin.gh CLI), Notion, HubSpot, Miro, Granola, Fireflies. The connector for the task store chosen in question 10 is required for step 5b. If it is missing or fails its test, say which one to switch on and how, finish the other steps, and tell the user to run /hq:setup again once it works (step 0 then continues at 5b). There is no local task file.Test each enabled connector with one read (today's calendar, one mail, one ticket) and list what works and what is missing. Ask which connectors the brief cannot run without (default: calendar and the task store) and write them as a line Critical: <list> under "Required sources" in CLAUDE.md. A missing non-critical one is not a blocker: routing says "none" and routines skip it; a missing critical one is flagged first, and the run asks once whether to wait or go ahead (CLAUDE.md, "Required sources"). Never claim a connector exists without checking that its tools are available in this session.
Default ~/ai-workspace. Check the path: it must not be under ~/Library/Mobile Documents, ~/Library/CloudStorage, ~/Dropbox, ~/Documents when Documents is synced, or any other synced folder. If it is, propose ~/ai-workspace instead. Refuse to overwrite a non-empty folder.
cp -R "${CLAUDE_PLUGIN_ROOT}/template/workspace/." "<workspace>/".
${CLAUDE_PLUGIN_ROOT} is not resolved (run echo "${CLAUDE_PLUGIN_ROOT}"; empty means it is not, which can happen in Cowork), locate the template next to this file: the template/workspace folder two levels above this SKILL.md. If you cannot find it, ask the user for the folder where the plugin is installed (in Claude Code usually under ~/.claude/plugins/) or where they unzipped it.grep -rn '{{' "<workspace>" --include='*.md'. Fill:
CLAUDE.md: {{NAME}}, {{ROLE}}, {{COMPANY}}, {{LANGUAGES}}, the whole tool routing table ({{TOOL_*}}, one product per row, "none" where there is none, "browser" for no connector; the gateway row says "none" unless step 1 named one), {{INBOX_CUTOFF}} (today's date), {{RECURRING_INPUTS}} ("None yet." unless the user named some), {{REF_*}} (where to look up company, handbook and numbers; "ask the user" if unknown), {{PHONE_*}} from step 1 question 8 (captures) (write "not used" for options they skipped). Add the handling rules from step 1 question 8 (handling rules) as a short section "Standing handling rules".context/me.md: name, company and description, team, role, day to day, languages; {{NEVER}} from the user's own rules (ask for 1-3 things Claude must never do; always include "send or publish anything without asking").context/goals.md: the goals, each with its source link.context/glossary.md: the adapter's glossary seeds plus company terms the user mentioned, each marked "to confirm" until confirmed.context/writing-style.md: {{STYLE_RULES}} from the writing samples: tone, length, greeting and closing, bullets, language per channel, words used and avoided, each rule with a short quote. Mark the file status: draft until the user confirms.context/places.md: the workspace path, where code and other documents live, and {{SHARED_DEST}} = where shared versions go (Google Drive, Notion, Confluence, or "none, no shared destination yet").meta/chat-cursor.md: {{PHONE_WORK_CHANNEL}} (or "not used") and {{SELF_DM}} (yes only when the user said yes to the brief DM to themselves, else no).{{SETUP_DATE}} = today.context/me.md with the chosen adapter's routine emphasis and typical meeting types.context/people/<slug>/profile.md from the schema in routines/people.md, with an empty records/ next to it (the confirmed relation, contract, team, areas, close, aliases, the ids resolved in step 2c and one sources line per id; status: draft). Everything the user did not confirm stays empty.context/areas/index.md from step 2b ({{AREAS_TABLE}} rows | Area | definition | examples |, {{TIE_BREAK}} as the numbered list) and one context/areas/<slug>.md per area (frontmatter type: topic, summary, status: draft; body: definition, examples, people, recurring meetings; each marked "to confirm" where you guessed).meta/task-store.md may still hold {{ (step 5b fills it).mkdir -p ~/.config/hq && printf '%s\n' "<workspace>" > ~/.config/hq/workspace.CLAUDE.md itself.research/)The template copy already created <workspace>/research/ with CLAUDE.md (the rules), _template/ (the topic skeleton: README with the CURRENT DOCUMENT callout, status, question, output index; notes.md; working/; output/ with _archive/; data/) and _archive/. Documents never live anywhere else, so do not ask where to keep them. Check those three exist; if the copy skipped them, copy them from ${CLAUDE_PLUGIN_ROOT}/template/workspace/research/.
cp -R "research/_template" "research/YYYY-MM-DD - Initiative Name" (today's date, name in Title Case with real spaces), then fill its README: title, question (the initiative's outcome), Status: active, Started, and "Earlier work" with any document the user named (by name, not path, unless it is a local file the user wants listed).research/2026-01-15 - Example Acme Pricing Review/ once the user's first topic exists (or right away if they have no initiative yet and say so).Topic folder: <name> into each Top of mind task.output/ frontmatter, versioning and the shared-versions rule are in research/CLAUDE.md. With Drive or Notion as the shared destination, the same structure works as subfolders or subpages there: one per topic, with output documents inside. Local stays the home.Read routines/stores/<store>.md (the adapter for the tool from question 10) and routines/stores/README.md.
HQ · fields are a prerequisite, so first run "Check first" in routines/stores/asana-fields.md (found: add them to the board and record the ids; any missing: stop, tell the user exactly which ones to create first and follow "Create the missing fields" there, then re-check; continue only when all eight exist; description lines instead only if the user explicitly says to skip the fields). Area is never a column: it follows from the task's initiative (its project description), else the Area: description line. Other tools: look for existing fields or columns that match Priority, Size, MoSCoW, Impact, Confidence, Ease, ICE and Source (assume none and no value set), add and map those found, and make every other property a description line; never create a field or option. Create each confirmed initiative as the adapter's container (description: outcome, end date, OKR from the goals if any, Topic folder: <name> from step 5a, shared links; never a local path) plus its Top of mind task.meta/task-store.md: store, board_name, board_url, board_id, owner_id (the user's own id in the task tool, from the connector's current-user call; only comments by this id count as instructions later), fields (for Asana the eight HQ fields with their ids and option ids; for other tools only the existing fields found) and initiatives (name to container id and url; each initiative container is created by the adapter's "Create an initiative project", which for Asana adds all eight HQ · fields to it), sections, {{FIELD_MAPPING}} (value mapping of each existing field, or "none: every property is a description line"), {{AREA_VALUES}} and the other value lists, {{SAVED_VIEWS}} (the adapter's recipe, or "none"). Re-run the grep: no {{ may remain anywhere.<plugin version> is version in ${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json. .hq-version tells /hq:upgrade which version the workspace is on; .hq-manifest.json records the system files as installed, so an upgrade can tell your edits from untouched files.
cd "<workspace>"
python3 scripts/build_index.py
printf '%s\n' "<plugin version>" > .hq-version
python3 scripts/hq_sync.py manifest .
git init
git add -A
git commit -m "setup: initial workspace"
If the commit fails because git does not know who you are, ask for a name and email and set them for this folder only (git config user.name, git config user.email), then commit again. Never add a remote, never push. If views/template.html is missing, say that the view pages need the files synced into the template (the brief still works as a note).
Scheduled tasks are only prompts. Create these four tasks yourself, inside the user's workspace project (Cowork: the project that points at the workspace folder; Claude Desktop: the workspace folder). Prompt for each: "Follow routines/.md".
| When | Prompt |
|---|---|
| Weekdays 7:27 | Follow routines/brief.md |
| Monday 6:57 | Follow routines/weekly.md |
| Friday 15:57 | Follow routines/review.md |
| First Monday of the month 7:57 | Follow routines/refresh.md |
Use the scheduled-task tool available in this session. Odd minutes avoid the busy top of the hour. If creating a task fails or no such tool exists, print each one as a ready-to-paste block (time, then the prompt). Cowork: the user adds them under Scheduled > New task, inside their project. Claude Code: a cron or launchd entry that runs claude -p "Follow routines/<name>.md" inside the workspace folder (a cloud routine cannot read a local workspace). Say clearly that local tasks only run while the computer is awake and, in Cowork, the app is open.
Show this block, filled in:
You're set. Your workspace:
<path>(a local git repo, never pushed) Your tasks:<board url>in<tool>, with the areas<list>Your documents:<workspace>/research/, one topic folder per initiative:<list of folder names>(shared versions go to<destination>) Try first:/hq:brief(today's brief),/hq:task(what to do next),/hq:inbox(what needs you and what you wait on) Still missing: each connector that did not work, with how to add it (Claude Code:/mcp; Cowork: Settings > Connectors). Everything else works without it. Schedule: the tasks you created (or the ones to add by hand), with times. They only run while the computer is awake and the app is open.
Then offer to run /hq:brief now. If the user agrees, run it. Afterwards ask what was wrong or missing and log each answer to meta/friction.md.
context/ is a draft until the user says yes (workspace rule 1).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cdudek/personal-ai-hq --plugin hq10 skills in this plugin
/briefBuilds the briefing: the daily brief (calendar, meetings, mentions, mail, tickets, code reviews, task store, daily page), the weekly prep on Monday (task re-sort, week meetings, project and code status, weekly page), or a mid-day update after new input. Use when the user says "brief", "morning brief", "start my day", "good morning", "weekly", "plan my week", "Monday prep", "sync", "update brief" or "new priority"./debriefRuns the evening debrief: plan vs actual, a short reflection, and clearing the inbox, written to the day note. Use when the user says "debrief", "end of day", "wrap up my day" or "evening review"./demoRenders the sample daily, weekly and review pages with fictional data (no connectors, no setup needed) and opens them, so you can see what the system produces. Use when the user says "demo", "show me an example", "what does the brief look like", "preview the views", or wants to see the pages before setting up.Other plugins' skills for the same job