@drunkcoding/agents-and-skills 0.0.33 → 0.0.34
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/.claude-plugin/marketplace.json +5 -5
- package/package.json +1 -1
- package/plugins/html-effectiveness/.claude-plugin/plugin.json +1 -1
- package/plugins/multica-tool/.claude-plugin/plugin.json +1 -1
- package/plugins/multica-tool/scripts/lib.mjs +1 -1
- package/plugins/multica-tool/scripts/multica-export.mjs +8 -2
- package/plugins/multica-tool/scripts/multica-import.mjs +40 -10
- package/plugins/plugin-validator/.claude-plugin/plugin.json +1 -1
- package/plugins/team-share/.claude-plugin/plugin.json +1 -1
- package/plugins/tech-graph/.claude-plugin/plugin.json +1 -1
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"name": "tech-graph",
|
|
13
13
|
"source": "./plugins/tech-graph",
|
|
14
14
|
"description": "6-step wizard for technical diagrams (SVG/PNG) via fireworks-tech-graph",
|
|
15
|
-
"version": "0.0.
|
|
15
|
+
"version": "0.0.34",
|
|
16
16
|
"category": "diagram",
|
|
17
17
|
"keywords": [
|
|
18
18
|
"diagram",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"name": "html-effectiveness",
|
|
27
27
|
"source": "./plugins/html-effectiveness",
|
|
28
28
|
"description": "Generate self-contained interactive HTML reports from 20 upstream templates via a conversational agent.",
|
|
29
|
-
"version": "0.0.
|
|
29
|
+
"version": "0.0.34",
|
|
30
30
|
"category": "reports",
|
|
31
31
|
"keywords": [
|
|
32
32
|
"html",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"name": "plugin-validator",
|
|
42
42
|
"source": "./plugins/plugin-validator",
|
|
43
43
|
"description": "Orchestrated validator for Claude Code plugins — validates skills, agents, commands, and hooks across every plugin under plugins/**.",
|
|
44
|
-
"version": "0.0.
|
|
44
|
+
"version": "0.0.34",
|
|
45
45
|
"category": "tooling",
|
|
46
46
|
"keywords": [
|
|
47
47
|
"validation",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"name": "team-share",
|
|
58
58
|
"source": "./plugins/team-share",
|
|
59
59
|
"description": "Onboard your team with an interactive setup menu: install CodeGraph, build the Understand-Anything knowledge graph, and share Claude Code settings — run any combination, all idempotent.",
|
|
60
|
-
"version": "0.0.
|
|
60
|
+
"version": "0.0.34",
|
|
61
61
|
"category": "tooling",
|
|
62
62
|
"keywords": [
|
|
63
63
|
"onboarding",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"name": "multica-tool",
|
|
74
74
|
"source": "./plugins/multica-tool",
|
|
75
75
|
"description": "Export, import, and sync Multica skills, agents, and squads between workspaces.",
|
|
76
|
-
"version": "0.0.
|
|
76
|
+
"version": "0.0.34",
|
|
77
77
|
"category": "workflow",
|
|
78
78
|
"keywords": [
|
|
79
79
|
"multica",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-effectiveness",
|
|
3
3
|
"displayName": "HTML Effectiveness Reports",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.34",
|
|
5
5
|
"description": "Generate self-contained interactive HTML reports from 20 upstream templates via a conversational agent.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Steven Hoang"
|
|
@@ -84,7 +84,7 @@ export function getAgent(cli, id) {
|
|
|
84
84
|
|
|
85
85
|
export function getSquad(cli, id) {
|
|
86
86
|
const s = cli.json(["squad", "get", id]);
|
|
87
|
-
return { id: s.id, name: s.name, description: s.description, leaderId: s.leader_id };
|
|
87
|
+
return { id: s.id, name: s.name, description: s.description, instructions: s.instructions, leaderId: s.leader_id };
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export const getSquadMembers = (cli, id) =>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as nodeFs from "node:fs";
|
|
2
|
+
import { dirname } from "node:path";
|
|
2
3
|
import { slugify, getSkill, getAgent, getSquad, getSquadMembers, makeCli, realExec, requireAuth, resolveWorkspaceId } from "./lib.mjs";
|
|
3
4
|
|
|
4
5
|
const nonEmpty = (v) => v && typeof v === "object" && Object.keys(v).length > 0;
|
|
@@ -24,7 +25,7 @@ export function buildManifest({ scope, sourceWorkspaceId, skills, agents, squad
|
|
|
24
25
|
sourceWorkspaceId,
|
|
25
26
|
skills: [...seenSkills.values()].map((s) => ({ name: s.name, dir: `skills/${slugify(s.name)}`, sourceId: s.sourceId })),
|
|
26
27
|
agents: [...seenAgents.values()].map((a) => ({ name: a.name, file: `agents/${slugify(a.name)}.json`, sourceRuntimeId: a.sourceRuntimeId, skillNames: a.skillNames, hadSecrets: !!a.hadSecrets })),
|
|
27
|
-
squads: squad ? [{ name: squad.name, file: `squads/${slugify(squad.name)}.json`, description: squad.description ?? "", leaderName: squad.leaderName, members: squad.members }] : [],
|
|
28
|
+
squads: squad ? [{ name: squad.name, file: `squads/${slugify(squad.name)}.json`, description: squad.description ?? "", instructions: squad.instructions ?? "", leaderName: squad.leaderName, members: squad.members }] : [],
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -62,6 +63,7 @@ export function exportResource({ cli, scope, ids, outDir, sourceWorkspaceId, fs
|
|
|
62
63
|
squad = {
|
|
63
64
|
name: sq.name,
|
|
64
65
|
description: sq.description,
|
|
66
|
+
instructions: sq.instructions,
|
|
65
67
|
leaderName: nameOf(sq.leaderId),
|
|
66
68
|
members: members.map((m) => ({ agentName: nameOf(m.memberId), role: m.role })),
|
|
67
69
|
};
|
|
@@ -83,7 +85,11 @@ export function exportResource({ cli, scope, ids, outDir, sourceWorkspaceId, fs
|
|
|
83
85
|
fs.mkdirSync(dir, { recursive: true });
|
|
84
86
|
fs.writeFileSync(`${dir}/SKILL.md`, s.content ?? "");
|
|
85
87
|
fs.writeFileSync(`${dir}/config.json`, JSON.stringify(s.config ?? {}, null, 2));
|
|
86
|
-
for (const f of s.files ?? [])
|
|
88
|
+
for (const f of s.files ?? []) {
|
|
89
|
+
const target = `${dir}/${f.path}`;
|
|
90
|
+
fs.mkdirSync(dirname(target), { recursive: true }); // f.path may be nested, e.g. scripts/foo.sh
|
|
91
|
+
fs.writeFileSync(target, f.content ?? "");
|
|
92
|
+
}
|
|
87
93
|
}
|
|
88
94
|
// Index agent entries by name for the manifest writing loop.
|
|
89
95
|
const agentByName = new Map([...agentsById.values()].map((a) => [a.raw.name, a]));
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
import * as nodeFs from "node:fs";
|
|
2
|
-
import { listSkills, listAgents, listSquads, findByName, makeCli, realExec, requireAuth, resolveWorkspaceId } from "./lib.mjs";
|
|
2
|
+
import { listSkills, listAgents, listSquads, getSquadMembers, findByName, makeCli, realExec, requireAuth, resolveWorkspaceId } from "./lib.mjs";
|
|
3
|
+
|
|
4
|
+
// Relative paths of every file under root (recursing into subdirs like scripts/).
|
|
5
|
+
function walkSkillFiles(fs, root, rel = "") {
|
|
6
|
+
const out = [];
|
|
7
|
+
for (const ent of fs.readdirSync(rel ? `${root}/${rel}` : root, { withFileTypes: true })) {
|
|
8
|
+
const r = rel ? `${rel}/${ent.name}` : ent.name;
|
|
9
|
+
if (ent.isDirectory()) out.push(...walkSkillFiles(fs, root, r));
|
|
10
|
+
else out.push(r);
|
|
11
|
+
}
|
|
12
|
+
return out;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Pull `description:` out of a SKILL.md YAML frontmatter block.
|
|
16
|
+
// ponytail: single-line values only (the skill frontmatter convention); folded/multi-line YAML not handled.
|
|
17
|
+
function frontmatterDescription(text) {
|
|
18
|
+
const block = /^---\r?\n([\s\S]*?)\r?\n---/.exec(text);
|
|
19
|
+
if (!block) return "";
|
|
20
|
+
const line = block[1].split(/\r?\n/).find((l) => /^description\s*:/.test(l));
|
|
21
|
+
return line ? line.replace(/^description\s*:/, "").trim().replace(/^["']|["']$/g, "") : "";
|
|
22
|
+
}
|
|
3
23
|
|
|
4
24
|
export function importSkills({ cli, manifest, dir, fs = nodeFs }) {
|
|
5
25
|
const idMap = new Map();
|
|
@@ -12,19 +32,24 @@ export function importSkills({ cli, manifest, dir, fs = nodeFs }) {
|
|
|
12
32
|
const configPath = `${sdir}/config.json`;
|
|
13
33
|
const config = fs.existsSync(configPath) ? fs.readFileSync(configPath, "utf8") : "{}";
|
|
14
34
|
const match = findByName(existing, s.name);
|
|
35
|
+
// Fall back to the SKILL.md frontmatter description when the manifest carries none.
|
|
36
|
+
const fmDesc = frontmatterDescription(fs.readFileSync(contentPath, "utf8"));
|
|
15
37
|
let id;
|
|
16
38
|
if (match) {
|
|
17
|
-
|
|
39
|
+
// Only fill description when the existing skill has none — don't clobber a set one.
|
|
40
|
+
const desc = !match.description && fmDesc ? ["--description", fmDesc] : [];
|
|
41
|
+
cli.run(["skill", "update", match.id, "--content-file", contentPath, "--config", config, ...desc]);
|
|
18
42
|
id = match.id; updated++;
|
|
19
43
|
} else {
|
|
20
|
-
const
|
|
44
|
+
const desc = fmDesc ? ["--description", fmDesc] : [];
|
|
45
|
+
const out = cli.run(["skill", "create", "--name", s.name, "--content-file", contentPath, "--config", config, ...desc]);
|
|
21
46
|
id = JSON.parse(out).id; created++;
|
|
22
47
|
}
|
|
23
48
|
idMap.set(s.name, id);
|
|
24
|
-
// upsert extra files (everything except SKILL.md and config.json)
|
|
25
|
-
for (const
|
|
26
|
-
if (
|
|
27
|
-
cli.run(["skill", "files", "upsert", id, "--path",
|
|
49
|
+
// upsert extra files (everything except SKILL.md and config.json), by relative path
|
|
50
|
+
for (const rel of walkSkillFiles(fs, sdir)) {
|
|
51
|
+
if (rel === "SKILL.md" || rel === "config.json") continue;
|
|
52
|
+
cli.run(["skill", "files", "upsert", id, "--path", rel, "--content-file", `${sdir}/${rel}`]);
|
|
28
53
|
}
|
|
29
54
|
}
|
|
30
55
|
return { idMap, created, updated };
|
|
@@ -70,16 +95,21 @@ export function importSquad({ cli, squad, agentIdMap }) {
|
|
|
70
95
|
const leaderId = agentIdMap.get(squad.leaderName);
|
|
71
96
|
const match = findByName(existing, squad.name);
|
|
72
97
|
let id, created = 0, updated = 0;
|
|
98
|
+
const instr = squad.instructions ? ["--instructions", squad.instructions] : [];
|
|
73
99
|
if (match) {
|
|
74
|
-
cli.run(["squad", "update", match.id, "--leader", leaderId, "--description", squad.description ?? ""]);
|
|
100
|
+
cli.run(["squad", "update", match.id, "--leader", leaderId, "--description", squad.description ?? "", ...instr]);
|
|
75
101
|
id = match.id; updated++;
|
|
76
102
|
} else {
|
|
77
|
-
const out = cli.run(["squad", "create", "--name", squad.name, "--leader", leaderId, "--description", squad.description ?? ""]);
|
|
103
|
+
const out = cli.run(["squad", "create", "--name", squad.name, "--leader", leaderId, "--description", squad.description ?? "", ...instr]);
|
|
78
104
|
id = JSON.parse(out).id; created++;
|
|
79
105
|
}
|
|
106
|
+
// Add non-leader members, skipping any already present so re-runs are idempotent.
|
|
107
|
+
const present = new Set(getSquadMembers(cli, id).map((m) => m.memberId));
|
|
80
108
|
for (const m of squad.members) {
|
|
81
109
|
if (m.agentName === squad.leaderName) continue;
|
|
82
|
-
|
|
110
|
+
const memberId = agentIdMap.get(m.agentName);
|
|
111
|
+
if (present.has(memberId)) continue;
|
|
112
|
+
cli.run(["squad", "member", "add", id, "--member-id", memberId, "--role", m.role, "--type", "agent"]);
|
|
83
113
|
}
|
|
84
114
|
return { newId: id, created, updated };
|
|
85
115
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plugin-validator",
|
|
3
3
|
"displayName": "Plugin Validator",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.34",
|
|
5
5
|
"description": "Orchestrated validator for Claude Code plugins — validates skills, agents, commands, and hooks across every plugin under plugins/**.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Steven Hoang"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "team-share",
|
|
3
3
|
"displayName": "Team Share",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.34",
|
|
5
5
|
"description": "Onboard your team with an interactive setup menu: install CodeGraph, build the Understand-Anything knowledge graph, and share Claude Code settings — run any combination, all idempotent.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Steven Hoang"
|