@csark0812/skeleton 1.5.7 → 1.6.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/README.md +13 -8
- package/dist/cli.js +1749 -701
- package/dist/hooks/customize-on-skill-read.js +961 -223
- package/dist/plugin-types.d.ts +19 -3
- package/package.json +3 -6
- package/schemas/config.schema.json +57 -9
- package/templates/skeleton-init/config.yaml +5 -4
- package/templates/skeleton-init/skeleton.toml +37 -0
- package/templates/skeleton-init/registry.md +0 -10
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
**Source of truth for** Package overview.
|
|
4
4
|
|
|
5
|
-
<!-- doc-meta: owner=eng | last-reviewed=2026-
|
|
5
|
+
<!-- doc-meta: owner=eng | last-reviewed=2026-08-16 -->
|
|
6
6
|
|
|
7
7
|
Agent repos get messy fast. Skills get copied around, docs disagree, links go stale, and nobody remembers which file is actually canonical.
|
|
8
8
|
|
|
9
|
-
Skeleton is an SSOT linter for that layer. Define the contract once; Skeleton checks it locally and in CI. If a canonical doc disappears,
|
|
9
|
+
Skeleton is an SSOT linter for that layer. Define the contract once; Skeleton checks it locally and in CI. If a canonical doc disappears, SSOT markers drift, a skill index stops matching disk, or a generated reference gets edited by hand, the audit fails before merge.
|
|
10
10
|
|
|
11
11
|
Think ESLint — for the docs and skills your agents rely on.
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ That needs to be explicit — and stay true after the next 50 PRs. Skeleton turn
|
|
|
20
20
|
|
|
21
21
|
| Code repos | Agent repos |
|
|
22
22
|
| ------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
|
23
|
-
| ESLint catches broken imports, unused vars, style drift | Skeleton catches broken links,
|
|
23
|
+
| ESLint catches broken imports, unused vars, style drift | Skeleton catches broken links, bad SSOT markers, stale doc-meta, deny.paths artifacts |
|
|
24
24
|
| `eslint --fix` on changed files | `skeleton validate changed` on changed docs and skills |
|
|
25
25
|
| Pre-commit + CI gate | `--staged` pre-commit + `--base` CI gate |
|
|
26
26
|
|
|
@@ -76,27 +76,32 @@ npm install -D @csark0812/skeleton
|
|
|
76
76
|
npx skeleton init --skills
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
That writes `.skeleton/`, adds
|
|
79
|
+
That writes `skeleton.toml`, ensures `.skeleton/customize/`, adds validation scripts, and may wire **optional** customize hooks for Cursor, Claude Code, and Codex.
|
|
80
80
|
|
|
81
|
-
Edit
|
|
81
|
+
Edit `skeleton.toml` for your repo layout, then verify:
|
|
82
82
|
|
|
83
83
|
```bash
|
|
84
|
-
npx skeleton
|
|
84
|
+
npx skeleton catalog
|
|
85
|
+
npx skeleton audit docs
|
|
85
86
|
```
|
|
86
87
|
|
|
87
88
|
Flag details: [install](docs/developer/install.md).
|
|
88
89
|
|
|
89
90
|
## What it checks
|
|
90
91
|
|
|
91
|
-
- **
|
|
92
|
+
- **SSOT markers** — opt-in `source-of-truth` (comment or visible); dual/malformed forms fail; legacy banners accepted
|
|
93
|
+
- **Near-duplicate docs** — shingle overlap + duplicate SSOT summaries (warn / `--strict`)
|
|
94
|
+
- **SSOT summary fit** — heuristic overlap between the one-liner and the body (warn / `--strict`)
|
|
92
95
|
- **Link audit** — broken refs, skill links, anchors in scanned markdown
|
|
93
96
|
- **Skill index** — disk matches taxonomy READMEs in detected skill roots
|
|
94
97
|
- **Banned paths** — session artifacts and other files that must not exist
|
|
95
98
|
- **Coverage gaps** — markdown outside the scan perimeter (warn-only)
|
|
96
|
-
- **Doc meta + stale dates** — owner and `last-reviewed` on
|
|
99
|
+
- **Doc meta + stale dates** — owner and `last-reviewed` on indexes and SSOT-bearing files
|
|
97
100
|
- **Prose policy** (optional plugins) — YAML pattern rules; idle with no plugins
|
|
98
101
|
- **Shell / JSON syntax** — lightweight checks on changed `.sh` and `.json` files
|
|
99
102
|
|
|
103
|
+
Agents skim `.skeleton/catalog.md` (generated, gitignored) before opening full papers.
|
|
104
|
+
|
|
100
105
|
Skeleton doesn't replace your code gates. Keep TypeScript, Python, Nx, pytest, and the rest in the repo that owns them.
|
|
101
106
|
|
|
102
107
|
## The `.skeleton/` contract
|