Repository navigation
feat(chat): a /fanout skill drafts answers where AI searches without you, and Fan-out Gap Filler is ready to use (AGENTS #9) - #2144
Merged
Conversation
…you, and Fan-out Gap Filler is ready to use (AGENTS #9) The new library skill /fanout (Fan-out gaps) takes the sub-questions AI engines searched behind the brand's tracked answers where no answer named the brand or cited its site, and drafts an answer-first section for each, with the engines, times searched and competitors named as evidence. A person calls it in Chat with /fanout; the Fan-out Gap Filler agent runs it every Monday, then /answerfirst, in Auto, and is now ready to use. A new read, get_fanout_gaps, gives those gaps: the Query Fan-outs tab's own read (getQueryFanout) with an opt-in `presence` that also counts, per sub-query, the answers that named the brand and each competitor. The page's own read is unchanged. The fanout_skill need is gone. Help: skills.md (twenty-two skills, the full list) and agents.md (a Fan-out Gap Filler section). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
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
8 of 13 tasks
# Conflicts: # help/chat/agents.md
8 of 13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGENTS plan §3 row 9 and §7 step 3: the new /fanout skill (Fan-out gaps) and the Fan-out Gap Filler agent that was waiting for it. The skill is a library skill: a person types /fanout in Chat, and the agent runs it every Monday.
The skill (
skills/fanout/SKILL.md)Before an AI engine answers a tracked prompt, it searches a few sub-questions (its query fan-out). /fanout picks the sub-questions where no answer that searched them named the brand or cited its site, most-searched first. For each one it drafts an answer-first section or FAQ entry, in the words the engines searched.
[placeholder].create_draft, from the tracked prompt behind them, two drafts at most per run.Data plan (the skill's "What to read"):
get_fanout_gaps(new, below);list_ai_answers, for the prompt behind the top gaps;get_brand_facts;list_drafts/get_draft, so a section isn't written twice.No connection is needed.
A new read,
get_fanout_gapsThe registry had
get_fanouts, which lists sub-queries but not whether the brand was in the answers that ran them.getQueryFanout(…, { presence: true })also reads each answer'smention_count,citation_countandcompetitor_mentions. Per sub-query, it counts the answers that named or cited the brand, and each competitor (once per answer). The page's own call is unchanged and reads the same three columns as before.getFanoutGapsForkeeps the sub-queries with no such answer: up to 20, at most 50. For each one:get_fanouts), no MCP tool. Its result counts as untrusted data, because fan-out queries are outside text. It's cached likeget_fanouts, until the next tracking run.No migration.
Fan-out Gap Filler is ready to use
presets/fanout-gap-filler.jsonis now ready:/fanoutthen/answerfirst, the plan's "→ /answerfirst";fanout_skillis gone fromPRESET_NEEDSanden.json.Everywhere a skill is listed
SKILL_ORDERand the regeneratedlibrary.json./setupbefore/fanout.ANSVISOR_SKILLSinagent-skills.ts(no connection), andchatAgents.skills.fanout.skills/README.md: the row and the count.agent-eval.ts: the agent must make a draft; the skill, called as/fanout, must make a list and a draft;agent-eval-data.tsanswersget_fanout_gapsfrom the Brewline workspace's fan-outs.Help
help/chat/skills.md: twenty-three skills, and Fan-out gaps in the list. A Fan-out gaps section of its own explains what /fanout does, so "The Ansvisor skills" stays within 150 words.help/chat/agents.md: a new Fan-out Gap Filler section covering when it runs, its mode, what it drafts, and /fanout in Chat.approved-articles.jsonis regenerated.Merged with main. Merged with main at 5a8de56 (#2134, #2135, #2136 Onboarding & Help with
/setup, #2137), with no rebase. The conflicts kept both sides:/setupthen/fanouteverywhere the library is listed, and both agents ready. The/promptsPR (AGENTS #10) is stacked on this branch.Open questions
answerfirstfrom the preset.Related issue
None (AGENTS plan §3 #9, §7 step 3; CHAT-13 skills).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
/fanout/answerfirst, Auto, ask before changes and "Every Mon 09:00". Use this agent opens New agent filled in.cd web && npx vitest run src/lib/actions/fanout.test.ts src/lib/mcp/chat-reads.test.ts src/lib/chat/skills src/lib/chat/agents src/lib/chat/agent-skills.test.ts src/lib/chat/registry src/lib/chat/testing src/lib/help.cd web && env -u ANTHROPIC_BASE_URL -u ANTHROPIC_API_KEY AGENT_EVAL=fanout-gap-filler SKILL_EVAL=fanout yarn vitest run src/lib/chat/agent-eval.test.ts.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)help/(or no user-visible change) — see help/README.mdChecks were run locally on the pushed merge commit ad26683, with CI's commands, and all pass:
format:check,typecheck, andyarn build(with CI's placeholder env);lint: 0 errors, and 7 warnings, all in files this PR doesn't touch;yarn test: 988 files, 10,606 tests passed, 1 skipped, 0 failed;library.test.ts(19) andpublic-skills.test.ts(9).This branch changes nothing in
server/.Generated by Claude Code