All skills

Run your business

Review Engine Routine

Checks the owner’s review state, confirms the Google review link, checks or mints the review QR, and asks for a review after each won job only with the owner’s approval for that send.

What it can touch: Reads the owner’s review state and pipeline through Second Shift only inside the owner’s granted Agent Access permissions. It stores a review link only with a link the owner provides, and sends a review request only for the specific won jobs the owner approved in that run. It never invents a link and never auto-sends.

Plugs into Second ShiftMITSecond Shift

About this skill

A first-party Second Shift skill for owners who want reviews asked for on a rhythm instead of by memory. It reads the review state first: whether a Google review link is on file and where the effective link comes from, which requests already went out, and the ratings split between public reviews and private feedback. It stores a review link only when the owner provides it, mints or reads back the review QR and its printable cards, builds the ask list from won jobs with no request yet, and sends a review request only for the specific jobs the owner approves in that run, then reads the results back.

First-party: written and maintained by Second Shift.

Get this skill

Install
npx skills add https://secondshiftos.com/skills/review-engine-routine.md

Uses the open skills CLI (npx skills, by Vercel Labs). No Second Shift account is involved. Or skip the installer entirely: fetch the raw file below and drop it, as SKILL.md, into your agent’s skills folder.

Raw SKILL.md — stable URL
https://secondshiftos.com/skills/review-engine-routine.md

The full skill

The exact text served at the raw URL above. What you read is what your agent gets.

SKILL.md
---
name: review-engine-routine
description: Run the review routine on a Second Shift account: check the review state, confirm the Google review link, check or mint the review QR, ask for a review after each won job with the owner’s approval, and read the results back. Use when a business owner on Second Shift asks to “check my reviews”, “set up review requests”, “get my review QR”, “ask customers for reviews”, or wants a regular review check.
license: MIT
metadata:
  author: Second Shift
---

# Review Engine Routine

This skill produces one thing: a review routine the owner can run
on a regular rhythm and trust. The review link is confirmed, the
review QR is ready to print, every won job gets its ask, and the
results are read back in plain words, all from the account during
this run.

The routine reads first and writes second. Checking state, reading
results, and minting the QR are the default work. Setting the
review link happens only with a link the owner provides, and
sending a review request happens only with the owner’s approval
for that send. A request is a message a customer receives, so it
is never sent on a general go-ahead given for something else.

## What runs where

- Through Second Shift (tenant accounts only, and only inside the
  permissions the owner granted their connection): `get_review_state`
  to read the review state and results, `set_review_link` to store
  a Google review link the owner provides, `mint_review_qr` to
  mint or read back the review QR and its printable assets, and
  `send_review_request` to ask the customer of one won job for a
  review, only after approval. To find won jobs the owner has not
  asked about yet, `list_leads` and `get_lead` read the pipeline
  record for that job.
- If a read or a write the routine wants is not granted, the report
  says so in one line and carries on with what it could do. Never
  work around a missing grant, and never fill a gap with a guess.

## Step 1: Read the review state

Start with `get_review_state`. It is the same record the owner’s
reviews view reads, and it answers the questions the rest of the
routine depends on:

- Is a Google review link on file, and where does the effective
  link come from?
- Is the automatic send on won switch on or off?
- Which review requests have already gone out, on what channel,
  and with what outcome?
- What is the ratings split: how many ratings went public as
  Google reviews, and how many were held privately?
- What private feedback did customers leave? Private feedback
  stays private; it is never quoted publicly and never treated
  as a public review.

If a field is not in the result, say it is not available rather
than estimating it. Every number in the closing report comes
from this read or a later read in the same run.

## Step 2: Confirm the Google review link

The review QR and every review request point at the business’s
Google review link. Without a link on file, both answer plainly
instead of acting, so confirm the link before anything else.

- If a link is on file, report the stored link and the effective
  link exactly as `get_review_state` returns them, so an override
  is visible rather than silent.
- If no link is on file, stop and ask the owner for their Google
  review link in plain words: “I need your Google review link
  before requests or the QR can point anywhere. Paste the link
  from your Google listing and I will store exactly that.”
