contentbit 0.2.0 → 0.4.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
@@ -1,19 +1,51 @@
1
1
  # contentbit
2
2
 
3
- CLI for [Content Blocks](https://contentbit.dev): validate documents, render them, and generate LLM authoring instructions from your registry.
3
+ CLI for [contentbit](https://contentbit.dev): initialize projects, validate
4
+ structured Markdown blocks, print ranked health reports, build internal-link
5
+ indexes, render content, and give LLMs live authoring instructions from your
6
+ registry.
7
+
8
+ Fast path:
4
9
 
5
10
  ```bash
6
- # scaffold Content Blocks into any project: deps, starter content,
7
- # a custom-block registry, and LLM authoring instructions
11
+ # scaffold packages, starter content, registry, renderer, scripts, and LLM-agent files
8
12
  pnpm dlx contentbit@latest init
9
13
 
10
- # validate — exits 1 with file:line:col diagnostics
11
- contentbit validate "content/**/*.md"
14
+ # run the generated validate script, including your custom registry
15
+ pnpm run content:check
16
+
17
+ # open the local read-only Studio dashboard
18
+ pnpm run studio
19
+
20
+ # inspect validation, links, and content-quality suggestions together
21
+ pnpm run content:doctor
22
+
23
+ # refresh AGENTS.md and Claude Code skills for LLM agents
24
+ contentbit agents
25
+ ```
26
+
27
+ Everyday commands:
28
+
29
+ ```bash
30
+ # exits 1 with file:line:col diagnostics and fix hints
31
+ contentbit validate "content/**/*.md" --registry ./blocks/registry.ts
32
+
33
+ # ranked repair plan: validation, links, thin sections, block-less long docs,
34
+ # and missing image alt text; add --json for agents/CI
35
+ contentbit doctor "content/**/*.md" --registry ./blocks/registry.ts
36
+
37
+ # local read-only web app for previews, stats, diagnostics, links, and keywords
38
+ contentbit studio "content/**/*.md" --registry ./blocks/registry.ts
39
+ contentbit studio "content/**/*.md" --registry ./blocks/registry.ts --no-open
12
40
 
13
41
  # structured JSON stats for one document: outline, word counts,
14
42
  # block census, links, validation summary — quick context for LLMs
15
43
  contentbit stats article.md
16
44
 
45
+ # internal-link graph from frontmatter slugs, aliases, and linksTo
46
+ contentbit links "content/**/*.md"
47
+ contentbit links "content/**/*.md" --fix
48
+
17
49
  # compact LLM context generated from the registry
18
50
  contentbit instructions --audience llm --out guide.md
19
51
 
@@ -21,6 +53,9 @@ contentbit instructions --audience llm --out guide.md
21
53
  contentbit render article.md --target html
22
54
  ```
23
55
 
24
- Point `--registry ./blocks/registry.mjs` at a module to add custom blocks.
56
+ Point `--registry ./blocks/registry.ts` at a module to add custom blocks.
57
+ LLM agents should read the same registry with `contentbit instructions`, write
58
+ plain Markdown with registered blocks, then run `contentbit validate` until it
59
+ exits 0.
25
60
 
26
61
  Docs: [contentbit.dev/docs](https://contentbit.dev/docs)