/uniswap-permissioned-pools:permissioned-pools-configuratorfrom uniswap-permissioned-pools
Interactively collects and validates parameters for a Uniswap v4 Permissioned Pool setup, emitting a JSON configuration for deployment.
Ships in uniswap-permissioned-pools. 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.
Read when SKILL.md points to them.
Interactive bulk-form configurator for a Uniswap v4 Permissioned Pool. Collects every
parameter the setup journey needs, validates each one, and displays a single JSON
configuration object that the permissioned-pools-deployer skill consumes to run the
on-chain sequence. For the contract mechanics behind any of these parameters, see
permissioned-pools-issuer.
Runtime Compatibility: This skill uses
AskUserQuestionto collect parameters in batches. IfAskUserQuestionis not available in your runtime, collect the same parameters through natural language conversation instead, in the same batch groupings and with the same validation after each group.
This is a configuration tool, not deployment guidance and not a compliance review.
"RESOLVE", never guessed or recalled from memory.DISCLAIMER.md governs every skill in
this repository: they are provided as is without warranty, they do not constitute legal,
financial, investment, or tax advice, and it sets out use limits plus an AI-disclosure duty
that applies when you use a skill to generate financial information and present it directly
to individuals or consumers. Point the user to it.State this framing inline (quoted or in your own words) and continue with the configuration flow in the same response — this is reference and data-collection content, not an action-oriented deployment step, so no acknowledgment gate is needed here. The deployer skill gates on acknowledgment before anything gas-spending.
The output is a pre-deployment plan, not a record of what already exists on-chain.
PermissionsAdapter address does not appear in this config. It does not exist
until the deployer's Step 2 (createPermissionsAdapter) creates it. If the issuer
already has a deployed adapter for this token, that is a re-run/import scenario this
skill does not currently handle — collect its address as a note and confirm with the
deployer skill's preflight checks instead of adding it here. This declines only the
adapter address itself — it does not block the rest of the request. Continue
validating and including every other field the user supplied (or marked "RESOLVE")
in the emitted configuration exactly as the flow below describes.permissioned-pools-issuer — the pool currency
the deployer builds later is the adapter, derived at deploy time, not configured here.Collect parameters in four batches of at most four questions each. After each batch,
validate every answer against config-schema.md before
moving on, and show a running summary of what has been collected and what remains.
Field-by-field meaning, how to choose each value, and what breaks if it is wrong are all
in parameter-reference.md.
A user may answer several batches' worth of questions in one free-form message, or ask
to skip the remaining questions and finish immediately. Do not withhold the whole
configuration while asking whether to proceed. Instead: validate everything the user did
supply against config-schema.md, apply the literal string "RESOLVE" (or null for
allowlistChecker.address when the checker is to-be-deployed) to every address-type
field left open, and produce that partial configuration in the same response. Fields with
no "RESOLVE" sentinel — the verification deposit amount, pool currency, fee tier, tick
spacing, starting price, and seeding — have no safe default; flag each one explicitly as
still needing an answer rather than guessing at it, and ask only about those. This
includes the verification deposit amount even though Batch 2 lists "1 wei" as the
recommended option: a menu option a user has not actually picked is not a value the
skill may silently apply on their behalf — treat an unanswered verification deposit
amount exactly like the other sentinel-less fields, never as an already-resolved "1".
Skipping the batch-by-batch confirmation step never means skipping validation — every
rule above still applies to whatever the user did supply.
Question 1 — Network
#deployment-addresses table before proceeding.chainIdQuestion 2 — Underlying permissioned token
"RESOLVE"), custom address
(via "Other")^0x[a-fA-F0-9]{40}$, or the literal string "RESOLVE" if not yet deployedpermissionedTokenQuestion 3 — Allowlist checker
allowlistChecker value it produces:
mode: "existing", address set to that address.mode: "to-be-deployed", address set to null.allowlistChecker.mode (existing | to-be-deployed), allowlistChecker.addressQuestion 4 — Adapter owner
PermissionsAdapter (initialOwner)?""RESOLVE"), custom address (via "Other")^0x[a-fA-F0-9]{40}$ and not the zero address, or the literal string
"RESOLVE"adapterOwnerValidate: confirm chain ID is a positive integer, the token address is either a
valid address or the literal string "RESOLVE", the checker address (if "existing" was
chosen) matches the address regex, and the adapter owner is either a valid non-zero
address or the literal string "RESOLVE". Show a summary of the four collected values,
flagging any field still marked "RESOLVE".
Question 1 — Verification deposit amount
"1" on the user's behalf when this question was skipped. See
Front-loaded or skip-ahead answers above.verificationDepositAmountQuestion 2 — PermissionedPositionManager address
PermissionedPositionManager address resolved for this
chain?""RESOLVE"), custom address (via "Other")"RESOLVE"allowedWrappers.permissionedPositionManagerQuestion 3 — Universal Router (v2.2+) address
#v2.2 (or higher) address resolved for
this chain?""RESOLVE"), custom address (via "Other")UniversalRouter deployments key is a different,
non-permissioned router — only the #v2.2 deployment works here."RESOLVE"allowedWrappers.universalRouterV2_2Question 4 — PermissionedHooks address
PermissionedHooks address resolved for this chain, for
setAllowedHook?""RESOLVE"), custom address (via "Other")setAllowedHook on the position manager — it is never registered as a wrapper."RESOLVE"hookValidate: confirm the deposit amount is a positive integer (not zero) expressed in
the token's smallest unit, and that every address field is either a valid address or the
literal string "RESOLVE" — never a guessed or invented value. Show a summary.
Question 1 — V4Quoter address
V4Quoter address resolved for this chain?""RESOLVE"), custom address (via "Other")"RESOLVE"allowedWrappers.v4QuoterQuestion 2 — MixedRouteQuoterV2 address
MixedRouteQuoterV2 address resolved for this chain?""RESOLVE"), custom address (via "Other")"RESOLVE"allowedWrappers.mixedRouteQuoterV2Question 3 — Paired currency
"native" (the native-currency sentinel; see Address Validation
for the full semantics). A user who supplies the zero address here means "native" —
record "native", never the zero address.pool.pairedCurrencyQuestion 4 — Fee tier
pool.feeTierValidate: confirm both remaining wrapper fields are a valid address or the literal
string "RESOLVE", the paired currency is a valid non-zero address or the literal string
"native", and the fee tier is a positive integer. When the paired currency is a resolved
address and permissionedToken is also a resolved address, confirm the two differ —
pairing the permissioned token against itself builds a PoolKey that either fails at the
PoolManager level or creates a pool nobody intended (see
Parameter Reference). Show a
summary of all four wrappers,
the hook, and the pool currency collected so far, and flag every field still marked
"RESOLVE".
Question 1 — Tick spacing
pool.tickSpacingQuestion 2 — Starting price
pool.startingPriceRatio (a human-readable ratio; the deployer skill converts
this to sqrtPriceX96 at initialization time, since that conversion depends on the
decimals of both currencies, which are not yet resolved at configuration time)Question 3 — Seeding intent
seeding.intent value it produces:
intent: "seed-now", wallet set to the
same address already collected as adapterOwner in Batch 1. Offer this option
only when adapterOwner is a real address — not when it is the literal string
"RESOLVE". seeding.wallet must always be a real address (see Validation
below), so this option cannot copy forward an unresolved owner.intent: "seed-now", wallet set to that addressintent: "none", wallet: nulladapterOwner is "RESOLVE", present only the second and third options — drop the
first option from the list entirely rather than showing it disabled.LIQUIDITY_ALLOWED on the issuer's own allowlist before the
first mint — being the adapter owner grants nothing on the liquidity path.intent is "seed-now", wallet is required and must match the
address regex — never the literal string "RESOLVE" or any other sentinel; when
intent is "none", wallet must be null. This flow never produces "seed-later"
— that enum value exists in the schema for a config edited or extended outside this
flow, not for output from these three options.seeding.intent, seeding.walletValidate: confirm tick spacing is a positive integer, the starting price ratio is a
positive number, and — per the branch taken above — either seeding.wallet is a valid,
non-"RESOLVE" address (when intent is "seed-now") or it is null (when intent is
"none"). seeding.wallet never accepts the literal string "RESOLVE", even when it
was going to be copied from adapterOwner — see the option restriction above. Show the
full configuration collected across all four batches.
Assemble everything collected into the JSON shape defined in
config-schema.md, keyed by chainId at the top
level:
{
"<chainId>": {
"permissionedToken": "...",
"allowlistChecker": { "mode": "...", "address": "..." },
"adapterOwner": "...",
"verificationDepositAmount": "...",
"allowedWrappers": {
"permissionedPositionManager": "...",
"universalRouterV2_2": "...",
"v4Quoter": "...",
"mixedRouteQuoterV2": "..."
},
"hook": "...",
"pool": {
"pairedCurrency": "native",
"feeTier": 3000,
"tickSpacing": 60,
"startingPriceRatio": 1
},
"seeding": { "intent": "seed-now", "wallet": "..." }
}
}
Display this JSON directly in the transcript. Do not automatically create a file. Let the user copy it or choose a filepath in the next-steps question below.
Immediately after the JSON, show a human-readable summary:
LIQUIDITY_ALLOWED.config-schema.md passed, and which fields
still need a real address before this config can be used to deploy anything.Ask the user what they want to do:
permissioned-pool-config.json. Require
a relative path ending in .json; reject an absolute path (leading /), reject a
leading ~ (a runtime that expands it can write outside the working directory —
including over Claude Code's own config store), and reject any path containing a ..
segment. Resolve the path and confirm it still stays within the current working
directory before writing. If the resolved path already exists, ask for confirmation
before overwriting it — including a file that looks unrelated to this skill, such as
package.json or tsconfig.json. Re-prompt once on a rejected path rather than
silently substituting the default. Then write exactly the JSON object shown above.
(This validation is intentionally stricter than other skills' "save to file" steps in
this repo — the ~ and .. rejections were added in response to a security audit
finding that a leading ~ could target ~/.claude.json, so keep them here rather
than trimming to match a lighter-weight equivalent elsewhere.)permissioned-pools-deployer."RESOLVE" in that field —
full stop. This includes not "helpfully" completing a partially-typed address.Bash or WebFetch in its tool list, on purpose — resolving
addresses against Uniswap/contracts deployments/json/<chainId>.json and the deploy
guide's table is the user's job, or a later step in the deployer skill's preflight.What SKILL.md sets; muted values are Claude Code's defaults
opusThree short reads, in order
3 skills in this plugin
/permissioned-pools-deployerGuided walkthrough for executing the on-chain setup sequence for a Uniswap v4 Permissioned Pool from a permissioned-pools-configurator JSON config - allowlist checker deployment, createPermissionsAdapter, allowlisting and funding the adapter, verification, wrapper and hook registration, pool initialization, swap enablement, liquidity seeding, and the routing-allowlist request. Use when the user says "deploy a permissioned pool", "run the permissioned pool setup", "execute the permissioned pools journey", "createPermissionsAdapter", "verify my permissions adapter", "walk me through the permissioned pool deployment", or asks to execute the on-chain steps after generating a permissioned-pools-configurator config. Covers contract mechanics only - does not constitute legal, financial, investment, tax, or compliance advice, and is not a compliance review - and never emits a broadcastable command before an explicit acknowledgment./permissioned-pools-issuerReference guide for engineering teams setting up a Uniswap v4 Permissioned Pool for a transfer-restricted (RWA / tokenized-asset) ERC-20. Use when the user says "permissioned pool", "PermissionsAdapter", "PermissionsAdapterFactory", "PermissionedPositionManager", "PermissionedHooks", "allowlist checker", "BaseAllowlistChecker", "adapter verification", "verifyPermissionsAdapter", "updateAllowedWrapper", "setAllowedHook", "unwindPosition", "wrap a permissioned token for v4", or asks how an RWA issuer lists a restricted token on Uniswap v4. Explains the contract architecture, the ordered setup journey, the code-enforced ordering, and the trust model. Covers contract mechanics only - does not constitute legal, financial, investment, tax, or compliance advice, and is not a compliance review.npx claudepluginhub uniswap/uniswap-ai --plugin uniswap-permissioned-poolsOther plugins' skills for the same job