@plasmickit/cli 0.1.4 → 0.1.5
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/skill/plasmic/SKILL.md +17 -27
package/package.json
CHANGED
package/skill/plasmic/SKILL.md
CHANGED
|
@@ -5,31 +5,15 @@ description: Inspect self-hosted Plasmic pages and templates, create or revise e
|
|
|
5
5
|
|
|
6
6
|
# Plasmic
|
|
7
7
|
|
|
8
|
-
This
|
|
8
|
+
This is the entrypoint for resolving current resources and selecting a workflow. Component rules, design conventions and acceptance procedures are maintained in the resolved references; read the relevant documents before acting.
|
|
9
9
|
|
|
10
|
-
##
|
|
11
|
-
|
|
12
|
-
Use the published CLI, documented Desktop MCP tools and resolved skill resources with the task's requirements and design files. Do not unpack, extract or decompile the Plasmic App, or read its internal Desktop/Studio implementation, packaged dependencies, extracted/copied artifacts or equivalent client repository source. This prohibition applies to the acting agent, delegated agents and their tool scripts, including troubleshooting and contract or validator discovery.
|
|
13
|
-
|
|
14
|
-
If public tool contracts or skill documents are insufficient, retain the exact call and error, stop dependent work and report the missing contract or documentation. Do not inspect client internals or reverse-engineer private interfaces to continue. Codegen may inspect and edit the target application's source within the user's task; this does not authorize reading the Plasmic client implementation.
|
|
15
|
-
|
|
16
|
-
## Component priority for prototype design
|
|
17
|
-
|
|
18
|
-
Choose components before markup for every prototype creation or edit. Discover reusable business components/templates and library registrations through Desktop MCP by the required role, then read candidate contracts. Prefer an existing business component or matching template, then registered library components, then compositions of those components. Preserve the user's library choices and the target project's actual APIs; a template must fit the requirement. Do not install another library or add a Card merely to satisfy this preference.
|
|
19
|
-
|
|
20
|
-
Use real Props, Slots, states and events for functional widgets, including actions, controls, navigation, repeated information, pagination, feedback and overlays. Do not redraw available components with HTML/CSS; visual similarity is not component reuse. Plain semantic text, necessary root/Slot/layout containers, genuine navigation anchors, read-only code and content graphics remain valid native elements; do not turn every text node or wrapper into a component or surface.
|
|
21
|
-
|
|
22
|
-
Use a custom element widget only when verified current components and their supported compositions cannot express the required behavior. Before writing it, record the exact named node, checked candidates/contracts, concrete gap and requirement source in the task plan. An unread contract, absent import, rendering error, styling convenience or missing binding is not a capability gap. Correct usage or report the blocker; ordinary design work does not create a new component library. A fallback cannot override a required native identity, Form ownership or another acceptance gate.
|
|
10
|
+
## Resolve the workflow
|
|
23
11
|
|
|
24
|
-
|
|
12
|
+
Choose `inspect` for read-only explanation/review, `prototype` for editable design creation or revision, or `codegen` for native application implementation.
|
|
25
13
|
|
|
26
|
-
|
|
14
|
+
If this skill contains `local-source.json`, read its absolute `resolver` path and run `node RESOLVER_PATH --mode MODE`. This selects current local development resources. A missing resolver/resource is an error; do not fall back to published or cached resources.
|
|
27
15
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## Task workflow
|
|
31
|
-
|
|
32
|
-
Choose the task mode before work: `inspect` for read-only page/template explanation or design review, `prototype` for selecting/creating the design project and design edits, or `codegen` for native React implementation and updates. Run the matching command:
|
|
16
|
+
Otherwise run the matching published command:
|
|
33
17
|
|
|
34
18
|
```sh
|
|
35
19
|
npx -y @plasmickit/cli@latest context resolve --mode inspect
|
|
@@ -37,14 +21,20 @@ npx -y @plasmickit/cli@latest context resolve --mode prototype
|
|
|
37
21
|
npx -y @plasmickit/cli@latest context resolve --mode codegen
|
|
38
22
|
```
|
|
39
23
|
|
|
40
|
-
|
|
24
|
+
Read every returned `mustRead` file, starting with `referencePath`. Resolve linked documents from the returned `resourceRoot`; follow the workflow's scenario-specific reading and evidence requirements. Resource readiness does not mean the documents have been read. For a task spanning modes, resolve and read each workflow before its work begins.
|
|
25
|
+
|
|
26
|
+
The published resolver checks the NAS release manifest and verifies resource hashes. Stop dependent work on failure; do not silently use stale references. If it requires a newer CLI before npm has that version, install its returned `cliUrl` and rerun. Relay meaningful preparation progress from stderr; stdout contains the result. Report local versus published resources accurately.
|
|
41
27
|
|
|
42
|
-
|
|
28
|
+
## Prototype principles
|
|
43
29
|
|
|
44
|
-
|
|
30
|
+
Select components before composing markup. Discover existing business components and matching templates, prefer them and registered library components, and read their current Props, Slots and event contracts. Do not redraw available functional components with HTML/CSS. Follow `references/libraries/index.md` for selection and verified contract gaps.
|
|
45
31
|
|
|
46
|
-
|
|
32
|
+
For admin prototypes, read `references/admin-templates.md` and its catalog, inspect applicable live templates, then adapt the selected composition to the requirement. Read the relevant component and composition references before using them. A template or component must fit the current requirement and the project's actual library.
|
|
33
|
+
|
|
34
|
+
Use the selected workflow for source interpretation, project selection, editing and verification. Keep plans and acceptance evidence outside the business UI. Inspect is read-only; prototype mutations require edit permission. Codegen uses the target application's architecture and codegen workflow; an explicit official Plasmic CLI request follows the guide's official-CLI reference.
|
|
35
|
+
|
|
36
|
+
## Client implementation boundary
|
|
47
37
|
|
|
48
|
-
|
|
38
|
+
Use documented Desktop MCP tools and resolved skill resources. Do not unpack, decompile or inspect Plasmic App/Desktop/Studio internals, packaged dependencies, copied artifacts or equivalent client repository source, including through delegated agents or scripts. Codegen may inspect the target application's source within the user's scope.
|
|
49
39
|
|
|
50
|
-
|
|
40
|
+
When public contracts or references are insufficient, retain the exact call/error, stop dependent work and report the missing contract. Do not reverse-engineer private interfaces to continue.
|