A sales machine on autopilot
How a skill sets up the sales operation an agent runs: from positioning to the enriched lead, and back through the loops.
A sales machine is not a campaign. It is an operation that runs every day: understand the product, write, attract, enrich whoever arrives, qualify by usage and use each customer to bring the next. Here an agent does the repetitive work, and people decide what goes out.
- the agent does it
- a person decides
- the product or a form
- check
- feeds the next cycle
One day of the machine
Requests arrive at any time and are enriched right away. In the morning the agent reads usage and hands over the day's leads. At night it writes the next batch of articles. A new release triggers a reread of the product. Every week the loops and the report come out.
The whole machine
Left to right: where the data comes from, the routines the agent runs, what each one delivers and where a person decides. Hover an item to see its path.
The cycle, end to end
The six stages in sequence. At stage 03 the path splits: self-serve gets the invite right away, assisted goes through a person. Stage 06 returns to the start through the three loops.
Each job of the machine is a pipeline: a trigger, the agent's steps, a check and the point where a person decides. This is one possible design, not a copy of any company. The skill writes yours from your product's files.
From the product's files to the message
Why: nobody sells well what they cannot explain. The agent reads the whole product and writes one message that everything else uses.
agent accessreads only the files you point to; writes only in the machine's folder; never calls the network.
From the product to the published article
Why: loose posts bring nobody. Each text starts from a gap, shows value to one persona and ends in a next step.
agent accessreads facts, positioning and the article index; writes drafts; never publishes.
From the access request to the enriched card
Why: a request with context turns into a good conversation. Without it, it turns into a generic email nobody answers.
agent accessreads the requests and the company's public pages; writes the card; never contacts anyone on its own and keeps no personal data beyond what the person sent.
From usage to a lead with context
Why: a lead is someone already using the product, not someone who filled in a field. The team steps in at the agreed signal and arrives knowing the path the person took.
agent accessreads usage events aggregated per account; writes the card and a draft message; a person does the talking.
From the customer to the next request
Why: a funnel ends at the customer. The machine uses each group of customers to bring the next one. The metric is new requests per activated cohort.
agent accessreads named providers, invites and cases; writes the ranking, page specs and ideas; a person prioritizes and publishes.
From the week to a tuned machine
Why: the machine only improves if someone reads the numbers and changes the rules in the right place, not in the middle of a text.
agent accessreads the machine's folder and aggregated numbers; writes the report; changes rules and spec only with approval.
From zero to a running machine
sales-machine-scaffold is a skill for coding agents such as Claude Code. It has no dependencies at all: it reads only the files you point to and writes only inside sales-machine/. What it delivers at the end is the spec of the finished machine, which another agent loads to operate it.
- Copy the skill into your agent's skills folder.
- Run setup in the project with the product's files. The agent reads what it finds and asks what is missing.
- Run the sequence up to the report and answer whatever is left [to confirm].
- Approve the positioning. Everything after it uses that message.
- Run system-spec: out comes the machine in HCL and the operator's instructions.
- In an agent project, load system/operator.md and system/sales-machine.hcl, grant the access in the table below and schedule the routines.
- On every new release, run it again. Old versions stay in history/.
# copy the skill into your agent's skills folder
git clone https://github.com/devton/sales-machine-scaffold \
.claude/skills/sales-machine-scaffold
# then, inside the project that holds your product's files
/sales-machine-scaffold setup
/sales-machine-scaffold explore
# ... position, machine, loops, article-ideas, landing, manual,
# value-audit, system-spec
/sales-machine-scaffold reportThe eleven commands
Each one is /sales-machine-scaffold <command> and can be rerun on its own.
setupreads what it finds and asks the rest: how people get in, the main button, what never to sayexplorefact ledger with source and statuspositionmain customer, promise, persona matrixmachinethe six stages, lanes and buying signalsloopsintegrations, invites and content, with owner and metricarticle-ideasa batch of articles in the gapslandingwhat each page says, line by linemanualbrand and sales manual, training outlinevalue-auditchecks every text against the rulessystem-specthe finished machine, in HCL, for an agent to runreportone HTML that sums it all up and opens offline
The rules that keep the machine honest
Almost everything that goes wrong in a sale like this is text promising what the product does not do. So everything about the product lives in one file, sales-machine/config.json, and every text goes through these rules before it reaches a person.
| Rule | Where it lives |
|---|---|
| Revenue stays in the house | neverSay and internalOnly: price, plan, limit, "free", "trial" and internal numbers never show up. |
| The button tells the truth | access.primaryCta in every text. Invite-only never promises open sign-up. |
| Regulated topics in their own flow | regulatedTopics: one true sentence, only where it is needed. Never sold as an absence. |
| Done is not live | explore tags every fact: live, coming or internal. What cannot be confirmed stays [to confirm]. |
| A lead is a usage signal | lanes[].buyingSignal: one number per lane, agreed beforehand. |
| Every text feeds a loop | value-audit requires 2 to 4 value elements, a loop hook, an FAQ and the right button. |
{
"access": {
"mode": "invite-only",
"primaryCta": "Request access",
"forbiddenCtas": ["Create your account", "Sign up free"]
},
"lanes": [
{ "id": "self-serve", "buyingSignal": "<N uses in 30 days>" },
{ "id": "assisted", "buyingSignal": "<first real purchase>" }
],
"neverSay": ["prices", "plans", "limits", "free", "trial", "customer names"],
"internalOnly": ["revenue levers", "internal metrics"],
"regulatedTopics": [
{ "topic": "identity checks",
"rule": "<the only true sentence, inside the flow that needs it>" }
]
}What the operating agent needs at hand
The skill installs and connects nothing. Another agent runs the machine, and it needs small access, one per job. This is the list the spec asks for, by function: pick the tool you already use.
| Function | What for | Access |
|---|---|---|
| Agent scheduler | runs each routine on time or on an event | create and run its own tasks |
| Product repository | facts and release notes | read only |
| Request form | the access requests | read requests |
| Public web pages | enrich the company card | read, no login and no personal data |
| Usage events | buying signals and stalled accounts | aggregated numbers per account |
| Board or CRM | hand the card to the team | create and comment, never close |
| Mailing list | invites and messages | draft; a person sends |
| Site or blog | articles and pages | propose a change, never publish |
The leads pipeline, in the spec
The spec describes the finished machine: who does what, when, with which input and output, and where it stops. HCL is used only because it is easy to read and validate. Nothing in it is executed; it is not infrastructure. This piece is the leads pipeline from part 2:
source "access_requests" {
kind = "form"
path_or_channel = "<channel>"
refresh = "on event"
}
event "access_requested" {
captures = ["goal", "company", "providers", "referrer"]
}
routine "enrich_requests" {
on = event.access_requested
agent = agent.operator
runs = workflow.lead_enrich
delivers_to = handoff.request_card
}
workflow "lead_enrich" {
inputs = [source.access_requests, "positioning.md", "loops.md"]
step "company" {
does = "Read the company's public pages: segment, size, what it sells"
}
step "providers" {
does = "Match named providers with integrations; count the missing ones"
}
step "lane" {
does = "Pick persona and lane, write the fit and a first message"
uses = [rule.facts_only, rule.no_personal_data, rule.never_say]
}
outputs = ["leads/<date>/<request>.md", "loops/providers.json"]
review_gate = gate.lead
}
gate "lead" {
checks = ["only public company data", "lane named", "no promise outside the facts"]
on_fail = "hold the card and hand it off with the FAIL"
}
handoff "request_card" {
from = agent.operator
to = role.sales
artifact = "leads/<date>/<request>.md"
when = "assisted lane, after gate.lead passes"
}Where the person steps in
- In the config. The owner decides what is never said, what the buying signal of each lane is and answers what is left to confirm.
- In every handoff. Articles, pages, cards and the report arrive as drafts. The agent publishes nothing, sends nothing and invites no one to the assisted lane.
- To change the machine. Change the spec first, then the routine. That way what runs and what is written never drift apart.
The skill, its docs and a full example run on an open source product are in the sales-machine-scaffold repository.
greetz bebedaselva