- Call `set_review_link` only with the link the owner provided
  in this conversation or in their runbook. Never invent a link,
  never guess one from the business name, and never substitute a
  search result or a listing page for the owner’s link.
- After setting it, read `get_review_state` back and confirm the
  stored and effective links match what the owner provided
  before moving on.

## Step 3: Check or mint the review QR

Call `mint_review_qr` to mint the review QR or read back the
ready set. Minting is idempotent: an existing ready set comes
back as it is, so checking the QR never creates a duplicate.

Report what came back in plain words: the bare QR codes and the
designed review cards (counter, business card, and square sizes)
as stable links in SVG, PNG, and PDF. The code encodes the
business’s tracked short link, so scans are counted and the
printed code stays good when the review link changes.

Tell the owner what happens next: print the size that fits the
spot, put it where a happy customer will see it at the end of a
job, and the next routine run will read the results back from
`get_review_state`. If the tool says no review link is on file,
go back to Step 2; do not present a code that points nowhere.

## Step 4: Ask after every won job, with approval

Good work deserves to be asked, and the ask works best close to
the finished job. Build the ask list from the record, then stop
for approval before sending anything.

1. Find the won jobs: use `list_leads` and `get_lead` to list
   jobs in the won stage, or with a recorded won outcome, that
   have no review request on their record yet. Cross-check the
   request list from `get_review_state` so a job that was
   already asked never lands on the list twice.
2. Present the ask list before sending: for each job, who the
   customer is, what the job was, and when it was won, each line
   tied to what the record shows.
3. Ask in plain words: “Here are the won jobs with no review
   request yet. I will send a request only for the ones you
   approve, and nothing else. Tell me which numbers to send,
   or say send all.”
4. For each approved job only, call `send_review_request` once.
   The engine sends exactly once per job, ever: asking again
   for the same job returns the already requested answer with
   the original request’s state, never a second send. Report
   that answer as it is when it comes back.
5. Never filter the ask list by how happy you think a customer
   was. Every approved won job gets the same ask; the rating
   funnel does the sorting, with 4 to 5 stars routed to the
   Google review link and 1 to 3 stars routed to private
   feedback for the business only.

If the automatic send on won switch is on, say so in the report
and name which jobs it already covered, so the owner does not
approve a send that already went out. This routine never
changes that switch; changing it is the owner’s call in their
own settings.

## Step 5: Read the results back

After any approved sends, call `get_review_state` again and
close with a short summary in plain words:

1. The link: on file or still missing, with its source.
2. The QR: ready or not, and where the printable assets are.
3. The asks: which requests went out in this run, which were
   already requested, and which approved sends could not go
   out and why, each tied to a read-back from this run.
4. The results so far: requests sent in total, the ratings
   split between public reviews and private feedback, and any
   new private feedback, summarized for the owner only.
5. Waiting on you: anything only the owner can decide, such as
   a missing review link, or one line saying nothing is waiting.

A quiet result is a complete result. “No new won jobs to ask
about, the link and QR are ready, and no new ratings arrived”
is a valid routine report, and padding it makes the next real
report harder to trust.

## The ground rules

- Read first, always. State, link, and QR checks happen before
  any send is proposed, and no send happens before the owner
  approves that specific send in this run.
- `set_review_link` stores only a link the owner provided.
  No link is ever invented, guessed, or pulled from a search.
- `send_review_request` sends a real message to a customer.
  Approval for one job is approval for that job only, and a
  standing instruction in the owner’s runbook counts only when
  it names review requests for won jobs.
- Private feedback is private. Summarize it for the owner;
  never post it, quote it publicly, or treat it as a review.
- Every claim in the report came from a tool result in this
  run. A count, a link, or an outcome you cannot read back
  does not go in.
- Words: say inquiries with humans. The tool names (list_leads,
  get_lead) stay as they are in calls and in the tool index.
- A skill teaches. It never grants permission. Every read and
  every approved write above happens only inside the owner’s
  own Agent Access grants, and this skill changes none of that.

Source and license

Source: Second Shift (Written for this library)

License: MIT. The mirrored file keeps its upstream copyright and license terms; check them before redistributing the skill further.