CopilotKit/CopilotKit/skills/setup-slack-channel/SKILL.md
setup-slack-channel
Use for the PROVIDER half of getting a locally running CopilotKit Channels agent to answer in Slack, when no Slack app exists yet — setting up a Channels bot in Slack for the first time, creating the Slack app and its tokens, attaching it to a managed Intelligence Channel, or when a Channel reports setup_required, sits at "Waiting for runtime", the Channel is Online but a Slack mention gets no reply, or a Slack app was built with Socket Mode instead of an Intelligence Request URL. Scoped to an O
- Source repository stars
- 36,470
- Declared platforms
- 0
- Static risk flags
- 2
- Last source update
- 2026-08-05
- Source checked
- 2026-08-05
Decision brief
What it does—and where it fits
Take a developer from a code checkout to a working local Slack agent. Five separate systems have to line up, and they are owned by four different parties:
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/CopilotKit/CopilotKit --skill "skills/setup-slack-channel"Inspect the Agent Skill "setup-slack-channel" from https://github.com/CopilotKit/CopilotKit/blob/25817605cc6359edf6bc297ff3db01ef94aab777/skills/setup-slack-channel/SKILL.md at commit 25817605cc6359edf6bc297ff3db01ef94aab777. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Phase 0 — Establish the route and the contract
First, check whether Phases 1–2 are already done for you. Some organizations run a dedicated dev bot alongside their production one and hand developers a ready-made environment file — the Slack app, the Channel, and the adapter already exist, and the dev bot comes online only wh…
An OpenTag checkout — the developer's cwd is one, or they name one. This isexamples/OpenTag in this repo, if present. It is a submodule, so a plainNeither → have the developer clone it, and work from there: - 02
Phase 1 — Workspace, and start the Channel wizard to get the manifest
The Channel comes first, because the Channel generates the Slack app's manifest. Do not hand-write one, and do not use the starter's slack-app-manifest.yaml — see the prohibition below.
Use the workspace the developer named in Phase 0. If they have no usable one →In the Intelligence dashboard, start Create a channel. Enter the DisplayAdvance to Setup. That step contains a generated manifest ("Copy manifest" / - 03
Phase 2 — Create and install the Slack app from that manifest
Full detail in references/slack-workspace-and-app.md. The shape:
Create a new app from the manifest the wizard generated. Change theInstall it. Installing is the gated step — by default only Workspace OwnersCollect two values: the xoxb- bot token (OAuth & Permissions) and the - 04
Phase 3 — Finish the Channel: adapter credentials and API key
Back in the open wizard tab. Browser work, in the developer's own session. Four things must line up: Channel Code matches what the code declares, the Slack adapter reports connected, Channel and API key in the same project, endpoints left at their production defaults.
Back in the open wizard tab. Browser work, in the developer's own session. Four things must line up: Channel Code matches what the code declares, the Slack adapter reports connected, Channel and API key in the same proj…The developer types the bot token and signing secret into the Setup step themselves, then Review → create. Then issue a project-scoped API key and have them paste it into .env.These are consequential mutations in a live dashboard, so read the page before you act and never click a control you have not read. But reading is not a reason to check in: the Phase 0 authorization already covers this… - 05
Phase 4 — Configure and start the runtime
Full detail in references/local-runtime.md.
Full detail in references/local-runtime.md.The developer puts INTELLIGENCEAPIKEY into .env themselves. Verify by presence, never by printing. Then start the agent backend, then the runtime — and start it with logs turned up, because the runtime's logger defaults…channel "" requires setup in that output means Phase 2 is incomplete. It is the single highest-value line in this entire workflow, and at the default log level it is written and discarded.
Permission review
Static risk signals and limitations
Network access
The documentation includes network, browsing, or remote request actions.
| **Slack → Intelligence** | Slack posts events over **HTTPS** to an Intelligence-hosted Request URL: `https://intelligence.copilotkit.ai/api/channels/adapters/slack/events` | The app's **signing secret**, held by Intelligence |Network access
The documentation includes network, browsing, or remote request actions.
`request_url`. If you create the app with Socket Mode on and no Request URL, noRuns scripts
The documentation asks the agent to run terminal commands or scripts.
git submodule update --init examples/OpenTagRuns scripts
The documentation asks the agent to run terminal commands or scripts.
git clone https://github.com/CopilotKit/OpenTag.gitEvidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 86/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 36,470 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- CopilotKit/CopilotKit
- Skill path
- skills/setup-slack-channel/SKILL.md
- Commit
- 25817605cc6359edf6bc297ff3db01ef94aab777
- License
- MIT
- Collected
- 2026-08-05
- Default branch
- main
View the original SKILL.md
Set up a Slack Channel for a local Channels agent
Take a developer from a code checkout to a working local Slack agent. Five separate systems have to line up, and they are owned by four different parties:
| System | Who owns it | Where you work on it |
|---|---|---|
| Slack workspace | Workspace owner / app manager | Slack, in a browser |
| Slack app + its tokens | The developer | api.slack.com, in a browser |
| Intelligence project, API key, Channel, Slack adapter | The developer | The Intelligence dashboard, in a browser |
| Local Channels runtime | The developer | This repo, in the shell |
| AG-UI agent backend | The developer | This repo, in the shell |
How delivery actually works — two legs, two mechanisms
Getting this wrong is the most expensive mistake available here, because a misconfigured Slack app installs cleanly and answers nothing.
| Leg | Mechanism | What authenticates it |
|---|---|---|
| Slack → Intelligence | Slack posts events over HTTPS to an Intelligence-hosted Request URL: https://intelligence.copilotkit.ai/api/channels/adapters/slack/events | The app's signing secret, held by Intelligence |
| Intelligence → your runtime | Your runtime dials out to the realtime gateway over a websocket | INTELLIGENCE_API_KEY |
Two consequences:
- No tunnel and no public URL of your own is needed — but not because of Socket Mode. It is because Intelligence owns the public URL, and because the second leg is outbound from your machine.
- Socket Mode is off, and there is no
xapp-app-level token in this workflow at all. A managed Slack app needssocket_mode_enabled: falseand arequest_url. If you create the app with Socket Mode on and no Request URL, no event ever reaches Intelligence.
The Slack adapter form in Intelligence therefore asks for exactly two values: the
bot token (xoxb-) and the signing secret. Nothing else.
Most of this workflow happens in a browser, not a shell. The supported path
for v1 is the Intelligence browser experience. copilotkit channels does list
commands for Channel creation, adapter attach, and key issuance — do not use
them here; they are not hardened for this workflow yet. Never invent a command
name to fill a gap, and if you are unsure whether a command covers something,
check its --help rather than guessing.
Drive that browser yourself. That is the default here, not a bonus. Check what you actually have before Phase 0 and say which it is — never assume either way.
If you have no browser or computer-use tool, ask the developer to install one before you start. Work out which harness you are running in and name the single route that applies rather than reciting all of them: Claude Code and Codex each ship their own browser support and enable it differently, and most other harnesses take a general browser-use MCP server such as Playwright MCP. If you are not sure what your harness supports, look it up before you guess. Tell them what it buys — driving turns this into typing three secrets, while the fallback is roughly fifteen manual browser steps. Only if they decline, walk them through those steps one action at a time.
Done means three things, all verified
Do not report success until all three hold. Any one alone is a false positive.
- The Slack app is installed in a workspace, and the bot is a member of the channel you will test in.
- The managed Channel reports
online— fromcontrols.status()in the process, or Online in the dashboard. Not "the runtime started." - A real human mention got a real reply in Slack.
Gate 2 is where agents fail. await controls.ready() resolves on
setup_required too — that state is documented as "a valid degraded state, not
a failure." A runtime with no Slack connection at all starts cleanly, prints
its listening line, returns HTTP 200 on /api/copilotkit/info, and answers
nothing. /api/copilotkit/info reports license and runtime info, not channel
state, so a 200 there is not evidence of anything Slack-related.
The SDK behaviors asserted here were verified against the currently published
@copilotkit/[email protected] and @copilotkit/[email protected]. A starter may pin
something older or newer, and this API is moving fast. If a claim here
contradicts what you observe, trust the installed package and re-read it —
do not argue with the runtime.
Scope — read before planning
In scope: production CopilotKit Intelligence; a managed Channel; a dedicated Slack app created from a manifest; a local runtime and agent.
Out of scope in v1. These are hard limits, not defaults to weigh:
- Do not switch to a direct Slack adapter (
adapters: [slack({ botToken, appToken })]). Not as a fallback, not to save time, not because the dashboard is confusing. See the prohibitions below — this is the single most common way this workflow goes wrong. - Do not reuse, reinstall, or modify a Slack app that is already installed and in use. Create a dedicated one.
- Do not deploy anything (Railway or otherwise).
- Do not target internal or dev Intelligence environments.
- Do not enumerate the Slack workspace, search channels, or request scopes beyond the manifest.
Phase 0 — Establish the route and the contract
First, check whether Phases 1–2 are already done for you. Some organizations run a dedicated dev bot alongside their production one and hand developers a ready-made environment file — the Slack app, the Channel, and the adapter already exist, and the dev bot comes online only while someone runs it locally.
Ask: is there an existing dev bot and a provided config for this, or am I setting one up from scratch?
If a config is provided, skip Phases 1 and 2 entirely: put the provided
values in .env (the developer retrieves them from their team's secret-sharing
channel — never ask them to paste the contents here), install, and run. Do not
create a new Slack app, and do not create a Channel. Phases 3–5 still apply, and
the three success gates are unchanged.
Otherwise, pick the starter, in this order:
-
An OpenTag checkout — the developer's cwd is one, or they name one. This is the most likely path. Detect it: a
slack-app-manifest.yamlplusapp/channel.tsxat the root. -
examples/OpenTagin this repo, if present. It is a submodule, so a plain clone leaves it empty:git submodule update --init examples/OpenTag -
Neither → have the developer clone it, and work from there:
git clone https://github.com/CopilotKit/OpenTag.git
Whichever you land on, treat that checkout as the source of truth. Do not carry facts between checkouts — versions, env var names, and registered handlers differ between OpenTag revisions, which is why the next step reads them rather than assuming them.
Then read the app's own environment contract instead of assuming variable
names. They differ between apps, and so does the vocabulary for the same
concept: OpenTag uses INTELLIGENCE_CHANNEL_NAME, the Channels SDK README's
quickstart calls it CHANNEL_CODE, and it is also referred to as the Channel's
slug. All of them mean the name passed to createChannel(), which must
match the Channel in the dashboard character for character. Read the app's
parser; do not guess which word this codebase uses.
cat .env.example
grep -rn "process.env" app/env.ts server.ts 2>/dev/null
grep -n "onMention\|onMessage\|onCommand\|createChannel(" app/channel.tsx
Record, and state back to the developer: the exact env var names, the Channel name the code will declare, and which handlers are registered.
Know what the managed adapter does not deliver. The generated manifest
declares no slash_commands, so slash commands never arrive. It does enable
interactivity, and the managed ingress handles block_actions — so HITL
buttons and selects do fire. What it does not handle is view_submission, so
modals do not. As shipped, a managed Slack Channel receives mentions,
messages, reactions, and interactive component clicks — not slash commands and
not modal submissions. An app registering onCommand or onModalSubmit will
compile, start, report online, and never fire those handlers on the managed
path. OpenTag registers onModalSubmit and ships four commands; none of those
work here, though its buttons do. Say this up front rather than letting the
developer debug it, and do not invent a Request URL for commands to fill the
gap.
That last one decides what "working" even looks like. Turn routing is not
symmetric: a mentioned turn goes to onMention if registered and otherwise
falls back to onMessage, while a non-mentioned turn goes only to
onMessage. So an app registering just onMention — which is what OpenTag does
— answers channel mentions, and may silently do nothing for any turn Intelligence
does not flag as a mention. Verify with a channel mention first; it is the
path every starter registers. Details in references/troubleshooting.md.
Decide these with the developer before you open a browser
Driving does not mean deciding. These are the developer's calls, all cheap to ask now and expensive to change later. Ask for them in one exchange, then proceed without coming back.
- The bot's display name. The wizard derives the Channel Code from it,
and that Code is what
createChannel({ name })declares and what they type as/invite @<code>. Slack bot names are workspace-wide, so a collision blocks the install. Suggest one, but do not settle it yourself — this is the bot's identity in their workspace. - Which Slack workspace the app gets installed into. Never assume the one their browser session happens to be signed into.
- Which channel to test in. Gate 3 is a real mention getting a real reply, so it has to be somewhere they can post and somewhere a bot reply is welcome.
- Whether this is throwaway or something they will keep, if they have not already said. It decides whether a sandbox workspace is fine.
State the answers back before Phase 1. If they defer one, say what you are defaulting to rather than silently picking.
Then take one authorization
Name the whole sequence it covers: production Intelligence, a dedicated Slack app built from the wizard's generated manifest, installed into the workspace they named, the Channel created, the Slack adapter attached, and a project-scoped API key issued.
One yes covers all of it. Do not re-ask per page, per goal, or per click — a run that stops at every control is slower than the manual path it replaced, which is the whole reason driving is the default. After this, stop only for a secret the developer types themselves, for a decision above that they deferred, or for something this authorization did not cover.
Those two blocks are different things and both are required. The decisions are inputs you cannot invent; the authorization is permission you only need once. Collapsing the second does not license skipping the first.
Phase 1 — Workspace, and start the Channel wizard to get the manifest
The Channel comes first, because the Channel generates the Slack app's
manifest. Do not hand-write one, and do not use the starter's
slack-app-manifest.yaml — see the prohibition below.
- Use the workspace the developer named in Phase 0. If they have no usable one → create a free workspace, or a Slack Developer Program sandbox. Never test in a workspace where an unapproved bot would be disruptive.
- In the Intelligence dashboard, start Create a channel. Enter the Display
name the developer chose in Phase 0 — do not substitute your own. The wizard
derives the Code from it — lowercase kebab-case, and the Code is what
createChannel({ name })must declare. Select Slack. - Advance to Setup. That step contains a generated manifest ("Copy manifest" / "View manifest YAML") already pointed at the right Request URL, plus the two credential fields you will fill in Phase 3. Nothing is saved until you finish, so leave this tab open.
Read the wizard's own warning before you install anything: Slack bot names and slash commands are workspace-wide. If either generated name is already in use, choose a more specific Channel display name before installing. A collision here blocks the install, so resolve it by renaming the Channel, not the manifest.
Full detail in references/intelligence-channel.md.
Phase 2 — Create and install the Slack app from that manifest
Full detail in references/slack-workspace-and-app.md. The shape:
- Create a new app from the manifest the wizard generated. Change the display name so it is obviously a dev app.
- Install it. Installing is the gated step — by default only Workspace Owners review app requests, and they may appoint app managers to do so too. Creating the app is normally not gated, so create it while any install request is pending rather than waiting.
- Collect two values: the
xoxb-bot token (OAuth & Permissions) and the signing secret (Basic Information → App Credentials). They go to Intelligence — never into this repo. There is noxapp-token in this workflow. - Invite the bot to the channel the developer named in Phase 0:
/invite @<code>. The developer runs this — you cannot invite a bot on their behalf, and the CLI cannot verify the invitation either.
Phase 3 — Finish the Channel: adapter credentials and API key
Back in the open wizard tab. Browser work, in the developer's own session. Four things must line up: Channel Code matches what the code declares, the Slack adapter reports connected, Channel and API key in the same project, endpoints left at their production defaults.
The developer types the bot token and signing secret into the Setup step
themselves, then Review → create. Then issue a project-scoped API key and have
them paste it into .env.
These are consequential mutations in a live dashboard, so read the page before you act and never click a control you have not read. But reading is not a reason to check in: the Phase 0 authorization already covers this sequence, so work straight through it and report what you changed rather than asking before each control.
Phase 4 — Configure and start the runtime
Full detail in references/local-runtime.md.
The developer puts INTELLIGENCE_API_KEY into .env themselves. Verify by
presence, never by printing. Then start the agent backend, then the runtime — and
start it with logs turned up, because the runtime's logger defaults to error
while every Channel lifecycle breadcrumb is emitted at warn:
LOG_LEVEL=debug pnpm runtime
channel "<name>" requires setup in that output means Phase 2 is incomplete. It
is the single highest-value line in this entire workflow, and at the default log
level it is written and discarded.
Phase 5 — Verify, in order
controls.status()→overall: "online". If the app does not already assert this, add the assertion —examples/OpenTag'sserver.tscallsready()and never checks status, which is exactly how a broken setup looks healthy.- The dashboard shows the Channel Online while the process runs. Its Runtime
panel should read Connected. Ignore the Agent run column — it reads
—even after a turn completes successfully, so it is not a health signal. - The developer sends a real mention from their own Slack account and reports the reply.
Step 3 is theirs. Do not post to Slack on their behalf, and do not substitute
reading the workspace with a Slack tool for a genuine round trip. If a mention
produces nothing, go to references/troubleshooting.md — diagnose by layer, do
not start changing configuration.
Phase 6 — Optional live E2E
Only after a real mention works. references/optional-e2e.md. This is the one
place Slack tokens legitimately enter .env, because the harness drives the
Slack API directly as a test client.
Never do these
Never switch to a direct Slack adapter to get unblocked. It moves platform credentials into the app, abandons managed delivery's retries/dedup/ordering, still requires an Intelligence key, and means you validated a different architecture than the one the developer asked about. If the managed path is blocked, say it is blocked and say why.
Never create the Slack app from the starter's own slack-app-manifest.yaml.
OpenTag's manifest sets socket_mode_enabled: true and declares no
request_url, which is the shape for a direct adapter, not a managed Channel.
An app created from it installs cleanly, shows green in Slack, and delivers
nothing to Intelligence forever. Use the manifest the Channel wizard generates.
The same applies to assets/slack-app-manifest.yaml in this skill — it is kept
only as a reference for the direct-adapter shape.
Never reuse a production or shared Slack app. One Slack app has exactly one event-subscription Request URL. Pointing an existing app at your Channel's URL redirects that app's entire event stream away from whatever was serving it — you do not observe production traffic, you hijack it, and real users get answered by an in-progress agent on a laptop. Slack offers no way to scope delivery to one channel or one user. Pasting a manifest over an installed app also forces reinstallation and rotates its tokens, breaking every existing consumer.
Never ask for a secret in chat, and never print one. Full ownership table and
handling rules in references/secrets-and-credentials.md.
Never use the runtime API key to probe Intelligence HTTP endpoints. It is a project-scoped activation key, not a dashboard session; dashboard endpoints reject it, and a response body could carry platform tokens.
Never mutate the environment to make progress feel faster. No pnpm install,
no killing processes you did not start, no editing .env for the developer,
without naming the change and getting a yes.
Rationalizations
| Thought | Reality |
|---|---|
| "They're on a deadline, the direct adapter is faster" | You would be validating a different architecture and handing them credentials in the wrong place. Deadline pressure is when scope discipline matters most. |
| "The dashboard is confusing, code is more reliable" | The confusion is the developer's actual problem. Solving it in code hides it. |
| "The prod Slack app is already installed, so reusing it saves the approval" | Repointing its Request URL hijacks that app's whole event stream. The approval exists because installs affect other people. |
| "It's just for testing / just for a minute" | An app has one events URL. While yours is set, production is not receiving its events at all. |
| "The starter ships a manifest, so I'll create the app from that" | It sets socket_mode_enabled: true with no request_url — the direct-adapter shape. The app will install green and never deliver. Use the wizard's manifest. |
"I need to generate an xapp- app-level token" | There is no xapp- token in this workflow and nowhere to put one. The adapter takes a bot token and a signing secret. |
"The runtime started and /info returns 200, so we're connected" | ready() resolves on setup_required and /info reports license state. Neither says anything about Slack. |
"ready() resolved without throwing, so the Channel is online" | It resolves on setup_required by design. Read status(). |
| "I'll check the Channel state with the API key" | Dashboard endpoints reject a project key. Use status() or the dashboard. |
"Let me just read .env to see what's configured" | Read .env.example for names; check .env only for presence, and never quote a value. |
| "I'll send the test mention myself to save a round trip" | The success criterion is a real human mention. Posting for them proves less and acts on their behalf in their workspace. |
| "No reply — let me try changing the config" | Diagnose by layer first. LOG_LEVEL=debug names the failure in one line. |
Red flags — stop
- You are about to type
adapters: [slack(or addSLACK_BOT_TOKENto.envfor anything other than the Phase 6 harness. - You are about to create the Slack app from the starter's manifest, or from any
manifest with
socket_mode_enabled: trueand norequest_url. - You are about to look for an app-level token,
connections:write, or a Socket Mode toggle. None of them belong to a managed Channel. - You are about to open or screenshot the app's Install App page. It renders the bot token in plain text; reading it captures a live credential.
- You are about to say "connected", "working", or "done" without all three gates.
- You are about to ask the developer to paste a token, or you are about to echo one.
- You are about to click a dashboard control you have not read.
- You are about to
pnpm install, kill a process, or edit.envunasked. - You have spent many tool calls deriving how managed Channels work. Stop — it is in this skill and its references.
References
Read the reference for the phase you are actually in — not all of them up front. Each is self-contained, and reading six files before saying anything to the developer is how this workflow gets slow.
| File | Read it when |
|---|---|
references/intelligence-channel.md | Phases 1 and 3 — wizard, Code, adapter, project, key |
references/slack-workspace-and-app.md | Phase 2 — workspace, install, bot token, signing secret |
references/secrets-and-credentials.md | Any time a credential is in play |
references/local-runtime.md | Phase 4 — env, agent, runtime, startup, ports |
references/optional-e2e.md | Phase 6 — the live Slack harness |
references/troubleshooting.md | Anything fails, or a mention gets no reply |
assets/slack-app-manifest.yaml | Reference only — the direct-adapter shape. Not for a managed Channel. |
Alternatives
Compare before choosing
coreyhaines31/marketingskills
ab-testing
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
alirezarezvani/claude-skills
app-store-optimization
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
dotnet/skills
migrate-vstest-to-mtp
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing
JasonColapietro/suede-creator-skills
suede-ab-testing
Suede-owned experimentation discipline for hypotheses, sample sizing, test duration, significance, and repeatable experiment programs. Use when comparing variants, deciding whether a result is reliable, or building an experiment backlog and cadence. NOT FOR: analytics instrumentation (use suede-analytics), post-click conversion diagnosis (use suede-site-alchemy), or writing the variant copy itself (use suede-copy).