Skip to content

feat(agents): let agents use the seven focus skills - #1948

Merged
gkhngyk merged 12 commits into
ansvisor:mainfrom
cihan-gyk:feat/agents-focus-skills
Nov 1, 2026
Merged

gkhngyk merged 12 commits into
ansvisor:mainfrom
cihan-gyk:feat/agents-focus-skills

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Agents can now use the focus areas' seven skills from #1918 (W2-23b): /questions, /features, /gaps, /markets, /listings, /rivals and /audit-fix. #1918 is merged, and this branch has current main merged in. No migration.

What changes

  • The seven skills join ANSVISOR_SKILLS (web/src/lib/chat/agent-skills.ts) in the library's order.
    • Their titles come from en.json.
    • They show in New agent's skill grid and in the follow-on list.
  • Their connections are []. Each SKILL.md was read: none reads Search Console, Analytics, a CMS or a catalog.
    • /listings reads the sites AI cites, not a catalog.
    • /audit-fix writes robots or CMS changes for the person to make.
  • A new agent-skills.test.ts covers the list, the order and the connections. Form tests and help/chat/agents.md are updated.

The business-type and role packs build on this, in a stacked PR.

Related issue

None. Agents plan §8, after Agent Center PR B (#1917).

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 › New agent. The skill grid lists 21 Ansvisor skills, the seven new ones included, each with "No connection needed".
  2. Pick /gaps, then add /questions as a follow-on skill.
  3. Unit tests: agent-skills, agent-form (lib and component), skills library, agent-connections and help.

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 (c4c9daf), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/41332930408): 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 12 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]>
… 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]>
…kills

# Conflicts:
#	help/chat/agents.md
#	web/src/components/chat/agents/agent-form.test.tsx

@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 d2be4af into ansvisor:main Nov 1, 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