Skip to content

feat(agents): add business-type and role packs to Agent Center's Ready to use - #1962

Merged
gkhngyk merged 18 commits into
ansvisor:mainfrom
cihan-gyk:feat/agent-center-packs
Nov 2, 2026
Merged

gkhngyk merged 18 commits into
ansvisor:mainfrom
cihan-gyk:feat/agent-center-packs

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Agent Center › Ready to use gets the business-type and role packs (Agents plan §8.1 and §8.3). Builds on #1948 (agents use the seven focus skills), #1917 and #1918, all merged; this branch has current main merged in. No migration.

The plan's rule is "no renamed copies". A pack agent exists only when it does a job the core agents don't.

New ready-to-use agents (19: 10 ready, 9 Soon)

Agent For State Skills
Product Answer Pages E-commerce ready /questions → /answerfirst → /compare
Shopping Feed Advisor E-commerce Soon: needs a catalog read –
Seasonal Prompt Planner E-commerce Soon: needs seasonal demand and /prompts –
App Store Listing for AI Mobile app Soon: needs App Store / Google Play data –
App Alternatives Watch Mobile app Soon: needs store data –
Feature-question Coverage Mobile app ready /features → /faq
Alternatives & Comparison Pages B2B ready /compare → /features
Review-site Presence B2B Soon: needs review-site data –
Integration Questions B2B ready /questions → /faq
Reviews & UGC Watch B2C Soon: needs review sites, Reddit and YouTube –
Local & Store Locator B2C Soon: needs local listings data –
Social-proof Pages B2C ready /faq → /facts
Content Plan Builder Content Soon: needs an opportunities skill –
Narrative & Sentiment Watch Brand & PR ready, Ask me first /features → /wrongclaim
Source Outreach List Brand & PR ready, Ask me first /listings
CEO Brief Founders & leaders ready /report → /gaps
AI Traffic → Signups Growth Soon: needs an AI traffic skill –
Unmet Needs Miner Product Development ready /gaps → /questions
Market & Source Finder Business Development ready /markets → /listings

Existing agents only gain role tags:

  • Content Freshness: content;
  • Prompt Portfolio: aeo;
  • Technical Fixer: aeo and developers.

The catalog now has 39 agents: 18 ready, 21 Soon. Reports and reads run in Auto. Outward-facing work and fixing wrong claims run in Ask me first.

What changes on the page

  • New preset fields businessTypes and roles, in the Zod schema and tests:
    • business types are the product's site types (b2b, ecommerce, b2c) plus app;
    • roles are Menu access work areas (leaders, aeo, content, brand, growth, product, bizdev, developers, analytics).
  • Filters: "Business type" and "For your role" sit beside Goal.
  • Order: agents that fit the active brand's site type, or the person's work areas, come first. The order is ready fits, other ready, Soon fits, other Soon.
    • Fits carry a green "For your site type" / "For your role" tag, with a dark: variant.
    • Work areas are read with the new readMyWorkAreas (profiles.work_areas).
    • The site type comes from the brand store, or the siteTypeOf guess when it isn't set.
  • Cards: a long formula (three skills and a mode) wraps instead of cutting the mode off.
  • Help: help/chat/agents.md gets "Agents for your site and your work".

Follow-ups, approved by the owner (separate PRs):

  • "Mobile app" as a site type, so the app pack can show "For your site type" (00456).
  • Agent Center in the AEO/GEO & Audit, Developers and Analytics work areas' menus.

Related issue

None. Agents plan §8.1 and §8.3.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. With CHAT_AGENTIC=true, open Agent Center › Ready to use on an e-commerce brand. Product Answer Pages comes first, with "For your site type".
  2. Pick Business type › B2C: Social-proof Pages, then two Soon cards.
  3. Pick For your role › Content: Content Freshness and Content Plan Builder.
  4. Unit tests:
    • every preset's skills are agent skills;
    • Soon presets name what they need;
    • no pack agent repeats a core agent's skill chain;
    • roles and site types are valid;
    • filters, the default order, readMyWorkAreas and the page.

Checked in the browser at 1024px, light and dark: the filters, the fit tag, B2C and the wrapped formula. The user approved the screens.

Checklist

  • Branch follows the naming convention
  • Commits follow Conventional Commits
  • yarn lint passes (0 errors; 7 old warnings in files this PR doesn't touch)
  • yarn typecheck passes
  • yarn format:check passes
  • Changes are focused — one concern per PR
  • Help article updated under help/ (or no user-visible change)

CI passed on this branch (5e35d59), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/41347354058): schema is up to date; web format:check, lint, typecheck, all tests and yarn build pass; server lint, format:check and all tests pass.

🤖 Generated with Claude Code

cihan-gyk and others added 18 commits October 31, 2026 23:20
…son's work areas (W2-22)

CHAT-24 §3: the focus picker opens once on the first Chat Home (marked
shown as it opens) with the areas the person's work areas suggest, Home's
pill reopens it, and Settings › General › Your focus keeps changes at
once. Focus only changes suggestions; no migration (00400 focus, 00408
focus_prompted_at).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main hid Answer language, notifications and "Thought for N s" in Chat
Settings (ansvisor#1903). Keep them hidden and keep the new Your focus row, in
the component, the page comment and the help article.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…uestions and a competitor's rise (W2-23a)

CHAT-24 §4: For you now takes the picked areas' shortcuts in turn (five
beside Ask anything, CHAT-08 v2's six chips; the three jobs keep their
counts and rules), Start with a question offers four in the workspace's
own competitor, topic and market or their general wording, the line under
the greeting says a competitor's mention rate rose 3+ points this week
when nothing needs the person, and the / menu lists the focus's skills
first. No migration.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… own settings

