support-bug-handoff
Hand one product defect from a support conversation to engineering - into the Software Factory's ticket store when the repository has one (factory.json), else a GitHub issue labeled support-bug, else
SKILL.mdpackages/starter/templates/support/skills/support-bug-handoff/SKILL.md
GitHubSupport bug handoff
Input: one conversation triaged bug (or a feature-request that the
clustering bar promotes). Output: one ticket per defect, created or updated,
and one [support-loop] handed off note on the conversation. The
support-loop contract rules apply.
1. The defect key
support:<defect slug>: the surface and the defect class, slugged, for
example support:reports-export-empty-csv. Lowercase, a-z 0-9 : . _ -
only. Never a customer, a conversation id or an email. Two conversations
about the same defect get the same key.
2. Reproduce when you can
Read the code path (support-answer-drafts step 1.2). Name the file and the
symbol that most likely holds the defect. Do not run the product against
production data; the engineering side reproduces it in its own sandbox.
3. Where the ticket goes, first match wins
- The Software Factory.
/workspace/factory.jsonexists (handoff.factory_config). Load/workspace/skills/software-factory/SKILL.mdand follow its §4 (dedup key and thefactory-key:last line), §5 (upsert: never a duplicate) and §6 (ticket body), and the reference for itsstore.kindunderreferences/stores/. Use:- labels
factory,source:support,kind:bug(kind:featurefor a promoted request); - key
support:<defect slug>, as the body's last linefactory-key: support:<defect slug>; - title
[factory] <imperative, at most 80 characters>; - body sections
## What,## Evidence(the surface, the steps, the expected and actual result,file:symbolwhen found, andsignal: conversations_30d=<n> customers_30d=<n>),## Proposed change,## Acceptance,## Source(support inbox · <n> conversations in 30 days); - state
triageand the priority of triage. An open ticket with the key: no create; post[factory-source] updatewith the newsignal:line only when the count grew by at least 25 % and no update was posted in 24 hours. The factory's ownsource-support-inboxtrigger must stay disabled while this loop runs: one producer per signal. Setup checks it.
- labels
- GitHub issues. No factory, and
GH_TOKENis set: searchgh issue list --repo {{repoFullName}} --label <handoff.github_label> --state all --search "support-key: support:<slug>" --json number,state,url. None:gh issue create --repo {{repoFullName}} --label <handoff.github_label> --title "<title>" --body "<the same sections>"withsupport-key: support:<slug>as the last line. Open: comment with the new counts, under the same 25 % / 24 h rule. Closed less than 72 hours ago: nothing. Closed earlier: reopen with a comment that it reoccurred. - The Review page. Neither:
kortix review submit --kind output --title "Bug: <title>" --detail '{"preview":"<the body>"}'.
At most caps.bug_tickets_per_day new tickets per UTC day. Over the cap:
the conversation gets the handed off note with pending: over the cap, and
the next run files it.
4. Paraphrase, always
The ticket says "a customer on the team plan exports a report and gets an empty CSV". It never holds a customer's name, email, company, account id, message text, screenshot or a link to the conversation.
5. Link back
[support-loop] handed off · <ticket url or id> · support:<slug>
support-key: <conversation key>
The draft to the customer (support-answer-drafts) says a person will update
them; it never names an internal ticket or a date.