Skip to content

docs(skills): cover all MCP tools and the AI Visibility Score in the AEO coach skills - #1033

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:docs/skills-refresh
Oct 15, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:docs/skills-refresh

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

The AEO coach skills under skills/ had drifted from the MCP server since #35:

  • Tools: they listed 4 of the 29 MCP tools.
  • Headline metric: they taught totals.avgVisibility, which is now a deprecated legacy average.
  • Scoring reference: it described the old four-part score (mentions, citations, citation ratio, sentiment).

So anyone installing the skill got answers built on the wrong number and no access to Action Center, citations, competitors, content or audits. This PR brings both flavours back in step with web/src/lib/mcp/server.ts.

ansvisor-aeo-coach (MCP)

  • Metrics: a new "The numbers that matter" section.
    • aiVisibilityScore is the headline Visibility number, quoted without %.
    • Its components are mentionAnswers, citationAnswers and positionFactor.
    • visibilityRatePct is coverage.
    • Competitor score shares the brand's denominator.
    • avgVisibility should not be quoted.
  • Tools: all 29, grouped: brand & visibility, prompts & topics, content & pages, shopping, Action Center.
  • Writes: a "Writes need explicit intent" rule for the tools that change data, spend a credit or run an LLM.
  • Updated workflows:
    • Snapshot compares the week with the week before.
    • The drop deep-dive uses get_visibility_trend, the per-model split from get_competitor_comparison (instead of guessing model names), get_prompt_performance and list_signals.
    • Competitor watch uses visibility_rate_pct and share of voice.
  • New workflows:

ansvisor-aeo-coach-standalone (REST)

  • The same content, mapped to the REST mirrors.
  • Every /api/mcp/* endpoint is listed with its query or body.
  • The call() helper now supports POST and PATCH.
  • Error handling is updated.

references/ (identical in both flavours)

  • visibility-scoring.md is rewritten for the current formula. It mirrors web/src/lib/visibility-score.ts: 60% mention rate, 25% citation rate, 15% position factor damped by position support. It also covers coverage vs. score and a sanity-check table computed with the formula.
  • sentiment-interpretation.md no longer calls sentiment a score component.

skills/README.md: the summary row, the example questions, and a note that writes run only on an explicit ask.

No code changes.

Related issue

Follow-up to #1014.

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. Check coverage against the code:
    • Every backticked tool name in skills/ansvisor-aeo-coach/SKILL.md should exist in registerTool(...) in web/src/lib/mcp/server.ts, and every registered tool should appear in the skill.
    • Every endpoint in the standalone skill should exist under web/src/app/api/mcp/.
    • I checked both directions with a script: nothing missing, nothing extra.
  2. Recompute a few rows of the sanity table in references/visibility-scoring.md with computeAiVisibilityScore (e.g. 100 answers, 80 mentioned, 40 cited, position factor 1 → 70.0).
  3. Optional: install skills/ansvisor-aeo-coach in Claude Desktop or Claude Code with the MCP server connected. Ask "How is my brand doing this week?" and "What should we work on next?". It should quote Visibility without % and pull open actions.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/) — not run, no web/ changes
  • yarn typecheck passes (run from web/) — not run, no web/ changes
  • yarn format:check passes (run from web/) — not run, no web/ changes
  • Changes are focused — one concern per PR

🤖 Generated with Claude Code

@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.

Checked the tool list, the REST endpoints and the sanity table against the code. Looks good, thanks.

@gkhngyk
gkhngyk merged commit 02551dc into ansvisor:main Oct 15, 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