skill-check 0.1.1 → 1.1.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 CHANGED
@@ -4,9 +4,6 @@ Linter for agent skill files — validates SKILL.md files against the spec with
4
4
 
5
5
  ![skill-check demo](docs/assets/skill-check-demo.gif)
6
6
 
7
- Regenerate with `pnpm run demo:readme` (source: `scripts/readme-demo.tape`).
8
- The demo runs `npx skill-check .` from repo root and auto-detects skills in tool directories such as `.agents`.
9
-
10
7
  ## Install
11
8
 
12
9
  ```bash
@@ -30,14 +27,15 @@ brew install skill-check
30
27
 
31
28
  | Command | Description |
32
29
  |---|---|
33
- | `skill-check [path]` | Shorthand for `skill-check check [path]` |
34
- | `skill-check check [path]` | Run validation (and optional security scan) |
30
+ | `skill-check [path\|github-url]` | Shorthand for `skill-check check [path\|github-url]` |
31
+ | `skill-check check [path\|github-url]` | Run validation (and optional security scan) |
32
+ | `skill-check split-body [path]` | Preview/apply section-based body split into `references/*.md` |
35
33
  | `skill-check new <name>` | Scaffold a new skill directory with SKILL.md template |
36
- | `skill-check watch [path]` | Watch for changes and re-run validation on save |
34
+ | `skill-check watch [path]` | Watch local paths for changes and re-run validation on save |
37
35
  | `skill-check diff <a> <b>` | Compare diagnostics between two skill directories |
38
- | `skill-check report [path]` | Generate a markdown health report |
36
+ | `skill-check report [path\|github-url]` | Generate a markdown health report |
39
37
  | `skill-check rules [id]` | List all rules, or show detail for a specific rule |
40
- | `skill-check security-scan [path]` | Run security scan via agent-scan (mcp-scan) |
38
+ | `skill-check security-scan [path\|github-url]` | Run security scan via agent-scan (mcp-scan) |
41
39
  | `skill-check init` | Create `skill-check.config.json` template |
42
40
 
43
41
  ### check options
@@ -48,8 +46,11 @@ brew install skill-check
48
46
  | `--fix --interactive` | Prompt before applying each fix (TTY only) |
49
47
  | `--baseline <path>` | Compare against a previous JSON run and show new/fixed counts |
50
48
  | `--format <fmt>` | Output format (see below) |
49
+ | `--share` | Render a share card (text format only) |
50
+ | `--share-out <path>` | Save a share image file (default: `./skill-check-share.png`) |
51
51
  | `--no-open` | Skip auto-opening HTML reports |
52
52
  | `--no-security-scan` | Skip the security scan |
53
+ | `--security-scan-verbose` | Show full raw `agent-scan` output (default is compact summary) |
53
54
  | `--strict` | Treat warnings as errors |
54
55
  | `--lenient` | Relax selected strict rules |
55
56
  | `--fail-on-warning` | Exit non-zero when warnings exist |
@@ -68,7 +69,7 @@ brew install skill-check
68
69
 
69
70
  **View locally:** `npx skill-check . --format html` or open the file directly: `open skill-check-report.html` (macOS).
70
71
 
71
- The `text` formatter includes quality score bars per skill, colorized severity badges, and boxed summaries.
72
+ The `text` formatter includes quality score bars per skill, colorized severity badges, and a share-friendly shield card with the exact runnable `npx skill-check ...` command (including GitHub URL targets when used).
72
73
  An ASCII CLI banner is shown in interactive text mode; set `SKILL_CHECK_NO_BANNER=1` to disable it.
73
74
 
74
75
  ## Quality Scores
@@ -140,6 +141,7 @@ npx skill-check check ~/.claude/skills
140
141
  `check` runs the security scan by default.
141
142
  If dependencies are missing, `skill-check` automatically installs scanner dependencies by default.
142
143
  Use `--no-installs` to hard-block automatic installs.
144
+ By default, `skill-check` prints a compact security summary; use `--security-scan-verbose` for full scanner details.
143
145
 
144
146
  Run security scan without UV by forcing `pipx`:
145
147
 
@@ -195,12 +197,39 @@ Use GitHub annotations in CI:
195
197
  npx skill-check check . --format github --no-security-scan
196
198
  ```
197
199
 
200
+ Generate a screenshot-friendly social summary card:
201
+
202
+ ```bash
203
+ npx skill-check https://github.com/thedaviddias/skill-check --share --no-security-scan
204
+ ```
205
+
206
+ By default this also writes `skill-check-share.png` in your current directory.
207
+ Set a custom output path with `--share-out path/to/card.png`.
208
+
198
209
  Hard-block dependency installs:
199
210
 
200
211
  ```bash
201
212
  npx skill-check check . --no-installs
202
213
  ```
203
214
 
215
+ ## Remote GitHub URLs
216
+
217
+ `skill-check` supports scanning GitHub repos directly without a manual clone:
218
+
219
+ ```bash
220
+ npx skill-check https://github.com/thedaviddias/skill-check --no-security-scan
221
+ npx skill-check https://github.com/thedaviddias/skill-check/tree/main/skills --no-security-scan
222
+ ```
223
+
224
+ Remote URL scanning behavior:
225
+
226
+ - Creates an ephemeral shallow clone (`git clone --depth 1`) in a temp directory.
227
+ - Cleans up the checkout automatically after the command finishes.
228
+ - Shows remote preparation progress on stderr (spinner in TTY, `[remote]` status lines in non-TTY/CI).
229
+ - Keeps security scan enabled by default (same as local path behavior).
230
+ - Does not support `--fix` for URL targets (read-only workflow).
231
+ - `watch` and `diff` are local-path only in this version.
232
+
204
233
  ## Auto-fix Coverage
205
234
 
206
235
  `--fix` currently handles deterministic formatting/metadata issues:
@@ -219,6 +248,30 @@ Rules requiring human intent (content quality, max-length trimming, broken links
219
248
 
220
249
  Use `--fix --interactive` for per-diagnostic approval prompts (requires TTY).
221
250
 
251
+ ## Split Oversized Skill Bodies
252
+
253
+ When `body.max_lines` fails, use `split-body` to extract `##` sections into `references/*.md`.
254
+
255
+ Preview first (no writes):
256
+
257
+ ```bash
258
+ npx skill-check split-body <skill-dir-or-file>
259
+ ```
260
+
261
+ Apply changes:
262
+
263
+ ```bash
264
+ npx skill-check split-body <skill-dir-or-file> --write
265
+ ```
266
+
267
+ Notes:
268
+
269
+ - Split is deterministic and section-based (`##` headings).
270
+ - If a long body has no `##` headings, the command reports a blocked plan and explains what to add.
271
+ - `split-body` is local-path only (no GitHub URL mutation flow in v1).
272
+ - After writing, run `npx skill-check check <skill-dir-or-file> --no-security-scan`.
273
+ - For editorial cleanup, use `docs/skills/split-into-references/SKILL.md` or [the published copy](https://github.com/thedaviddias/skill-check/blob/main/docs/skills/split-into-references/SKILL.md).
274
+
222
275
  ## GitHub Action
223
276
 
224
277
  Use `skill-check` directly in workflows:
@@ -2,4 +2,5 @@ export interface CliIO {
2
2
  stdout: (text: string) => void;
3
3
  stderr: (text: string) => void;
4
4
  }
5
+ export declare function normalizeRootCommandArgs(argv: string[]): string[];
5
6
  export declare function runCli(argv: string[], io?: CliIO): Promise<number>;