Repository navigation
feat(chat): a /prompts skill proposes prompts to add and to pause, and Prompt Portfolio Manager is ready to use (AGENTS #10) - #2145
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
…d Prompt Portfolio Manager is ready to use (AGENTS #10) The new library skill /prompts (Prompt portfolio) proposes prompts to track, from the brand's prompt suggestions, untracked fan-out sub-questions and its Search Console queries, and prompts to pause: tracked 8 weeks or more, the brand neither named nor cited in the last two 28-day periods, and little or unknown demand. Out of scope is only what the person says. Every addition and pause goes through add_prompts / pause_prompts, each a card, with Undo in Activity. A person calls it in Chat with /prompts; the Prompt Portfolio Manager agent runs it every Monday in Ask me first, so no prompt is ever added or paused without a click, and is now ready to use. A new read, get_gsc_queries, lists Search Console queries with clicks, impressions and position against the span before, summed by ae_gsc_queries (00091) once the brand is the caller's. /prompts uses Search Console as an Optional connection. The prompts_skill need is gone, Seasonal Prompt Planner's included (it still waits for its seasonal skill). Help: skills.md (twenty-two skills, the full list) and agents.md (a Prompt Portfolio Manager 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
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
# Conflicts: # help/chat/agents.md
# Conflicts: # help/chat/agents.md
8 of 13 tasks
cihan-gyk
dismissed
gkhngyk’s stale review
November 5, 2026 18:49
The merge-base changed after approval.
cihan-gyk
dismissed
gkhngyk’s stale review
November 5, 2026 18:57
The merge-base changed after approval.
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
Stacked on #2144 (
feature/fanout-skill, AGENTS #9). Please merge #2144 first. Until then, this PR's diff also shows #2144's commits (the /fanout skill and its merge of main). This branch adds its own commit and a merge offeature/fanout-skill.This PR covers AGENTS plan §3 row 10 and §7 step 3. It adds the /prompts skill (Prompt portfolio) and makes ready the Prompt Portfolio Manager agent that was waiting for it. The skill is a library skill: a person types /prompts in Chat, and the agent runs it every Monday.
The skill (
skills/prompts/SKILL.md)It keeps the tracking budget on what matters, and shows the evidence for each proposal.
Prompts to add. Sources:
It leaves out anything a tracked prompt already asks, queries with the brand's own name or that look for one page, and anything outside the brand's topics. It writes each prompt as a person would ask an AI engine, under the topic it belongs to. It proposes ten at most, ranked by evidence (impressions, times searched, the suggestion's reason).
Prompts to pause. A prompt is proposed only when every condition holds:
Ten at most, longest-tracked first.
Out of scope is the person's call. A prompt counts as out of scope only when the person said so, in the chat or in the agent's instructions. A prompt that only looks off-topic to the model goes under "Worth a look", with no change proposed.
Every change is a card.
add_prompts(one call per topic), pauses throughpause_prompts. These are the W2-06 tools, and each change is logged in Activity with Undo. A paused prompt keeps its history.Output: To add, To pause, Worth a look, the tracking budget before and after, and the Undo line.
Data plan (the skill's "What to read"):
list_topicsandlist_prompts(active);get_plan_facts(the plan's tracked-prompt limit);list_prompt_suggestions(Search Console suggestions carry their query and numbers);get_fanouts(sub-questions, and whether each is tracked);get_gsc_queries(new, below);get_prompt_performancefor the last 28 days and the 28 before;get_prompt_volumes.A new read,
get_gsc_queriesUntil now the registry read Search Console only as total clicks (
get_gsc_summary).get_gsc_summary), no MCP tool.ae_gsc_queries(migration 00091), the function Action Center's detectors already use. That function runs with the service role and is called only once the brand is confirmed as the caller's. So it reads one row per query, not one per day.No migration.
Prompt Portfolio Manager is ready to use
presets/prompt-portfolio.jsonis now ready:/prompts;/promptsdeclares it inagent-skills.ts. The skill works without it and says so.prompts_skillis gone fromPRESET_NEEDSanden.json, and from Seasonal Prompt Planner (e-commerce pack). That preset stays Soon, now waiting only for its seasonal demand skill.add_promptsandpause_promptsdefault to "Ask (auto allowed in Full auto)", and an Admin may set them to Always.Everywhere a skill is listed
SKILL_ORDERand the regeneratedlibrary.json./setup,/fanout, then/prompts).ANSVISOR_SKILLS(Search Console Optional) andchatAgents.skills.prompts.skills/README.md: the row and the count.scope.ts: the new read's row limit and its 28 days, next toget_fanout_gaps.agent-eval.tshas a newprompt_changepromise, met when the run proposesadd_promptsorpause_prompts;/prompts, must make a list and a prompt change;agent-eval-data.tsanswersget_gsc_queriesfor Brewline./promptstoo.Help
help/chat/skills.md: twenty-four skills, Prompt portfolio in the list, and a Prompt portfolio section of its own on what /prompts does, placed after Fan-out gaps.help/chat/agents.md: a new Prompt Portfolio Manager section, after Onboarding & Help. It covers when the agent runs, its mode, what it proposes, when it pauses, Undo, out of scope, and /prompts in Chat.approved-articles.jsonis regenerated.Open questions
get_gsc_queries, plus the Search Console suggestions already inlist_prompt_suggestions. The skill matches queries to tracked prompts by meaning; there's no fuzzy matching in code.add_topicexists. When a candidate has no fitting topic, the skill names it for the person.Related issue
None (AGENTS plan §3 #10, §7 step 3; CHAT-13 skills; W2-06 tools).
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
/prompts, Ask me first and "Every Mon 09:00";cd web && npx vitest run 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/scope.test.ts src/lib/chat/testing src/lib/help.cd web && env -u ANTHROPIC_BASE_URL -u ANTHROPIC_API_KEY AGENT_EVAL=prompt-portfolio SKILL_EVAL=prompts 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 with CI's commands on the pushed merge commit f2cbb85, 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,611 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