@lifeaitools/rdc-skills 0.9.14 → 0.9.16
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/skills/status/SKILL.md +14 -2
- package/skills/lab-push/SKILL.md +0 -46
package/package.json
CHANGED
package/skills/status/SKILL.md
CHANGED
|
@@ -57,11 +57,20 @@ description: >-
|
|
|
57
57
|
git branch -v
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
6. **
|
|
60
|
+
6. **Dev server health (PM2):**
|
|
61
|
+
SSH into the Coolify server and check PM2 process state:
|
|
62
|
+
```bash
|
|
63
|
+
SSH_KEY=$(curl -s http://127.0.0.1:52437/v/ssh-key-path)
|
|
64
|
+
ssh -i "$SSH_KEY" -o StrictHostKeyChecking=no root@64.237.54.189 "pm2 jlist 2>/dev/null"
|
|
65
|
+
```
|
|
66
|
+
Parse the JSON array — for each process note `name`, `pm2_env.status` (online/stopped/errored), and `pm2_env.pm_uptime`.
|
|
67
|
+
If SSH fails or PM2 returns nothing, note "PM2 unreachable" and continue.
|
|
68
|
+
|
|
69
|
+
7. **Infrastructure health** (if MCP available):
|
|
61
70
|
- Get infrastructure overview or diagnose issues
|
|
62
71
|
- Report any apps with failed builds or down containers
|
|
63
72
|
|
|
64
|
-
|
|
73
|
+
8. **Present as a compact dashboard:**
|
|
65
74
|
```
|
|
66
75
|
## Open Epics (N)
|
|
67
76
|
<table>
|
|
@@ -71,6 +80,9 @@ description: >-
|
|
|
71
80
|
## Recent (48h)
|
|
72
81
|
<list>
|
|
73
82
|
|
|
83
|
+
## Dev Servers (PM2)
|
|
84
|
+
online: studio canvas lifeai ... stopped: issho-invest
|
|
85
|
+
|
|
74
86
|
## Deployments
|
|
75
87
|
<green/red/yellow status>
|
|
76
88
|
|
package/skills/lab-push/SKILL.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: rdc:lab-push
|
|
3
|
-
description: >-
|
|
4
|
-
Usage `rdc:lab-push <filename>` — push the artifact in this conversation to the Lab prototype viewer. Commits the file to apps/lab/docs/prototypes/ via POST https://lab.dev.place.fund/api/prototypes/push. Viewable immediately at lab.dev.place.fund/proto/<filename>.
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# rdc:lab-push — Push Artifact to Lab
|
|
8
|
-
|
|
9
|
-
Push a JSX, TSX, HTML, or JS artifact from this conversation to the Lab prototype viewer at `lab.dev.place.fund`.
|
|
10
|
-
|
|
11
|
-
## How it works
|
|
12
|
-
|
|
13
|
-
1. POST `{ filename, content }` to `https://lab.dev.place.fund/api/prototypes/push`
|
|
14
|
-
2. The endpoint commits the file to `apps/lab/docs/prototypes/` on the `develop` branch via the GitHub Contents API
|
|
15
|
-
3. The file is immediately visible at `https://lab.dev.place.fund/proto/<filename>` — no redeploy needed
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
rdc:lab-push <filename>
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
- `filename` must end in `.jsx`, `.tsx`, `.html`, or `.js`
|
|
24
|
-
- The artifact content comes from this conversation (the most recent code block, or the artifact the user is referring to)
|
|
25
|
-
|
|
26
|
-
## Steps
|
|
27
|
-
|
|
28
|
-
1. Identify the artifact content — the most recent code block in this conversation that the user wants to push, or what they explicitly point to
|
|
29
|
-
2. If filename not provided as an argument, derive one from the artifact (e.g. `my-component.jsx`)
|
|
30
|
-
3. Check if the file already exists: GET `https://lab.dev.place.fund/api/prototypes/content?filename=<filename>` — if it returns a `sha`, include it in the push body so GitHub can update rather than reject
|
|
31
|
-
4. POST to `https://lab.dev.place.fund/api/prototypes/push`:
|
|
32
|
-
```json
|
|
33
|
-
{ "filename": "<filename>", "content": "<full file content>", "sha": "<sha if updating>" }
|
|
34
|
-
```
|
|
35
|
-
5. On success, respond with: `Pushed → https://lab.dev.place.fund/proto/<filename>`
|
|
36
|
-
|
|
37
|
-
## Error handling
|
|
38
|
-
|
|
39
|
-
- 422 from push = filename invalid (wrong extension or path traversal attempt)
|
|
40
|
-
- 503 = credential service unavailable on the lab server
|
|
41
|
-
- 502 = GitHub API error — check if the file already exists and a `sha` is needed
|
|
42
|
-
|
|
43
|
-
## Notes
|
|
44
|
-
|
|
45
|
-
- This is the only way to get artifacts from claude.ai into the lab without copy-paste
|
|
46
|
-
- Git history in `apps/lab/docs/prototypes/` is the version store — every save is a commit
|