@rubytech/create-sitedesk-code 0.1.401 → 0.1.404
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/payload/platform/plugins/cloudflare/bin/__tests__/cf-token.test.sh +96 -1
- package/payload/platform/plugins/cloudflare/bin/cf-token.sh +24 -8
- package/payload/platform/plugins/cloudflare/references/api.md +3 -1
- package/payload/platform/plugins/web-designer/skills/web-design/references/placeholders.md +19 -2
- package/payload/platform/plugins/web-designer/skills/web-design/templates/index.html +12 -12
- package/payload/platform/scripts/check-no-esm-require.mjs +3 -0
- package/payload/premium-plugins/sitedesk/BUNDLE.md +6 -4
- package/payload/premium-plugins/sitedesk/PLUGIN.md +2 -2
- package/payload/premium-plugins/sitedesk/agents/sitedesk--media-producer.md +18 -7
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/.claude-plugin/plugin.json +1 -1
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/PLUGIN.md +30 -26
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/README.md +26 -36
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/commands/make-media.md +2 -2
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/microsite/SKILL.md +52 -75
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/socials/SKILL.md +52 -120
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/socials/references/sources.md +17 -52
- package/payload/server/public/assets/{AdminLoginScreens-rlk263u9.js → AdminLoginScreens-BzErD9Zo.js} +1 -1
- package/payload/server/public/assets/AdminShell-BihejKg_.js +1 -0
- package/payload/server/public/assets/{Checkbox-Chz6bfy-.js → Checkbox-Ds004CBE.js} +1 -1
- package/payload/server/public/assets/{Transcript-Bsx-bGgY.js → Transcript-CgaMQKgY.js} +1 -1
- package/payload/server/public/assets/{admin-BnZH758N.js → admin-BSuRtMws.js} +1 -1
- package/payload/server/public/assets/{browser-CIrfyZWe.js → browser-BO2eR_YY.js} +1 -1
- package/payload/server/public/assets/{calendar-D6Z8Kmrn.js → calendar-12QuR_oh.js} +1 -1
- package/payload/server/public/assets/chat-Qpyg5t65.js +1 -0
- package/payload/server/public/assets/chevron-left-DBUeR2CX.js +1 -0
- package/payload/server/public/assets/data-Ch5bne41.js +1 -0
- package/payload/server/public/assets/{graph-XZJZHzvv.js → graph-CDOJZepc.js} +1 -1
- package/payload/server/public/assets/{graph-labels-Cabqmf35.js → graph-labels-6HKBjyXX.js} +1 -1
- package/payload/server/public/assets/{maximize-2-DPe-Noig.js → maximize-2-DWmyXX8h.js} +1 -1
- package/payload/server/public/assets/{operator-BM_CDyCb.js → operator-D-s7jVnf.js} +1 -1
- package/payload/server/public/assets/{page-CMIbXzSg.js → page-BcxrdxYL.js} +1 -1
- package/payload/server/public/assets/{page-E7I5sEVt.js → page-rDhp8G9q.js} +1 -1
- package/payload/server/public/assets/{public-CrdWCSk2.js → public-zK67N3z2.js} +1 -1
- package/payload/server/public/assets/{rotate-ccw-Dwtj0NJ7.js → rotate-ccw-BzBJxqBN.js} +1 -1
- package/payload/server/public/assets/useSubAccountSwitcher-B-GuP1jj.css +1 -0
- package/payload/server/public/browser.html +4 -4
- package/payload/server/public/calendar.html +5 -5
- package/payload/server/public/chat.html +9 -9
- package/payload/server/public/data.html +8 -8
- package/payload/server/public/graph.html +9 -9
- package/payload/server/public/index.html +11 -11
- package/payload/server/public/operator.html +11 -11
- package/payload/server/public/public.html +9 -9
- package/payload/server/server.js +32 -32
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/brand-extract/SKILL.md +0 -86
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/make-media/SKILL.md +0 -75
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/make-media/references/intake-and-questions.md +0 -74
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/microsite/references/placeholders.md +0 -96
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/microsite/references/sections.md +0 -48
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/microsite/templates/index.html +0 -1004
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/microsite/templates/llms.txt +0 -32
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/socials/references/pii-strip.md +0 -64
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/socials/templates/og.html +0 -92
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/socials/templates/social-posts.md +0 -47
- package/payload/premium-plugins/sitedesk/plugins/sitedesk-media/skills/socials/templates/socials.html +0 -87
- package/payload/server/public/assets/AdminShell-C5vWTy2n.js +0 -1
- package/payload/server/public/assets/chat-h7SytZHx.js +0 -1
- package/payload/server/public/assets/chevron-left-DSTeS1_g.js +0 -1
- package/payload/server/public/assets/data-CL7CyX1C.js +0 -1
- package/payload/server/public/assets/useSubAccountSwitcher-BH-YjP0H.css +0 -1
- /package/payload/server/public/assets/{useSubAccountSwitcher-BVCMAnWK.js → useSubAccountSwitcher-Bg0RH3Gk.js} +0 -0
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ echo "\$@" >> "\$SB/curl.log"
|
|
|
48
48
|
url=""; for a in "\$@"; do case "\$a" in https://*) url="\$a";; esac; done
|
|
49
49
|
case "\$url" in
|
|
50
50
|
*"/tokens/permission_groups"*)
|
|
51
|
-
echo '{"success":true,"result":[{"id":"pg_pages","name":"
|
|
51
|
+
echo '{"success":true,"result":[{"id":"pg_pages","name":"Pages Write"},{"id":"pg_d1","name":"D1 Write"},{"id":"pg_dns","name":"DNS Write"},{"id":"pg_acc1","name":"Access: Apps and Policies Write"},{"id":"pg_acc2","name":"Access: Apps and Policies Write"}]}'
|
|
52
52
|
;;
|
|
53
53
|
*"/tokens/verify"*) echo '{"success":true,"result":{"status":"active"}}';;
|
|
54
54
|
*"/tokens"*) echo '{"success":true,"result":{"id":"tok1","value":"'"$SECRET_VALUE"'"}}';;
|
|
@@ -191,5 +191,100 @@ echo "$ERR" | grep -q "code=1001" && ok "failure code surfaced" || bad "code not
|
|
|
191
191
|
no_leak "real failure"
|
|
192
192
|
teardown
|
|
193
193
|
|
|
194
|
+
# 9. pages exact-name: three custom-pages decoys ordered BEFORE the real group.
|
|
195
|
+
# The old fuzzy /pages.*(write|edit)/ + head -1 picks "Access: Custom Pages Write";
|
|
196
|
+
# exact-name must mint the real Pages Write + D1 Write ids and none of the decoys.
|
|
197
|
+
setup "cfat_master_abc"
|
|
198
|
+
cat > "$BIN/curl" <<'CURL'
|
|
199
|
+
#!/usr/bin/env bash
|
|
200
|
+
SB="$(cd "$(dirname "$0")/.." && pwd)"
|
|
201
|
+
echo "$@" >> "$SB/curl.log"
|
|
202
|
+
url=""; for a in "$@"; do case "$a" in https://*) url="$a";; esac; done
|
|
203
|
+
case "$url" in
|
|
204
|
+
*"/permission_groups"*) echo '{"success":true,"result":[{"id":"pg_x1","name":"Access: Custom Pages Write"},{"id":"pg_x2","name":"Account Custom Pages Write"},{"id":"pg_x3","name":"Custom Pages Write"},{"id":"pg_pages_real","name":"Pages Write"},{"id":"pg_d1_real","name":"D1 Write"}]}';;
|
|
205
|
+
*"/tokens/verify"*) echo '{"success":true,"result":{"status":"active"}}';;
|
|
206
|
+
*"/tokens"*) echo '{"success":true,"result":{"value":"cfat_minted_SECRET_do_not_leak_0123456789"}}';;
|
|
207
|
+
*) echo '{"success":false,"errors":[{"code":9999}]}';;
|
|
208
|
+
esac
|
|
209
|
+
CURL
|
|
210
|
+
chmod +x "$BIN/curl"
|
|
211
|
+
run "pages exact-name skips custom-pages decoys" pages 0
|
|
212
|
+
POSTLINE=$(grep -- "-X POST" "$SANDBOX/curl.log")
|
|
213
|
+
echo "$POSTLINE" | grep -q "pg_pages_real" && ok "minted real Pages Write id" || bad "did not mint real pages id: $POSTLINE"
|
|
214
|
+
echo "$POSTLINE" | grep -q "pg_d1_real" && ok "minted real D1 Write id" || bad "did not mint real d1 id"
|
|
215
|
+
echo "$POSTLINE" | grep -qE "pg_x1|pg_x2|pg_x3" && bad "minted a custom-pages decoy id: $POSTLINE" || ok "no custom-pages decoy id minted"
|
|
216
|
+
no_leak "pages exact-name"
|
|
217
|
+
teardown
|
|
218
|
+
|
|
219
|
+
# 10. dns exact-name on cfat_: skip the "Account DNS Settings Write" / "DNS Firewall
|
|
220
|
+
# Write" decoys, mint the real "DNS Write" id, AND nest the zone resource under
|
|
221
|
+
# the account resource (account-owned masters reject the flat zone.* with 1001).
|
|
222
|
+
setup "cfat_master_abc"
|
|
223
|
+
cat > "$BIN/curl" <<'CURL'
|
|
224
|
+
#!/usr/bin/env bash
|
|
225
|
+
SB="$(cd "$(dirname "$0")/.." && pwd)"
|
|
226
|
+
echo "$@" >> "$SB/curl.log"
|
|
227
|
+
url=""; for a in "$@"; do case "$a" in https://*) url="$a";; esac; done
|
|
228
|
+
case "$url" in
|
|
229
|
+
*"/permission_groups"*) echo '{"success":true,"result":[{"id":"pg_dnsx1","name":"Account DNS Settings Write"},{"id":"pg_dnsx2","name":"DNS Firewall Write"},{"id":"pg_dns_real","name":"DNS Write"}]}';;
|
|
230
|
+
*"/tokens/verify"*) echo '{"success":true,"result":{"status":"active"}}';;
|
|
231
|
+
*"/tokens"*) echo '{"success":true,"result":{"value":"cfat_minted_SECRET_do_not_leak_0123456789"}}';;
|
|
232
|
+
*) echo '{"success":false,"errors":[{"code":9999}]}';;
|
|
233
|
+
esac
|
|
234
|
+
CURL
|
|
235
|
+
chmod +x "$BIN/curl"
|
|
236
|
+
run "dns exact-name cfat nests zone under account" dns 0
|
|
237
|
+
POSTLINE=$(grep -- "-X POST" "$SANDBOX/curl.log")
|
|
238
|
+
echo "$POSTLINE" | grep -q "pg_dns_real" && ok "minted real DNS Write id" || bad "did not mint real dns id: $POSTLINE"
|
|
239
|
+
echo "$POSTLINE" | grep -qE "pg_dnsx1|pg_dnsx2" && bad "minted a dns decoy id: $POSTLINE" || ok "no dns decoy id minted"
|
|
240
|
+
echo "$POSTLINE" | grep -qF '"resources":{"com.cloudflare.api.account.acc123":{"com.cloudflare.api.account.zone.*":"*"}}' && ok "cfat nests zone under account" || bad "zone resource not nested for cfat: $POSTLINE"
|
|
241
|
+
no_leak "dns cfat nested"
|
|
242
|
+
teardown
|
|
243
|
+
|
|
244
|
+
# 11. dns exact-name on cfut_: the flat top-level zone resource is preserved, with
|
|
245
|
+
# no account nesting (user-owned masters accept the flat zone.* shape).
|
|
246
|
+
setup "cfut_master_xyz"
|
|
247
|
+
cat > "$BIN/curl" <<'CURL'
|
|
248
|
+
#!/usr/bin/env bash
|
|
249
|
+
SB="$(cd "$(dirname "$0")/.." && pwd)"
|
|
250
|
+
echo "$@" >> "$SB/curl.log"
|
|
251
|
+
url=""; for a in "$@"; do case "$a" in https://*) url="$a";; esac; done
|
|
252
|
+
case "$url" in
|
|
253
|
+
*"/permission_groups"*) echo '{"success":true,"result":[{"id":"pg_dns_real","name":"DNS Write"}]}';;
|
|
254
|
+
*"/tokens/verify"*) echo '{"success":true,"result":{"status":"active"}}';;
|
|
255
|
+
*"/tokens"*) echo '{"success":true,"result":{"value":"cfut_minted_SECRET_do_not_leak_0123456789"}}';;
|
|
256
|
+
*) echo '{"success":false,"errors":[{"code":9999}]}';;
|
|
257
|
+
esac
|
|
258
|
+
CURL
|
|
259
|
+
chmod +x "$BIN/curl"
|
|
260
|
+
run "dns cfut keeps flat zone resource" dns 0
|
|
261
|
+
POSTLINE=$(grep -- "-X POST" "$SANDBOX/curl.log")
|
|
262
|
+
echo "$POSTLINE" | grep -qF '"resources":{"com.cloudflare.api.account.zone.*":"*"}' && ok "cfut flat zone resource" || bad "cfut resource not flat: $POSTLINE"
|
|
263
|
+
echo "$POSTLINE" | grep -qF 'account.acc123":{' && bad "cfut wrongly nested under account: $POSTLINE" || ok "cfut not nested under account"
|
|
264
|
+
no_leak "dns cfut flat"
|
|
265
|
+
teardown
|
|
266
|
+
|
|
267
|
+
# 12. a Cloudflare group rename surfaces as a NAMED miss, not a silent wrong-group
|
|
268
|
+
# mint: with only decoys present and no exact "DNS Write", the helper dies 1 and
|
|
269
|
+
# names the exact group it looked for.
|
|
270
|
+
setup "cfat_master_abc"
|
|
271
|
+
cat > "$BIN/curl" <<'CURL'
|
|
272
|
+
#!/usr/bin/env bash
|
|
273
|
+
SB="$(cd "$(dirname "$0")/.." && pwd)"
|
|
274
|
+
echo "$@" >> "$SB/curl.log"
|
|
275
|
+
url=""; for a in "$@"; do case "$a" in https://*) url="$a";; esac; done
|
|
276
|
+
case "$url" in
|
|
277
|
+
*"/permission_groups"*) echo '{"success":true,"result":[{"id":"pg_dnsx1","name":"Account DNS Settings Write"},{"id":"pg_dnsx2","name":"DNS Firewall Write"}]}';;
|
|
278
|
+
*"/tokens/verify"*) echo '{"success":true,"result":{"status":"active"}}';;
|
|
279
|
+
*"/tokens"*) echo '{"success":true,"result":{"value":"cfat_minted_SECRET_do_not_leak_0123456789"}}';;
|
|
280
|
+
*) echo '{"success":false,"errors":[{"code":9999}]}';;
|
|
281
|
+
esac
|
|
282
|
+
CURL
|
|
283
|
+
chmod +x "$BIN/curl"
|
|
284
|
+
run "missing exact group fails closed" dns 1
|
|
285
|
+
grep -q -- "-X POST" "$SANDBOX/curl.log" && bad "minted despite no exact group match" || ok "no mint on missing exact group"
|
|
286
|
+
echo "$ERR" | grep -qF "no permission group named 'DNS Write'" && ok "die names the missing exact group" || bad "die message not named: $ERR"
|
|
287
|
+
teardown
|
|
288
|
+
|
|
194
289
|
echo "----"; echo "PASS=$PASS FAIL=$FAIL"
|
|
195
290
|
[ "$FAIL" -eq 0 ]
|
|
@@ -41,13 +41,17 @@ fi
|
|
|
41
41
|
[ -n "$brand" ] || die "cannot derive brand from path; set CF_TOKEN_BRAND"
|
|
42
42
|
|
|
43
43
|
# Scope table - resolved by case, never inferred.
|
|
44
|
-
|
|
44
|
+
# pages/d1/dns select their permission group by EXACT name (a broad substring once
|
|
45
|
+
# picked "Access: Custom Pages Write" over "Pages Write"); access keeps a regex
|
|
46
|
+
# because it legitimately enumerates duplicate-named candidates and functional-probes.
|
|
47
|
+
legacy=""; names=""; regexes=""; zone_scoped=""
|
|
45
48
|
case "$scope" in
|
|
46
49
|
pages|d1) suffix="pages-d1"; key="CF_PAGES_D1_TOKEN"; legacy="CF_PAGES_TOKEN"
|
|
47
|
-
#
|
|
48
|
-
|
|
50
|
+
# exact permission-group names separated by ';'
|
|
51
|
+
names="Pages Write;D1 Write"; res='{"com.cloudflare.api.account.'"$ACC"'":"*"}';;
|
|
49
52
|
dns) suffix="dns"; key="CF_DNS_TOKEN"
|
|
50
|
-
|
|
53
|
+
# zone-scoped: res is set after the master-prefix routing (nesting differs)
|
|
54
|
+
names="DNS Write"; zone_scoped=1;;
|
|
51
55
|
access) suffix="access"; key="CF_ACCESS_TOKEN"
|
|
52
56
|
regexes="access.*apps.*polic.*(write|edit)"; res='{"com.cloudflare.api.account.'"$ACC"'":"*"}';;
|
|
53
57
|
esac
|
|
@@ -74,9 +78,20 @@ case "$CLOUDFLARE_API_TOKEN" in
|
|
|
74
78
|
die "unrecognised master token prefix (not cfat_/cfut_); refusing to guess an endpoint";;
|
|
75
79
|
esac
|
|
76
80
|
|
|
81
|
+
# Zone-scoped resource shape branches by master type. An account-owned (cfat_) master
|
|
82
|
+
# rejects a flat zone.* resource with code 1001 "Must specify a zone for account owned
|
|
83
|
+
# tokens, or nest zone under specific account resource"; nest it under the account.
|
|
84
|
+
# A user-owned (cfut_) master accepts the flat zone.* shape.
|
|
85
|
+
if [ -n "$zone_scoped" ]; then
|
|
86
|
+
case "$mtag" in
|
|
87
|
+
cfat) res='{"com.cloudflare.api.account.'"$ACC"'":{"com.cloudflare.api.account.zone.*":"*"}}';;
|
|
88
|
+
cfut) res='{"com.cloudflare.api.account.zone.*":"*"}';;
|
|
89
|
+
esac
|
|
90
|
+
fi
|
|
91
|
+
|
|
77
92
|
api_get() { curl -sS -H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" "$1"; }
|
|
78
93
|
|
|
79
|
-
# Resolve permission-group id(s) by
|
|
94
|
+
# Resolve permission-group id(s): access matches by regex, pages/d1/dns by exact name.
|
|
80
95
|
pg_json="$(api_get "${base}/tokens/permission_groups")"
|
|
81
96
|
echo "$pg_json" | jq -e '.success==true' >/dev/null 2>&1 || {
|
|
82
97
|
code=$(echo "$pg_json" | jq -r '.errors[0].code // "?"')
|
|
@@ -85,6 +100,7 @@ echo "$pg_json" | jq -e '.success==true' >/dev/null 2>&1 || {
|
|
|
85
100
|
}
|
|
86
101
|
|
|
87
102
|
collect_ids() { echo "$pg_json" | jq -r --arg re "$1" '.result[] | select(.name|test($re;"i")) | .id'; }
|
|
103
|
+
collect_exact() { echo "$pg_json" | jq -r --arg n "$1" '.result[] | select(.name==$n) | .id'; }
|
|
88
104
|
|
|
89
105
|
mint_with() { # $1 = json permission_groups array -> echoes minted token value or empty
|
|
90
106
|
local body
|
|
@@ -136,12 +152,12 @@ if [ "$scope" = "access" ]; then
|
|
|
136
152
|
else
|
|
137
153
|
pg_array='[]'
|
|
138
154
|
OLDIFS=$IFS; IFS=';'
|
|
139
|
-
for
|
|
140
|
-
id=$(
|
|
155
|
+
for nm in $names; do
|
|
156
|
+
id=$(collect_exact "$nm" | head -1)
|
|
141
157
|
[ -n "$id" ] || {
|
|
142
158
|
IFS=$OLDIFS
|
|
143
159
|
echo "[cf-token] op=resolve scope=${scope} master=${mtag} action=mint result=error code=0" >&2
|
|
144
|
-
die "no permission group
|
|
160
|
+
die "no permission group named '${nm}'"; }
|
|
145
161
|
pg_array=$(echo "$pg_array" | jq -c --arg id "$id" '. + [{id:$id}]')
|
|
146
162
|
done
|
|
147
163
|
IFS=$OLDIFS
|
|
@@ -112,6 +112,8 @@ The master an operator provisions is usually **account-scoped** (`cfat_…`, cre
|
|
|
112
112
|
|
|
113
113
|
Cross-type calls fail with a stable, recognizable signal: a `cfat_…` token at `/user/tokens/verify` returns `Invalid API Token`; a `cfut_…` token at any `/accounts/{id}/…` endpoint returns `9109`. The diagnostic is the verify call's JSON `errors[].code`.
|
|
114
114
|
|
|
115
|
+
The prefix also governs the **resource shape** of a zone-scoped mint body, not just the endpoint. A `cfut_…` master accepts a flat zone resource — `"resources": { "com.cloudflare.api.account.zone.*": "*" }`. A `cfat_…` (account-owned) master **rejects** that flat shape with code `1001` ("Must specify a zone for account owned tokens, or nest zone under specific account resource"); it requires the zone resource nested under the account resource — `"resources": { "com.cloudflare.api.account.${ACC}": { "com.cloudflare.api.account.zone.*": "*" } }`. Non-zone scopes (Pages/D1/Access) already scope to `com.cloudflare.api.account.${ACC}` and need no branch.
|
|
116
|
+
|
|
115
117
|
**Creating** a token stays an account-level, operator-owned concern — each account documents its own master token and its type (e.g. a per-account `secrets/cloudflare.README.md`). Where an account *can* mint an account-scoped token that is the cleaner default; but a skill that merely *consumes* a supplied token must detect the prefix and adapt, never assume it can mint at `/accounts/…`.
|
|
116
118
|
|
|
117
119
|
---
|
|
@@ -154,7 +156,7 @@ CLOUDFLARE_API_TOKEN="${PAGES_D1}" wrangler pages deploy ./dist --project-name <
|
|
|
154
156
|
|
|
155
157
|
No `expires_on`: the per-scope token is permanent and reused, so decay is the job of the **reconcile pass** (§ Reconcile), not a per-token TTL — the old short-TTL guidance was never honored in practice and produced only never-expiring strays. Look up `<pages-edit-permission-group-id>` (and the ids for DNS Edit, D1 Edit, etc.) once via `GET /accounts/{account_id}/tokens/permission_groups`; they are stable per account. Before reusing or before reconciling, `GET …/tokens` (§ Curated endpoint map) shows what already exists, so a scope is never minted twice under different names.
|
|
156
158
|
|
|
157
|
-
**Per-scope token resources.** Each reused per-scope token carries the resource that matches its operation class. The Pages-and-D1 token (`<brand>-pages-d1`) and the Access token (`<brand>-access`) are account-scoped: `"resources": { "com.cloudflare.api.account.${CLOUDFLARE_ACCOUNT_ID}": "*" }`. The DNS token (`<brand>-dns`) is zone-scoped,
|
|
159
|
+
**Per-scope token resources.** Each reused per-scope token carries the resource that matches its operation class. The Pages-and-D1 token (`<brand>-pages-d1`) and the Access token (`<brand>-access`) are account-scoped: `"resources": { "com.cloudflare.api.account.${CLOUDFLARE_ACCOUNT_ID}": "*" }`. The DNS token (`<brand>-dns`) is zone-scoped, and since it is a single stable token reused across every zone the install routes, its resource covers the account's zones — but the exact shape depends on the master's prefix (see § Token type — route endpoints by prefix): a `cfut_…` master takes the flat `"resources": { "com.cloudflare.api.account.zone.*": "*" }`, while a `cfat_…` master requires the zone nested under the account, `"resources": { "com.cloudflare.api.account.${CLOUDFLARE_ACCOUNT_ID}": { "com.cloudflare.api.account.zone.*": "*" } }` (the flat shape returns `1001` on an account-owned master). A per-zone DNS token would defeat the one-stable-token-per-scope model (one token, reused, not one per zone); the minted token is still strictly narrower than the master, which already carries Zone DNS Edit over the zones in scope.
|
|
158
160
|
|
|
159
161
|
**Redaction is binding.** Every example above pipes the token into a variable or an `Authorization` header and never to stdout. The agent surfaces the operation as verb + target — "minting a Pages-deploy token", "creating CNAME `chat.example.com`" — never the secret. A failure surfaces the API error body with any `Authorization` value masked.
|
|
160
162
|
|
|
@@ -45,8 +45,25 @@ with a `<strong>lead-in.</strong>`) ·
|
|
|
45
45
|
`CRAFT_HEADLINE` `CRAFT_PARA_1..3` (the "How we work" block).
|
|
46
46
|
|
|
47
47
|
The `BUILD_*` / `CRAFT_*` token names are historical; the visible sections read
|
|
48
|
-
**What we do** and **How we work
|
|
49
|
-
way of working, in plain language.
|
|
48
|
+
**What we do** and **How we work** by default. Fill them with the business's real
|
|
49
|
+
offer and way of working, in plain language.
|
|
50
|
+
|
|
51
|
+
## Section framing (nav labels, eyebrows, section IDs) — defaulted
|
|
52
|
+
|
|
53
|
+
These seven tokens carry the generic framing of the two middle body sections and
|
|
54
|
+
their nav links. **Each defaults to its generic value** below; fill the default
|
|
55
|
+
unless the business is framed differently (for example a construction trade that
|
|
56
|
+
says "What we build" / "Our craft"). The nav label and the eyebrow of a section are
|
|
57
|
+
separate tokens because they need not match.
|
|
58
|
+
|
|
59
|
+
- `NAV_STORY_LABEL` — the story-section nav label. Default `About`.
|
|
60
|
+
- `NAV_OFFER_LABEL` — the offer-section nav label. Default `What we do`.
|
|
61
|
+
- `NAV_HOW_LABEL` — the process-section nav label. Default `How we work`.
|
|
62
|
+
- `OFFER_EYEBROW` — the offer-section eyebrow. Default `What we do`.
|
|
63
|
+
- `HOW_EYEBROW` — the process-section eyebrow. Default `Start to finish`.
|
|
64
|
+
- `OFFER_SECTION_ID` — the offer section's anchor id (nav `href` + article `id`).
|
|
65
|
+
Default `offer`.
|
|
66
|
+
- `HOW_SECTION_ID` — the process section's anchor id. Default `how`.
|
|
50
67
|
|
|
51
68
|
## Photo alts (grids and full-bleed)
|
|
52
69
|
|
|
@@ -635,9 +635,9 @@
|
|
|
635
635
|
<span></span><span></span><span></span>
|
|
636
636
|
</button>
|
|
637
637
|
<div class="left">
|
|
638
|
-
<a href="#story">
|
|
639
|
-
<a href="#
|
|
640
|
-
<a href="#
|
|
638
|
+
<a href="#story">{{ NAV_STORY_LABEL }}</a>
|
|
639
|
+
<a href="#{{ OFFER_SECTION_ID }}">{{ NAV_OFFER_LABEL }}</a>
|
|
640
|
+
<a href="#{{ HOW_SECTION_ID }}">{{ NAV_HOW_LABEL }}</a>
|
|
641
641
|
<a href="#founder">{{ FOUNDER_SECTION_LABEL }}</a>
|
|
642
642
|
</div>
|
|
643
643
|
<div class="center">
|
|
@@ -654,9 +654,9 @@
|
|
|
654
654
|
<div class="drawer" id="drawer" aria-hidden="true">
|
|
655
655
|
<button class="drawer-close" aria-label="Close menu">×</button>
|
|
656
656
|
<nav class="drawer-nav">
|
|
657
|
-
<a href="#story">
|
|
658
|
-
<a href="#
|
|
659
|
-
<a href="#
|
|
657
|
+
<a href="#story">{{ NAV_STORY_LABEL }}</a>
|
|
658
|
+
<a href="#{{ OFFER_SECTION_ID }}">{{ NAV_OFFER_LABEL }}</a>
|
|
659
|
+
<a href="#{{ HOW_SECTION_ID }}">{{ NAV_HOW_LABEL }}</a>
|
|
660
660
|
<a href="#founder">{{ FOUNDER_SECTION_LABEL }}</a>
|
|
661
661
|
<a href="#words">Reviews</a>
|
|
662
662
|
<a href="#services">Services</a>
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
<span class="price">{{ SECTOR_LABEL }} · Est. {{ ESTABLISHED_YEAR }}</span>
|
|
680
680
|
</div>
|
|
681
681
|
<div class="right">
|
|
682
|
-
<a href="#
|
|
682
|
+
<a href="#{{ HOW_SECTION_ID }}">{{ NAV_HOW_LABEL }}</a>
|
|
683
683
|
<a href="#services">Services</a>
|
|
684
684
|
<a href="#words">Reviews</a>
|
|
685
685
|
<a href="mailto:{{ EMAIL }}?subject=Project%20enquiry" class="cta">Get in touch</a>
|
|
@@ -713,7 +713,7 @@
|
|
|
713
713
|
<span>{{ HERO_SPEC_4 }}</span>
|
|
714
714
|
</div>
|
|
715
715
|
<div class="links">
|
|
716
|
-
<a href="#
|
|
716
|
+
<a href="#{{ OFFER_SECTION_ID }}">Our work</a>
|
|
717
717
|
<a href="#words">Reviews</a>
|
|
718
718
|
<a href="#services">Services</a>
|
|
719
719
|
</div>
|
|
@@ -741,8 +741,8 @@
|
|
|
741
741
|
</div>
|
|
742
742
|
|
|
743
743
|
<!-- WHAT WE DO -->
|
|
744
|
-
<article class="body-block" id="
|
|
745
|
-
<div class="section-eyebrow">
|
|
744
|
+
<article class="body-block" id="{{ OFFER_SECTION_ID }}">
|
|
745
|
+
<div class="section-eyebrow">{{ OFFER_EYEBROW }}</div>
|
|
746
746
|
<h2>{{ BUILD_HEADLINE }}</h2>
|
|
747
747
|
<p>{{ BUILD_PARA_1 }}</p>
|
|
748
748
|
<p>{{ BUILD_PARA_2 }}</p>
|
|
@@ -758,8 +758,8 @@
|
|
|
758
758
|
</div>
|
|
759
759
|
|
|
760
760
|
<!-- HOW WE WORK -->
|
|
761
|
-
<article class="body-block" id="
|
|
762
|
-
<div class="section-eyebrow">
|
|
761
|
+
<article class="body-block" id="{{ HOW_SECTION_ID }}">
|
|
762
|
+
<div class="section-eyebrow">{{ HOW_EYEBROW }}</div>
|
|
763
763
|
<h2>{{ CRAFT_HEADLINE }}</h2>
|
|
764
764
|
<p>{{ CRAFT_PARA_1 }}</p>
|
|
765
765
|
<p>{{ CRAFT_PARA_2 }}</p>
|
|
@@ -50,6 +50,9 @@ const ALLOWLIST = new Set([
|
|
|
50
50
|
// Same vi.hoisted pattern: Task 576's claude-auth refresh-lock test
|
|
51
51
|
// builds a tmpdir + creds path before the module's `../paths` mock fires.
|
|
52
52
|
'platform/ui/app/lib/__tests__/claude-auth-refresh-lock.test.ts',
|
|
53
|
+
// Same vi.hoisted pattern: Task 1410's claude-auth atomic-write test
|
|
54
|
+
// builds a tmpdir + creds path before the module's `../paths` mock fires.
|
|
55
|
+
'platform/ui/app/lib/__tests__/claude-auth-atomic-write.test.ts',
|
|
53
56
|
// Task 666: the module under test is a pure .cjs preload
|
|
54
57
|
// (server-init-line-stamper.cjs); the test loads it via the sanctioned
|
|
55
58
|
// createRequire(import.meta.url) ESM→CJS bridge, not a raw require.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sitedesk
|
|
3
|
-
description: "SiteDesk premium bundle for independent service businesses. Two sub-plugins: sitedesk-media turns an operator's photos, website, social links and notes into a marketing micro-site plus share-ready social tiles; sitedesk-job captures the operator's own pricing/quotation method and applies it to produce the live quote, and issues recurring interim valuations (progress claims) from carried job state with a deterministic roll-up, and rolls up field workers' daily check-ins into per-worker timesheets and CIS invoices. Brand-agnostic — no client content ships in the templates or the pricing/job tree.
|
|
3
|
+
description: "SiteDesk premium bundle for independent service businesses. Two sub-plugins: sitedesk-media turns an operator's photos, website, social links and notes into a marketing micro-site plus share-ready social tiles; sitedesk-job captures the operator's own pricing/quotation method and applies it to produce the live quote, and issues recurring interim valuations (progress claims) from carried job state with a deterministic roll-up, and rolls up field workers' daily check-ins into per-worker timesheets and CIS invoices. Brand-agnostic — no client content ships in the templates or the pricing/job tree. 5 skills, 0 MCP tools."
|
|
4
4
|
plugins:
|
|
5
5
|
- sitedesk-media
|
|
6
6
|
- sitedesk-job
|
|
@@ -27,12 +27,14 @@ as `plugin:sitedesk:<name>` — so it contributes four `installedPremiumSpeciali
|
|
|
27
27
|
entries on any brand that ships `sitedesk`. Each owns one deliverable and the
|
|
28
28
|
skill(s) that produce it: `quoter` owns `quotation`, `valuer` owns `valuation`,
|
|
29
29
|
`payroll-clerk` owns `timesheet` (the three `sitedesk-job` skills), and
|
|
30
|
-
`media-producer` owns the
|
|
31
|
-
the
|
|
30
|
+
`media-producer` owns the two `sitedesk-media` skills — the construction `microsite`
|
|
31
|
+
wrapper and the `job`/`valuation` `socials` adapter — over the shared `web-designer`
|
|
32
|
+
builder. The admin agent dispatches the one whose deliverable matches the brief via
|
|
33
|
+
`subagent_type`.
|
|
32
34
|
|
|
33
35
|
## Sub-Plugins
|
|
34
36
|
|
|
35
37
|
| Sub-Plugin | Skills | MCP Tools | Focus |
|
|
36
38
|
|---|---|---|---|
|
|
37
|
-
| `sitedesk-media` |
|
|
39
|
+
| `sitedesk-media` | 2 | — | Marketing collateral over the shared `web-designer` builder — a construction `microsite` wrapper (web-designer's site with construction framing as input) and a `socials` job/valuation adapter (renders job progress through web-designer's tile core under the money boundary). Generic brand-extract, build, and rendering are web-designer's. |
|
|
38
40
|
| `sitedesk-job` | 3 | — | Job-centric workflows — `quotation` captures the operator's own pricing method (items, quantity rules, pricing rules, roll-up, documents) and applies it to produce the live quote; `valuation` sets up a job and issues its recurring interim valuations (progress claims) from carried state and a per-cycle delta, with a deterministic roll-up that reconciles to the penny; `timesheet` rolls up field workers' daily check-ins into per-worker timesheets and CIS invoices for a period, reconciled to the penny. No business content ships; everything is the operator's data. |
|
|
@@ -11,8 +11,8 @@ they appear in the native Claude Code subagent registry as
|
|
|
11
11
|
`plugin:sitedesk:<name>`. Each owns one deliverable and the skill(s) that
|
|
12
12
|
produce it: `quoter` the `quotation` skill, `valuer` the `valuation` skill,
|
|
13
13
|
`payroll-clerk` the `timesheet` skill (all three in `sitedesk-job`), and
|
|
14
|
-
`media-producer` the `sitedesk-media` skills (`
|
|
15
|
-
|
|
14
|
+
`media-producer` the two `sitedesk-media` skills (`microsite`, `socials`) over the
|
|
15
|
+
shared `web-designer` builder.
|
|
16
16
|
|
|
17
17
|
No tools, hooks, or commands are declared at this layer — the sub-plugins under
|
|
18
18
|
`plugins/` register via their own `PLUGIN.md` and carry the skills and commands.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: media-producer
|
|
3
|
-
description: "SiteDesk media producer. Delegate when the deliverable is marketing collateral — turning an operator's photos, website, social links and notes into a
|
|
3
|
+
description: "SiteDesk media producer. Delegate when the deliverable is marketing collateral — turning an operator's photos, website, social links and notes into a construction micro-site plus share-ready social tiles. Owns the media deliverable end to end, built on the shared web-designer builder: brand extract, single-page micro-site with construction framing, and Open Graph plus social tiles with gallery and captions. Not for job pricing, valuations or timesheets (those are the quoter, valuer and payroll-clerk)."
|
|
4
4
|
summary: "Your media producer — turns an operator's photos, website and notes into a marketing micro-site and social tiles."
|
|
5
5
|
model: claude-sonnet-5
|
|
6
6
|
tools: Skill, Read, Write, Edit, Bash, Glob, Grep, WebFetch, mcp__plugin_browser_browser__browser-navigate, mcp__plugin_browser_browser__browser-evaluate, mcp__plugin_browser_browser__browser-render, mcp__plugin_browser_browser__browser-resize, mcp__plugin_browser_browser__browser-screenshot, mcp__plugin_browser_browser__browser-wait-for
|
|
@@ -18,16 +18,27 @@ You never invent the operator's business content. Brand facts, copy and the sour
|
|
|
18
18
|
|
|
19
19
|
## What you own
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
You own two SiteDesk skills — the construction `microsite` wrapper and the
|
|
22
|
+
`socials` job/valuation adapter. The shared builder underneath them is the
|
|
23
|
+
`web-designer` plugin; you drive its skills directly. Load each skill on demand with
|
|
24
|
+
the `Skill` tool; it carries its own method.
|
|
22
25
|
|
|
23
26
|
| Skill | Sub-plugin | What it does |
|
|
24
27
|
|-------|------------|--------------|
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `microsite` | `sitedesk-media` | Build the scrollable single-page micro-site (`site/` directory: `index.html` + `llms.txt`, with JSON-LD) from the placeholder template, brand pack, photos and copy. |
|
|
28
|
-
| `socials` | `sitedesk-media` | Render exact-size Open Graph and social tiles (1200×628, 1200×1200, 1080×1350) as PNG for a named subject, with a PII gate for any client-data source, a gallery with download links, captions for all five platforms, and a redaction report; wires the site's `og:image` for micro-sites. Drives the on-device `browser` plugin to screenshot each tile at its exact viewport. |
|
|
28
|
+
| `microsite` | `sitedesk-media` | Build the construction micro-site by driving `web-designer:web-design` with the construction framing (schema, UK geography, the trade-shaped section labels) as inputs. Owns no template. |
|
|
29
|
+
| `socials` | `sitedesk-media` | Render social tiles for a SiteDesk subject. `microsite`/`bespoke` delegate to `web-designer:socials`; `job`/`valuation` read the job's progress under the money boundary and render through `web-designer:socials` bespoke mode. |
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
The generic builder underneath is web-designer's, dispatched directly:
|
|
32
|
+
|
|
33
|
+
| Skill | Plugin | What it does |
|
|
34
|
+
|-------|--------|--------------|
|
|
35
|
+
| `brand-extract` | `web-designer` | Turn an existing website into a brand pack — tokenized palette, logo/icon files, and a `brand.md` of company facts plus a "still unknown" list. |
|
|
36
|
+
| `web-design` | `web-designer` | The single canonical single-page site template, substitution contract, image convention, and page-state verification. `microsite` supplies the construction inputs. |
|
|
37
|
+
| `socials` | `web-designer` | The tile render core (exact-size PNG tiles, gallery, captions, PII gate, og:image wiring). SiteDesk's `socials` delegates here. |
|
|
38
|
+
|
|
39
|
+
For the full marketing deliverable — a site and its social tiles — orchestrate the
|
|
40
|
+
steps yourself: `web-designer:brand-extract` → `microsite` → `socials`. Run any one
|
|
41
|
+
skill directly when the upstream output already exists.
|
|
31
42
|
|
|
32
43
|
## Output contract
|
|
33
44
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitedesk-media",
|
|
3
|
-
"description": "Turn an operator's raw inputs (a folder or zip of photos, an existing website URL, social-media links, and any notes about the business) into a finished
|
|
3
|
+
"description": "Turn an operator's raw inputs (a folder or zip of photos, an existing website URL, social-media links, and any notes about the business) into a finished construction micro-site plus a set of share-ready Open Graph and social tiles. Built on the shared web-designer builder: web-designer extracts the brand, builds the single-page site, and renders the tiles; SiteDesk supplies the construction framing and the job/valuation social subjects. Brand-agnostic: no client content ships here, and no builder template is copied.",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Rubytech LLC"
|
|
@@ -1,49 +1,53 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sitedesk-media
|
|
3
|
-
description: "Turn an operator's raw inputs (a folder or zip of photos, an existing website URL, social-media links, and any notes about the business) into a finished
|
|
3
|
+
description: "Turn an operator's raw inputs (a folder or zip of photos, an existing website URL, social-media links, and any notes about the business) into a finished construction micro-site plus a set of share-ready Open Graph and social tiles. Built on the shared web-designer builder: web-designer extracts the brand, builds the single-page site, and renders the tiles; SiteDesk supplies the construction framing and the job/valuation social subjects. Brand-agnostic: no client content ships here, and no builder template is copied."
|
|
4
4
|
tools: []
|
|
5
5
|
metadata: {"platform":{"optional":true,"embed":["admin"]}}
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# SiteDesk — Media
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
Marketing collateral for an independent building contractor, built on the shared
|
|
11
|
+
`web-designer` plugin. From an operator's photos, their existing website, social
|
|
12
|
+
links and any notes, the pipeline produces a self-contained `site/` directory — a
|
|
13
|
+
scrollable single-page micro-site (`index.html` + `llms.txt`) plus a `socials/`
|
|
14
|
+
folder of Open Graph and social tiles with a gallery and captions. web-designer owns
|
|
15
|
+
the brand extraction, the site template, and the tile render core; SiteDesk owns the
|
|
16
|
+
construction framing and the job/valuation social subjects. The agent never invents a
|
|
17
|
+
fact — it extracts and asks.
|
|
16
18
|
|
|
17
19
|
## When to Activate
|
|
18
20
|
|
|
19
|
-
The operator wants a
|
|
20
|
-
mixed source material (photos + a site + social links + notes)
|
|
21
|
+
The operator wants a construction micro-site and social images for a building firm,
|
|
22
|
+
built from mixed source material (photos + a site + social links + notes), or social
|
|
23
|
+
tiles for a live job's progress.
|
|
21
24
|
|
|
22
25
|
## Skills
|
|
23
26
|
|
|
24
27
|
| Skill | Purpose |
|
|
25
28
|
|-------|---------|
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
| `microsite` | Build the construction micro-site by driving `web-designer:web-design` with the construction framing (schema, UK geography, trade-shaped section labels) as inputs. Owns no template. |
|
|
30
|
+
| `socials` | Render social tiles for a SiteDesk subject. `microsite`/`bespoke` delegate to `web-designer:socials`; `job`/`valuation` read the job's progress under the money boundary and render through `web-designer:socials` bespoke mode. |
|
|
31
|
+
|
|
32
|
+
The generic builder — `brand-extract`, the `web-design` template and substitution
|
|
33
|
+
contract, and the `socials` tile render core — is the `web-designer` plugin's, used
|
|
34
|
+
as-is.
|
|
30
35
|
|
|
31
36
|
## Commands
|
|
32
37
|
|
|
33
|
-
`/make-media <images-dir-or-zip> [website-url] [social-links] [notes…]` —
|
|
38
|
+
`/make-media <images-dir-or-zip> [website-url] [social-links] [notes…]` — orchestrate
|
|
39
|
+
the full pipeline (`web-designer:brand-extract` → `microsite` → `socials`).
|
|
34
40
|
|
|
35
41
|
## Tools Used
|
|
36
42
|
|
|
37
43
|
No MCP server of its own. Skills operate via existing platform tools (Bash, Read,
|
|
38
|
-
Write, Edit, Glob, Grep, WebFetch)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
section + image map is in `skills/microsite/references/sections.md`; the operator
|
|
49
|
-
question set is in `skills/make-media/references/intake-and-questions.md`.
|
|
44
|
+
Write, Edit, Glob, Grep, WebFetch) and the `Skill` tool to drive the web-designer
|
|
45
|
+
skills. Tile rendering is web-designer's, which drives the on-device `browser` plugin
|
|
46
|
+
to screenshot each tile at its exact size.
|
|
47
|
+
|
|
48
|
+
## No templates ship here
|
|
49
|
+
|
|
50
|
+
The site template, the placeholder dictionary, the section + image map, and the tile
|
|
51
|
+
render templates all live in `web-designer`. SiteDesk's `microsite` supplies the
|
|
52
|
+
construction values as inputs; SiteDesk's `socials` keeps only the `job`/`valuation`
|
|
53
|
+
source contract in `skills/socials/references/sources.md`.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# sitedesk-media
|
|
2
2
|
|
|
3
3
|
Turn an operator's raw inputs — a folder of photos, an existing website, social
|
|
4
|
-
links, and any notes about the business — into a finished
|
|
5
|
-
plus a set of **share-ready social tiles**.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
links, and any notes about the business — into a finished construction **micro-site**
|
|
5
|
+
plus a set of **share-ready social tiles**. Built on the shared `web-designer`
|
|
6
|
+
plugin: web-designer extracts the brand, builds the single-page site, and renders the
|
|
7
|
+
tiles; SiteDesk adds the construction framing and the job/valuation social subjects.
|
|
8
|
+
No client content and no builder template ship here.
|
|
9
9
|
|
|
10
10
|
## Pipeline
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
make-media (
|
|
14
|
-
├─ brand-extract website → palette tokens + logo/icon + company facts (+ gaps)
|
|
15
|
-
├─ microsite
|
|
16
|
-
└─ socials
|
|
13
|
+
/make-media (media-producer orchestrates the steps)
|
|
14
|
+
├─ web-designer:brand-extract website → palette tokens + logo/icon + company facts (+ gaps)
|
|
15
|
+
├─ microsite drives web-designer:web-design with construction framing → site/index.html + llms.txt
|
|
16
|
+
└─ socials microsite/bespoke → web-designer:socials; job/valuation → staged brief → web-designer:socials bespoke
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Run it with the command:
|
|
@@ -22,9 +22,8 @@ Run it with the command:
|
|
|
22
22
|
/make-media <images-dir-or-zip> [website-url] [social-links] [notes…]
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
`socials` for just the tiles).
|
|
25
|
+
Each step is also usable on its own (`web-designer:brand-extract` for just tokens +
|
|
26
|
+
logo; `microsite` for just the page; `socials` for just the tiles).
|
|
28
27
|
|
|
29
28
|
## What you get
|
|
30
29
|
|
|
@@ -36,35 +35,26 @@ own (`brand-extract` for just tokens + logo; `microsite` for just the page;
|
|
|
36
35
|
socials.html # tile gallery + OG meta snippet
|
|
37
36
|
social-posts.md # captions per tile and platform
|
|
38
37
|
og.html # tile render page (kept for re-runs)
|
|
39
|
-
<output>/<brand-slug>-microsite.zip
|
|
40
38
|
```
|
|
41
39
|
|
|
42
40
|
## Principles
|
|
43
41
|
|
|
44
|
-
- **Ask, never invent.** Every
|
|
45
|
-
the
|
|
46
|
-
|
|
47
|
-
- **Keep claims as claims.** "Trading since 1987" is not an incorporation date
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
- **
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
- **Ask, never invent.** Every fact is about a real business. What the website and
|
|
43
|
+
the operator's notes don't supply, the agent asks for. A guessed year, phone
|
|
44
|
+
number, or testimonial is a defect.
|
|
45
|
+
- **Keep claims as claims.** "Trading since 1987" is not an incorporation date.
|
|
46
|
+
Company-registration facts come from the register or the operator, never a
|
|
47
|
+
marketing line.
|
|
48
|
+
- **The money boundary is absolute.** A job or valuation tile carries the progress,
|
|
49
|
+
never a figure: no contract, valuation, or payment amount, no `pctComplete` value,
|
|
50
|
+
no client identifier. The read never touches the money fields.
|
|
53
51
|
- **Plain register for all copy.** No em-dashes, no inflation vocabulary, no
|
|
54
52
|
AI-marketing cadence. Real testimonials are used verbatim.
|
|
55
|
-
- **Built for answer engines.** The site ships `JSON-LD` (business + FAQ),
|
|
56
|
-
Open Graph tiles, and an `llms.txt`.
|
|
57
53
|
|
|
58
|
-
##
|
|
54
|
+
## What lives where
|
|
59
55
|
|
|
60
|
-
|
|
61
|
-
skills/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
skills/socials/templates/social-posts.md
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
The full token dictionary is in `skills/microsite/references/placeholders.md`; the
|
|
69
|
-
section + image map is in `skills/microsite/references/sections.md`; the operator
|
|
70
|
-
question set is in `skills/make-media/references/intake-and-questions.md`.
|
|
56
|
+
SiteDesk owns two thin skills — `skills/microsite/SKILL.md` (the construction
|
|
57
|
+
wrapper) and `skills/socials/SKILL.md` plus `skills/socials/references/sources.md`
|
|
58
|
+
(the job/valuation source contract and the money boundary). Everything else — the
|
|
59
|
+
site template, the placeholder dictionary, the section + image map, and the tile
|
|
60
|
+
render templates — is `web-designer`'s.
|