skill-monster 0.0.0-stage → 0.1.0
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/LICENSE +202 -0
- package/README.md +155 -2
- package/desk-ui/app.css +73 -0
- package/desk-ui/app.js +182 -0
- package/desk-ui/fonts/bricolage-grotesque-800.woff2 +0 -0
- package/desk-ui/fonts/ibm-plex-mono-400.woff2 +0 -0
- package/desk-ui/fonts/ibm-plex-mono-600.woff2 +0 -0
- package/desk-ui/fonts/ibm-plex-sans-400.woff2 +0 -0
- package/desk-ui/fonts/silkscreen-400.woff2 +0 -0
- package/desk-ui/fonts.css +70 -0
- package/desk-ui/index.html +29 -0
- package/desk-ui/mascot.svg +1 -0
- package/dist/build.json +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +640 -0
- package/dist/cli/ui.d.ts +18 -0
- package/dist/cli/ui.js +120 -0
- package/dist/core/checkup.d.ts +14 -0
- package/dist/core/checkup.js +69 -0
- package/dist/core/corrections.d.ts +54 -0
- package/dist/core/corrections.js +138 -0
- package/dist/core/digest.d.ts +36 -0
- package/dist/core/digest.js +91 -0
- package/dist/core/export.d.ts +8 -0
- package/dist/core/export.js +28 -0
- package/dist/core/external.d.ts +48 -0
- package/dist/core/external.js +127 -0
- package/dist/core/guard.d.ts +10 -0
- package/dist/core/guard.js +48 -0
- package/dist/core/mirror.d.ts +37 -0
- package/dist/core/mirror.js +148 -0
- package/dist/core/release.d.ts +69 -0
- package/dist/core/release.js +173 -0
- package/dist/core/report.d.ts +10 -0
- package/dist/core/report.js +65 -0
- package/dist/core/scrub.d.ts +20 -0
- package/dist/core/scrub.js +67 -0
- package/dist/core/sign.d.ts +25 -0
- package/dist/core/sign.js +86 -0
- package/dist/core/skill.d.ts +26 -0
- package/dist/core/skill.js +68 -0
- package/dist/core/starters.d.ts +54 -0
- package/dist/core/starters.js +184 -0
- package/dist/core/types.d.ts +187 -0
- package/dist/core/types.js +1 -0
- package/dist/core/version.d.ts +4 -0
- package/dist/core/version.js +17 -0
- package/dist/core/workspace.d.ts +23 -0
- package/dist/core/workspace.js +79 -0
- package/dist/desk/server.d.ts +10 -0
- package/dist/desk/server.js +140 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10 -0
- package/dist/mcp/server.d.ts +8 -0
- package/dist/mcp/server.js +112 -0
- package/dist/providers/index.d.ts +15 -0
- package/dist/providers/index.js +123 -0
- package/dist/slack/api.d.ts +6 -0
- package/dist/slack/api.js +18 -0
- package/dist/slack/app.d.ts +70 -0
- package/dist/slack/app.js +387 -0
- package/dist/slack/manifest.d.ts +50 -0
- package/dist/slack/manifest.js +71 -0
- package/dist/slack/messages.d.ts +414 -0
- package/dist/slack/messages.js +226 -0
- package/dist/slack/socket.d.ts +24 -0
- package/dist/slack/socket.js +84 -0
- package/dist/stores/airtable.d.ts +26 -0
- package/dist/stores/airtable.js +52 -0
- package/dist/stores/confluence-format.d.ts +34 -0
- package/dist/stores/confluence-format.js +458 -0
- package/dist/stores/confluence.d.ts +55 -0
- package/dist/stores/confluence.js +204 -0
- package/dist/stores/index.d.ts +30 -0
- package/dist/stores/index.js +53 -0
- package/dist/stores/notion.d.ts +43 -0
- package/dist/stores/notion.js +313 -0
- package/docs/SECURITY.md +45 -0
- package/docs/slack.md +78 -0
- package/package.json +48 -4
- package/starters/_core/SKILL.md +30 -0
- package/starters/customer-support-answers/starter.yaml +98 -0
- package/starters/data-warehouse-kb/starter.yaml +119 -0
- package/starters/engineering-house-rules/starter.yaml +106 -0
- package/starters/people-policies/starter.yaml +89 -0
- package/starters/pricing-and-packaging/starter.yaml +90 -0
- package/starters/product-analytics-kb/starter.yaml +109 -0
- package/starters/security-questionnaire-answers/starter.yaml +94 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,156 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center"><img src="desk-ui/mascot.svg" width="72" alt=""></p>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<h1 align="center">Skill Monster</h1>
|
|
4
|
+
<p align="center"><b>Wrong answers have a natural predator.</b></p>
|
|
5
|
+
|
|
6
|
+
Your team's AI assistants answer from shared "skills": metric definitions, refund rules, pricing, house rules. When an answer is wrong, the fix usually dies in a chat thread. Skill Monster catches it.
|
|
7
|
+
|
|
8
|
+
1. **Someone says "that's wrong"** in their assistant. The assistant sends a short, scrubbed correction to the skill's owner.
|
|
9
|
+
2. **The owner (the curator) reviews it** in the Desk, changes the rule, and adds a guard test so the mistake can't come back.
|
|
10
|
+
3. **Skill Monster tests the new version on every model your team uses** (Claude, GPT, Gemini, or your own), signs it, and releases it.
|
|
11
|
+
4. **The person who reported it gets a receipt:** "Your fix is live for 38 people, and it works on Claude, GPT and Gemini."
|
|
12
|
+
|
|
13
|
+
A model that fails a guard test stays on the last version that passed, so a fix for one assistant never breaks another.
|
|
14
|
+
|
|
15
|
+
## Why not just…
|
|
16
|
+
|
|
17
|
+
| Instead of | What goes wrong |
|
|
18
|
+
|---|---|
|
|
19
|
+
| Your AI vendor's built-in memory or projects | Works for one vendor only, has no owner sign-off, and no test stops a fix from breaking later. |
|
|
20
|
+
| A wiki or shared doc | Nobody hears about wrong answers, and nothing checks that the assistant actually follows the page. |
|
|
21
|
+
| Prompt files people write themselves | Every team keeps its own copy, the copies drift apart, and nobody knows which is right. |
|
|
22
|
+
| One person updating things by hand | It works until they're on holiday. There's no record of who changed what, or why. |
|
|
23
|
+
|
|
24
|
+
## Nothing leaves your company
|
|
25
|
+
|
|
26
|
+
- **Open source** (Apache-2.0). Read every line.
|
|
27
|
+
- **Runs where you already work:** your laptop and your repo. There's no account, no sign-up and no Skill Monster server.
|
|
28
|
+
- **Uses your own model keys** from environment variables. Keys are never written to disk.
|
|
29
|
+
- **No telemetry.** The optional monthly count is off by default, and the Desk shows the exact payload before you switch it on.
|
|
30
|
+
- **Corrections are scrubbed** before they're written. Passwords, keys, emails, phone numbers, money amounts, counts and any names you list are removed.
|
|
31
|
+
- **Signed releases.** Every release is signed with an Ed25519 key. The private half stays on your machine or in your CI secret.
|
|
32
|
+
|
|
33
|
+
That means most teams can start without a security review. If yours needs one, [docs/SECURITY.md](docs/SECURITY.md) answers the usual questions.
|
|
34
|
+
|
|
35
|
+
## Start in two minutes
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm install -g skill-monster # or: npx skill-monster, or a packed file: npm install -g ./skill-monster-0.1.0.tgz
|
|
39
|
+
cd your-repo-or-folder
|
|
40
|
+
skill-monster init # settings, signing key, a free check-up of what's there
|
|
41
|
+
skill-monster new product-analytics-kb
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
`new` asks a few questions (or reads them from `--answers answers.yaml`, which can also rename, drop and add sections). You can skip any of them. A skipped answer becomes a **visible blank** ("Not defined yet: Active workspace. Ask Priya.") so the assistant says it doesn't know rather than guessing. You get five guard tests to start with and a signed `0.1.0`.
|
|
45
|
+
|
|
46
|
+
Add your keys, then test:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
export ANTHROPIC_API_KEY=… OPENAI_API_KEY=… GEMINI_API_KEY=…
|
|
50
|
+
skill-monster test
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
MODEL STATUS TESTS RELEASE
|
|
55
|
+
Claude ✓ GUARDING 5 / 5 0.1.0
|
|
56
|
+
GPT ✓ GUARDING 5 / 5 0.1.0
|
|
57
|
+
Gemini ✗ SICK 4 / 5 held · test-02
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Seven starter skills
|
|
61
|
+
|
|
62
|
+
Every starter runs on the same engine. Pick one, answer the interview, and you have a working skill with blanks marked and tests in place.
|
|
63
|
+
|
|
64
|
+
| Starter | For |
|
|
65
|
+
|---|---|
|
|
66
|
+
| `product-analytics-kb` (featured) | Metric definitions, event dictionary, dashboards, data caveats, SQL conventions |
|
|
67
|
+
| `data-warehouse-kb` | Any warehouse domain (royalties, revenue, payouts): definitions, source tables, calculation rules, caveats, SQL |
|
|
68
|
+
| `customer-support-answers` | Refunds, plans, escalation, things the bot must never promise |
|
|
69
|
+
| `pricing-and-packaging` | Price book, discount rules, what needs the deal desk |
|
|
70
|
+
| `engineering-house-rules` | Coding conventions and the never-do-this list, for every coding agent |
|
|
71
|
+
| `security-questionnaire-answers` | Approved answers, evidence and what must go to Security |
|
|
72
|
+
| `people-policies` | Leave, expenses, benefits, by region, with "confirm with HR" where it matters |
|
|
73
|
+
|
|
74
|
+
Run `skill-monster starters` to list them.
|
|
75
|
+
|
|
76
|
+
## Where it shows up
|
|
77
|
+
|
|
78
|
+
| Surface | How |
|
|
79
|
+
|---|---|
|
|
80
|
+
| **Your assistant** | `skill-monster mcp` is an MCP connector. Add it to Claude, ChatGPT, Cursor or any MCP client. It serves the right version for that model, previews a correction before sending it, and shows receipts. |
|
|
81
|
+
| **The Desk** | `skill-monster desk` opens the curator's home at http://localhost:4747. It has the inbox, review with a diff and a guard test, rollout by model, version history with signature checks, and settings. It runs on your machine only. |
|
|
82
|
+
| **Terminal** | Every command: `check`, `test`, `release`, `verify`, `correct`, `inbox`, `approve`, `digest`, `export`, `report`. |
|
|
83
|
+
| **Pull requests** | Copy [templates/skill-monster-pr.yml](templates/skill-monster-pr.yml) into `.github/workflows/`. Every change to a skill gets a check-up and a works-on table as a comment. |
|
|
84
|
+
| **Team chat** | `skill-monster digest --post` sends the Monday digest to a Slack or Teams webhook (`SKILL_MONSTER_CHAT_WEBHOOK`). In Slack you can also run your own Slack app (`skill-monster slack run`): flag a wrong answer from any message, get a receipt by DM when the fix is live, and approve from the digest. It runs on your server, dials out to Slack only, and sends nothing to us. See [docs/slack.md](docs/slack.md). |
|
|
85
|
+
| **Other tools** | `skill-monster export --format agent-skill|agents-md|instructions` gives you a released version as a file for tools that don't use MCP. |
|
|
86
|
+
|
|
87
|
+
## Where the knowledge lives
|
|
88
|
+
|
|
89
|
+
Pick the store in `skill-monster.yaml`. Skill Monster always keeps its own records (corrections, tests, signed releases) in the `.skill-monster` folder, and each release snapshots the content. That way a release can be verified even if someone edits the source later.
|
|
90
|
+
|
|
91
|
+
```yaml
|
|
92
|
+
store:
|
|
93
|
+
type: git # default: sections are Markdown files in skills/<name>/sections
|
|
94
|
+
# type: folder # any folder, e.g. a synced drive. Set path: …
|
|
95
|
+
# type: notion # root_page: <page id or page link>. Token in NOTION_TOKEN
|
|
96
|
+
# type: airtable # base: app…, table: Skills. Token in AIRTABLE_TOKEN
|
|
97
|
+
# type: confluence # site: acme.atlassian.net, space: KB, parent_page: <page id or link> (optional).
|
|
98
|
+
# # API token in CONFLUENCE_TOKEN, its account's email in CONFLUENCE_EMAIL
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
`skill-monster init --store confluence:<link to the parent page>` fills in the site, space and parent page for you. Skill Monster uses Confluence Cloud's REST API and creates one page per skill under the parent page (or the space's home page), and one page per section under that, titled "<skill>: <section>" because titles must be unique in a space. It reads headings, lists, tasks, tables, code, quotes and info, note and warning panels, and expands. Approved fixes change only the paragraph, list or table that holds the old text, so panels, macros and layouts around it are kept; a fix inside a macro it can't read is refused with a note to make it by hand. Macros it can't read show up as a one-line note in the text.
|
|
102
|
+
|
|
103
|
+
Google Drive is next.
|
|
104
|
+
|
|
105
|
+
## Models
|
|
106
|
+
|
|
107
|
+
```yaml
|
|
108
|
+
models:
|
|
109
|
+
- { name: Claude, provider: anthropic, model: claude-sonnet-5-5, key_env: ANTHROPIC_API_KEY }
|
|
110
|
+
- { name: GPT, provider: openai, model: gpt-5-mini, key_env: OPENAI_API_KEY }
|
|
111
|
+
- { name: Gemini, provider: gemini, model: gemini-2.5-flash, key_env: GEMINI_API_KEY }
|
|
112
|
+
# Any OpenAI-compatible endpoint (vLLM, Ollama, Azure, a gateway):
|
|
113
|
+
# - { name: Llama, provider: openai-compatible, model: llama-4, base_url: http://localhost:11434/v1 }
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
No API key? Run guard tests through a model login you already have, such as Claude Code:
|
|
117
|
+
|
|
118
|
+
```yaml
|
|
119
|
+
- name: Claude
|
|
120
|
+
provider: command
|
|
121
|
+
model: claude-code
|
|
122
|
+
command: ["claude", "-p", "--tools", "", "--strict-mcp-config", "--no-session-persistence", "--disable-slash-commands", "--system-prompt-file", "{system_file}"]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The program gets the question on stdin and prints the answer. `{system_file}` becomes a temporary file holding the skill, deleted afterwards.
|
|
126
|
+
|
|
127
|
+
No model access from where Skill Monster runs at all (a sandboxed agent, a locked-down laptop)? Use `provider: answers`. `skill-monster test <skill> --emit-prompts q.yaml` writes the skill and every question to a file; answer them anywhere you have a model, in fresh chats, with the rubric verdicts too; then `skill-monster test <skill> --answers q.yaml` grades them and `release --answers q.yaml` records the result. A file made for older content is refused.
|
|
128
|
+
|
|
129
|
+
`provider: offline` is a built-in stand-in with no network, for demos and CI dry runs.
|
|
130
|
+
|
|
131
|
+
Share the Notion root page with your integration (••• → Connections). Skill Monster creates one page per skill under it and one page per section under that. It reads headings, lists, to-dos, toggles, quotes, code, tables and nested blocks. Inline databases are not read; paste their rows as a table.
|
|
132
|
+
|
|
133
|
+
No token for your wiki, or an agent that can't reach the wiki's API? Use any store (a `folder` works well) and mirror it yourself: `skill-monster read <skill> --dir mirror` writes one Markdown file per section plus page titles, an agent with a Notion or Confluence connector copies them across, and `skill-monster write <skill> --dir mirror` brings edits back. For Confluence add `--wiki confluence`: page titles become unique in the space, and a `confluence/` folder holds each section in storage format (XHTML) for connectors that only take that. Storage format saved back into the `.md` files is converted to Markdown, and unchanged pages are not counted as edits.
|
|
134
|
+
|
|
135
|
+
## Report a run
|
|
136
|
+
|
|
137
|
+
`skill-monster report --out report.md` writes counts only: sections, blanks, tests, releases and pass rates per model. It never includes skill content, questions, answers, names or page ids, so you can share it outside the company.
|
|
138
|
+
|
|
139
|
+
## Try the example
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
cd examples/acme
|
|
143
|
+
skill-monster inbox # two people hit the same wrong answer about pending refunds
|
|
144
|
+
skill-monster desk # review them, fix the rule, add the guard test, release
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Develop
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
npm install
|
|
151
|
+
npm test # node:test, no network
|
|
152
|
+
npm run dev -- help
|
|
153
|
+
npm run build
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Licensed under Apache-2.0.
|
package/desk-ui/app.css
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
:root{--ink:#16140F;--paper:#F4EFE3;--surface:#FBF8F1;--surface-2:#EFE9DA;--surface-3:#E5DEC9;--border:#D4CCB8;--strong:#16140F;
|
|
2
|
+
--monster:#C6F432;--monster-soft:#EFF9CB;--bite:#FF5A36;--bite-bg:#FFE9E3;--bite-text:#B82A0B;
|
|
3
|
+
--text:#16140F;--text-2:#4A453B;--text-3:#6F685A;--ok:#1B6E42;--ok-bg:#E6F4EB;--warn:#8F5808;--warn-bg:#FAF0D8;--fail:#C93312;
|
|
4
|
+
--sans:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;--disp:'Bricolage Grotesque',var(--sans);--px:'Silkscreen',monospace;color-scheme:light}
|
|
5
|
+
@media (prefers-color-scheme:dark){:root{--ink:#F2EDE1;--paper:#121110;--surface:#181613;--surface-2:#211F1B;--surface-3:#2B2822;--border:#343028;--strong:#595346;--monster-soft:#242D12;--bite-bg:#331811;--bite-text:#FF8569;--text:#F2EDE1;--text-2:#B5AEA0;--text-3:#8A8374;--ok:#5AD18E;--ok-bg:#13281C;--warn:#E8B14A;--warn-bg:#2B2110;--fail:#FF6B4A;color-scheme:dark}}
|
|
6
|
+
*{box-sizing:border-box}html,body{margin:0;background:var(--paper);color:var(--text);font:14px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
|
|
7
|
+
a{color:inherit}button,input,textarea,select{font:inherit;color:inherit}
|
|
8
|
+
.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}
|
|
9
|
+
.nav{background:var(--surface-2);border-right:1px solid var(--border);padding:14px 10px;display:flex;flex-direction:column;gap:12px;position:sticky;top:0;height:100vh}
|
|
10
|
+
.brand{display:flex;align-items:center;gap:8px;font:800 17px var(--disp);letter-spacing:-.02em;text-decoration:none;padding:2px 6px}
|
|
11
|
+
.brand img{image-rendering:pixelated;background:#16140F;padding:2px;border-radius:2px;width:24px;height:24px}
|
|
12
|
+
.org{font:12px var(--mono);background:var(--surface);border:1px solid var(--border);border-radius:3px;padding:6px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
13
|
+
nav{display:flex;flex-direction:column;gap:2px}
|
|
14
|
+
nav a{display:flex;justify-content:space-between;padding:6px 8px;border-radius:3px;text-decoration:none;color:var(--text-2);font-weight:500}
|
|
15
|
+
nav a:hover{background:var(--surface-3);color:var(--text)}
|
|
16
|
+
nav a.on{background:var(--monster-soft);color:var(--text);font-weight:600;box-shadow:inset 3px 0 0 var(--monster)}
|
|
17
|
+
.count{font-size:11px;color:var(--text-3)}
|
|
18
|
+
.status{margin-top:auto;border-top:1px solid var(--border);padding:10px 8px 0;font-size:11px;color:var(--text-2)}
|
|
19
|
+
.status b{display:flex;align-items:center;gap:6px;color:var(--text)}
|
|
20
|
+
.dot{width:7px;height:7px;border-radius:1px;display:inline-block;background:var(--text-3)}.dot.ok{background:var(--ok)}.dot.warn{background:var(--warn)}.dot.fail{background:var(--fail)}
|
|
21
|
+
main{min-width:0;outline:none}
|
|
22
|
+
.top{padding:14px 22px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--surface)}
|
|
23
|
+
.top h1{font:800 20px var(--disp);letter-spacing:-.02em;margin:0}.sub{font-size:12.5px;color:var(--text-2)}
|
|
24
|
+
.pad{padding:18px 22px;display:flex;flex-direction:column;gap:16px;max-width:1100px}
|
|
25
|
+
.split{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);min-height:calc(100vh - 62px)}
|
|
26
|
+
.list{border-right:1px solid var(--border);background:var(--surface)}
|
|
27
|
+
.row{display:block;width:100%;text-align:left;padding:11px 16px;border:0;border-bottom:1px solid var(--border);background:transparent;cursor:pointer}
|
|
28
|
+
.row:hover{background:var(--surface-2)}.row.sel{background:var(--monster-soft);box-shadow:inset 3px 0 0 var(--monster)}
|
|
29
|
+
.row .t{display:flex;justify-content:space-between;gap:8px;font-size:11px}.row .q{font-weight:500;margin:3px 0}.row .m{font-size:11px;color:var(--text-3);display:flex;gap:10px;flex-wrap:wrap}
|
|
30
|
+
.detail{padding:16px 18px;display:flex;flex-direction:column;gap:12px}
|
|
31
|
+
.mono{font-family:var(--mono);font-size:12.5px}.muted{color:var(--text-2)}.dim{color:var(--text-3)}.small{font-size:12px}
|
|
32
|
+
.tag{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;border:1px solid var(--border);background:var(--surface-2);color:var(--text-2);padding:1px 7px;border-radius:3px;white-space:nowrap}
|
|
33
|
+
.tag.m{background:var(--monster-soft);border-color:#92B819;color:var(--text)}.tag.ok{background:var(--ok-bg);color:var(--ok);border-color:currentColor}.tag.warn{background:var(--warn-bg);color:var(--warn);border-color:currentColor}.tag.fail{background:var(--bite-bg);color:var(--fail);border-color:currentColor}
|
|
34
|
+
.px{font:10px var(--px);text-transform:uppercase;letter-spacing:.05em}
|
|
35
|
+
.btn{height:31px;padding:0 12px;border-radius:3px;border:1px solid var(--strong);background:var(--surface);font-size:12.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
|
|
36
|
+
.btn:hover:not(:disabled){background:var(--surface-2)}.btn.p{background:var(--monster);border-color:#16140F;color:#16140F}.btn.p:hover:not(:disabled){background:#B6E322}
|
|
37
|
+
.btn.d{border-color:var(--fail);color:var(--fail)}.btn:disabled{opacity:.5;cursor:not-allowed}
|
|
38
|
+
.sec{border-top:1px solid var(--border);padding-top:11px;display:flex;flex-direction:column;gap:6px}
|
|
39
|
+
.lbl{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3)}
|
|
40
|
+
.box{border:1px solid var(--border);border-radius:3px;background:var(--surface)}
|
|
41
|
+
.diff{display:grid;grid-template-columns:1fr 1fr}.diff>div{padding:13px 14px;min-width:0;white-space:pre-wrap;line-height:1.55}.diff>div:first-child{border-right:1px solid var(--border)}
|
|
42
|
+
del{background:var(--bite-bg);color:var(--bite-text);text-decoration-color:var(--bite);text-decoration-thickness:2px;padding:1px 3px}
|
|
43
|
+
ins{background:var(--monster);color:#16140F;text-decoration:none;padding:1px 3px}
|
|
44
|
+
label.f{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--text-2)}
|
|
45
|
+
input[type=text],textarea,select{border:1px solid var(--border);background:var(--surface);border-radius:3px;padding:7px 9px;font-size:13px;width:100%}
|
|
46
|
+
textarea{min-height:70px;resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid var(--monster);outline-offset:0;border-color:var(--strong)}
|
|
47
|
+
.bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:12px}.right{margin-left:auto}
|
|
48
|
+
table{width:100%;border-collapse:collapse;font-size:12.5px}th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-3);padding:8px 12px;border-bottom:1px solid var(--strong);background:var(--surface-2)}
|
|
49
|
+
td{padding:9px 12px;border-bottom:1px solid var(--border);vertical-align:top}tr:last-child td{border-bottom:0}
|
|
50
|
+
.empty{padding:40px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text-2)}
|
|
51
|
+
.empty img{width:56px;height:56px;image-rendering:pixelated;background:#16140F;padding:6px}
|
|
52
|
+
.toast{position:fixed;right:18px;bottom:18px;background:#16140F;color:#F4EFE3;border-left:4px solid var(--monster);border-radius:3px;padding:10px 14px;max-width:420px;z-index:9;font-size:13px}
|
|
53
|
+
.kv{display:grid;grid-template-columns:130px 1fr;gap:6px 12px;font-size:12.5px}.kv dt{color:var(--text-3);font-weight:600}.kv dd{margin:0}
|
|
54
|
+
.switch{width:34px;height:19px;border:1px solid var(--strong);background:var(--surface-3);border-radius:2px;position:relative;cursor:pointer;flex:none;padding:0}
|
|
55
|
+
.switch::after{content:"";position:absolute;top:2px;left:2px;width:13px;height:13px;background:var(--surface);border:1px solid var(--strong)}
|
|
56
|
+
.switch[aria-checked=true]{background:var(--monster);border-color:#16140F}.switch[aria-checked=true]::after{left:17px;background:#16140F}
|
|
57
|
+
.setting{display:flex;justify-content:space-between;gap:14px;padding:12px 14px;border-bottom:1px solid var(--border)}.setting:last-child{border-bottom:0}
|
|
58
|
+
pre.json{font:12px var(--mono);background:var(--surface-2);padding:10px;margin:0;border-radius:3px;overflow:auto}
|
|
59
|
+
.loading{padding:30px;color:var(--text-3)}
|
|
60
|
+
.err{background:var(--bite-bg);color:var(--bite-text);border:1px solid var(--bite);padding:10px 12px;border-radius:3px;font-size:13px}
|
|
61
|
+
@media (max-width:860px){.shell{grid-template-columns:1fr}.nav{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center}.nav nav{flex-direction:row;flex-wrap:wrap}.status{display:none}.org{display:none}.split{grid-template-columns:1fr}.list{border-right:0}.diff{grid-template-columns:1fr}.diff>div:first-child{border-right:0;border-bottom:1px solid var(--border)}}
|
|
62
|
+
/* small one-off layout helpers */
|
|
63
|
+
.u0{background:var(--surface-2);padding:8px 22px}
|
|
64
|
+
.u1{display:flex;justify-content:space-between;gap:8px}
|
|
65
|
+
.u2{flex-direction:row;gap:8px}
|
|
66
|
+
.u3{font-family:var(--disp)}
|
|
67
|
+
.u4{font:800 28px var(--disp)}
|
|
68
|
+
.u5{margin-top:6px}
|
|
69
|
+
.u6{margin-top:8px}
|
|
70
|
+
.u7{padding:12px 14px}
|
|
71
|
+
.u8{padding:12px 14px;background:var(--surface-2)}
|
|
72
|
+
.u9{padding:12px 14px;display:flex;flex-direction:column;gap:8px}
|
|
73
|
+
.u10{padding:14px 16px}
|