@csark0812/skeleton 1.1.1 → 1.1.3
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 +18 -10
- package/dist/cli.js +14004 -13939
- package/dist/hooks/customize-on-skill-read.js +117 -111
- package/package.json +13 -2
- package/schemas/config.schema.json +6 -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
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Skeleton
|
|
2
2
|
|
|
3
|
+
**Source of truth for** Package overview.
|
|
4
|
+
|
|
5
|
+
<!-- doc-meta: owner=eng | last-reviewed=2026-07-13 -->
|
|
6
|
+
|
|
3
7
|
Single source of truth (SSOT) linter for agent-enabled repos.
|
|
4
8
|
|
|
5
9
|
Agent repos accumulate skills, rules, registries, and cross-linked docs faster than anyone can keep them straight by hand. Code repos solved this decades ago with ESLint — deterministic checks, CI gates, fix what you can before merge. Skeleton does the same job for documentation architecture: what's canonical, what links where, what must not exist, and whether your skill overrides are wired correctly.
|
|
@@ -78,17 +82,19 @@ skeleton init [--skills] [--force-hooks]
|
|
|
78
82
|
skeleton register <path> [--topic=…]
|
|
79
83
|
skeleton audit docs|skills|self [--strict] [--paths=a,b]
|
|
80
84
|
skeleton validate changed [--staged | --base <ref>] [paths…]
|
|
85
|
+
skeleton references sync|check
|
|
81
86
|
skeleton customize resolve <slug>
|
|
82
87
|
```
|
|
83
88
|
|
|
84
89
|
**Validate changed** routes git diffs to the right audit:
|
|
85
90
|
|
|
86
|
-
| Path
|
|
87
|
-
|
|
|
88
|
-
| Docs
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
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) |
|
|
92
98
|
|
|
93
99
|
Pre-commit: `skeleton validate changed --staged` (path-scoped, fast).
|
|
94
100
|
CI: `skeleton validate changed --base origin/main` (global rules first, then changed files).
|
|
@@ -128,11 +134,13 @@ One command for humans: `npx skeleton init --skills`.
|
|
|
128
134
|
|
|
129
135
|
## Development
|
|
130
136
|
|
|
131
|
-
Requires Node ≥ 22.
|
|
137
|
+
Requires Bun `1.2.x` and Node ≥ 22. Agent cold-start: [AGENTS.md](AGENTS.md).
|
|
132
138
|
|
|
133
139
|
```bash
|
|
134
140
|
bun install
|
|
135
|
-
bun
|
|
136
|
-
bun run build
|
|
137
|
-
bun run audit:self
|
|
141
|
+
bun run check
|
|
138
142
|
```
|
|
143
|
+
|
|
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.
|
|
145
|
+
|
|
146
|
+
Optional: `brew install pre-commit` (or `pipx install pre-commit`), then `pre-commit install` to wire `.pre-commit-config.yaml`.
|