Skip to content

feat(chat): Onboarding & Help is ready to use: it walks Getting started and recommends 3 to 5 agents (AGENTS #11) - #2136

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/onboarding-help-agent
Nov 5, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/onboarding-help-agent

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

AGENTS plan #11, Onboarding & Help, in its small version (scope approved by the owner).

In Agent Center › Ready to use, this preset showed Soon ("Needs approved Help articles and the /setup skill"). It is now ready. A run does two things:

  1. It walks the brand's open Getting started steps.
  2. It recommends 3 to 5 ready-to-use agents that fit the brand's site type and the person's work areas. Each one links to its card in Ready to use (AGENTS plan §8: "recommends 3–5 agents for them on day one").

It never turns an agent on. That stays the person's click: Use this agent, then Turn on. Questions about Ansvisor are still answered from the approved Help articles (W1-30), as in any chat.

The preset (presets/onboarding-help.json)

  • Skill: a new /setup (Setup guide). A preset can't use the hidden /start playbook, for two reasons:

    • A ready preset's skills must be in the skills library and in New agent's list (catalog.test.ts). Playbooks are kept apart in SHORTCUT_PLAYBOOKS.
    • At run time an agent loads its skills with use_skill, which never offers a playbook. A playbook loads only for a message sent with its shortcut.

    The plan also names /setup as a new skill. /start is unchanged.

  • Trigger: none (Manual only, Run now). The plan's triggers, a new brand or a new member, aren't kinds New agent offers. So the preset follows Ready to Publish and is Manual only. A weekly schedule would walk a finished checklist again and spend AI use each week. The person can still add a Schedule trigger in New agent.

  • Mode: Ask me first. Every change asks, whatever an Admin's policy or a "Don't ask again" tick says (precedence.ts). That matches /start ("the app asks the person first"). This mode needs no plan, so no card shows a lock.

  • needs removed. setup_skill and help_articles are also gone from PRESET_NEEDS and en.json, since no preset waits for them now.

The recommendations

  • recommendedPresets() in agents/catalog.ts reuses Ready to use's own rule (filterPresets + presetFit), with no second copy:
    • Only ready agents count.
    • Agents that fit the brand's site type or one of the person's work areas come first, in catalog order, up to 5.
    • If fewer than 3 fit, launch-set agents for every brand fill the list up to 3.
    • It never recommends a Soon agent or Onboarding & Help itself.
  • Industry counts only through the site type. When a brand has no site type set, it is guessed from the brand's industry and Shopping mode (siteTypeOf), as Ready to use does. No preset carries an industry yet; the §8.2 industry packs are planned.
  • New read tool list_ready_agents:
    • Area agents, open to every role like Ready to use, no plan gate, C0, brand from brand_id, no MCP tool.
    • It reads the brand's site type and the person's work areas (lib/mcp/ready-agents.ts).
    • For each agent it returns:
      • the name and line from its card;
      • why it fits (site_type, role, or every_brand);
      • its skills;
      • an href to its card.
    • Label: "Read ready-to-use agents" / "Read Agent Center".
  • Links to each card: each card in Ready to use now has the id #preset-{id}. A link from Chat such as /dashboard/agents?tab=ready#preset-ceo-brief brings that card into view and marks it once the brands have loaded. The page waits for the brands because the site type can move the card.

The skill (skills/setup/SKILL.md)

  • Reads:
    • get_onboarding_progress;
    • list_connections, only for a connect step;
    • list_ready_agents;
    • open_page for each open step;
    • list_brands when no brand is selected.
  • Answer:
    1. It says where the brand stands.
    2. It lists up to five open steps, each with its page, and short steps for anything the person connects.
    3. It lists "Agents for you".
  • Don'ts:
    • It never creates, turns on or runs an agent.
    • It recommends only what list_ready_agents returns.
    • It never marks a Getting started step done.
  • It is the 22nd Ansvisor skill, after the seven focus-area skills, in SKILL_ORDER and ANSVISOR_SKILLS. library.json and catalog.json are regenerated.

Agents' test set: the eval has a scenario for the agent (must: list) and one for /setup, and list_ready_agents answers in the test workspace.

Help

  • chat/agents.md: a new Onboarding & Help section, the agent added under ready-to-use agents, and new keywords.
  • chat/skills.md: now says twenty-two skills, adds Setup guide, and lists every Ansvisor skill. It still listed only the first fourteen.
  • approved-articles.json is regenerated, and skills/README.md lists /setup.

Not in this PR

  • The plan's "new brand added" and "new member joined" triggers, and anything that runs on its own for every new member. These need a new trigger kind.
  • Industry packs (§8.2) and industry in the fit rule: no preset carries an industry yet.
  • The /start shortcut (Get started) is unchanged and doesn't recommend agents.
  • The status table in AGENTS-plan.md in Drive, which is updated by hand.

Related issue

None. AGENTS plan #11, §7 step 3 and §8 (Drive › Agents › AGENTS-plan.md).

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 the new Chat on, open Agent Center › Ready to use. Onboarding & Help is no longer Soon:

    • It comes after the eight launch agents. Agents marked for your site type or role still come first.
    • Its card shows /setup, Ask me first and "Trigger: Manual only".
  2. As an Admin or Manager:

    • Click Use this agent. New agent opens with Setup guide, no trigger, Ask me first and no connections.
    • Click Turn on, then Run now on the agent's page.
  3. In the run's chat, check that it:

    • says how many Getting started steps are done;
    • lists the open steps with links;
    • lists "Agents for you": 3 to 5 agents, each with why it fits and a link.

    For a B2B brand and a person with no work areas, the agents are Alternatives & Comparison Pages, Integration Questions and Visibility Watch.

  4. Click an agent's link. Agent Center opens on Ready to use with that card in view and marked. Nothing is created or turned on.

  5. In any chat, type /setup and send. You get the same answer in your own chat.

  6. Ask a how-to question in the run's chat, such as "How do I connect Google Search Console?". Chat answers from Help and names its source.

  7. Tests: cd web && npx vitest run src/lib/chat/agents src/lib/chat/skills src/lib/chat/registry src/lib/mcp/ready-agents.test.ts src/components/chat/agents src/lib/help.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR
  • Help article updated under help/ (or no user-visible change) — see help/README.md

Checked locally on 8fd4aa6, branched from main c7c0f9a. It still merges cleanly into the current main.

  • web/:
    • format:check and typecheck pass.
    • lint has 0 errors. Its 7 warnings were already on main, and none are in this PR's files.
    • yarn test: 987 of 988 files passed on the full run. The one failure was agents/page.test.tsx, which still used Onboarding & Help as its example of a Soon preset. It now uses fanout-gap-filler, and that file passes (10 tests). About 10,594 tests pass in total, 1 skipped.
    • yarn build passes with CI's placeholder env.
  • skills job: its tests pass (library.test.ts, public-skills.test.ts: 28).
  • No server/ or SQL changes.

Generated by Claude Code

…ed and recommends 3 to 5 agents (AGENTS #11)

The preset was Soon (needs: help_articles, setup_skill). It is now ready:
- a new /setup skill (Setup guide): a preset can't use the hidden /start
  playbook (a ready preset's skills are library skills, and an agent loads
  them with use_skill, which never offers a playbook);
- no trigger (Manual only, Run now), as Ready to Publish: the plan's
  triggers (a new brand or member) aren't kinds New agent offers;
- Ask me first: every change asks, as /start does.

/setup walks the open Getting started steps, then recommends 3 to 5
ready-to-use agents with a link to each card in Agent Center › Ready to
use. A new read tool, list_ready_agents, gives them by Ready to use's own
rule (recommendedPresets on filterPresets and presetFit): what fits the
brand's site type and the person's work areas first, up to 5, then the
launch set's to make 3. Never a Soon agent, never itself; it never turns
an agent on. Each card has an id, and a link to it brings it into view.

Help: chat/agents.md (Onboarding & Help), chat/skills.md (Setup guide,
twenty-two skills); approved-articles.json, catalog.json and library.json
regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9

@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 3ccafb3 into ansvisor:main Nov 5, 2026
13 checks passed
cihan-gyk pushed a commit to cihan-gyk/ansvisor that referenced this pull request Nov 5, 2026
Brings in Onboarding & Help (ansvisor#2136, /setup as the 22nd skill), ansvisor#2134,
ansvisor#2135 and ansvisor#2137. Conflicts kept both: /setup then /fanout in SKILL_ORDER
and everywhere the library is listed (23 skills), Fan-out Gap Filler and
Onboarding & Help both ready (20 ready presets, 19 Soon). The tests that
used Fan-out Gap Filler as their Soon example now use Localization. Help:
skills.md gives Fan-out gaps a section of its own, so The Ansvisor skills
stays within 150 words.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk pushed a commit to cihan-gyk/ansvisor that referenced this pull request Nov 5, 2026
Stacks this branch on feature/fanout-skill (AGENTS #9), which already has
upstream/main with Onboarding & Help (ansvisor#2136). Conflicts kept all three:
/setup, /fanout, then /prompts in SKILL_ORDER and everywhere the library
is listed (24 skills); Fan-out Gap Filler, Prompt Portfolio Manager and
Onboarding & Help ready (21 ready presets, 18 Soon); both new reads' row
limits in scope.ts. Every need the three skills waited for is gone from
PRESET_NEEDS and en.json. Help: Prompt portfolio gets its own section in
skills.md, after Fan-out gaps; agents.md has the three agents' sections.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk pushed a commit to cihan-gyk/ansvisor that referenced this pull request Nov 5, 2026
…t-card

Brings in ansvisor#2134, ansvisor#2135, ansvisor#2136 (the Onboarding & Help agent) and ansvisor#2137
(impact-ledger ship credit, 00480).

Conflict in help/chat/agents.md: both sides added a section after "An
agent's page". Kept both, "What this agent did" (this branch) then "What
a run's outcome means" (ansvisor#2137), in the page's order; each stays under 150
words. impact-report.tsx merged cleanly: ansvisor#2137's taken_down reason in
REASONS beside this branch's move of the pills, outcome words and signed
numbers to impact-parts.ts. approved-articles.json regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk pushed a commit to cihan-gyk/ansvisor that referenced this pull request Nov 5, 2026
…ange went live

Agent Center's article gets keywords and synonyms for the agent page's
card (what this agent did, agent impact, what did my agent do), now that
ansvisor#2136's Onboarding & Help keywords are on main, and its section says the
three ways a change went live: on its own, you approved on a card in the
run's chat (00480), or by a teammate. Sources name agent-impact.ts.
approved-articles.json follows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
gkhngyk pushed a commit that referenced this pull request Nov 5, 2026
…n its page (#2148)

* refactor(reports): share the impact ledger's pills, outcome words and ship-row read

Reports' outcome pill colors, "Pending · early signal" label and signed
numbers move to components/reports/impact-parts.ts, and the ship_events
embed (action number, measurement) and measurementOf to lib/impact/report.ts,
so the agent page's "What this agent did" shows a change exactly as
Reports does. Reports reads and renders as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9

* feat(chat): read what an agent's runs took live in the last 30 days

GET /api/chat/agents/{id}/impact answers the agent's ship events of the
last 30 days (agent_id) with their measurements, read by Reports' own
impactRow and impactSummary (Improved counts Medium and High verdicts
only), on the brands the person may see as the ledger's policy (00424)
has it. Each change says how it went live (on its own, the reader
approved it, or a teammate) and its run's number among the agent's runs
the person sees, with the run's chat when they may open it. It also
counts the drafts the agent's runs of the last 30 days made that no ship
event names, found through the draft's chat: content_drafts.conversation_id
-> chat_conversations.agent_run_id -> chat_agent_runs.agent_id.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9

* feat(chat): show "What this agent did" on the agent page

Between Triggers and Run history, as the owner approved it: the last 30
days, with no period to pick. Changes shipped, Improved X of Y (Medium
and High verdicts only, "—" before any) and Pending; each change with
how it went live ("run #31, on its own", "you approved", "by Sam Lee"),
its outcome in Reports' words and its next checkpoint; how many drafts
aren't live yet; the method line and Open in Reports, as Reports has no
link to one change. Three states: with results, the first week, and
nothing live yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9

* docs(help): what an agent's page says it did in the last 30 days

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9

* test(chat): read "you approved" from the ship events #2137 writes

A person's click on a card in an agent run's chat now ships with the
agent and its run (00480, ship.js agentOrigin), execution_mode assisted
and shipped_by the person; the agent's own send stays automated. The card
already reads automated as "on its own" and the rest by who sent it, so
nothing changes in the read: the tests now use that data. Each change in
the credit test names its run, a page sent later from the Content Editor
or the Library (no agent) isn't listed, and the agent's own change reads
"on its own" to every viewer. The card's fixtures ship "you approved" and
"by {name}" rows as assisted, and a page taken down shows #2137's reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9

* docs(help): find "What this agent did" by its words, and say how a change went live

Agent Center's article gets keywords and synonyms for the agent page's
card (what this agent did, agent impact, what did my agent do), now that
#2136's Onboarding & Help keywords are on main, and its section says the
three ways a change went live: on its own, you approved on a card in the
run's chat (00480), or by a teammate. Sources name agent-impact.ts.
approved-articles.json follows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9

---------

Co-authored-by: Claude <[email protected]>
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.

3 participants