@plasmickit/cli 0.1.3 → 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 -13
package/package.json
CHANGED
package/skill/plasmic/SKILL.md
CHANGED
|
@@ -5,17 +5,15 @@ description: Inspect self-hosted Plasmic pages and templates, create or revise e
|
|
|
5
5
|
|
|
6
6
|
# Plasmic
|
|
7
7
|
|
|
8
|
-
This is a
|
|
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.
|
|
10
|
+
## Resolve the workflow
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
Choose `inspect` for read-only explanation/review, `prototype` for editable design creation or revision, or `codegen` for native application implementation.
|
|
15
13
|
|
|
16
|
-
|
|
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.
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
Otherwise run the matching published command:
|
|
19
17
|
|
|
20
18
|
```sh
|
|
21
19
|
npx -y @plasmickit/cli@latest context resolve --mode inspect
|
|
@@ -23,14 +21,20 @@ npx -y @plasmickit/cli@latest context resolve --mode prototype
|
|
|
23
21
|
npx -y @plasmickit/cli@latest context resolve --mode codegen
|
|
24
22
|
```
|
|
25
23
|
|
|
26
|
-
|
|
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.
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
## Prototype principles
|
|
29
29
|
|
|
30
|
-
|
|
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.
|
|
31
31
|
|
|
32
|
-
|
|
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
|
|
33
37
|
|
|
34
|
-
|
|
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.
|
|
35
39
|
|
|
36
|
-
|
|
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.
|