gm-skill 0.1.2 → 2.0.1081
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/AGENTS.md +1 -0
- package/LICENSE +21 -0
- package/README.md +20 -84
- package/agents/gm.md +22 -0
- package/agents/memorize.md +100 -0
- package/agents/research-worker.md +36 -0
- package/agents/textprocessing.md +47 -0
- package/bin/bootstrap.js +702 -0
- package/bin/plugkit.js +136 -0
- package/bin/plugkit.sha256 +7 -0
- package/bin/plugkit.version +1 -0
- package/bin/plugkit.wasm +0 -0
- package/bin/plugkit.wasm.sha256 +1 -0
- package/bin/rtk.sha256 +6 -0
- package/bin/rtk.version +1 -0
- package/gm-plugkit/bootstrap.js +694 -0
- package/gm-plugkit/cli.js +48 -0
- package/gm-plugkit/index.js +12 -0
- package/gm-plugkit/package.json +26 -0
- package/gm-plugkit/plugkit-wasm-wrapper.js +190 -0
- package/gm-plugkit/plugkit.sha256 +6 -0
- package/gm-plugkit/plugkit.version +1 -0
- package/gm.json +27 -0
- package/lang/browser.js +45 -0
- package/lang/ssh.js +166 -0
- package/lib/browser-spool-handler.js +130 -0
- package/lib/browser.js +131 -0
- package/lib/codeinsight.js +109 -0
- package/lib/daemon-bootstrap.js +253 -132
- package/lib/git.js +0 -1
- package/lib/learning.js +169 -0
- package/lib/skill-bootstrap.js +406 -0
- package/lib/spool-dispatch.js +100 -0
- package/lib/spool.js +87 -49
- package/lib/wasm-host.js +241 -0
- package/package.json +38 -20
- package/prompts/bash-deny.txt +22 -0
- package/prompts/pre-compact.txt +21 -0
- package/prompts/prompt-submit.txt +83 -0
- package/prompts/session-start.txt +15 -0
- package/scripts/run-hook.sh +7 -0
- package/scripts/watch-cascade.js +166 -0
- package/skills/browser/SKILL.md +80 -0
- package/skills/code-search/SKILL.md +48 -0
- package/skills/create-lang-plugin/SKILL.md +121 -0
- package/skills/gm/SKILL.md +10 -49
- package/skills/gm-complete/SKILL.md +16 -87
- package/skills/gm-emit/SKILL.md +17 -50
- package/skills/gm-execute/SKILL.md +18 -69
- package/skills/gm-skill/SKILL.md +43 -0
- package/skills/gm-skill/index.js +21 -0
- package/skills/governance/SKILL.md +97 -0
- package/skills/pages/SKILL.md +208 -0
- package/skills/planning/SKILL.md +21 -97
- package/skills/research/SKILL.md +43 -0
- package/skills/ssh/SKILL.md +71 -0
- package/skills/textprocessing/SKILL.md +40 -0
- package/skills/update-docs/SKILL.md +24 -43
- package/gm-complete.SKILL.md +0 -106
- package/gm-emit.SKILL.md +0 -70
- package/gm-execute.SKILL.md +0 -88
- package/gm.SKILL.md +0 -63
- package/index.js +0 -1
- package/lib/index.js +0 -37
- package/lib/loader.js +0 -66
- package/lib/manifest.js +0 -99
- package/lib/prepare.js +0 -14
- package/planning.SKILL.md +0 -118
- package/skills/gm/index.js +0 -113
- package/skills/gm-complete/index.js +0 -118
- package/skills/gm-complete.SKILL.md +0 -106
- package/skills/gm-emit/index.js +0 -90
- package/skills/gm-emit.SKILL.md +0 -70
- package/skills/gm-execute/index.js +0 -91
- package/skills/gm-execute.SKILL.md +0 -88
- package/skills/gm.SKILL.md +0 -63
- package/skills/planning/index.js +0 -107
- package/skills/planning.SKILL.md +0 -118
- package/skills/update-docs/index.js +0 -108
- package/skills/update-docs.SKILL.md +0 -66
- package/test-build.js +0 -29
- package/test-e2e.js +0 -117
- package/test-unified.js +0 -24
- package/test.js +0 -89
- package/update-docs.SKILL.md +0 -66
package/update-docs.SKILL.md
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: update-docs
|
|
3
|
-
description: UPDATE-DOCS phase. Refresh README.md, AGENTS.md, and docs/index.html to reflect changes made this session. Commits and pushes doc updates. Terminal phase — declares COMPLETE.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# GM UPDATE-DOCS
|
|
7
|
-
|
|
8
|
-
Entry: feature verified, committed, pushed. Exit: docs match disk, committed, pushed → COMPLETE. Unknown architecture change → `planning`.
|
|
9
|
-
|
|
10
|
-
Every claim in docs is verifiable against disk. Phase names match frontmatter, platform names match `platforms/`, file paths exist, constraint counts are accurate. An unverifiable section is removed, not speculated.
|
|
11
|
-
|
|
12
|
-
## Sequence
|
|
13
|
-
|
|
14
|
-
What changed — run directly via Bash:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
git log -5 --oneline
|
|
18
|
-
git diff HEAD~1 --stat
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Read current docs via Read tool, or via a nodejs spool file (`in/nodejs/<N>.js`):
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
const fs = require('fs');
|
|
25
|
-
['README.md', 'AGENTS.md', 'docs/index.html', 'gm-starter/agents/gm.md'].forEach(f => {
|
|
26
|
-
try { console.log(`=== ${f} ===\n` + fs.readFileSync(f, 'utf8')); }
|
|
27
|
-
catch(e) { console.log(`MISSING: ${f}`); }
|
|
28
|
-
});
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Write changed sections only:
|
|
32
|
-
|
|
33
|
-
- **README.md** — platform count, skill tree diagram, quick-start commands
|
|
34
|
-
- **AGENTS.md** — via `Agent(subagent_type='gm:memorize', model='haiku', run_in_background=true, prompt='## CONTEXT TO MEMORIZE\n<learnings>')`. Never inline-edit.
|
|
35
|
-
- **docs/index.html** — `PHASES` array, platform lists, state machine diagram
|
|
36
|
-
- **gm-starter/agents/gm.md** — skill chain line if new skills added
|
|
37
|
-
|
|
38
|
-
Verify from disk (Read tool, or a nodejs spool file):
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
const content = require('fs').readFileSync('/abs/path/file.md', 'utf8');
|
|
42
|
-
console.log(content.includes('expectedString'), content.length);
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Commit and push directly via Bash:
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
git add README.md docs/index.html gm-starter/agents/gm.md
|
|
49
|
-
git commit -m "docs: update documentation to reflect session changes"
|
|
50
|
-
git push -u origin HEAD
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Exit: browser cleanup
|
|
54
|
-
|
|
55
|
-
After docs push succeeds, close any browser sessions spawned during this or prior skill phases. Write a nodejs spool file calling rs-exec:
|
|
56
|
-
|
|
57
|
-
```javascript
|
|
58
|
-
const sessionId = process.env.CLAUDE_SESSION_ID;
|
|
59
|
-
if (!sessionId) return;
|
|
60
|
-
const rs = require('rs-exec');
|
|
61
|
-
try {
|
|
62
|
-
rs.client().close_sessions_for(sessionId).catch(() => {});
|
|
63
|
-
} catch (e) {}
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
Best-effort: session context or rs-exec unavailable → skip gracefully. No error thrown.
|