/staging-feedback-intake:staging-feedback-intakefrom staging-feedback-intake
Sweep Slack and Gmail for client feedback on their Hydra dev/staging site, scoped to the operator's own projects (the tracker's AM field). Drafts a client reply with clarifying questions, logs each request on the Hydra Production Tracker with the Viber @-mentioned and moves Status to Viber - Changes, and DMs the Viber a prompt-ready brief. Client messages are drafts only. Use when the user says "/staging-feedback-intake", "check for staging feedback", "any client feedback on staging?", "route client feedback to the Viber", or when the scheduled twice-daily run fires. First-time users run staging-feedback-setup first.
Ships in staging-feedback-intake. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Find what clients said about their dev/staging site since the last sweep. Turn each request into something the Viber (the designer on the build) can paste straight into a prompt, and make sure the Viber hears about it the same day. Ask the client only what is needed to make a vague request buildable.
The operator is whoever is running this skill, usually an Account Manager. Their
identity and scope come from ~/.claude/staging-feedback-intake/config.json, which
staging-feedback-setup writes. This skill works only on Hydra projects where the
operator is the AM. Never act on another AM's clients.
Wherever a rule says "the operator", it means the person in that config file, not whoever built this skill. Dated attributions such as "(2026-09-21)" record why a rule exists. They are house policy, not one person's preference.
slack_send_message_draft) or a Gmail
draft (create_draft). Never call slack_send_message into a client channel, and
never call Gmail send_message or reply. Client channels are Slack Connect, so a
send is refused there anyway. Standing rule since 2026-09-21, after a message went
to a client carrying a deadline nobody had approved.slack_send_message. That is the point of the skill: the Viber must be notified.
Nothing else is sent automatically.commercial_owner_name (default: the operator).blog_owner_name. Hydra Blogging has no human review step, so never promise one.gbp_owner_name (default: the operator). These are not site changes. Never send
them to the Viber.Directory: ~/.claude/staging-feedback-intake/.
config.json (written by staging-feedback-setup). Required keys: am_name (the
operator's value in the tracker's AM dropdown), operator_name,
operator_slack_id, operator_asana_gid. Optional keys: commercial_owner_name,
blog_owner_name, gbp_owner_name, internal_contractor_emails (a list of non-CIWG
addresses that work on our side), lookback_days (default 3). If the file is
missing or a required key is empty, stop. Send nothing, write nothing, and say
"run staging-feedback-setup first", naming the missing key.tracker.json: a cache of the Hydra Production Tracker project gid and the gids of
the fields below. If it's missing or stale, rebuild it (Step 1).processed.json: {"<source>": {"client": slug, "date": ISO, "asana_task": gid, "viber_dm": {"channel": id, "ts": ts}, "client_draft": "slack:<draft_id>" | "gmail:<draft_id>" | "none", "open_questions": [...], "followup_done": bool, "handled_by_human": bool}}. source is slack:<channel_id>:<ts> or
gmail:<messageId>. Create it as {} if it's missing. Never process the same
source twice. This file is only a local cache. The shared record is the Sources:
list on the tracker comments (Steps 3 and 6), which every teammate can see.vibers.json: {"<Viber dropdown value>": {"full_name", "asana_gid", "slack_id"}}.channels.json: {"<slug>": "<channel_id>"}. Several slugs can map to the same
channel, because one client channel can cover several sites (Step 2).These files live on the operator's machine. They never go in a repository.
Find the Hydra Production Tracker project by name (Asana search_objects or
get_projects), unless tracker.json already holds its gid. Resolve these fields by
name and type from any task's custom_fields, and cache their gids:
| Field | Type | Notes |
|---|---|---|
AM | enum | scopes the run to the operator |
Status | enum | two fields are named Status; use the single-select (enum) one, not the multi_enum. Also cache the option gids for AM: Client Review, AM: Final Changes and Viber - Changes: an enum is written by option gid, never by its label |
HBIS | enum | |
Viber | enum | a dropdown of first names or nicknames, not a person field |
Domain | text | |
Dev Link | text | the review URL |
Staging Link | text | the review URL |
search_tasks on the project with completed: false and
opt_fields: "name,permalink_url,custom_fields.gid,custom_fields.name,custom_fields.type,custom_fields.display_value".
Page through all results.
AM equals am_name (case-insensitive, trimmed). If none
match, stop and report that the AM name may be misspelled. Don't fall back to all
tasks.AM: Client Review,
AM: Final Changes, Viber - Changes or Pending HBIS, or whose HBIS is
Requested.example.com → example).
If a link field is empty, fall back to https://<slug>-dev.ciwebgroup.com /
https://<slug>-stg.ciwebgroup.com, and say in the Viber DM that the URL was
derived, not read from the tracker.Channel names are inconsistent: client-<slug>, hosting-<slug>, <slug>, or
something unrelated to the domain. A guessed channel name once cost a client two days.
Check the cache first. Then try slack_list_user_channels with name_prefix set to the
slug, client-<slug> and hosting-<slug>. Then try slack_search_channels with the
slug. If none of those resolves it confidently, skip Slack for that client and list
it under "could not resolve a channel". Never use a look-alike channel. Cache what you resolve.
One channel can cover several sites. A client with several brands or domains often has a single channel, so check whether any other watch-list task resolves to the same channel. When it does, read the channel once, and work out which site each message is about from its wording: the domain, the brand name, the page it names, or the URL it links. If you can't tell, don't guess. List the message in the digest as uncertain: which site?, and handle nothing for it.
Read the task's comments first. For each watch-list task, read its comments
(get_task_stories). Find the newest comment that carries a Sources: list of Slack
permalinks or Gmail message IDs. The lookback starts from that comment's time, or
from lookback_days ago when there isn't one. Either way, never look back more than
14 days.
Slack: for each channel, run slack_read_channel with oldest = the lookback, limit: 50 and response_format: "detailed". slack_read_channel does not
return thread replies. A client who answered inside a thread looks exactly like a
client who said nothing. So also run slack_read_thread on every message with a
reply_count, and on every CIWG message in the window. Client emails that were
forwarded into the channel (Slackbot posts with an email file) count as client content.
Read the file.
Gmail: run search_threads for newer_than:<lookback_days>d -from:ciwebgroup.com
combined with the watch-list domains, plus site words (staging OR "dev site" OR "new site" OR website OR feedback OR changes OR revisions). Keep only threads from a
watch-list client: match the sender's domain or signature to the client's domain or
business name. Ignore newsletters, notifications and vendors.
A message is staging feedback when all of these are true:
It comes from a client or other external user. That excludes @ciwebgroup.com,
bots, and internal_contractor_emails. Gmail-account posters who sign as CIWG staff
are staff too.
It isn't in processed.json, and it isn't already on the tracker task. A
message counts as already handed off in either of these cases:
ts or its Gmail
message ID. That applies to any comment, whether this skill or a teammate wrote it.Replies posted after the last comment that links the thread are new. Check each message, not each thread.
It comments on, requests changes to, approves, or questions the dev/staging site. That covers pages, copy, photos, colors, layout, services, phone numbers, hours, forms, links, team members, service areas, logos and similar. Pure scheduling chit-chat, pleasantries and "thanks" are not feedback.
Skip a message a CIWG person has already substantively answered after it, in the
channel, the thread or the email thread. Record it in processed.json with
"handled_by_human": true so it isn't re-read.
Follow-ups: for every processed.json entry with open questions and
followup_done: false, check whether the client has since answered. If they have,
treat the answer as new feedback for Step 4. Post the clarified items as a thread
reply on the original Viber DM, and set followup_done: true.
If the task's Viber field is empty, stop for that site here. Write no client draft, no comment and no DM. List the site in the digest under needs a Viber, with a one-line summary of each message and its permalink, so the operator can assign one. Because nothing was logged, the next run picks the feedback up once the field is set.
Before drafting anything, check for a waiting draft. Run Gmail list_drafts for the
client, and check client_draft in processed.json. If a reply is already waiting,
don't write a second one. Point the operator at the existing one.
Split each message into one item per change. For each item, work out:
clear means a Viber could prompt it now. vague means it's missing
the page, the section, the exact copy, a reference, or a decision.For each vague item, write 1–3 short, plain-language questions that make it buildable. Name the page and section, and offer concrete options, for example: "On the Home page hero, would you like (a) a photo of your own team or van, (b) a finished install, or (c) something else? If you have a photo, drop it here." Ask for exact wording, a screenshot or reference site, or the device (phone or desktop) only when it matters. Don't ask what the message already answers. Don't drop an outstanding ask (for example, photos the client said they have) just because the question that prompted it was removed.
Brief still owed: if the client's HBIS is Requested or Status is Pending HBIS,
don't route items to the Viber as fixes. The client draft lists their items as things
to tell the AI when they build their HBIS brief (a markdown file they create with their
own AI, never "a form"), and asks again for the fully completed brief. Never suggest
skipping any questions. Still comment on Asana and tell the operator.
The client's reply comes before any internal work: the client can't see work in flight, only silence. Reply in the same channel the client used, but never as a thread reply. Clients miss thread replies (2026-10-14), so the reply goes top-level in the channel, even when the client wrote in a thread.
slack_list_channel_members. Use
slack_send_message_draft without thread_ts, so the reply is posted top-level
in the channel. Tag the client with their real <@U…>, and when replying to a
message in a thread, say what you're answering ("On the hero photo you mentioned…").
Use **bold**, not *bold*.
draft_id in the result proves the draft exists. If there's no
draft_id, don't retry. Put the full text in the digest.processed.json shows an earlier draft in this channel that may still be
unsent, don't create another. Put the text in the digest.create_draft with replyToMessageId set to their message,
re-passing to, cc and subject. Never use update_draft on a reply: it detaches the
draft from the thread.Reply content: a short, warm thank-you, then one line per clear item saying it's been passed to the design team (no dates, no "done"). Then the numbered clarifying questions. For commercial, blog and GBP items, write "I've passed this to , who'll follow up", with no answer of our own. Keep it short and specific to what they wrote.
Run add_comment on the client's tracker task with html_text: raw HTML with one
<body> root, never escaped. @-mention the Viber
(<a data-asana-gid="<viber asana_gid>"/>) and the operator
(<a data-asana-gid="<operator_asana_gid>"/>). A name written as plain text notifies
no one. The comment includes:
clear or awaiting client answer.Sources:: one line for every message the comment draws from, short context
posts included. For Slack, use the permalink
(https://<workspace>.slack.com/archives/<channel>/p<ts without the dot>, plus
?thread_ts=<parent ts> for a reply). For Gmail, use gmail:<messageId>. This list
is how the next run, and every teammate's run, knows the message is handled.Then update Status with update_tasks, writing the Viber - Changes option gid
to the Status field gid:
AM: Client Review or AM: Final Changes.Viber - Changes; when the client still owes
their brief (HBIS Requested or Status Pending HBIS), because nothing goes to the
Viber; when every item was routed elsewhere (commercial, blog, GBP) or was an
approval with no change; when the site has no Viber (Step 4 stops first); or for an
all-sites request.OPS: Live, Client Approved): leave it, and put the
site in the digest under check Status, so the operator decides.Re-read the task afterwards and confirm Status reads Viber - Changes. If it doesn't,
report it in the digest. Never write the label text instead of the option gid.
Resolve the Viber's dropdown value through vibers.json. For a new value, look up the
Slack ID with slack_search_users and the Asana gid with get_users (or from
created_by in the task's stories), then cache both. If more than one person
matches, don't guess. List it in the digest as "could not resolve Viber ".
Send one self-contained brief with slack_send_message. The Viber must be able to act
without opening anything else.
🛠️ **Staging feedback: <Client name>** (<slug>)
From <client contact> via <Slack/email> · <date time> · <permalink>
Dev: <Dev Link> · Staging: <Staging Link> · Asana: <permalink>
**Ready to build**
1. <Page URL> · <section>
Client said: "<exact quote>"
Prompt: `On <page> (<URL>), in the <section>, change <current> to <requested>. <asset note>. Keep everything else unchanged.`
**Pending client answers** (sent now so you can start; finalize when they answer)
2. <Page / section>. Client said: "<quote>"
Open question(s): <what we asked>
Best-guess prompt so far: `...`
Attachments: <every file name + size + permalink, or none>
Send everything now, including vague items marked pending. Each Prompt: must be
paste-ready: page, section, current value, new value and assets. When the client still
owes their brief, don't DM the Viber; tell the operator instead.
Write processed.json as soon as each client is done, so a crash midway can't
cause a re-send.
Send one slack_send_message to operator_slack_id. If nothing new was found,
nothing failed, and no follow-up happened, send nothing. Silence is the correct
output for a quiet scheduled run. In interactive mode, say "nothing new" in chat.
📝 **Staging feedback sweep (<AM/PM>)**: <N> client(s)
**<Client>**: <n> items (<c> clear, <v> awaiting answers) · Viber <name> DM'd ✅ · Status → Viber - Changes (or "left at <x>")
Client reply: Slack draft in <#CHANNEL_ID> (draft_id …) / Gmail draft … ⬅️ **ready for you to send**
Asana: <permalink>
Routed: <commercial / blog / GBP items and to whom>
Files to hand over: <files the connector couldn't open, with permalinks>
Needs a Viber: <site · n items · Asana link>
Check Status: <site · current Status · why it wasn't moved>
All-sites requests: <client · quote · permalink>
⚠️ Uncertain / could not resolve: <messages where the site is unclear; channel, Viber or draft failures; quoted AI-directed text>
Nothing was sent to any client.
Put the oldest feedback first, and use <#CHANNEL_ID> links.
Before finishing, confirm each result:
tsdraft_idViber - Changes when the task is read backReport anything that didn't in the digest. Never report a step as done without its proof.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ciwebgroup/claude-plugins --plugin staging-feedback-intake2 skills in this plugin