saveChatFocus, skipChatFocus and markFocusPrompted write only the person's
own chat_user_prefs row and cost nothing, like saveChatGeneralSettings, so
they join the read-only coverage test's open list with their reasons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n cards

Agent Center opens on Ready to use (?tab=ready|yours); Your agents keeps
the Mine, Workspace, Paused and Archived filters. Ready-to-use agents are
presets kept as data (lib/chat/agents/presets/*.json, read through
catalog.json): skills from the library, triggers New agent offers, a mode,
connections, and for Soon cards what they wait for. Use this agent opens
New agent filled in (?preset=); nothing is saved or turned on by itself.
A mode the plan keeps closed shows its lock (planGateLock), and opens on
Auto, ask before changes. Analysts and Agency partners see the cards with
the read-only line. Goal is the only filter until a preset carries a
business type, industry or role. Help article updated.

The presets ask for connections as ansvisor#1909 defines them: any CMS (Required
for Ready to Publish, Optional for Citation Win-back and Task Finisher),
any catalog source for AI Shopping Readiness, Search Console Optional.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… Home (W2-23b)

Adds /questions, /features, /gaps, /markets, /listings, /rivals and
/audit-fix (CHAT-24 §5) to the skills library, so it holds twenty-one.
Chat Home shows up to four of them under "New for you" for the picked
focus areas, and the / menu lists each area's new skills right after
its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… pill is cancelled

From the pill the picker's way out still saved an empty focus, so changing
your mind wiped the focus you had. Opened from the pill it now reads
Cancel and only closes; Skip for now stays the first opening's answer.
New agent's skill step and its follow-on list offered only the fourteen
skills of W2-04. The focus areas' seven (W2-23b: Buyer questions, How AI
compares us, No clear leader, Who AI recommends by market, Listing gaps,
Rival brief and Site audit fixes) are in Chat's library, so an agent can
run them too.

- agent-skills.ts: the seven join ANSVISOR_SKILLS in the library's order
  (SKILL_ORDER). Their SKILL.md files read only Ansvisor's own data and
  public pages, and save page work as drafts, so none needs a connection:
  /listings reads the sites AI cites, not a catalog; /audit-fix writes a
  robots or CMS change for the person to make.
- en.json: their titles under chatAgents.skills, as their SKILL.md says.
- Tests: agent-skills.test.ts (every library skill, in order, titled as
  its SKILL.md, the seven with no connection), syncConnections, and the
  form's skill grid and follow-on list.
- Help: agents.md says which skills an agent can use.

Stacked on ansvisor#1918 (W2-23b).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e' into feat/agent-center-packs

# Conflicts:
#	help/chat/agents.md
…y to use

Ready to use offered the core agents only. AGENTS plan §8 adds packs by
business type (§8.1) and role helpers (§8.3), recommended to the person
on day one. This adds them as presets, with the brand's site type and the
person's work areas deciding what comes first.

- Presets: businessTypes are the brand's site types (b2b, ecommerce, b2c,
  as brands.site_type) plus app, which brand settings don't offer yet;
  roles are the work areas of Menu access (00374). The 12 business-type
  agents and 7 role helpers join the catalog: 10 ready, made of skills an
  agent can use today (the 14 and the 7 focus skills), and 9 Soon, each
  saying what it waits for (app store data, review site data, a catalog
  read, a seasonal, content plan or AI traffic skill, local listings).
  The §8.3 helpers that are core agents (Freshness, Prompt Portfolio,
  Crawler & Technical Fixer) get the role on their core preset instead of
  a copy. Reports and reads run on Auto, outreach and wrong-claim fixes
  on Ask me first.
- Ready to use: Business type and For your role filters beside Goal. The
  agents made for the site type of the brand on screen, or for one of the
  person's work areas, come first among the ready ones and among the Soon
  ones, marked For your site type or For your role. The page reads the
  person's work areas (profiles.work_areas).
- Tests: every preset's skills are ones an agent can use, Soon ones say
  what they need, no pack agent is a core agent's skills under another
  name, the tags follow the site types and work areas, the filters and
  the default order; the page passes the work areas.
- Help: agents.md covers the packs, the filters and the marks.

Stacked on feat/agents-focus-skills (on ansvisor#1918) with ansvisor#1917 merged in.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tting the mode off

A pack agent with three skills pushed the mode chip past the card's edge
("Auto, ask before chan…"). On a card the formula chips wrap to a second
line; the agent list's one-line rows are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…kills

# Conflicts:
#	help/chat/agents.md
#	web/src/components/chat/agents/agent-form.test.tsx
The 14 add/add and content conflicts came from the old merge base
(de93d9d), which predates ansvisor#1917. Resolved as a three-way merge on the
branch's real base, afba1fc: the tree is c4c9daf plus the packs diff
(afba1fc..5db5c35). The ansvisor#1917 files were unchanged on main, so the
packs changes go in as they were; help/chat/agents.md and en.json merge
main's own-key and Resume additions with the packs sections and keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gkhngyk
gkhngyk merged commit 46d64d0 into ansvisor:main Nov 2, 2026
6 checks passed
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.

2 participants