@super-hands/connect 0.1.14 → 0.1.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.
Files changed (2) hide show
  1. package/client.mjs +31 -26
  2. package/package.json +1 -1
package/client.mjs CHANGED
@@ -41,11 +41,11 @@ function codexConfigBlock(args) {
41
41
  }
42
42
 
43
43
  // lib/connect-skill.ts
44
- var CONNECT_SKILL_VERSION = 9;
44
+ var CONNECT_SKILL_VERSION = 11;
45
45
  var CONNECT_SKILL_DIR = MCP_SERVER_KEY;
46
46
  var CONNECT_SKILL_FILENAME = "SKILL.md";
47
47
  var VERSION_MARKER = `[//]: # (superhands-skill-version: ${CONNECT_SKILL_VERSION})`;
48
- var CONNECT_SKILL_DESCRIPTION = `Build UI the way this team has decided it should be built. Use BEFORE building, changing, or restyling any page, screen, view, form, or component \u2014 "build a page", "add a screen", "create a form", "make a dashboard", "redesign this", "new landing page" \u2014 and when asked how this product should look or behave. Reads the team's Standards and Playbooks from their Superhands MCP server.`;
48
+ var CONNECT_SKILL_DESCRIPTION = `Build UI the way this team has decided it should be built. Use BEFORE building, changing, or restyling any page, screen, view, form, or component \u2014 "build a page", "add a screen", "create a form", "make a dashboard", "redesign this", "new landing page" \u2014 and when asked how this product should look or behave. Reads the team's build-time Instructions from their Superhands MCP server.`;
49
49
  var CONNECT_SKILL_CONTENT = `---
50
50
  name: ${CONNECT_SKILL_DIR}
51
51
  description: ${CONNECT_SKILL_DESCRIPTION}
@@ -56,11 +56,11 @@ ${VERSION_MARKER}
56
56
  # Superhands
57
57
 
58
58
  This machine is connected to the team's Superhands server over MCP (server
59
- key \`${MCP_SERVER_KEY}\`). It holds the team's **Instructions** in two kinds:
60
- their **Standards**, the decisions they have written about how their product
61
- should look and behave \u2014 the same decisions their engineers' pull requests are
62
- reviewed against \u2014 and their **Playbooks**, procedures they imported for their
63
- agents to follow.
59
+ key \`${MCP_SERVER_KEY}\`). It holds the team's build-time **Instructions**:
60
+ team-authored decisions, imported procedures, examples and conventions that all
61
+ describe how agents should build in this product. Source labels tell you where
62
+ an instruction came from and how to read it; they are not a choice about which
63
+ half to follow.
64
64
 
65
65
  Before you build, change, or restyle any UI:
66
66
 
@@ -68,18 +68,18 @@ Before you build, change, or restyle any UI:
68
68
  you have been asked to build, in plain language \u2014 for example "a sign-in
69
69
  page with email and password and an error state", and
70
70
  \`skill_version: ${CONNECT_SKILL_VERSION}\` \u2014 the version of this file, so
71
- the server can tell you when this file is out of date. Both sections come
71
+ the server can tell you when this file is out of date. The corpus comes
72
72
  back narrowed to that work, with everything not chosen still named.
73
73
  - Pass \`paths\` too, when you already know which files this work touches \u2014
74
74
  the handful you have open or are about to edit, repository-relative, for
75
- example \`["app/marketing/pricing.tsx"]\`. The team writes down where each
76
- Standard applies, and a path answers that far better than a description
75
+ example \`["app/marketing/pricing.tsx"]\`. The team writes down where
76
+ Instructions apply, and a path answers that far better than a description
77
77
  does. Leave it out if you do not know yet; it narrows nothing away.
78
78
  - If that tool is not available on this server, it is an older deployment:
79
79
  call \`superhands_get_guidance\` and \`superhands_get_skill\` instead,
80
80
  with the same \`intent\` \u2014 those two are older and take no \`paths\`.
81
81
  2. Plan against what comes back, and note which parts of your plan each set of
82
- keys covers. The Playbooks section renders what to read first, then names
82
+ keys covers. The first answer renders what to read first, then names
83
83
  under **Reachable** the modules judged to matter to parts you have not
84
84
  started \u2014 those keys are what the next step asks with \u2014 and ends with an
85
85
  index of the modules it did **not** choose, for anything the selection
@@ -88,35 +88,40 @@ Before you build, change, or restyle any UI:
88
88
  defaults.
89
89
  3. As you start each part \u2014 the sidebar, then the table, then the form \u2014 call
90
90
  \`superhands_get_playbook_modules\` with the reachable keys covering the
91
- part you are starting now. A key ending in \`*\` takes everything under
92
- it, so \`better-ui/*\` is a whole skill and \`better-ui/SKILL#*\` is one
93
- file. It runs no selection and makes no model call, so it is a plain, fast
94
- lookup and it returns exactly what you named.
91
+ part you are starting now and \`part\` set to that part in a few words,
92
+ for example \`"the form's validation errors"\`. A key ending in \`*\` takes
93
+ everything under it, so \`better-ui/*\` is a whole skill and
94
+ \`better-ui/SKILL#*\` is one file. It runs no selection and makes no model
95
+ call, so it is a plain, fast lookup and it returns exactly what you named.
96
+ - **Expect to make this call several times in one task.** A contact form is
97
+ not one part: it is the form, then its inputs, then its buttons, then its
98
+ validation errors, then its loading and empty states. One read at the
99
+ start and nothing after it is the mistake this step exists to prevent.
95
100
  - Fetch each part's modules **when you reach that part**, not all of them at
96
101
  the start. These are instructions to follow, not facts to know, so modules
97
102
  for a part you are not building are a page of directions about the wrong
98
103
  thing sitting in your context while you work.
99
- - The Standards from step 1 need no such loop. They are a short list of
100
- constraints on the whole task, so one read at the start is the right read.
104
+ - Team-authored decision entries from step 1 need no such loop. They are
105
+ concise enough to stay in the opening brief, so one read at the start is
106
+ the right read.
101
107
  - If that tool is not available on this server, it is an older deployment:
102
108
  build from what step 1 already returned and skip this step. Do not ask
103
109
  for the whole library instead \u2014 that is the wall of text step 1 avoided.
104
- 4. Build to what comes back. Apply both sections. Where imported Playbook text
105
- directly contradicts a Standard, the Standard governs. Where a Standard
106
- names a case it deliberately does not govern, your own judgment resumes
107
- there.
110
+ 4. Build to what comes back. Use the selected Instructions together. When two
111
+ entries pull in different directions, prefer the more specific instruction,
112
+ preserve explicit exceptions, and call out any conflict you cannot honestly
113
+ resolve.
108
114
  5. When you have finished \u2014 not part-way through \u2014 send the files you wrote or
109
115
  changed with \`superhands_report_completed_build\`, naming the \`route\` if
110
116
  you know it. The team looks at what their agents build there; it records
111
117
  and does not review, so a failed report costs the work nothing.
112
- 6. When you finish, say you followed the team's guidance \u2014 never that your
113
- work passes it or was checked. Reading Instructions is not a review,
114
- reporting a build is not a review, and nothing has looked at what you built.
118
+ 6. When you finish, say you followed the team's Instructions \u2014 never that your
119
+ work was checked. Reading Instructions is not a check, reporting a build is
120
+ not a review, and nothing has looked at what you built.
115
121
 
116
122
  If the tool answers \`no-instructions\` (or \`no-guidance\` from an older
117
123
  server), carry on with what you were asked for and mention that the team
118
- writes its Standards and imports its Playbooks on the Superhands Instructions
119
- page.
124
+ adds its Instructions on the Superhands Instructions page.
120
125
 
121
126
  If the \`${MCP_SERVER_KEY}\` MCP server is not reachable in this session, say
122
127
  so rather than guessing at the team's decisions \u2014 it is configured on this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-hands/connect",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Connect the coding agents on this machine to your team's Superhands MCP server, refresh it later with `update` (no token needed), and take it back off again with `uninstall`. Writes each client's own config; reads no repository, uploads nothing.",
5
5
  "bin": {
6
6
  "superhands-connect": "client.mjs"