@agent-native/core 0.49.9 → 0.49.11
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/dist/cli/pr-visual-recap-workflow.d.ts +1 -1
- package/dist/cli/pr-visual-recap-workflow.d.ts.map +1 -1
- package/dist/cli/pr-visual-recap-workflow.js +1 -1
- package/dist/cli/pr-visual-recap-workflow.js.map +1 -1
- package/dist/cli/recap.d.ts +4 -1
- package/dist/cli/recap.d.ts.map +1 -1
- package/dist/cli/recap.js +97 -23
- package/dist/cli/recap.js.map +1 -1
- package/dist/cli/skills.d.ts +5 -5
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +219 -24
- package/dist/cli/skills.js.map +1 -1
- package/dist/client/blocks/library/annotation-rail.d.ts.map +1 -1
- package/dist/client/blocks/library/annotation-rail.js +16 -6
- package/dist/client/blocks/library/annotation-rail.js.map +1 -1
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +10 -2
- package/dist/deploy/build.js.map +1 -1
- package/dist/extensions/actions.js +1 -1
- package/dist/extensions/actions.js.map +1 -1
- package/dist/local-artifacts/index.d.ts +101 -0
- package/dist/local-artifacts/index.d.ts.map +1 -0
- package/dist/local-artifacts/index.js +507 -0
- package/dist/local-artifacts/index.js.map +1 -0
- package/dist/secrets/substitution.js +2 -2
- package/dist/secrets/substitution.js.map +1 -1
- package/dist/server/auth-marketing.d.ts +1 -0
- package/dist/server/auth-marketing.d.ts.map +1 -1
- package/dist/server/auth-marketing.js +5 -0
- package/dist/server/auth-marketing.js.map +1 -1
- package/dist/server/auth.d.ts.map +1 -1
- package/dist/server/auth.js +59 -37
- package/dist/server/auth.js.map +1 -1
- package/dist/server/entry-server.d.ts +27 -4
- package/dist/server/entry-server.d.ts.map +1 -1
- package/dist/server/entry-server.js +63 -43
- package/dist/server/entry-server.js.map +1 -1
- package/dist/server/onboarding-html.d.ts.map +1 -1
- package/dist/server/onboarding-html.js +3 -3
- package/dist/server/onboarding-html.js.map +1 -1
- package/dist/server/social-og-image.d.ts +2 -0
- package/dist/server/social-og-image.d.ts.map +1 -1
- package/dist/server/social-og-image.js +20 -7
- package/dist/server/social-og-image.js.map +1 -1
- package/dist/server/ssr-handler.d.ts.map +1 -1
- package/dist/server/ssr-handler.js +2 -2
- package/dist/server/ssr-handler.js.map +1 -1
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/social-meta.d.ts +2 -0
- package/dist/shared/social-meta.d.ts.map +1 -1
- package/dist/shared/social-meta.js +5 -0
- package/dist/shared/social-meta.js.map +1 -1
- package/dist/templates/default/.agents/skills/storing-data/SKILL.md +3 -1
- package/dist/templates/default/app/entry.server.tsx +8 -2
- package/dist/templates/starter-shell-sync.spec.ts +4 -3
- package/dist/templates/workspace-core/.agents/skills/extensions/SKILL.md +3 -2
- package/dist/templates/workspace-core/.agents/skills/storing-data/SKILL.md +3 -1
- package/docs/content/pr-visual-recap.md +4 -4
- package/docs/content/template-content.md +9 -0
- package/package.json +6 -1
- package/src/templates/default/.agents/skills/storing-data/SKILL.md +3 -1
- package/src/templates/default/app/entry.server.tsx +8 -2
- package/src/templates/starter-shell-sync.spec.ts +4 -3
- package/src/templates/workspace-core/.agents/skills/extensions/SKILL.md +3 -2
- package/src/templates/workspace-core/.agents/skills/storing-data/SKILL.md +3 -1
package/dist/cli/skills.js
CHANGED
|
@@ -365,7 +365,19 @@ and footer actions that are visible in the workflow.
|
|
|
365
365
|
**Modify, don't redesign.** When the task changes an existing screen, reproduce
|
|
366
366
|
the current screen's real layout and footprint FIRST, then change only the delta
|
|
367
367
|
and call it out with a single annotation. Do not restack the page into a new
|
|
368
|
-
layout. For net-new surfaces, compose from the real app shell.
|
|
368
|
+
layout. For net-new surfaces, compose from the real app shell. Inspect the
|
|
369
|
+
actual app components before drawing an existing product: sidebar density,
|
|
370
|
+
toolbar actions, overflow menus, property panels, and framework chrome should
|
|
371
|
+
match the product unless the plan intentionally changes them.
|
|
372
|
+
|
|
373
|
+
**Keep product screens pure.** A product wireframe shows the app state a user
|
|
374
|
+
would actually see. Do not embed file contracts, architecture arrows, repo pills,
|
|
375
|
+
mode explanations, or implementation callouts inside the screen just to explain
|
|
376
|
+
the plan. Put those in canvas annotations, a separate diagram, or the document
|
|
377
|
+
body. Secondary UI such as properties, history, sync, export, or agent controls
|
|
378
|
+
should appear where the real product would put them: an overflow popover, sheet,
|
|
379
|
+
panel, or separate framework sidebar state, not a generic permanent right
|
|
380
|
+
inspector unless that inspector is the actual design.
|
|
369
381
|
|
|
370
382
|
**Classify mockup scope before implementation.** Before turning a plan mockup
|
|
371
383
|
into source code, decide whether each artboard represents the whole page/app
|
|
@@ -592,6 +604,11 @@ the canonical runtime shape; MDX is the repo-friendly authoring/export surface.
|
|
|
592
604
|
In the browser, humans edit \`rich-text\` prose inline; agents should still use
|
|
593
605
|
\`update-rich-text\` content patches or source patches for prose, and use
|
|
594
606
|
comments/structured patches for canvas, artboard, wireframe, and diagram edits.
|
|
607
|
+
Never send a partial top-level \`content\` object as a shortcut to add a canvas,
|
|
608
|
+
frame, or block: \`content\` is a full structured replacement, so omitted blocks
|
|
609
|
+
or surfaces can disappear. If a full replacement is truly unavoidable, read the
|
|
610
|
+
complete source/JSON first, include every existing block and surface in the new
|
|
611
|
+
payload, and verify the source/export immediately after the update.
|
|
595
612
|
|
|
596
613
|
**Never emit a titled artboard with no interior wireframe content.** Every artboard
|
|
597
614
|
you place on the canvas must carry an \`html\` wireframe or reference a wireframe
|
|
@@ -619,6 +636,12 @@ requested UI fidelity, still keep the closest top-surface representation and
|
|
|
619
636
|
call out or extend the needed renderer capability. A skeleton/loading mockup
|
|
620
637
|
also lives in a canvas artboard — never move a mockup out of the canvas.
|
|
621
638
|
|
|
639
|
+
For abstract product concepts, use the canvas to create the first "I get it"
|
|
640
|
+
moment: one real app state near the top showing how the concept appears to a
|
|
641
|
+
user, followed by separate annotations or diagrams for mechanics. Do not make
|
|
642
|
+
the first artboard a hybrid of app UI and architecture notes; the app screen
|
|
643
|
+
should be inspectable as product UI on its own.
|
|
644
|
+
|
|
622
645
|
**Legacy kit tree.** Older plans set a \`screen\` array of \`{ el, ...props }\` kit
|
|
623
646
|
nodes instead of \`html\`; the renderer still accepts and displays it, but new
|
|
624
647
|
plans emit \`html\`. Do not author fresh kit-tree screens - write the HTML mockup
|
|
@@ -641,6 +664,32 @@ behavior). Replace vague prose with specifics; never ship a step like "make it
|
|
|
641
664
|
work." No hero art, gradients, logos, nav bars, slogans, value props, giant
|
|
642
665
|
landing-page headings, or marketing cards unless the user explicitly asks.
|
|
643
666
|
|
|
667
|
+
**Every published plan must stand alone.** Even when the agent is revising an
|
|
668
|
+
existing plan, the output is a plan to do the work, not a changelog of the
|
|
669
|
+
conversation. Do not write phrases like "preserve the previous plan", "do not
|
|
670
|
+
drop the old idea", "as discussed above", "this revision", "unlike the prior
|
|
671
|
+
version", or "correction from the earlier plan". Fold the right decisions into
|
|
672
|
+
the plan as normal objective, architecture, scope, and roadmap prose. A reviewer
|
|
673
|
+
who opens the plan from a link with no chat history should understand it. Avoid
|
|
674
|
+
negative framing that only makes sense against absent context ("not the old
|
|
675
|
+
mode", "not just X") unless the contrast is defined in the plan and genuinely
|
|
676
|
+
helps; state the positive model directly.
|
|
677
|
+
|
|
678
|
+
**Make abstract plans instantly legible.** If the idea is broad, strategic, or
|
|
679
|
+
intended for a third-party reviewer, put one concrete product snapshot near the
|
|
680
|
+
top before dense architecture, mode tables, manifests, or roadmaps. For
|
|
681
|
+
UI-capable concepts, that snapshot is usually a top-canvas app state plus a
|
|
682
|
+
short paragraph that says what the user sees and what changes under the hood.
|
|
683
|
+
Then put mechanics, data flow, sync boundaries, and implementation detail in
|
|
684
|
+
separate diagrams or document sections.
|
|
685
|
+
|
|
686
|
+
**Preserve the user's level of abstraction.** A motivating use case is not
|
|
687
|
+
automatically the architecture. When the prompt describes a broader framework,
|
|
688
|
+
product mode, or reusable primitive, separate the reusable core from specific
|
|
689
|
+
apps, providers, customers, scripts, or launch examples. Use the concrete
|
|
690
|
+
example to make the plan understandable, then make clear which parts are core,
|
|
691
|
+
which are app-specific adapters, and which are future examples.
|
|
692
|
+
|
|
644
693
|
**When top visuals exist, they and the document never duplicate each other.**
|
|
645
694
|
For UI work, the UI story lives in the top visual surface: canvas artboards for
|
|
646
695
|
static inspection, plus prototype tabs when the flow should be functional. The
|
|
@@ -735,6 +784,20 @@ Keep non-answerable assumptions or risks as concise \`callout\` blocks in
|
|
|
735
784
|
the relevant section. Never bury a questions/decisions wall inside the plan
|
|
736
785
|
narrative, and never ask the same question twice.
|
|
737
786
|
|
|
787
|
+
For complex plans, do not end without an open-question audit. If architecture,
|
|
788
|
+
scope, UX, data shape, rollout, provider mapping, or ownership still depends on
|
|
789
|
+
a choice, either commit to a recommendation with rationale or add it to the
|
|
790
|
+
bottom form with a recommended default. A complex plan with no open questions is
|
|
791
|
+
fine only when every meaningful decision has been explicitly made.
|
|
792
|
+
|
|
793
|
+
**Verification must exercise the real workflow.** The final verification section
|
|
794
|
+
should go beyond typecheck/unit tests when the plan changes UI, local files,
|
|
795
|
+
sync, providers, browser behavior, or multi-app flows. Include at least one
|
|
796
|
+
end-to-end smoke that matches the user journey, such as a fresh repo/folder,
|
|
797
|
+
real manifest or data fixture, browser interaction, save/sync action, and an
|
|
798
|
+
on-disk or database assertion. Name the command or manual browser path when it
|
|
799
|
+
is known.
|
|
800
|
+
|
|
738
801
|
**\`custom-html\` is a bounded escape hatch only** — a single complete fragment
|
|
739
802
|
inside a block, never \`html\`/\`head\`/\`body\`/\`script\` tags, never a generic
|
|
740
803
|
placeholder, density demo, or proof that custom HTML works. Prefer the native
|
|
@@ -770,6 +833,17 @@ changes a multi-step completion flow, the same top area includes a Prototype tab
|
|
|
770
833
|
whose screens use the same labels and states as the canvas artboards, with
|
|
771
834
|
\`data-goto\` controls for the sequence. This is the bar.
|
|
772
835
|
|
|
836
|
+
**GOOD.** A broad product-architecture plan opens with a plain recommendation
|
|
837
|
+
and one concrete app state before the abstraction. The first canvas artboard is
|
|
838
|
+
pure product UI that matches the current app shell; nearby notes explain the
|
|
839
|
+
user-visible delta. A separate diagram below shows the mechanics, such as file
|
|
840
|
+
or data flow. The document then separates the reusable core from app/provider
|
|
841
|
+
adapters and examples, covers contracts, folder or schema shape, sync
|
|
842
|
+
boundaries, roadmap, non-goals, a bottom Open Questions form for unresolved
|
|
843
|
+
decisions, and a verification section with at least one realistic end-to-end
|
|
844
|
+
smoke. A reviewer who was not in the chat gets the idea from the top snapshot
|
|
845
|
+
before reading the technical plan.
|
|
846
|
+
|
|
773
847
|
**GOOD.** A \`/visual-plan\` for a backend architecture review: no top canvas.
|
|
774
848
|
The document opens with context and a legend, then repeats recommendation cards:
|
|
775
849
|
title, confidence/category badges, a monospace grid of real file paths, one
|
|
@@ -789,7 +863,10 @@ tab; a mockup escaped into a document \`custom-html\` block; and a marketing-sty
|
|
|
789
863
|
document with a hero heading and value props that just restates what the canvas
|
|
790
864
|
already shows. Also bad: an architecture-only plan forced into a top canvas of
|
|
791
865
|
labeled boxes with overlapping text, where the actual code evidence and
|
|
792
|
-
recommendations live elsewhere
|
|
866
|
+
recommendations live elsewhere; a product wireframe that mixes a real screen
|
|
867
|
+
with repo names, file-contract arrows, architecture explanations, or a made-up
|
|
868
|
+
permanent inspector; and a plan that describes itself as a revision of a prior
|
|
869
|
+
conversation instead of a standalone proposal. Never produce this.
|
|
793
870
|
|
|
794
871
|
<!-- SHARED-CORE:exemplar END -->`;
|
|
795
872
|
// Progressive-disclosure reference files. Like `WIREFRAME_REFERENCE_MD`, each of
|
|
@@ -905,10 +982,26 @@ plan needs a richer review surface.
|
|
|
905
982
|
even if most of the feature ships later. Then scope to the smallest first cut that
|
|
906
983
|
proves the approach without foreclosing it, stating both what is in and what is
|
|
907
984
|
explicitly deferred.
|
|
908
|
-
- **
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
985
|
+
- **Keep examples at the right altitude.** When the user's idea is a broad
|
|
986
|
+
framework, product, or operating-model change, do not collapse it into the
|
|
987
|
+
first concrete example, provider, or sync path they mention. Separate the core
|
|
988
|
+
abstraction from motivating examples and app/provider adapters. Use examples
|
|
989
|
+
to make the plan legible, but label them as examples unless they are the whole
|
|
990
|
+
requested scope.
|
|
991
|
+
- **Publish standalone plans.** If the user pasted, referenced, or already has a
|
|
992
|
+
Codex / Claude Code / Markdown plan, treat it as source material, but rewrite
|
|
993
|
+
the published plan as a clean standalone proposal. Preserve the source plan's
|
|
994
|
+
useful intent and codebase facts, label inferred visuals as inferred, and avoid
|
|
995
|
+
revision language such as "preserve the prior plan", "do not drop the old
|
|
996
|
+
idea", "unlike the previous version", or "this revision changes...". A reader
|
|
997
|
+
who never saw the chat or earlier drafts should understand the plan.
|
|
998
|
+
- **Make the first read concrete.** If the plan is meant to be shared with
|
|
999
|
+
someone outside the chat, or if the concept is abstract, lead near the top with
|
|
1000
|
+
one concrete product example before mode tables, architecture, or roadmaps. For
|
|
1001
|
+
UI-capable concepts, that usually means a top-canvas app state that shows the
|
|
1002
|
+
real user workflow in product terms. Do not rely on phrases that only make
|
|
1003
|
+
sense in conversation, and do not frame the plan as "not the old idea"; state
|
|
1004
|
+
the positive model directly.
|
|
912
1005
|
- **Planning is read-only.** Make no source edits while building or reviewing the
|
|
913
1006
|
plan. Start editing only after the user approves the direction.
|
|
914
1007
|
- **Clarify vs. assume.** Do not ask how to build it — explore and present the
|
|
@@ -918,14 +1011,19 @@ plan needs a richer review surface.
|
|
|
918
1011
|
questions before finalizing. Do not call \`create-visual-questions\` from
|
|
919
1012
|
\`/visual-plan\`. Otherwise state the assumption explicitly and proceed, and
|
|
920
1013
|
keep anything unresolved in the plan's single bottom \`question-form\` Open
|
|
921
|
-
Questions block.
|
|
1014
|
+
Questions block. For complex plans, do a final open-question pass before
|
|
1015
|
+
handoff: if a decision would affect architecture, scope, UX, data shape, or
|
|
1016
|
+
rollout, either decide it in the plan with rationale or put it in that bottom
|
|
1017
|
+
form with a recommended default.
|
|
922
1018
|
- **The plan is the approval gate.** After surfacing it, ask the user to review
|
|
923
1019
|
and approve before you write code, and name which files/areas the work touches.
|
|
924
1020
|
Presenting the plan and requesting sign-off is the approval step — do not ask a
|
|
925
1021
|
separate "does this look good?" question.
|
|
926
1022
|
- **The document is the source of truth, not the chat.** When scope shifts,
|
|
927
1023
|
update the plan with \`update-visual-plan\` rather than only changing course in
|
|
928
|
-
chat, and
|
|
1024
|
+
chat, and make the updated document stand alone. Do not describe the update as
|
|
1025
|
+
a correction to an earlier draft inside the plan itself. Re-read the approved
|
|
1026
|
+
plan before major steps.
|
|
929
1027
|
|
|
930
1028
|
## Always Publish As An Agent-Native Plan — Never Inline
|
|
931
1029
|
|
|
@@ -959,14 +1057,19 @@ exception.
|
|
|
959
1057
|
for prototype-first plans, \`create-plan-design\` for design-first plans,
|
|
960
1058
|
\`create-visual-questions\` only when the user explicitly asks for a visual
|
|
961
1059
|
intake questionnaire. When a source plan already exists,
|
|
962
|
-
pass it as \`planText\` and preserve the original plan's intent while
|
|
963
|
-
|
|
964
|
-
3.
|
|
965
|
-
with native blocks
|
|
966
|
-
\`references/document-quality.md\`).
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
1060
|
+
pass it as \`planText\` and preserve the original plan's useful intent while
|
|
1061
|
+
producing a standalone plan document, not a revision memo.
|
|
1062
|
+
3. For UI/product plans, compose the top canvas first with the primary
|
|
1063
|
+
wireframes and annotated states, then write the document with native blocks
|
|
1064
|
+
(see \`references/canvas.md\` and \`references/document-quality.md\`). For
|
|
1065
|
+
broad product architecture plans with a user-facing implication, add a
|
|
1066
|
+
concrete "what this looks like in the app" visual before the abstract
|
|
1067
|
+
architecture or mode tables. Keep the document close to the standalone
|
|
1068
|
+
Markdown plan the agent would normally output. If an existing plan was
|
|
1069
|
+
provided, carry forward the right facts and decisions without referring to
|
|
1070
|
+
the previous draft or explaining how this version differs. For non-visual
|
|
1071
|
+
plans, skip the top visual surface (Visual Surface Choice below owns the rule)
|
|
1072
|
+
and put \`diagram\`, \`data-model\`,
|
|
970
1073
|
\`api-endpoint\`, \`diff\`, \`file-tree\`, \`code\`, and \`annotated-code\` blocks
|
|
971
1074
|
directly next to the relevant prose.
|
|
972
1075
|
4. Surface the returned Plans link or inline MCP App and ask the user to review.
|
|
@@ -987,9 +1090,13 @@ exception.
|
|
|
987
1090
|
review events, and any focused screenshots from browser handoff as the source
|
|
988
1091
|
of truth for exactly what changed and exactly what each comment points at.
|
|
989
1092
|
6. Apply changes with \`update-visual-plan\`, preferring targeted \`contentPatches\`.
|
|
990
|
-
|
|
991
|
-
\`
|
|
992
|
-
plan
|
|
1093
|
+
Treat the top-level \`content\` payload as a full replacement, not a merge; do
|
|
1094
|
+
not send a partial \`content\` object to add a canvas or one block. If a full
|
|
1095
|
+
replacement is unavoidable, first read the complete plan source/content, carry
|
|
1096
|
+
forward every existing block and visual surface, and verify the source/export
|
|
1097
|
+
afterward so the document body was not truncated. When the user wants
|
|
1098
|
+
source-control friendly edits, use \`patch-visual-plan-source\` against the MDX
|
|
1099
|
+
files instead of regenerating the plan.
|
|
993
1100
|
7. Export with \`export-visual-plan\` only when the user wants a shareable receipt
|
|
994
1101
|
or repo-check-in artifacts.
|
|
995
1102
|
|
|
@@ -1026,6 +1133,28 @@ outweighs the value. Keep the pass cheap and non-blocking:
|
|
|
1026
1133
|
Choose the surface before creating the plan or after reading the source plan. Do
|
|
1027
1134
|
not add visual chrome by default:
|
|
1028
1135
|
|
|
1136
|
+
For UI/product plans, the top canvas is usually the primary review surface. Put
|
|
1137
|
+
the first meaningful wireframes there, not buried as document-body blocks. Use
|
|
1138
|
+
multiple canvas artboards when states matter, such as the default view, an
|
|
1139
|
+
overflow menu or popover, a side panel, loading, or error. Put short annotations
|
|
1140
|
+
beside frames with \`targetId\` plus \`placement\`; keep implementation details,
|
|
1141
|
+
tradeoffs, file maps, data contracts, risks, and verification in the document
|
|
1142
|
+
body below the canvas.
|
|
1143
|
+
|
|
1144
|
+
Keep product wireframes and explanatory/meta diagrams separate. Start with pure
|
|
1145
|
+
screens that look like the app state under discussion, without callout prose or
|
|
1146
|
+
architecture notes embedded inside the UI. Put arrows, labels, contracts, data
|
|
1147
|
+
flow, and mode explanations in separate annotations, separate canvas diagrams,
|
|
1148
|
+
or the document body.
|
|
1149
|
+
|
|
1150
|
+
When the plan touches an existing app, inspect the current shell/components
|
|
1151
|
+
before drawing. The first artboard should look like the real app at the same
|
|
1152
|
+
density: existing sidebars, toolbar placement, overflow menus, app chrome, and
|
|
1153
|
+
framework agent chrome stay in their real places. Model secondary surfaces as
|
|
1154
|
+
separate states, such as a top-right overflow popover, sheet, panel, loading
|
|
1155
|
+
state, or separate AgentSidebar, rather than inventing a permanent inspector or
|
|
1156
|
+
folding framework chrome into the product UI.
|
|
1157
|
+
|
|
1029
1158
|
- **No visual surface** for architecture-only, backend-only, data migration,
|
|
1030
1159
|
copy-only, or otherwise non-visual plans. Do not use the top canvas for
|
|
1031
1160
|
architecture diagrams, dependency maps, file plans, API contracts, or
|
|
@@ -1053,19 +1182,38 @@ design direction.
|
|
|
1053
1182
|
|
|
1054
1183
|
## Wireframe quality — read \`references/wireframe.md\`
|
|
1055
1184
|
|
|
1056
|
-
|
|
1185
|
+
UI recap/plan wireframes must meet a strict quality bar — full-width chrome,
|
|
1186
|
+
pinned bottom bars, real product content, before/after comparability, the right
|
|
1187
|
+
\`surface\` preset, \`--wf-*\` tokens instead of hex, and no \`<html>\`/\`<style>\`/font
|
|
1188
|
+
tags. Before authoring ANY wireframe / \`<Screen>\` / \`WireframeBlock\`, READ
|
|
1189
|
+
\`references/wireframe.md\` in this skill directory — it is the single source of
|
|
1190
|
+
truth for HTML wireframe quality, shared word for word with \`/visual-plan\`
|
|
1191
|
+
and \`/visual-recap\`. Do not author wireframes from memory.
|
|
1057
1192
|
|
|
1058
1193
|
## Canvas — read \`references/canvas.md\`
|
|
1059
1194
|
|
|
1060
|
-
|
|
1195
|
+
The canvas is the single source of truth for static UI mockups: the \`surface\`
|
|
1196
|
+
locks each artboard's footprint, mixed surfaces lay out
|
|
1197
|
+
in lanes, annotations are plain-text designer notes anchored by
|
|
1198
|
+
\`targetId\`/\`placement\`, and edits are surgical \`contentPatches\`. Before
|
|
1199
|
+
authoring or editing ANY canvas, artboard, or annotation, READ
|
|
1200
|
+
\`references/canvas.md\` in this skill directory — it is the single source of truth
|
|
1201
|
+
for canvas/artboard mechanics. Do not author canvas layouts from memory.
|
|
1061
1202
|
|
|
1062
1203
|
## Document quality — read \`references/document-quality.md\`
|
|
1063
1204
|
|
|
1064
|
-
|
|
1205
|
+
The document is a serious technical plan, not marketing: outcome-first,
|
|
1206
|
+
prose-first, self-contained, built from the right native blocks, with open
|
|
1207
|
+
questions in a single bottom \`question-form\` and a pre-handoff visual check.
|
|
1208
|
+
Before authoring the plan document, READ \`references/document-quality.md\` in this
|
|
1209
|
+
skill directory — it is the single source of truth for the document quality bar.
|
|
1210
|
+
Do not write the document from memory.
|
|
1065
1211
|
|
|
1066
1212
|
## Good vs. bad exemplar — read \`references/exemplar.md\`
|
|
1067
1213
|
|
|
1068
|
-
|
|
1214
|
+
For a worked example of the bar — a great UI-first plan and \`/visual-plan\`, plus
|
|
1215
|
+
the anti-patterns to avoid — READ \`references/exemplar.md\` in this skill
|
|
1216
|
+
directory before authoring a plan.
|
|
1069
1217
|
|
|
1070
1218
|
## Tool Guidance
|
|
1071
1219
|
|
|
@@ -1170,7 +1318,54 @@ by email or role. Gate visibility before sharing any plan that covers
|
|
|
1170
1318
|
unreleased or private work — default to the narrowest scope that meets the
|
|
1171
1319
|
review need.
|
|
1172
1320
|
|
|
1173
|
-
|
|
1321
|
+
## Setup & Authentication
|
|
1322
|
+
|
|
1323
|
+
There are two ways into Plans.
|
|
1324
|
+
|
|
1325
|
+
**Coding agent (CLI).** Install once with the Agent-Native CLI. The command
|
|
1326
|
+
installs the Plans skills, registers the hosted Plans MCP connector, and runs
|
|
1327
|
+
auth/setup for the selected local client(s) in the same step (a one-time browser
|
|
1328
|
+
sign-in at setup — this is intended), so the first tool call in that client does
|
|
1329
|
+
not hit an OAuth wall:
|
|
1330
|
+
|
|
1331
|
+
\`\`\`bash
|
|
1332
|
+
npx @agent-native/core@latest skills add visual-plan
|
|
1333
|
+
\`\`\`
|
|
1334
|
+
|
|
1335
|
+
After that, \`/visual-plan\` and \`/visual-recap\` are the two installed slash
|
|
1336
|
+
commands. The other planning modes (\`create-ui-plan\`, \`create-prototype-plan\`,
|
|
1337
|
+
\`create-plan-design\`, \`create-visual-questions\`) are MCP tools reachable from
|
|
1338
|
+
\`/visual-plan\`, not separate slash commands. Pass \`--no-connect\` to register
|
|
1339
|
+
the connector without authenticating, then run
|
|
1340
|
+
\`npx @agent-native/core@latest connect https://plan.agent-native.com --client all\`
|
|
1341
|
+
whenever you are ready, or choose a narrower \`--client\`. Auth and MCP tool
|
|
1342
|
+
loading are per client config/session.
|
|
1343
|
+
|
|
1344
|
+
**Browser (people you share with).** Open the Plans editor and create & edit
|
|
1345
|
+
with no sign-up — you work as a guest. Sign in only when you want to save or
|
|
1346
|
+
share; signing in claims the plans you made as a guest into your account.
|
|
1347
|
+
|
|
1348
|
+
Sharing and commenting require an account: public/shared plans are viewable by
|
|
1349
|
+
anyone with the link, but commenting on them needs an agent-native account.
|
|
1350
|
+
|
|
1351
|
+
For fully offline, no-account use, run the Plans app locally and sync plans to
|
|
1352
|
+
your repo as MDX. This local mode is a separate advanced path, not the default
|
|
1353
|
+
hosted flow.
|
|
1354
|
+
|
|
1355
|
+
If a Plans tool returns \`needs auth\`, \`Unauthorized\`, or \`Session terminated\`,
|
|
1356
|
+
do not keep retrying the tool. Stop and give the user the reconnect step for the
|
|
1357
|
+
client they are using: Codex/Codex Desktop should run
|
|
1358
|
+
\`npx -y @agent-native/core@latest reconnect https://plan.agent-native.com --client codex\`
|
|
1359
|
+
and start a new Codex session; Claude Code should run \`/mcp\` and choose
|
|
1360
|
+
Authenticate/Reconnect for the plan connector, or run the reconnect command with
|
|
1361
|
+
\`--client claude-code\` and restart Claude. To refresh every local client config
|
|
1362
|
+
that already has the Plan entry, use \`--client all\`, then restart/reload each
|
|
1363
|
+
client. Reconnect re-authenticates WITHOUT reinstalling and finds the entry by
|
|
1364
|
+
URL regardless of connector name. Never reinstall from scratch just to fix auth.
|
|
1365
|
+
Continue once the connector is available.
|
|
1366
|
+
|
|
1367
|
+
Hosted default: connect \`https://plan.agent-native.com/_agent-native/mcp\`. Do
|
|
1368
|
+
not put shared secrets in skill files.
|
|
1174
1369
|
`;
|
|
1175
1370
|
export const VISUAL_RECAP_SKILL_MD = `---
|
|
1176
1371
|
name: visual-recap
|