@skill-map/cli 0.26.0 → 0.26.1
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/tutorial/sm-master.md +6 -0
- package/dist/cli/tutorial/sm-tutorial.md +126 -66
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.js +1 -1
- package/dist/kernel/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -358,6 +358,12 @@ and re-render the menu.
|
|
|
358
358
|
|
|
359
359
|
## Final wrap-up
|
|
360
360
|
|
|
361
|
+
<!-- TODO(arquitecto): remove the "send findings to Pusher" flow from
|
|
362
|
+
this tutorial. It is not part of the roadmap v1 surface and the
|
|
363
|
+
Pusher hand-off should not appear in the public tester experience.
|
|
364
|
+
Strip the report-to-Pusher offer, the `sm-master-report.md`
|
|
365
|
+
template, and any closing copy that names Pusher. -->
|
|
366
|
+
|
|
361
367
|
When the tester picks option 4 or signals they are done, **offer to
|
|
362
368
|
generate a report file to send to Pusher**:
|
|
363
369
|
|
|
@@ -233,9 +233,10 @@ the fixture, when showing the tester commands, when computing the
|
|
|
233
233
|
expected node count, and when listing files for the start-over
|
|
234
234
|
wipe.** Also: **skip any sub-step whose kind is not in the
|
|
235
235
|
provider's supported set** (e.g. on `gemini`, skip the
|
|
236
|
-
`demo-command` file in Step 3 and the `
|
|
236
|
+
`demo-command` file in Step 3 and the `notes/todo → demo-command`
|
|
237
237
|
connector in Step 5; on `agent-skills`, skip both `demo-agent`
|
|
238
|
-
and `demo-command` and demo only the skill + the markdown
|
|
238
|
+
and `demo-command` and demo only the skill + the two markdown
|
|
239
|
+
notes plus the connectors that target them).
|
|
239
240
|
|
|
240
241
|
Persist `provider` into `tutorial-state.yml` (top-level
|
|
241
242
|
`provider: <id>` field) so a resumed session does not have to
|
|
@@ -626,17 +627,20 @@ Wait for confirmation. Mark `2-live-boot: done`.
|
|
|
626
627
|
### Step 3 — Live UI: the other three kinds appear (~1 min)
|
|
627
628
|
|
|
628
629
|
Leave the browser open and the terminal with `sm` running. You
|
|
629
|
-
create
|
|
630
|
-
yet — pure standalone nodes — so the tester sees
|
|
631
|
-
in.
|
|
630
|
+
create four more nodes **without any cross-fixture links**
|
|
631
|
+
yet — pure standalone nodes — so the tester sees four new dots pop
|
|
632
|
+
in. Three new **kinds** show up in this step (skill, command,
|
|
633
|
+
markdown), the fourth file is a second `markdown` node that the
|
|
634
|
+
hub in Step 5 will point at via a real `references` link.
|
|
632
635
|
|
|
633
|
-
Create these
|
|
636
|
+
Create these four files (with `Write`), exactly in this order.
|
|
634
637
|
Per §Provider detection, **substitute `.claude/` with the
|
|
635
638
|
detected `<provider_dir>` and skip files whose kind is not in the
|
|
636
|
-
provider's supported set** (`gemini`: skip `demo-command
|
|
637
|
-
`agent-skills`: skip both `demo-agent` and
|
|
638
|
-
the skill + the markdown
|
|
639
|
-
the "
|
|
639
|
+
provider's supported set** (`gemini`: skip `demo-command`, three
|
|
640
|
+
new nodes land; `agent-skills`: skip both `demo-agent` and
|
|
641
|
+
`demo-command`, only the skill + the two markdown notes remain).
|
|
642
|
+
Adjust the node count, the "four new nodes" message, and the file
|
|
643
|
+
list shown to the tester in the blockquote below accordingly:
|
|
640
644
|
|
|
641
645
|
1. `.claude/skills/demo-skill/SKILL.md` (kind: skill):
|
|
642
646
|
```markdown
|
|
@@ -696,22 +700,58 @@ the "three new nodes" message in the blockquote below accordingly:
|
|
|
696
700
|
name: Demo TODO list
|
|
697
701
|
description: |
|
|
698
702
|
Live list of things to review in the demo. Will become the
|
|
699
|
-
hub
|
|
703
|
+
hub that points to the rest of the fixture in the next
|
|
704
|
+
sub-step.
|
|
700
705
|
tags: [notes, demo]
|
|
701
706
|
---
|
|
702
707
|
|
|
703
708
|
# Pending
|
|
704
709
|
```
|
|
705
710
|
|
|
711
|
+
4. `notes/demo-guideline.md` — second `kind: markdown` node, the
|
|
712
|
+
one the hub will reach via a real markdown link in Step 5:
|
|
713
|
+
```markdown
|
|
714
|
+
---
|
|
715
|
+
name: demo-guideline
|
|
716
|
+
description: |
|
|
717
|
+
Static reference notes that the rest of the demo points at.
|
|
718
|
+
Showcases a second markdown node so the demo can exercise
|
|
719
|
+
the `references` link kind without ambiguity.
|
|
720
|
+
tags: [notes, demo]
|
|
721
|
+
---
|
|
722
|
+
|
|
723
|
+
# Demo Guideline
|
|
724
|
+
|
|
725
|
+
Conventions the demo fixture follows:
|
|
726
|
+
|
|
727
|
+
- Names match the file basename.
|
|
728
|
+
- Frontmatter `description` is short and human-readable.
|
|
729
|
+
- Body stays minimal, only what's needed to teach the kind.
|
|
730
|
+
```
|
|
731
|
+
|
|
706
732
|
Tell the tester:
|
|
707
733
|
|
|
708
|
-
> Look at the browser.
|
|
709
|
-
> `demo-skill`, `demo-command`,
|
|
710
|
-
> **still unconnected** — they're floating dots.
|
|
711
|
-
> auto-fits whenever a node is added or removed, so
|
|
712
|
-
> should be visible without panning.
|
|
734
|
+
> Look at the browser. Four new nodes should have popped in:
|
|
735
|
+
> `demo-skill`, `demo-command`, `notes/todo`, and `demo-guideline`.
|
|
736
|
+
> Five total now, **still unconnected** — they're floating dots.
|
|
737
|
+
> The viewport auto-fits whenever a node is added or removed, so
|
|
738
|
+
> all five should be visible without panning.
|
|
739
|
+
>
|
|
740
|
+
> What I just did behind the scenes: I created four new files in
|
|
741
|
+
> your project, and the watcher picked them up on its own, that's
|
|
742
|
+
> why four new dots appeared without you running anything:
|
|
743
|
+
>
|
|
744
|
+
> ```
|
|
745
|
+
> .claude/skills/demo-skill/SKILL.md (kind: skill)
|
|
746
|
+
> .claude/commands/demo-command.md (kind: command)
|
|
747
|
+
> notes/todo.md (kind: markdown)
|
|
748
|
+
> notes/demo-guideline.md (kind: markdown)
|
|
749
|
+
> ```
|
|
750
|
+
>
|
|
751
|
+
> Same loop you'll use yourself in the next step, only this time
|
|
752
|
+
> the writes came from me.
|
|
713
753
|
>
|
|
714
|
-
> Did the
|
|
754
|
+
> Did the four appear? Confirm so we can wire them up.
|
|
715
755
|
|
|
716
756
|
Wait for confirmation. Mark `3-live-kinds: done`.
|
|
717
757
|
|
|
@@ -740,10 +780,10 @@ Tell the tester:
|
|
|
740
780
|
>
|
|
741
781
|
> Watch the browser. The `demo-agent` card should refresh its
|
|
742
782
|
> description in real time, no reload, no Ctrl+C — same watcher
|
|
743
|
-
> that picked up the
|
|
783
|
+
> that picked up the four new nodes a moment ago, this time
|
|
744
784
|
> reacting to YOUR edit.
|
|
745
785
|
>
|
|
746
|
-
> Confirm so we wire the
|
|
786
|
+
> Confirm so we wire the five up.
|
|
747
787
|
|
|
748
788
|
Wait for confirmation. You MAY use `Read` on the file afterwards
|
|
749
789
|
to verify the change landed (read-only, allowed under Inviolable
|
|
@@ -751,44 +791,52 @@ rule #1) before moving on. Mark `4-live-edit: done`.
|
|
|
751
791
|
|
|
752
792
|
### Step 5 — Live UI: the connectors light up (~1 min)
|
|
753
793
|
|
|
754
|
-
Now you edit
|
|
755
|
-
each
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
794
|
+
Now you edit `notes/todo.md` so it becomes the **hub** that points
|
|
795
|
+
to each of the other four nodes. Each bullet uses a syntax that
|
|
796
|
+
maps to a specific **link kind**:
|
|
797
|
+
|
|
798
|
+
- an `@handle` token → kind `mentions`
|
|
799
|
+
- a `/slash` token → kind `invokes`
|
|
800
|
+
- a markdown link `[text](path)` → kind `references`
|
|
801
|
+
|
|
802
|
+
Four bullets, three kinds (the `invokes` kind shows up twice
|
|
803
|
+
because both the command and the skill are addressed by slash).
|
|
804
|
+
|
|
805
|
+
Apply with `Edit` on `notes/todo.md` (do not rewrite the file).
|
|
806
|
+
Per §Provider detection, **substitute `.claude/` with the detected
|
|
807
|
+
`<provider_dir>` and drop any bullet whose target node was not
|
|
808
|
+
created in Step 3** (on `gemini` there is no command → skip the
|
|
809
|
+
`/demo-command` bullet, three connectors land; on `agent-skills`
|
|
810
|
+
there is no agent and no command → skip the `@demo-agent` and
|
|
811
|
+
`/demo-command` bullets, two connectors land).
|
|
812
|
+
|
|
813
|
+
**Edit `notes/todo.md`** — append these bullets after the
|
|
814
|
+
`# Pending` heading:
|
|
815
|
+
|
|
816
|
+
```markdown
|
|
817
|
+
- [ ] Brief @demo-agent on the rough edges.
|
|
818
|
+
- [ ] Run /demo-command before publishing.
|
|
819
|
+
- [ ] Trigger /demo-skill when the input lands.
|
|
820
|
+
- [ ] Re-read the
|
|
821
|
+
[demo-guideline](./demo-guideline.md) before shipping.
|
|
822
|
+
```
|
|
782
823
|
|
|
783
824
|
Tell the tester:
|
|
784
825
|
|
|
785
|
-
> Look at the magic again.
|
|
786
|
-
>
|
|
787
|
-
>
|
|
826
|
+
> Look at the magic again. `notes/todo` is now the hub: four
|
|
827
|
+
> arrows light up between it and the other nodes, and the UI
|
|
828
|
+
> palette colours each arrow by the link kind it carries:
|
|
829
|
+
>
|
|
830
|
+
> - `notes/todo → demo-agent` (kind: `mentions`)
|
|
831
|
+
> - `notes/todo → demo-command` (kind: `invokes`)
|
|
832
|
+
> - `notes/todo → demo-skill` (kind: `invokes`)
|
|
833
|
+
> - `notes/todo → demo-guideline` (kind: `references`)
|
|
788
834
|
>
|
|
789
|
-
>
|
|
790
|
-
>
|
|
791
|
-
>
|
|
835
|
+
> The kind comes from the syntax in the bullet: an `@handle` is
|
|
836
|
+
> always a mention, a `/command` is always an invoke, a markdown
|
|
837
|
+
> link is always a reference. Four arrows, three kinds, three
|
|
838
|
+
> colours on the canvas (the two `invokes` share a colour, as you
|
|
839
|
+
> would expect).
|
|
792
840
|
>
|
|
793
841
|
> Confirm. If a connector is missing, refresh the browser and tell
|
|
794
842
|
> me.
|
|
@@ -850,6 +898,7 @@ the tester sees what their cwd holds:
|
|
|
850
898
|
> ├── .skillmapignore ← the file we're about to edit
|
|
851
899
|
> ├── notes/
|
|
852
900
|
> │ ├── todo.md
|
|
901
|
+
> │ ├── demo-guideline.md
|
|
853
902
|
> │ └── private-credentials.md ← what we want to hide
|
|
854
903
|
> └── sm-tutorial.md ← the tutorial file you loaded
|
|
855
904
|
> ```
|
|
@@ -883,8 +932,8 @@ your `Edit` tool. Tell the tester to do it from their editor:
|
|
|
883
932
|
>
|
|
884
933
|
> Watch the browser when you save. The
|
|
885
934
|
> `notes/private-credentials` node should disappear from the
|
|
886
|
-
> graph in real time, without restarting anything.
|
|
887
|
-
> back to
|
|
935
|
+
> graph in real time, without restarting anything. Six nodes
|
|
936
|
+
> back to five.
|
|
888
937
|
>
|
|
889
938
|
> Did the node vanish?
|
|
890
939
|
|
|
@@ -979,16 +1028,19 @@ conditional, e.g. "If the server from Step 2 is still up, leave it
|
|
|
979
1028
|
browser." Do not just say "start it again" — that risks a second
|
|
980
1029
|
process trying to bind the same port and confusing the tester.
|
|
981
1030
|
|
|
982
|
-
> Your turn. Edit
|
|
983
|
-
>
|
|
984
|
-
>
|
|
1031
|
+
> Your turn. Edit `notes/todo.md` with your editor of choice and
|
|
1032
|
+
> delete the bullet that contains `@demo-agent`. Save. Watch the
|
|
1033
|
+
> UI.
|
|
985
1034
|
>
|
|
986
|
-
> Expected: the `
|
|
987
|
-
> real time. The two nodes stay in the
|
|
1035
|
+
> Expected: the `notes/todo → demo-agent` connector (kind:
|
|
1036
|
+
> `mentions`) disappears in real time. The two nodes stay in the
|
|
1037
|
+
> graph; only the edge goes.
|
|
988
1038
|
|
|
989
|
-
You verify by reading
|
|
990
|
-
|
|
991
|
-
the
|
|
1039
|
+
You verify by reading `notes/todo.md` to confirm the change was
|
|
1040
|
+
applied. (On `agent-skills`, where the `@demo-agent` bullet was
|
|
1041
|
+
never created in Step 5, ask the tester to remove the only bullet
|
|
1042
|
+
they did add and watch THAT connector vanish, the lesson is the
|
|
1043
|
+
same.) Once they confirm, ask them to **Ctrl+C** the server.
|
|
992
1044
|
|
|
993
1045
|
### Step 9 — Browse CLI: list / show / check (~3 min)
|
|
994
1046
|
|
|
@@ -1001,10 +1053,11 @@ sm show .claude/skills/demo-skill/SKILL.md
|
|
|
1001
1053
|
sm check
|
|
1002
1054
|
```
|
|
1003
1055
|
|
|
1004
|
-
Expected: you see the
|
|
1056
|
+
Expected: you see the 5 fixture nodes listed with their kind:
|
|
1005
1057
|
`demo-skill` (skill), `demo-agent` (agent), `demo-command`
|
|
1006
|
-
(command),
|
|
1007
|
-
Step 3)
|
|
1058
|
+
(command), `notes/todo` (`markdown`, the catch-all per
|
|
1059
|
+
Step 3), and `notes/demo-guideline` (`markdown` as well, the
|
|
1060
|
+
target of the hub's `references` link). `check` reads the persisted
|
|
1008
1061
|
`scan_issues` table — it does NOT re-walk the filesystem. The
|
|
1009
1062
|
fixture is clean (Steps 2-6 captured the latest state before
|
|
1010
1063
|
Ctrl+C), so the verb prints `✓ No issues`. We will plant one in
|
|
@@ -1220,6 +1273,12 @@ bundle-granularity and only accepts the bundle id.
|
|
|
1220
1273
|
|
|
1221
1274
|
## Final wrap-up
|
|
1222
1275
|
|
|
1276
|
+
<!-- TODO(arquitecto): remove the "send findings to Pusher" flow from
|
|
1277
|
+
this tutorial. It is not part of the roadmap v1 surface and the
|
|
1278
|
+
Pusher hand-off should not appear in the public tester experience.
|
|
1279
|
+
Strip the report-to-Pusher offer, the `sm-tutorial-report.md`
|
|
1280
|
+
template, and any closing copy that names Pusher. -->
|
|
1281
|
+
|
|
1223
1282
|
When everything is done (demo only, or demo + deep-dive), **offer to
|
|
1224
1283
|
generate a report file to send to Pusher**:
|
|
1225
1284
|
|
|
@@ -1339,6 +1398,7 @@ anything**:
|
|
|
1339
1398
|
> <provider_dir>/commands/demo-command.md (claude only)
|
|
1340
1399
|
> <provider_dir>/skills/demo-skill/ (all three)
|
|
1341
1400
|
> notes/todo.md
|
|
1401
|
+
> notes/demo-guideline.md
|
|
1342
1402
|
> notes/private-credentials.md
|
|
1343
1403
|
> sm-tutorial-report.md (if present)
|
|
1344
1404
|
> export.* (if present)
|
package/dist/cli.js
CHANGED
|
@@ -5862,7 +5862,7 @@ var UPDATE_CHECK_TEXTS = {
|
|
|
5862
5862
|
// package.json
|
|
5863
5863
|
var package_default = {
|
|
5864
5864
|
name: "@skill-map/cli",
|
|
5865
|
-
version: "0.26.
|
|
5865
|
+
version: "0.26.1",
|
|
5866
5866
|
description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
|
|
5867
5867
|
license: "MIT",
|
|
5868
5868
|
type: "module",
|