@csark0812/skeleton 1.1.2 → 1.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/LICENSE +21 -0
- package/README.md +12 -15
- package/dist/cli.js +6801 -6772
- package/dist/hooks/customize-on-skill-read.js +117 -111
- package/package.json +15 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Christopher Sarkissian
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -82,17 +82,19 @@ skeleton init [--skills] [--force-hooks]
|
|
|
82
82
|
skeleton register <path> [--topic=…]
|
|
83
83
|
skeleton audit docs|skills|self [--strict] [--paths=a,b]
|
|
84
84
|
skeleton validate changed [--staged | --base <ref>] [paths…]
|
|
85
|
+
skeleton references sync|check
|
|
85
86
|
skeleton customize resolve <slug>
|
|
86
87
|
```
|
|
87
88
|
|
|
88
89
|
**Validate changed** routes git diffs to the right audit:
|
|
89
90
|
|
|
90
|
-
| Path
|
|
91
|
-
|
|
|
92
|
-
| Docs
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
|
91
|
+
| Path | Action |
|
|
92
|
+
| ----------------------------------------------------------------------------------- | --------------------------- |
|
|
93
|
+
| Docs in scan perimeter | path-scoped audit |
|
|
94
|
+
| Skill bodies (`SKILL.md` trees) | exit 1 → run `audit skills` |
|
|
95
|
+
| `.sh`, `.bash`, `.zsh` | shellcheck or `bash -n` |
|
|
96
|
+
| Other `.json` | JSONC-tolerant syntax check |
|
|
97
|
+
| `.ts`, `.tsx`, `.js`, `.jsx`, `.mjs`, `.cjs`, `.py`, `package.json`, `project.json` | skip (exits 1 if all skip) |
|
|
96
98
|
|
|
97
99
|
Pre-commit: `skeleton validate changed --staged` (path-scoped, fast).
|
|
98
100
|
CI: `skeleton validate changed --base origin/main` (global rules first, then changed files).
|
|
@@ -132,18 +134,13 @@ One command for humans: `npx skeleton init --skills`.
|
|
|
132
134
|
|
|
133
135
|
## Development
|
|
134
136
|
|
|
135
|
-
Requires
|
|
137
|
+
Requires Bun `1.2.x` and Node ≥ 22. Agent cold-start: [AGENTS.md](AGENTS.md).
|
|
136
138
|
|
|
137
139
|
```bash
|
|
138
140
|
bun install
|
|
139
|
-
bun
|
|
140
|
-
bun run typecheck
|
|
141
|
-
bun run build
|
|
142
|
-
bun run audit:self
|
|
141
|
+
bun run check
|
|
143
142
|
```
|
|
144
143
|
|
|
145
|
-
`validate:changed` is docs/
|
|
144
|
+
`bun run check` runs lint, test, typecheck, build, and `audit:self`. `validate:changed` is docs/config only for path-scoped work — it skips code/config extensions (see table) and skill-body edits need `audit skills`. All-skip / skill-only / missing paths exit non-zero. Use `bun test`, `bun run typecheck`, and `bun run build` for code.
|
|
146
145
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
Keep version `1.1.2` until `npm publish`. Preflight: `bun test && bun run typecheck && bun run build && bun run audit:self`. Then publish and tag when ready (npm is still on `1.1.1` until then).
|
|
146
|
+
Optional: `brew install pre-commit` (or `pipx install pre-commit`), then `pre-commit install` to wire `.pre-commit-config.yaml`.
|