/hq:upgradefrom Personal AI HQ
Updates the HQ plugin to the latest release and brings the user's workspace up to it. Shows the changelog between the two versions, then updates only system files (routines, view code, scripts, folder rule files) and never user data. Files the user edited are shown as a diff and only changed on a yes. Use when the user says "upgrade", "update HQ", "new version", or after a skill says an HQ update is available.
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.
Follow ${CLAUDE_PLUGIN_ROOT}/skills/_shared/version-check.md first for the workspace lookup, but you are the one skill that acts on the result. Never run this unasked; it is the one command a user needs for updates.
routines/, scripts/, views/ code (template.html, app.css, app.js, vendor/, icons/, CLAUDE.md, DESIGN.md, README.md), SYSTEM.md, and the CLAUDE.md rule file in each top-level folder (not the root one).research/CLAUDE.md and research/_template/ (the topic skeleton).research/ (everything except CLAUDE.md, _template/), root CLAUDE.md, index.md, context/, inbox/, daily/, weekly/, journal/, meta/, decisions/, ideas/, principles/, lists/, sources/, views/data/ and every rendered view page. Your tasks are not in the workspace: they live in your task store (meta/task-store.md).If <workspace>/.hq-author exists, this workspace is the author reference. /hq:upgrade then updates only the plugin (step 0), says "Plugin updated. This workspace has a .hq-author file, so no template files were synced." and stops. It never runs hq_sync.py apply (the script refuses anyway) and never writes .hq-version.
The claude plugin CLI is not available in Cowork's cloud session. Update the plugin there under Customize > Plugins (open the hq plugin and update it, or re-add the marketplace cdudek/personal-ai-hq), start a new session, then run /hq:upgrade to bring the workspace along.
Migration order (stated once). The migrations below are printed newest first. Run the ones that apply from the oldest to the newest, never in the printed order, each fully before the next. The order matters because later ones need what earlier ones establish: 0.2.0 -> 0.3.0 creates the task store (nothing that touches tasks runs before it); 0.3.2 -> 0.3.3 creates the initiative containers; 0.3.5 -> 0.3.6 establishes the eight Asana HQ · fields; 0.3.6 -> 0.3.7 needs both of those, and adds the fields to every initiative container; 0.3.7 -> 0.3.8 and later need the containers. A step that needs a prerequisite that is missing (no store, no valid HQ fields) stops and says which one.
Update the plugin first. Installed version Y = version in ${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json. Latest Z: fetch https://raw.githubusercontent.com/cdudek/personal-ai-hq/main/.claude-plugin/plugin.json (curl -fsS --max-time 3; on failure assume Z = Y). If Z is newer than Y and you can run Bash with the claude CLI, run claude plugin marketplace update cdudek, then claude plugin update hq@cdudek. If the CLI says a restart is needed (it does), say: "HQ updated to Z. Restart Claude Code, then run /hq:upgrade again to bring your workspace along", and stop. If you cannot run the CLI, stop and tell the user how: in Claude Code the two commands /plugin marketplace update cdudek and then updating hq in /plugin; in Cowork Customize > Plugins (see "Cowork" above).
Find the workspace (shared file). If it has .hq-author, stop as described in "Author workspace". Installed version Y = version in ${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json; workspace version X = first line of <workspace>/.hq-version (missing = 0.1.0). If X is not older than Y, say "already on Y" and stop.
Show the CHANGELOG.md entries from the plugin folder for every version after X up to Y, short.
Classify the system files. T is ${CLAUDE_PLUGIN_ROOT}/template/workspace:
python3 "<T>/scripts/hq_sync.py" plan "<T>" "<workspace>"
Statuses: new (file is new in the plugin), safe (you did not edit it), edited (you changed it), same, obsolete (the plugin no longer ships it). Without a .hq-manifest.json (a workspace from before 0.2.0) every differing file is edited: show the diff for each and let the user decide.
Apply the safe and new ones at once, and say what changed in one line per file group:
python3 "<T>/scripts/hq_sync.py" apply "<T>" "<workspace>" safe
For each edited file show diff -u <workspace file> <template file> and ask: keep mine, take the new one, or merge. Take the new one with hq_sync.py apply "<T>" "<workspace>" <relative path>. For obsolete files ask before deleting. Never decide for the user.
Run the migrations below for every version between X and Y that has one, oldest first, before step 7. A version without a migration needs nothing beyond step 4.
Changes to the root CLAUDE.md or context/ that the new version expects are listed in the changelog entry; show them as a proposal and apply only on a yes.
Write Y to <workspace>/.hq-version, then python3 scripts/build_index.py, then commit in the workspace: git add -A && git commit -m "upgrade: X -> Y". Never push.
If views/data/ has JSON from the old version, re-render the latest daily and weekly with python3 scripts/render_view.py <file> and report any LINK CHECK or LABEL CHECK lines.
Runs when X is older than 0.4.0. The code arrives with the sync in step 4. Nothing is written to the task tool or to your own files before the user confirms.
routines/stores/asana-fields.md on all eight fields, now including type and options (Source must have all 17 values, Size XS-XL). Invalid ones follow "Repair an invalid field"; record the result in meta/task-store.md..gitignore: append research/_archive/*/data/* and !research/_archive/*/data/.gitkeep if missing, so archived topics keep their data out of git.owner_id: to meta/task-store.md (the user's own id in the task tool, from the connector's current-user call). Only comments by this id are instructions.self_dm_notice: yes|no to meta/chat-cursor.md. Without the line nothing is sent.scripts/build_index.py arrive with the sync in step 4. List context/people/*.md (not index.md). Show ".md -> /profile.md" for each and ask "Move these N profiles? [yes]". On yes: create the folder and git mv context/people/<slug>.md context/people/<slug>/profile.md (history is kept). Fix [[people/<slug>]] links (grep) to [[people/<slug>/profile]]. For each close person offer, after a yes, to add the two new empty headings "Personality and how they work" and "How I write to them" to the profile.meta/drafts.md has entries, split it into meta/drafts/YYYY/MM/YYYY-MM-DD.md by the date in each ## YYYY-MM-DD HH:MM <channel> to <recipient> heading, without changing any text (each entry keeps its heading and body; no ids or outcomes are invented for old entries). Show the target files and ask "Split meta/drafts.md like this? [yes]". On yes write the files and git rm meta/drafts.md. If it has no entries, git rm it and create meta/drafts/.gitkeep.python3 scripts/build_index.py, so context/people/index.md lists role, relation, close and the last record date.CLAUDE.md (step 7): the sentence about the [Brief] DM exception in rule 7, and a Critical: <connectors> line under "Required sources" (default: calendar and the task store), and for people and drafts: rule 6 ("Every draft is logged before it is shown", ledger path, outcome loop), the "People" section (folders, records, privacy rules), the people path in the naming list and the [[people/<slug>/profile]] link form, all as in the new template CLAUDE.md.Runs when X is older than 0.3.10. The new routines, adapters and view code arrive with the sync in step 4. Nothing is written to the task tool before the user confirms.
What: or no State: line. Show 3 as a sample: for each, read its source (the linked mail, chat thread, ticket, PR or document) through the connectors and draft the card from what the source says. Never invent a fact; a line the source cannot support says "unknown, ask" instead.Waiting on: and Closed when: lines, and show a count. On no leave the tasks as they are; the brief completes the cards task by task when it reads their sources.what, state, decision.Runs when X is older than 0.3.8. From now on Area is never a custom field (routines/stores/README.md, "Area (one rule, every tool)").
meta/task-store.md, remove Area from fields: and from "Field mapping" (show the lines first, edit on a yes). The old field stays in the tool, unused; Claude does not delete it.initiatives:, make sure the container's description has an Area: <name> line: propose the area from the tie-break (context/areas/index.md) and the container's tasks, show the list ("Add the Area line to these N initiatives? [yes]"), write it through the adapter on a yes.Area: ... on tasks that have an initiative are left as they are (harmless; the container wins).Runs when X is older than 0.3.7 and meta/task-store.md has store: asana. Initiative projects made before 0.3.7 hold none of the eight HQ · fields, so their tasks show other columns than the board.
initiatives: in meta/task-store.md.fields: to the project through the connector (a field already on it is skipped). Show the list first and ask "Add the HQ fields to these N initiative projects? [yes]".Runs when X is older than 0.3.6. The new routines/, view code and routines/stores/asana-fields.md arrive with the sync in step 4. Standard connector for everything except the optional token path.
routines/stores/asana-fields.md: "Check first", then "Create the missing fields" for any of the eight HQ · fields that are missing. Continue only when all eight exist (description lines instead only when the user explicitly says to skip them).meta/task-store.md (fields); update its property table to the new template rows (Priority, ICE, MoSCoW, Size XS-XL). An existing field that fails the spec check (wrong type, missing options such as XS or XL on HQ · Size, or a short Source list) follows "Repair an invalid field" in asana-fields.md; never write to it before it is valid.routines/brief.md, "ICE scoring"): show 3 as a sample and ask "Score all N tasks like this? [yes]". Never overwrite a Priority.Runs when X is older than 0.3.3. The new meta/task-store.md shape, routines/stores/* and the routines arrive with the sync in step 4. Nothing is written to the task tool before the user confirms. Only the standard connector is used: no API token, no scripts, no browser, no manual step.
meta/task-store.md fields has ids) and which initiatives exist (Initiative field values, plus the Top of mind tasks).🤖 <Initiative>, Notion page, Monday board, Trello card, GitHub milestone) with a description from its Top of mind task and research/ README (outcome, end date, OKR, Topic folder: <name>, links), attach its tasks to it (the Asana HQ · fields are added to every initiative project later in this run, by migrations 0.3.5 -> 0.3.6 and 0.3.6 -> 0.3.7, because they do not exist yet here) (Asana: add the task to the project; others: the Initiative: line or relation). Show the list, one line per initiative with its task count, and ask "Create these N initiative containers and attach the tasks? [yes]".Area: ... · Size: ... · Source: ... · Priority: ..., Waiting on: <name>, Closed when: <scenario>) on each task, keeping the existing text below. Priority keeps its field if it is an existing workspace field (record the mapping), else it becomes a line. Show a sample of 3 tasks first and ask "Convert all N tasks like this? [yes]".meta/task-store.md (fields: only the existing fields still used; initiatives; the "Field mapping" section). Report differences and fix them first./hq:brief once so the pages carry the new data.research/)Runs when X is older than 0.3.2. research/CLAUDE.md and research/_template/ arrive with the sync in step 4 (system files). Nothing is moved or deleted before the user confirms the mapping.
<workspace>/research/ has no _archive/, create it (mkdir -p research/_archive && touch research/_archive/.gitkeep). Append research/*/data/* and !research/*/data/.gitkeep to the workspace .gitignore if missing.context/projects/*.md and context/topics/*.md (ignore index.md). For each page propose a topic folder: an initiative of the task store gets research/YYYY-MM-DD - <Initiative>/ (date = the page's first date or today), a standalone project or topic gets its own folder. Show the mapping as a list (page -> folder, "merge" or "new") and ask "Use this mapping? [yes]". Apply the user's corrections.research/_template to the new name, then merge the page into the README: the page body goes under "Where it stands" / "Decisions" / "Key findings" (keep every fact and its source), links to documents go under "Shared links" (shared URLs) or "Earlier work" (named folders elsewhere, by name). Fill question, status active, started. Never copy a local path into "Shared links".Topic folder: <name> to its Top of mind task description through the adapter (Documents in the Write section) after a yes.git rm -r context/projects context/topics (content stays in git history). Fix every [[projects/...]] and [[topics/...]] link (grep) to point at the topic folder, and propose the new root CLAUDE.md rows ("Documents" section, research/ folder row, context/ row without projects and topics) as a proposal (step 7).Shared versions: <answer> to context/places.md.Runs when X is older than 0.3.1. routines/people.md arrives with the sync in step 4 (a system file). context/people/* is yours and is never overwritten (since 0.4.0 each person is a folder <slug>/profile.md; see that migration).
context/people/ that lacks the ids block, show the new frontmatter (see routines/people.md) as a proposal and add it on a yes, keeping the body. Do not invent ids or relations.close: true, offer to run routines/people.md mode Map now (propose the close team from evidence, resolve identities). The root CLAUDE.md gains a "People" section with the privacy rules: show it as a proposal (step 7).Runs when X is older than 0.3.0 and <workspace>/board.md exists (or meta/task-store.md has no store). Nothing is written to the task tool or deleted before the user confirms the mapping.
routines/stores/<store>.md (new in this version, copied in step 4) and test the connector with one read.board.md. Every task line (- [ ] <task> · id · P0-P3 · size · domain · status · closed when · source · link · added), its indented notes, the Top of mind initiatives and the domains map. Tasks under "Done (this week)" are listed but not migrated.${CLAUDE_PLUGIN_ROOT}/skills/setup/SKILL.md), with the role adapter's defaults and the old domains as the starting point. Write context/areas/index.md and context/areas/<slug>.md from the template.closed when -> the Closed when: description line; link and notes -> the task description; added -> a first comment "migrated from board.md, added YYYY-MM-DD".
Ask "Migrate these N tasks like this? [yes]" and apply the user's corrections.meta/task-store.md from the template (copy it from <T>/meta/task-store.md first), then create the tasks. Tag every task ai.board.md only after the verify passes and the user says yes: git rm board.md. The old content stays in git history. Remove every other mention of it in the user's own files as a proposal: the root CLAUDE.md rows and rule 4 (see the "Task store" section in the new template CLAUDE.md) and context/ pages that link it./hq:brief once so the pages carry task links; old data files with domain still render with a LABEL CHECK note.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