Skip to content

@hanzo/app 0.3.111: pick your role, get its recommended skills, add them in one click - #79

Merged
Darkhorse7stars merged 1 commit into
mainfrom
feat/323-role-skills
Nov 21, 2026
Merged

Darkhorse7stars merged 1 commit into
mainfrom
feat/323-role-skills

Conversation

@Darkhorse7stars

Copy link
Copy Markdown
Member

Part of hanzo-inc/app#323.

What a customer sees

  • New customer: a card in the sidebar column asks "What do you do?".
    • It shows for an account made in the last two weeks that hasn't answered, in either Developer mode.
    • It is not an interstitial; the onboarding page stays retired.
  • The picker:
    • Roles: Director, Marketing, Education, Creative, Founder, Developer, Sales and support, Research and data, plus Something else and Skip.
    • Choosing a role lists that role's recommended skills, all ticked.
    • The customer unticks any they don't want, then presses Add N skills.
  • Existing customers: Customize's sidebar gets a "Skills for your role" row. hanzo.app's Settings will open the same RoleDialog; that change ships in the catalog bump.

How it is built

  • roles.ts is the one role→skills map, as data.
    • Every name is a brand-catalogue skill: /.well-known/agent-skills/index.json, the list Customize's Browse offers.
    • All 49 were checked against the live index.
    • A name the tool plane stops listing is left out at runtime, so a stale entry is never offered.
    • If the plane lists none of the catalogue (its skills app is away), the whole set is still shown.
  • Install is connect.ts install(names): one PUT /v1/tools/activation with skill_<name> for each ticked skill.
    • It is the same write the + menu's activate and Customize make, batched. No second install path.
    • Skills already on show as Added and are not sent again.
    • A member is told only an org admin can add skills, and Add is disabled. A 403 is said in the same words.
  • The answer is the person's: hanzo.onboarding.role through usePref (/v1/pref). It follows them to every machine, so no cloud change.
  • useSkills (/v1/tools/skills) supplies each skill's detail line and its on/off state.

Testing

  • pnpm build, pnpm typecheck and pnpm lint:design are clean.
  • npx vitest run passes in every package: app 97 files / 851 tests, glass 4, mod 5. The root import loads in Node.
  • New tests:
    • roles.test.ts: the role map's shape and names, answers, listed, picked and fresh.
    • connect.test.ts: one PUT with skill_ names; nothing sent when nothing is ticked; a 403 carries its status.
    • RolePicker.test.tsx: picks a role, unticks one, and checks the single install call. Also covers already-on skills, an absent catalogue, the member note, a refusal, and when the card shows or hides.
    • Sidebar.test.ts: the card sits in the column in both modes; the Customize row follows Customize's own tabs.
  • A browser test of the picker comes with the hanzo-inc/app bump (Playwright gate against the export).

…hem in one click

hanzo-inc/app#323. A new customer says what they do (Director,
Marketing, Education, Creative, Founder, Developer, Sales and support,
Research and data, or Something else, or Skip). Hanzo then lists the
catalogue skills recommended for that role. The customer unticks any
they don't want and adds the rest in one click: a single activation
for the org, the same write Customize and the + menu make.

- roles.ts: the one role-to-skills map, as data. Every name is a brand
  catalogue skill (49, checked against the live index).
- RolePicker.tsx: the picker, RoleDialog, and RoleCard. The card asks
  an account made in the last two weeks that hasn't answered. It sits
  in the sidebar column in either Developer mode.
- Sidebar: Customize gets a "Skills for your role" row.
- connect.ts: install(names), one PUT /v1/tools/activation.
- The answer is kept on the account (hanzo.onboarding.role via
  usePref, /v1/pref).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Darkhorse7stars
Darkhorse7stars merged commit a77b7bf into main Nov 21, 2026
6 checks passed
Darkhorse7stars added a commit that referenced this pull request Nov 21, 2026
hanzo-inc/app#323 and #462 asked for the same thing, and each got its
own picker:
- #79 (0.3.111): a sidebar card and a Customize row in this package,
  with a role-to-skills map of its own.
- #80 and @hanzo/build 0.2.135: build's Roles card in Chat's opening
  and in Customize > Skills.

#80 merged with the version #79 had already published, so npm never
got it. Shipping both would ask a new customer twice from two lists.

This takes out #79's picker (RolePicker, roles.ts, the sidebar card,
the Customize row, connect.ts install). What ships is #80's card,
@hanzo/build's Roles over its one map (WORK, RECOMMENDED). LLM.md now
says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Darkhorse7stars added a commit that referenced this pull request Nov 21, 2026
Part of hanzo-inc/app#323 and hanzo-inc/app#462. Takes out #79's picker (RolePicker, roles.ts, the sidebar card, the Customize row, connect.ts install). What ships is #80's card: @hanzo/build's Roles over its one map, in Chat's opening and Customize > Skills.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Darkhorse7stars
Darkhorse7stars deleted the feat/323-role-skills branch November 21, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant