@opensassi/opencode 0.1.4 → 0.1.5
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 +3 -2
- package/package.json +2 -1
- package/skills/opensassi/SKILL.md +8 -5
package/AGENTS.md
CHANGED
|
@@ -23,8 +23,9 @@ All skills, scripts, and tooling are delivered via the npm package.
|
|
|
23
23
|
## Workflow
|
|
24
24
|
|
|
25
25
|
1. `skill opensassi` — Load the bootstrap skill. It exposes the full skills-index as a reference table.
|
|
26
|
-
2. Run `
|
|
27
|
-
3. Use the skill's commands. Scripts are run via `
|
|
26
|
+
2. Run `npm run opencode -- <skill-name>` to load any sub-skill. The agent reads the output as the skill's full instructions.
|
|
27
|
+
3. Use the skill's commands. Scripts are run via `npm run opencode -- run <path>` or `npm run opencode -- run --skill <name> <path>`.
|
|
28
|
+
- *Consumers of the published package use `npx @opensassi/opencode` instead of `npm run opencode --`.*
|
|
28
29
|
|
|
29
30
|
## Design Constraints
|
|
30
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensassi/opencode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Agent skill harness for opencode — bootstrap, system-design, git workflow, profiling, and more",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"!**/*.spec.md"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
|
+
"opencode": "node bin/opencode.js",
|
|
25
26
|
"extract": "node scripts/extract-artifacts.js",
|
|
26
27
|
"extract:file": "node scripts/extract-artifacts.js --file",
|
|
27
28
|
"test-artifacts": "node scripts/test-artifacts.js",
|
|
@@ -5,13 +5,16 @@ description: Root skill ecosystem — loads system-design + spec tree, routes su
|
|
|
5
5
|
|
|
6
6
|
# Skill: opensassi — Root Skill Ecosystem
|
|
7
7
|
|
|
8
|
+
> **Invocation note:** Within this project, use `npm run opencode -- <cmd>`.
|
|
9
|
+
> Consumers of the published `@opensassi/opencode` package use `npx @opensassi/opencode <cmd>` instead.
|
|
10
|
+
|
|
8
11
|
## Entry Point
|
|
9
12
|
|
|
10
13
|
| Input | Action |
|
|
11
14
|
|-------|--------|
|
|
12
15
|
| `/opensassi` | Load `skill system-design`, read `technical-specification.md` + spec tree depth 2 (root + facade specs). Report ready. |
|
|
13
16
|
| `/opensassi init` | Run `env-check.sh`. Parse JSON result: if node+git+FlameGraph+deps all present → "Already bootstrapped". Otherwise run full bootstrap sequence (env-check → install → flamegraph → npm-deps → gitignore). |
|
|
14
|
-
| `/opensassi <skill> <command> [args]` | Load `<skill>` from npm via `
|
|
17
|
+
| `/opensassi <skill> <command> [args]` | Load `<skill>` from npm via `npm run opencode -- <skill>`, then run `<command>` with `[args]`. Return result. |
|
|
15
18
|
|
|
16
19
|
### Spec tree depth
|
|
17
20
|
|
|
@@ -23,7 +26,7 @@ Depth is controlled by `--depth` flag on `load spec`:
|
|
|
23
26
|
|
|
24
27
|
## Init
|
|
25
28
|
|
|
26
|
-
Single shell command: `
|
|
29
|
+
Single shell command: `npm run opencode -- run --skill opensassi env-check.sh`
|
|
27
30
|
|
|
28
31
|
Returns JSON: `{"os": ..., "distro": ..., "node_version": ..., "git_version": ..., ...}`
|
|
29
32
|
|
|
@@ -37,11 +40,11 @@ bootstrapped = (node_version != "" && git_version != ""
|
|
|
37
40
|
If bootstrapped → report "Environment ready." + show node/git versions.
|
|
38
41
|
If not → run full bootstrap:
|
|
39
42
|
|
|
40
|
-
1. `
|
|
43
|
+
1. `npm run opencode -- run --skill opensassi env-check.sh` — install git + Node.js LTS if missing, write `.nvmrc`
|
|
41
44
|
2. `init install` — run platform-specific installer (cmake, nasm, gdb, ripgrep, perf, htop, etc.) or report none found
|
|
42
45
|
3. `init flamegraph` — clone FlameGraph v1.0 to `scripts/FlameGraph/`
|
|
43
|
-
4. `
|
|
44
|
-
5. `
|
|
46
|
+
4. `npm run opencode -- run --skill opensassi install-npm-deps.sh` — `npm install`
|
|
47
|
+
5. `npm run opencode -- run --skill opensassi ensure-gitignore.sh` — append common patterns
|
|
45
48
|
|
|
46
49
|
## Lexicon
|
|
47
50
|
|