@rubytech/create-maxy-code 0.1.279 → 0.1.280
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/payload/platform/plugins/admin/PLUGIN.md +1 -0
- package/payload/platform/plugins/admin/hooks/__tests__/prompt-optimiser-directive.test.sh +42 -0
- package/payload/platform/plugins/admin/hooks/prompt-optimiser-directive.sh +60 -15
- package/payload/platform/plugins/admin/mcp/dist/__tests__/e-sign-discoverable.test.d.ts +2 -0
- package/payload/platform/plugins/admin/mcp/dist/__tests__/e-sign-discoverable.test.d.ts.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/__tests__/e-sign-discoverable.test.js +54 -0
- package/payload/platform/plugins/admin/mcp/dist/__tests__/e-sign-discoverable.test.js.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/content-producer-authoring-skills.d.ts +2 -0
- package/payload/platform/plugins/admin/mcp/dist/content-producer-authoring-skills.d.ts.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/content-producer-authoring-skills.js +19 -0
- package/payload/platform/plugins/admin/mcp/dist/content-producer-authoring-skills.js.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/skill-resolution.d.ts.map +1 -1
- package/payload/platform/plugins/admin/mcp/dist/skill-resolution.js +2 -5
- package/payload/platform/plugins/admin/mcp/dist/skill-resolution.js.map +1 -1
- package/payload/platform/plugins/admin/skills/a4-print-documents/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/access-manager/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/admin-user-management/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/business-profile/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/capabilities-here/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/datetime/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/deck-pages/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/file-presentation/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/investigate/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/plainly/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/plugin-management/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/professional-document/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/public-agent-manager/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/qr-code/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/session-management/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/skill-builder/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/specialist-management/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/stream-log-review/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/superpowers-sprint/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/task/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/update-knowledge/SKILL.md +2 -0
- package/payload/platform/plugins/admin/skills/upgrade/SKILL.md +2 -0
- package/payload/platform/plugins/aeo/skills/structured-answer/SKILL.md +2 -0
- package/payload/platform/plugins/business-assistant/PLUGIN.md +2 -1
- package/payload/platform/plugins/business-assistant/{references/e-sign.md → skills/e-sign/SKILL.md} +9 -2
- package/payload/platform/plugins/cloudflare/skills/cloudflare/SKILL.md +2 -0
- package/payload/platform/plugins/deep-research/skills/academic-verify/SKILL.md +2 -0
- package/payload/platform/plugins/deep-research/skills/book-mirror/SKILL.md +2 -0
- package/payload/platform/plugins/deep-research/skills/data-research/SKILL.md +2 -0
- package/payload/platform/plugins/deep-research/skills/deep-research/SKILL.md +2 -0
- package/payload/platform/plugins/deep-research/skills/strategic-reading/SKILL.md +2 -0
- package/payload/platform/plugins/email/PLUGIN.md +2 -0
- package/payload/platform/plugins/email/mcp/dist/lib/imap.d.ts +42 -11
- package/payload/platform/plugins/email/mcp/dist/lib/imap.d.ts.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/lib/imap.js +123 -57
- package/payload/platform/plugins/email/mcp/dist/lib/imap.js.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/tools/email-otp-extract.d.ts.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/tools/email-otp-extract.js +4 -2
- package/payload/platform/plugins/email/mcp/dist/tools/email-otp-extract.js.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/tools/email-read.d.ts.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/tools/email-read.js +18 -8
- package/payload/platform/plugins/email/mcp/dist/tools/email-read.js.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/tools/email-search.d.ts.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/tools/email-search.js +18 -8
- package/payload/platform/plugins/email/mcp/dist/tools/email-search.js.map +1 -1
- package/payload/platform/plugins/email/skills/email-composition/SKILL.md +2 -0
- package/payload/platform/plugins/email/skills/email-ingest/SKILL.md +2 -0
- package/payload/platform/plugins/graph-viewer/skills/render-graph/SKILL.md +2 -0
- package/payload/platform/plugins/linkedin-extension/skills/linkedin-extension/SKILL.md +2 -0
- package/payload/platform/plugins/memory/skills/archive-crawler/SKILL.md +2 -0
- package/payload/platform/plugins/memory/skills/challenge/SKILL.md +2 -0
- package/payload/platform/plugins/memory/skills/concept-synthesis/SKILL.md +2 -0
- package/payload/platform/plugins/memory/skills/connect/SKILL.md +2 -0
- package/payload/platform/plugins/memory/skills/conversational-memory/SKILL.md +2 -0
- package/payload/platform/plugins/memory/skills/emerge/SKILL.md +2 -0
- package/payload/platform/plugins/outlook/skills/outlook/SKILL.md +2 -0
- package/payload/platform/plugins/prompt-optimiser/skills/prompt-optimiser/SKILL.md +3 -1
- package/payload/platform/plugins/prompt-optimiser/skills/prompt-optimiser/__tests__/restatement-ladder.test.sh +21 -0
- package/payload/platform/plugins/scheduling/skills/briefing/SKILL.md +2 -0
- package/payload/platform/plugins/scheduling/skills/daily-prep/SKILL.md +2 -0
- package/payload/platform/plugins/slides/skills/deck-system/SKILL.md +2 -0
- package/payload/platform/plugins/whatsapp/skills/connect-whatsapp/SKILL.md +2 -0
- package/payload/platform/plugins/whatsapp/skills/manage-whatsapp-config/SKILL.md +2 -0
- package/payload/platform/plugins/work/skills/execute-task/SKILL.md +2 -0
- package/payload/platform/plugins/workflows/skills/workflow-manager/SKILL.md +2 -0
- package/payload/platform/scripts/lib/__tests__/admin-skills-bootstrap.test.sh +64 -0
- package/payload/platform/scripts/lib/admin-skills-bootstrap.sh +109 -0
- package/payload/platform/scripts/setup-account.sh +8 -0
- package/payload/platform/services/claude-session-manager/dist/fs-watcher.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/fs-watcher.js +43 -11
- package/payload/platform/services/claude-session-manager/dist/fs-watcher.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.js +74 -1
- package/payload/platform/services/claude-session-manager/dist/http-server.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/index.js +48 -2
- package/payload/platform/services/claude-session-manager/dist/index.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/liveness-divergence.d.ts +19 -0
- package/payload/platform/services/claude-session-manager/dist/liveness-divergence.d.ts.map +1 -0
- package/payload/platform/services/claude-session-manager/dist/liveness-divergence.js +38 -0
- package/payload/platform/services/claude-session-manager/dist/liveness-divergence.js.map +1 -0
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts +8 -0
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js +12 -0
- package/payload/platform/services/claude-session-manager/dist/pty-spawner.js.map +1 -1
- package/payload/platform/services/claude-session-manager/dist/scope-record.d.ts +11 -0
- package/payload/platform/services/claude-session-manager/dist/scope-record.d.ts.map +1 -0
- package/payload/platform/services/claude-session-manager/dist/scope-record.js +81 -0
- package/payload/platform/services/claude-session-manager/dist/scope-record.js.map +1 -0
- package/payload/platform/services/whatsapp-channel/dist/notification.d.ts +10 -7
- package/payload/platform/services/whatsapp-channel/dist/notification.d.ts.map +1 -1
- package/payload/platform/services/whatsapp-channel/dist/notification.js +14 -14
- package/payload/platform/services/whatsapp-channel/dist/notification.js.map +1 -1
- package/payload/platform/templates/agents/admin/IDENTITY.md +2 -6
- package/payload/server/public/assets/AdminShell-C6_5h1cC.js +1 -0
- package/payload/server/public/assets/{admin-xRCXEFNW.js → admin-BpnsTEa3.js} +1 -1
- package/payload/server/public/assets/{browser-DT2XfRpL.js → browser-fgBRZ5gK.js} +1 -1
- package/payload/server/public/assets/{data-Dr7XUvAx.js → data-Cuynp6Y6.js} +1 -1
- package/payload/server/public/assets/{graph-DOEjjQHD.js → graph-Ddg24bjy.js} +1 -1
- package/payload/server/public/assets/{whatsapp-cDxgZkbM.js → whatsapp-BE79pNh8.js} +1 -1
- package/payload/server/public/browser.html +2 -2
- package/payload/server/public/data.html +2 -2
- package/payload/server/public/graph.html +2 -2
- package/payload/server/public/index.html +2 -2
- package/payload/server/public/whatsapp.html +2 -2
- package/payload/server/server.js +338 -461
- package/payload/server/public/assets/AdminShell-DnH3kou-.js +0 -1
package/package.json
CHANGED
|
@@ -147,6 +147,7 @@ Tools are available via the `admin` MCP server.
|
|
|
147
147
|
- `hooks/mcp-tool-missing.sh` — **PostToolUse hook on `mcp__.*` (Task 502, directive 3).** Defence-in-depth for the `No such tool available: mcp__…` failure class that the Task 502 name-binding is built to eliminate. Fires on any MCP tool call; no-op unless the `tool_response` carries `No such tool available` AND the qualified name resolves to a maxy plugin (read from the generated `hooks/lib/maxy-mcp-plugins.txt`). On a maxy match it logs one deterministic `[mcp-tool-missing] server=<server> tool=<tool>` line and exits 2 with a fixed envelope on stderr, so the agent relays a named server-unavailable failure instead of narrating "warming up" or blind-retrying. A missing non-maxy bridge tool (Playwright etc., upstream-owned) passes through (exit 0). The maxy-plugin list is regenerated and gate-diffed by `platform/scripts/check-canonical-tool-names.mjs`.
|
|
148
148
|
- `hooks/post-tool-use-agent.sh` — **PostToolUse hook on `Agent` (Task 560).** Drains any subagent hook-decision buffers under `~/.maxy-code/logs/hook-decisions/` modified since this parent's previous PostToolUse-Agent fire (cursor file keyed by parent session id), prints one `[hook-propagate]` line per record to stdout — Claude Code attaches the stdout as a `hook_success` attachment on the parent JSONL, making the records grep-queryable from the parent session alone (Task 559 motivating case). Rotates consumed buffers to `consumed/`. Emits one `[hook-propagate-census] parentSession=<…> subagentHooksObserved=<N> attachmentsEmitted=<M>` line per fire to stdout and server.log; `N != M` is the propagation regression signal. The companion emitter library `hooks/lib/hook-emit.sh` is sourced by `post-tool-use-agent.sh` and any other hook that records a block decision (4 KB stderr truncation, `truncated=true` set on the record).
|
|
149
149
|
- `hooks/admin-authoring-observer.sh` — **PostToolUse hook on Write and Edit (Task 486).** Observation only — never blocks; exits 0 on every path. Fires when the admin agent (not a specialist subagent — gated by `MAXY_SPECIALIST` env) writes or edits a file under `<accountDir>/output/`. Walks the session transcript from the latest real-user turn forward to detect any prior `Task` `tool_use` whose `subagent_type` starts with `specialists:`. Emits one stderr line `[admin-authoring] inline-write path=<rel> priorSpecialistSpawnInTurn=<true|false|unknown>`. A `false` value on a long-form prose file is the regression signal Task 486 was designed to make visible — the BioSymm proposal session (admin authored a customer-facing proposal inline despite content-producer being installed) is the failure mode this surfaces mechanically. Mechanical enforcement (refuse the write, force a re-spawn) is deferred per the task spec.
|
|
150
|
+
- `hooks/prompt-optimiser-directive.sh` — **UserPromptSubmit hook (Task 698).** Injects the standing prompt-optimiser restatement directive plus the per-turn three-tier routing ladder as `additionalContext`: **(1)** delegate to the specialist that owns the deliverable via the Agent tool — the brief states the outcome plus binding constraints, never lines/anchors/literal text; **(2)** only if none fits, load an admin-usable skill with `skill-load`; **(3)** only if neither fits, author inline — freestyle is the named last resort. Re-emits the full agent roster (`agents/admin/AGENTS.md`) and the full admin-usable skills list (`agents/admin/ADMIN-SKILLS.md`) every turn by reading the two generated files from the account dir (the hook fires with the account dir as cwd); it never walks the plugins tree per turn. Fail-open is **visible**: a missing list logs `[prompt-optimiser] missing=<AGENTS.md\|ADMIN-SKILLS.md> emitting-partial` to stderr and the ladder still injects. The trivial-turn skip (one-word confirmation, slash-command, direct continuation) is unchanged. **Staleness:** `ADMIN-SKILLS.md` is regenerated only by `setup-account.sh`; a plugin add/remove since the last setup leaves the list stale — compare `ADMIN-SKILLS.md` mtime against the newest `SKILL.md` mtime and re-run setup to refresh. The list generator is `platform/scripts/lib/admin-skills-bootstrap.sh`; it logs `[admin-skills] scanned=<N> admin-usable=<M> no-declaration=<K>` (failure signature: `admin-usable=0` while `scanned>0`, or any `missing-declaration` line).
|
|
150
151
|
- **Turn recorder — removed entirely (Task 626).** The `turn-completed-graph-write.sh` Stop hook, the `/api/admin/claude-sessions` loopback bypass it relied on, the `[turn-recorder]` emitters, the envelope walker, and the recorder-auto-archive subscriber are deleted. It had been dormant since Task 214 (never re-registered in settings.json); the admin now writes to the graph by delegating to `database-operator` via the Task tool inside the live session, and the on-demand `/insight` pass (`skills/insight/SKILL.md`, a registered admin skill — Task 641) is the per-session review. There is no per-turn spawn.
|
|
151
152
|
|
|
152
153
|
## Session identifiers (Task 135)
|
|
@@ -65,6 +65,48 @@ else
|
|
|
65
65
|
fi
|
|
66
66
|
rm -rf "$FAKEBIN"
|
|
67
67
|
|
|
68
|
+
# Case 4 — both generated lists present: the ladder carries all three tiers, both
|
|
69
|
+
# full lists, and the relocated outcome-only-brief contract. The hook reads the
|
|
70
|
+
# lists from $PWD/agents/admin, so run it from a temp account dir.
|
|
71
|
+
WD=$(mktemp -d); mkdir -p "$WD/agents/admin"
|
|
72
|
+
printf -- '- **specialists:content-producer**: makes documents and published pages\n' > "$WD/agents/admin/AGENTS.md"
|
|
73
|
+
printf -- '- session-management: reset and list past sessions\n' > "$WD/agents/admin/ADMIN-SKILLS.md"
|
|
74
|
+
both=$(cd "$WD" && printf '%s' '{"prompt":"x"}' | bash "$HOOK" 2>/dev/null)
|
|
75
|
+
ctx=$(printf '%s' "$both" | python3 -c 'import json,sys; print(json.load(sys.stdin)["hookSpecificOutput"]["additionalContext"])' 2>/dev/null)
|
|
76
|
+
if printf '%s' "$ctx" | grep -q "specialists:content-producer" \
|
|
77
|
+
&& printf '%s' "$ctx" | grep -q "session-management: reset and list past sessions" \
|
|
78
|
+
&& printf '%s' "$ctx" | grep -qE '(^|[^0-9])1\)' \
|
|
79
|
+
&& printf '%s' "$ctx" | grep -qE '(^|[^0-9])2\)' \
|
|
80
|
+
&& printf '%s' "$ctx" | grep -qE '(^|[^0-9])3\)' \
|
|
81
|
+
&& printf '%s' "$ctx" | grep -qiE "freestyle|last resort"; then
|
|
82
|
+
echo "PASS: both lists injected in three-tier ladder"; PASS=$((PASS+1))
|
|
83
|
+
else
|
|
84
|
+
echo "FAIL: ladder/lists missing from additionalContext: $ctx" >&2; FAIL=$((FAIL+1))
|
|
85
|
+
fi
|
|
86
|
+
# Relocated outcome-only-brief contract.
|
|
87
|
+
if printf '%s' "$ctx" | grep -qi "outcome" \
|
|
88
|
+
&& printf '%s' "$ctx" | grep -qi "binding constraints" \
|
|
89
|
+
&& printf '%s' "$ctx" | grep -qi "Wrong shape" \
|
|
90
|
+
&& printf '%s' "$ctx" | grep -qi "Right shape"; then
|
|
91
|
+
echo "PASS: outcome-only-brief contract present in ladder"; PASS=$((PASS+1))
|
|
92
|
+
else
|
|
93
|
+
echo "FAIL: outcome-only-brief contract missing from ladder" >&2; FAIL=$((FAIL+1))
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
# Case 5 — ADMIN-SKILLS.md absent: fail-open. exit 0, ladder still injected,
|
|
97
|
+
# and the missing= breadcrumb on stderr (fail-open must be visible).
|
|
98
|
+
rm -f "$WD/agents/admin/ADMIN-SKILLS.md"
|
|
99
|
+
miss_err=$(cd "$WD" && printf '%s' '{"prompt":"x"}' | bash "$HOOK" 2>&1 >/dev/null)
|
|
100
|
+
miss_out=$(cd "$WD" && printf '%s' '{"prompt":"x"}' | bash "$HOOK" 2>/dev/null); miss_exit=$?
|
|
101
|
+
if [[ "$miss_exit" -eq 0 ]] \
|
|
102
|
+
&& printf '%s' "$miss_err" | grep -q "missing=ADMIN-SKILLS.md" \
|
|
103
|
+
&& printf '%s' "$miss_out" | grep -q "hookSpecificOutput"; then
|
|
104
|
+
echo "PASS: missing list -> exit 0 + ladder + visible missing= breadcrumb"; PASS=$((PASS+1))
|
|
105
|
+
else
|
|
106
|
+
echo "FAIL: fail-open visibility wrong (exit=$miss_exit err=$miss_err)" >&2; FAIL=$((FAIL+1))
|
|
107
|
+
fi
|
|
108
|
+
rm -rf "$WD"
|
|
109
|
+
|
|
68
110
|
echo "----"
|
|
69
111
|
echo "PASS=$PASS FAIL=$FAIL"
|
|
70
112
|
[[ "$FAIL" -eq 0 ]]
|
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# UserPromptSubmit hook: inject the standing prompt-optimiser directive
|
|
3
|
-
# additionalContext on every turn, so the
|
|
4
|
-
#
|
|
5
|
-
# doctrine.sh: emit hookSpecificOutput.additionalContext via python3,
|
|
6
|
-
#
|
|
2
|
+
# UserPromptSubmit hook: inject the standing prompt-optimiser directive plus the
|
|
3
|
+
# per-turn three-tier routing ladder as additionalContext on every turn, so the
|
|
4
|
+
# agent restates each non-trivial prompt and routes it before acting. Mirrors
|
|
5
|
+
# doctrine.sh: emit hookSpecificOutput.additionalContext via python3, fail-open
|
|
6
|
+
# with exit 0.
|
|
7
7
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
8
|
+
# The ladder ranks, in order: (1) delegate to a specialist that owns the
|
|
9
|
+
# deliverable via the Agent tool; (2) only if none fits, load an admin-usable
|
|
10
|
+
# skill; (3) only if neither fits, author inline — freestyle is the named last
|
|
11
|
+
# resort. The full agent roster and admin-usable skills list are re-emitted every
|
|
12
|
+
# turn by reading two generated files from the account dir; the hook never walks
|
|
13
|
+
# the plugins tree per turn (Task 698).
|
|
14
|
+
#
|
|
15
|
+
# Compliance is behavioural, not deterministic. A hook cannot force a skill call
|
|
16
|
+
# or a dispatch; the directive steers the agent, it does not gate the turn. The
|
|
17
|
+
# raw prompt always still reaches the model (UserPromptSubmit output is ADDED to
|
|
18
|
+
# the prompt, never substituted).
|
|
13
19
|
#
|
|
14
20
|
# Input (stdin, UserPromptSubmit contract): { "prompt": "...", ... } — drained
|
|
15
21
|
# and ignored; the directive is standing and prompt-independent.
|
|
16
22
|
# Output (stdout JSON):
|
|
17
23
|
# { "hookSpecificOutput": { "hookEventName": "UserPromptSubmit",
|
|
18
|
-
# "additionalContext": "<directive>" } }
|
|
24
|
+
# "additionalContext": "<directive+ladder>" } }
|
|
19
25
|
#
|
|
20
|
-
#
|
|
21
|
-
#
|
|
26
|
+
# The two lists are read from <cwd>/agents/admin/ — the hook fires with the
|
|
27
|
+
# account dir as cwd (the same resolution admin-authoring-observer.sh relies on).
|
|
28
|
+
# Fail-open is VISIBLE: a missing list logs `[prompt-optimiser] missing=<file>
|
|
29
|
+
# emitting-partial` to stderr and the ladder still injects with whatever resolves.
|
|
30
|
+
# If python3 is unavailable or JSON encoding fails, exit 0 with no stdout. The
|
|
31
|
+
# hook must never block or corrupt a turn.
|
|
22
32
|
|
|
23
33
|
set -uo pipefail
|
|
24
34
|
|
|
@@ -28,12 +38,47 @@ cat >/dev/null 2>&1 || true
|
|
|
28
38
|
# Fail-open if the JSON encoder is unavailable.
|
|
29
39
|
command -v python3 >/dev/null 2>&1 || exit 0
|
|
30
40
|
|
|
31
|
-
|
|
41
|
+
# Read a generated list from the account dir (cwd). On a missing file, emit a
|
|
42
|
+
# visible breadcrumb to stderr and echo a one-line placeholder so the ladder
|
|
43
|
+
# still names the tier.
|
|
44
|
+
ADMIN_DIR="$PWD/agents/admin"
|
|
45
|
+
read_list() { # $1 = filename under agents/admin/
|
|
46
|
+
if [ -f "$ADMIN_DIR/$1" ]; then
|
|
47
|
+
cat "$ADMIN_DIR/$1"
|
|
48
|
+
else
|
|
49
|
+
echo "[prompt-optimiser] missing=$1 emitting-partial" >&2
|
|
50
|
+
echo "($1 unavailable this turn)"
|
|
51
|
+
fi
|
|
52
|
+
}
|
|
53
|
+
ROSTER=$(read_list AGENTS.md)
|
|
54
|
+
ADMIN_SKILLS=$(read_list ADMIN-SKILLS.md)
|
|
55
|
+
|
|
56
|
+
# Build the directive from LITERAL (quoted-heredoc) static parts joined with the
|
|
57
|
+
# generated lists via printf. The parts are captured with `read -r -d ''` rather
|
|
58
|
+
# than `$(cat <<'EOF')` because bash 3.2's command-substitution parser miscounts
|
|
59
|
+
# the parentheses inside the ladder prose; `read` has no such limitation. The
|
|
60
|
+
# quoted delimiter keeps backticks and parens literal, and the lists are spliced
|
|
61
|
+
# in as printf data, never evaluated. `read -d ''` returns non-zero at EOF (no
|
|
62
|
+
# NUL terminator) but populates the variable; the `|| true` keeps that benign.
|
|
63
|
+
IFS= read -r -d '' DIRECTIVE_HEAD <<'DIRECTIVE_EOF' || true
|
|
32
64
|
PROMPT-OPTIMISER DIRECTIVE (standing)
|
|
33
65
|
Before acting on this turn's request, run the prompt-optimiser skill on the user's raw prompt in its in-session restatement mode, then treat the restated task as the authoritative statement of what was asked and proceed from it. Set aside your own first reading of the raw wording; the restatement governs. The raw prompt stays in context for reference only.
|
|
34
66
|
Skip the restatement when the prompt is a one-word confirmation, a slash-command invocation, or a direct continuation of the immediately preceding turn; restatement adds nothing in those cases.
|
|
67
|
+
|
|
68
|
+
ROUTING LADDER (apply to the restated task, in this order):
|
|
69
|
+
1) Delegate to a specialist. If an installed specialist owns this deliverable's type, dispatch it with the Agent tool and the matching subagent_type. Ownership covers origination, not just the final render: you may not author the substance here and hand the specialist only the formatting, the voice pass, or the PDF step. The brief states the outcome (what is true when the specialist returns) plus the binding constraints (account, file scope, deadline, acceptance check). It never names lines, anchors, or literal text to insert; deriving those is the specialist's job. Wrong shape: naming the file, the line range, and the exact text to drop in. Right shape: "on the realagent-code site, the footer respects iOS safe-area-inset-bottom on mobile; the site's CSS is the only file in scope." Installed specialists:
|
|
70
|
+
DIRECTIVE_EOF
|
|
71
|
+
|
|
72
|
+
IFS= read -r -d '' DIRECTIVE_MID <<'DIRECTIVE_EOF' || true
|
|
73
|
+
2) Only if no specialist owns it, use an admin skill. Load one from the admin-usable list with skill-load and do the work from this seat. Admin-usable skills:
|
|
74
|
+
DIRECTIVE_EOF
|
|
75
|
+
|
|
76
|
+
IFS= read -r -d '' DIRECTIVE_TAIL <<'DIRECTIVE_EOF' || true
|
|
77
|
+
3) Only if neither a specialist nor an admin skill fits, author it directly. Freestyle inline authoring is the last resort, not a peer of the two routes above.
|
|
35
78
|
DIRECTIVE_EOF
|
|
36
|
-
|
|
79
|
+
|
|
80
|
+
DIRECTIVE=$(printf '%s\n%s\n%s\n%s\n%s' \
|
|
81
|
+
"$DIRECTIVE_HEAD" "$ROSTER" "$DIRECTIVE_MID" "$ADMIN_SKILLS" "$DIRECTIVE_TAIL")
|
|
37
82
|
|
|
38
83
|
OUT=$(printf '%s' "$DIRECTIVE" | python3 -c '
|
|
39
84
|
import json, sys
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e-sign-discoverable.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/e-sign-discoverable.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Task 701 — e-sign promoted from a reference to a skill must be discoverable.
|
|
2
|
+
//
|
|
3
|
+
// Ephemeral, fixture-based: mirrors skill-search.test.ts. Seeds the exact
|
|
4
|
+
// frontmatter shipped on skills/e-sign/SKILL.md and asserts the discovery
|
|
5
|
+
// surface finds it for the queries the task's verification names. The test is
|
|
6
|
+
// GREEN by construction (it seeds its own skill); its value is locking the
|
|
7
|
+
// description contract — if a later edit strips the sign/signature tokens from
|
|
8
|
+
// the shipped description, these fail. The real-tree RED→GREEN transition is
|
|
9
|
+
// observed manually (before/after the git mv), not here.
|
|
10
|
+
import { describe, it, expect, beforeEach, afterEach } from "vitest";
|
|
11
|
+
import { mkdtempSync, mkdirSync, writeFileSync, rmSync } from "node:fs";
|
|
12
|
+
import { tmpdir } from "node:os";
|
|
13
|
+
import { join } from "node:path";
|
|
14
|
+
import { searchSkills, findSkillOwners } from "../skill-resolution.js";
|
|
15
|
+
let root;
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
root = mkdtempSync(join(tmpdir(), "e-sign-"));
|
|
18
|
+
});
|
|
19
|
+
afterEach(() => {
|
|
20
|
+
rmSync(root, { recursive: true, force: false });
|
|
21
|
+
});
|
|
22
|
+
function seedSkill(plugin, skill, body) {
|
|
23
|
+
const dir = join(root, "plugins", plugin, "skills", skill);
|
|
24
|
+
mkdirSync(dir, { recursive: true });
|
|
25
|
+
writeFileSync(join(dir, "SKILL.md"), body);
|
|
26
|
+
}
|
|
27
|
+
// The frontmatter shipped on the real skill (description kept in sync with
|
|
28
|
+
// platform/plugins/business-assistant/skills/e-sign/SKILL.md).
|
|
29
|
+
const ESIGN_FM = `---\nname: e-sign\ndescription: "Put a legally-recordable signature on any hosted document — a quote, contract, proposal, or set of terms — without DocuSign. A Cloudflare Pages signing form captures the acceptance to D1; the agent then sweeps the row, renders the signed content to PDF, and emails both parties. Triggers: 'sign this proposal', 'get this contract signed', 'put a signature on this', 'e-signature', 'send for signature', 'accept a proposal online', 'signature on a document'."\n---\n\n# E-signatures\n`;
|
|
30
|
+
describe("e-sign discoverability (Task 701)", () => {
|
|
31
|
+
beforeEach(() => {
|
|
32
|
+
seedSkill("business-assistant", "e-sign", ESIGN_FM);
|
|
33
|
+
// noise skills so IDF is exercised rather than a one-document corpus
|
|
34
|
+
seedSkill("admin", "qr-code", `---\nname: qr-code\ndescription: "Generate QR codes."\n---\n# qr\n`);
|
|
35
|
+
seedSkill("scheduling", "briefing", `---\nname: briefing\ndescription: "Compose a daily briefing of tasks and calendar."\n---\n# briefing\n`);
|
|
36
|
+
});
|
|
37
|
+
it("findSkillOwners resolves the e-sign slug to business-assistant", () => {
|
|
38
|
+
const r = findSkillOwners(root, "e-sign");
|
|
39
|
+
expect(r.status).toBe("unique");
|
|
40
|
+
if (r.status !== "unique")
|
|
41
|
+
throw new Error("expected unique");
|
|
42
|
+
expect(r.candidates[0].pluginName).toBe("business-assistant");
|
|
43
|
+
expect(r.candidates[0].file).toBe("skills/e-sign/SKILL.md");
|
|
44
|
+
});
|
|
45
|
+
it("searchSkills surfaces e-sign for 'sign a document'", () => {
|
|
46
|
+
const hits = searchSkills(root, "sign a document");
|
|
47
|
+
expect(hits.some(h => h.skillName === "e-sign")).toBe(true);
|
|
48
|
+
});
|
|
49
|
+
it("searchSkills surfaces e-sign for 'e-signature acceptance'", () => {
|
|
50
|
+
const hits = searchSkills(root, "e-signature acceptance");
|
|
51
|
+
expect(hits.some(h => h.skillName === "e-sign")).toBe(true);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=e-sign-discoverable.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e-sign-discoverable.test.js","sourceRoot":"","sources":["../../src/__tests__/e-sign-discoverable.test.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,EAAE;AACF,0EAA0E;AAC1E,0EAA0E;AAC1E,8EAA8E;AAC9E,2EAA2E;AAC3E,+EAA+E;AAC/E,6EAA6E;AAC7E,yDAAyD;AACzD,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE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KAAK,QAAQ;YAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAC9D,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAC9D,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;QAC5D,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QACnD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;QACnE,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;QAC1D,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-producer-authoring-skills.d.ts","sourceRoot":"","sources":["../src/content-producer-authoring-skills.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,sCAAsC,0EAIzC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Canonical content-producer authoring/render/publish owned-set — the single
|
|
2
|
+
// source of truth shared by the Task 516 runtime gate (skill-resolution.ts) and
|
|
3
|
+
// the setup-time ADMIN-SKILLS generator (admin-skills-bootstrap.sh). The shell
|
|
4
|
+
// generator parses the quoted slugs between the array brackets; keep one slug
|
|
5
|
+
// per line and do not reformat to multi-slug lines without updating that parser
|
|
6
|
+
// (platform/scripts/lib/admin-skills-bootstrap.sh).
|
|
7
|
+
//
|
|
8
|
+
// These three skills are content-producer-owned: the admin seat must dispatch
|
|
9
|
+
// content-producer (Agent tool, subagent_type content-producer) rather than
|
|
10
|
+
// load or author them from its own seat. Each carries the same membership in
|
|
11
|
+
// its SKILL.md "Invoked from specialists:content-producer" declaration, so the
|
|
12
|
+
// generator's declaration scan already excludes them; this list is the gate's
|
|
13
|
+
// compiled-in guard against a declaration regression.
|
|
14
|
+
export const CONTENT_PRODUCER_AUTHORING_SKILL_SLUGS = [
|
|
15
|
+
"professional-document",
|
|
16
|
+
"a4-print-documents",
|
|
17
|
+
"publish-site",
|
|
18
|
+
];
|
|
19
|
+
//# sourceMappingURL=content-producer-authoring-skills.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-producer-authoring-skills.js","sourceRoot":"","sources":["../src/content-producer-authoring-skills.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,gFAAgF;AAChF,+EAA+E;AAC/E,8EAA8E;AAC9E,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,8EAA8E;AAC9E,4EAA4E;AAC5E,6EAA6E;AAC7E,+EAA+E;AAC/E,8EAA8E;AAC9E,sDAAsD;AACtD,MAAM,CAAC,MAAM,sCAAsC,GAAG;IACpD,uBAAuB;IACvB,oBAAoB;IACpB,cAAc;CACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-resolution.d.ts","sourceRoot":"","sources":["../src/skill-resolution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skill-resolution.d.ts","sourceRoot":"","sources":["../src/skill-resolution.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;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AAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC1F;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,UAAU,EAAE,UAAU,EAAE,CAAA;CAAE,GACjD;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,CAAC;AAwB5B,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,SAAS,CAoB7E;AAWD,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AASD,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAkC9F;AA0BD,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,cAAc,EAAE,CAoH7F;AAED,wBAAsB,SAAS,CAC7B,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,gBAAgB,CAAC,CAY3B"}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
|
|
13
13
|
import { readFile } from "node:fs/promises";
|
|
14
14
|
import { resolve } from "node:path";
|
|
15
|
+
import { CONTENT_PRODUCER_AUTHORING_SKILL_SLUGS } from "./content-producer-authoring-skills.js";
|
|
15
16
|
const SKILL_FILE_PATH = /^skills\/([a-z0-9][a-z0-9-]*)\//;
|
|
16
17
|
// the symmetric misuse: skill slug buried inside `pluginName`
|
|
17
18
|
// (e.g. `admin/skills/plainly`, `contacts/skills/plainly`) rather than the
|
|
@@ -32,11 +33,7 @@ const SKILL_IN_PLUGIN_NAME = /(?:^|\/)skills\/([a-z0-9][a-z0-9-]*)(?:\/|$)/;
|
|
|
32
33
|
// - unzip-attachment — SKILL.md: "Invoked by the admin agent directly.
|
|
33
34
|
// Admin owns all unzipping" (admin extracts, then routes to a specialist).
|
|
34
35
|
// - deck-pages — admin-owned, a content-producer refusal target.
|
|
35
|
-
export const CONTENT_PRODUCER_AUTHORING_SKILLS = new Set(
|
|
36
|
-
"professional-document",
|
|
37
|
-
"a4-print-documents",
|
|
38
|
-
"publish-site",
|
|
39
|
-
]);
|
|
36
|
+
export const CONTENT_PRODUCER_AUTHORING_SKILLS = new Set(CONTENT_PRODUCER_AUTHORING_SKILL_SLUGS);
|
|
40
37
|
// The verbatim refusal text the skill-load / plugin-read handlers relay when
|
|
41
38
|
// the admin seat reaches for a content-producer-owned authoring skill. It
|
|
42
39
|
// names the route so the agent's next action is the dispatch, not a dead end.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-resolution.js","sourceRoot":"","sources":["../src/skill-resolution.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,EAAE;AACF,iFAAiF;AACjF,2EAA2E;AAC3E,oEAAoE;AACpE,sEAAsE;AACtE,oDAAoD;AACpD,EAAE;AACF,0EAA0E;AAC1E,0EAA0E;AAC1E,+CAA+C;AAC/C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,MAAM,eAAe,GAAG,iCAAiC,CAAC;AAC1D,8DAA8D;AAC9D,2EAA2E;AAC3E,6EAA6E;AAC7E,8EAA8E;AAC9E,mDAAmD;AACnD,MAAM,oBAAoB,GAAG,8CAA8C,CAAC;AAO5E,6EAA6E;AAC7E,0EAA0E;AAC1E,4EAA4E;AAC5E,4EAA4E;AAC5E,iDAAiD;AACjD,6EAA6E;AAC7E,+CA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xE,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACnD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;AACpE,CAAC"}
|
|
@@ -11,6 +11,8 @@ description: >
|
|
|
11
11
|
|
|
12
12
|
# A4 Print-Ready HTML Documents
|
|
13
13
|
|
|
14
|
+
Invoked from `specialists:content-producer`.
|
|
15
|
+
|
|
14
16
|
Constraints for producing HTML documents that render correctly when saved as PDF via the on-device `browser-pdf-save` tool. Every rule exists because violating it caused a visible problem in production documents.
|
|
15
17
|
|
|
16
18
|
## Rendering path
|
|
@@ -5,6 +5,8 @@ description: "Add, remove, list admins on this account, and update an admin PIN.
|
|
|
5
5
|
|
|
6
6
|
# Admin user management
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
This skill manages who has admin access to this account. It wraps four MCP tools and carries the discipline that keeps the three identity stores in lockstep. The owner (or any current admin) can manage admins; roles are labels only, with no capability differences enforced.
|
|
9
11
|
|
|
10
12
|
## The four tools
|
|
@@ -5,6 +5,8 @@ description: "Populate the business's operational data in the graph — identity
|
|
|
5
5
|
|
|
6
6
|
# Business Profile Setup
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
Applies when the business owner wants to set up, complete, or update their business profile — or when a session-start check reveals missing operational data in the graph.
|
|
9
11
|
|
|
10
12
|
## When to Activate
|
|
@@ -5,6 +5,8 @@ description: Use when grounding any claim about what is installed on the current
|
|
|
5
5
|
|
|
6
6
|
# capabilities-here
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
The `capabilities-here` admin MCP tool returns a single JSON object describing the live install state on the current account. Call it whenever you are about to:
|
|
9
11
|
|
|
10
12
|
- Tell the operator what you can or cannot do here.
|
|
@@ -10,6 +10,8 @@ description: >
|
|
|
10
10
|
|
|
11
11
|
# Datetime & Timezone Queries
|
|
12
12
|
|
|
13
|
+
Invoked by the admin agent directly.
|
|
14
|
+
|
|
13
15
|
Answer timezone-related questions and relative-date arithmetic using Node.js — never freelance the math. Relative dates and quarter forms must go through the deterministic one-liner in this skill; the same algorithm runs server-side in the memory plugin's `relative-date.ts`, so chat answers stay consistent with timeline rows the operator sees in the graph.
|
|
14
16
|
|
|
15
17
|
## When to Activate
|
|
@@ -13,6 +13,8 @@ description: >
|
|
|
13
13
|
|
|
14
14
|
# Deck Pages — Slide-Based PDF Documents
|
|
15
15
|
|
|
16
|
+
Invoked by the admin agent directly.
|
|
17
|
+
|
|
16
18
|
Constraints for producing HTML slide decks that render correctly on screen and export as pixel-perfect PDFs via client-side `html2canvas-pro` + `jsPDF`. Every rule exists because violating it caused a visible rendering problem in exported decks.
|
|
17
19
|
|
|
18
20
|
## How this differs from A4 print documents
|
|
@@ -5,6 +5,8 @@ description: "Deliver a file or document to the owner inside chat for review and
|
|
|
5
5
|
|
|
6
6
|
# File presentation
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
This skill covers presenting editable content for inline review before it is persisted, and delivering a finished file to the owner. Deliver by inventory, not by recipe: if you have a file-sending tool, use it — on a turn that arrived over a channel such as WhatsApp the platform relays that delivery to the channel for you. If you do not (for example you are a specialist running as a subagent), write the file under `output/` and state its full path in your result; the main session relays it to the owner.
|
|
9
11
|
|
|
10
12
|
## The trigger
|
|
@@ -5,6 +5,8 @@ description: Use when the user asks for a "plain English" explanation, definitio
|
|
|
5
5
|
|
|
6
6
|
# plainly
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
**Scope — agent-to-human only.** Plainly applies to prose returned to a human reader (the operator, a customer, the admin agent when admin renders prose to the operator). It does NOT apply to arguments passed to `image-generate`, `memory-write`, `memory-classify`, `memory-ingest`, `cypher-shell`, or any other MCP tool — those are agent-to-machine payloads where technical descriptors and structured tokens are required, not jargon to strip.
|
|
9
11
|
|
|
10
12
|
Produce an explanation that *teaches* the concept to a reader who is bright and motivated but **new to the topic**. They hold general vocabulary (integrals, polynomials, bell curves, logarithms) but do not own the specialist machinery (quadrature rules, weight functions, exactness orders, regime generators). Every phrase in the explanation must be one such a reader can either already understand or be brought up to speed on within the explanation itself. Plain English is the **spoken register**: a sentence has to parse if you read it aloud, in conversation, without a whiteboard. The goal is working understanding the reader can apply and pass on, not a textbook entry they could find in a glossary. Hit the bar on the first attempt; iteration is a leak.
|
|
@@ -8,6 +8,8 @@ product-name: Maxy
|
|
|
8
8
|
|
|
9
9
|
# Maxy platform architecture (catalogue)
|
|
10
10
|
|
|
11
|
+
Invoked by the admin agent directly.
|
|
12
|
+
|
|
11
13
|
This skill is the install catalogue — every surface the platform can ship. It is not evidence of what is installed on the current account. Cite for documented surface. For 'what is installed here' / 'what can you do', call `capabilities-here` and read `account-manage`; do not infer install state from this body.
|
|
12
14
|
|
|
13
15
|
This skill is generated. Its body is the concatenated source markdown for every public Maxy docs page, emitted by `docs/scripts/copy-docs.mjs` as `docs/public/llms-full.maxy-code.txt` and assembled here by `maxy-code/scripts/assemble-architecture-skill.mjs`. Do not hand-edit — the drift gate in `platform/scripts/check-architecture-skill-no-drift.mjs` will fail CI.
|
|
@@ -22,6 +22,8 @@ description: >
|
|
|
22
22
|
|
|
23
23
|
# Professional document
|
|
24
24
|
|
|
25
|
+
Invoked from `specialists:content-producer`.
|
|
26
|
+
|
|
25
27
|
Compose a single A4 PDF of a generic business document from an operator brief, brand tokens, and the graph. The skill body is the workflow contract; load it once via `Skill professional-document` at the start of the turn and follow it through to delivery.
|
|
26
28
|
|
|
27
29
|
## Refusal taxonomy (run first, before any composition)
|
|
@@ -5,6 +5,8 @@ description: "Create, edit, clone, list, preview, and delete public agents, each
|
|
|
5
5
|
|
|
6
6
|
# Public Agent Manager
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
Create, edit, clone, list, preview, and delete public agents. Each public agent is a self-contained directory under `agents/` with its own identity, personality, knowledge, and model.
|
|
9
11
|
|
|
10
12
|
## Agent Directory Structure
|
|
@@ -5,6 +5,8 @@ description: "Reset the current session, list past sessions, continue a previous
|
|
|
5
5
|
|
|
6
6
|
# Session management
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
This skill wraps the session tools and carries the discipline that keeps long-running work coherent across sessions. The platform handles a lot of session machinery automatically: this skill is for the moments where the owner names a session intent directly.
|
|
9
11
|
|
|
10
12
|
## The tools
|
|
@@ -5,6 +5,8 @@ description: "Guide the user through creating a new lean skill — collect name,
|
|
|
5
5
|
|
|
6
6
|
# Skill Builder
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
A deterministic walkthrough for creating new lean skills. Follow each step in order. Be conversational — one question at a time.
|
|
9
11
|
|
|
10
12
|
## When to Activate
|
|
@@ -10,6 +10,8 @@ description: >
|
|
|
10
10
|
|
|
11
11
|
# Stream Log Review
|
|
12
12
|
|
|
13
|
+
Invoked by the admin agent directly.
|
|
14
|
+
|
|
13
15
|
Analyse Claude agent stream logs — the `claude-agent-stream-{sessionId}.log` files generated by the platform. Each file is scoped to exactly one conversation; a resumed conversation accumulates in one file across multiple process lifetimes, delimited by `[spawn]` / `[process-exit]`. Pre-conversation events (CDP auth-poll, module-init warnings) live in `preconversation-claude-agent-stream-{YYYY-MM-DD}.log` — a separate file per UTC day, read only when investigating boot-time failures.
|
|
14
16
|
|
|
15
17
|
Parse the log, identify problems, attempt diagnosis, and produce a structured report.
|
|
@@ -5,6 +5,8 @@ description: Structured sprint workflow built only on officially-distributed Cla
|
|
|
5
5
|
|
|
6
6
|
# Superpowers Sprint
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
A structured workflow for executing development work — features, bug fixes, refactors, any scoped unit of work — using only skills that ship with the official Claude Code distribution. No `gstack`, no custom plugin required.
|
|
9
11
|
|
|
10
12
|
This skill is the maxy-code counterpart to `sprint`. The phase chain is identical in spirit; the difference is the skill at each phase. If both `gstack` and superpowers are installed and the project is set up for it, prefer `sprint` — its plan reviews are richer. Use this skill when `gstack` is not available.
|
|
@@ -5,6 +5,8 @@ description: "Refresh a public agent's KNOWLEDGE.md from the current graph, scop
|
|
|
5
5
|
|
|
6
6
|
# Update Knowledge
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
Refresh a public agent's KNOWLEDGE.md from the current graph, scoped to that agent's knowledge configuration.
|
|
9
11
|
|
|
10
12
|
## When to Use
|
|
@@ -5,6 +5,8 @@ description: "Upgrade Maxy to the latest published version by re-running the bra
|
|
|
5
5
|
|
|
6
6
|
# Upgrade
|
|
7
7
|
|
|
8
|
+
Invoked by the admin agent directly.
|
|
9
|
+
|
|
8
10
|
The operator wants to upgrade Maxy. Re-run the installer for the active brand; it is idempotent, brings the install to the latest published version, and restarts the brand service when it finishes.
|
|
9
11
|
|
|
10
12
|
## Resolve the brand package
|