@friedbotstudio/create-baseline 0.2.0 → 0.2.1

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.
Files changed (28) hide show
  1. package/obj/template/.claude/skills/audit-baseline/audit.sh +11 -5
  2. package/obj/template/.claude/skills/google-analytics/SKILL.md +129 -0
  3. package/obj/template/.claude/skills/google-analytics/references/audiences.md +389 -0
  4. package/obj/template/.claude/skills/google-analytics/references/bigquery.md +470 -0
  5. package/obj/template/.claude/skills/google-analytics/references/custom-dimensions.md +355 -0
  6. package/obj/template/.claude/skills/google-analytics/references/custom-events.md +383 -0
  7. package/obj/template/.claude/skills/google-analytics/references/data-management.md +416 -0
  8. package/obj/template/.claude/skills/google-analytics/references/debugview.md +364 -0
  9. package/obj/template/.claude/skills/google-analytics/references/events-fundamentals.md +398 -0
  10. package/obj/template/.claude/skills/google-analytics/references/gtag.md +502 -0
  11. package/obj/template/.claude/skills/google-analytics/references/gtm-integration.md +483 -0
  12. package/obj/template/.claude/skills/google-analytics/references/measurement-protocol.md +519 -0
  13. package/obj/template/.claude/skills/google-analytics/references/privacy.md +441 -0
  14. package/obj/template/.claude/skills/google-analytics/references/recommended-events.md +464 -0
  15. package/obj/template/.claude/skills/google-analytics/references/reporting.md +397 -0
  16. package/obj/template/.claude/skills/google-analytics/references/setup.md +344 -0
  17. package/obj/template/.claude/skills/google-analytics/references/user-tracking.md +417 -0
  18. package/obj/template/.claude/skills/optimize-seo/SKILL.md +313 -0
  19. package/obj/template/.claude/skills/optimize-seo/scripts/pagespeed.mjs +197 -0
  20. package/obj/template/.claude/skills/pagespeed-insights/LICENSE.md +37 -0
  21. package/obj/template/.claude/skills/pagespeed-insights/SKILL.md +446 -0
  22. package/obj/template/.claude/skills/pagespeed-insights/reference.md +50 -0
  23. package/obj/template/CLAUDE.md +3 -3
  24. package/obj/template/docs/init/seed.md +2 -2
  25. package/obj/template/manifest.json +26 -5
  26. package/package.json +1 -1
  27. package/src/CLAUDE.template.md +3 -3
  28. package/src/seed.template.md +2 -2
@@ -576,9 +576,9 @@ Until `/init-project` runs, this section stays empty. Once populated, every fiel
576
576
 
577
577
  ## §17 — Skill provenance and the baseline manifest
578
578
 
579
- Every skill at `.claude/skills/<slug>/SKILL.md` SHALL declare ownership in its YAML frontmatter as `owner: baseline` or `owner: user`. Baseline-owned skills are those that ship with the baseline; user-owned skills are those a project adds locally. The build script `scripts/build-manifest.mjs` reads each `owner:` value at release time and emits the canonical baseline-skill set into `obj/template/manifest.json` under `owners.skills` (a JSON object mapping slug → `"baseline"`). The CLI mirrors this manifest verbatim to `<target>/.claude/.baseline-manifest.json` on `freshInstall`/`forceInstall`/`merge`.
579
+ A skill at `.claude/skills/<slug>/SKILL.md` is **baseline-owned** iff its YAML frontmatter declares `owner: baseline`. Baseline-owned skills are those that ship with the baseline; every other skill on disk — those without an `owner:` field, or those declaring `owner: user` — is user/third-party and out-of-scope of baseline audit checks. Absence-of-`owner` is the deliberate default so a project that already has its own skills can install the baseline without annotating any of those files. The build script `scripts/build-manifest.mjs` reads each `owner:` value at release time and emits the canonical baseline-skill set into `obj/template/manifest.json` under `owners.skills` (a JSON object mapping slug → `"baseline"`). The CLI mirrors this manifest verbatim to `<target>/.claude/.baseline-manifest.json` on `freshInstall`/`forceInstall`/`merge`.
580
580
 
581
- The audit at `.claude/skills/audit-baseline/audit.sh` consumes `manifest.owners.skills` as the canonical baseline-skill enumeration (replacing the previous hard-coded `EXPECTED_SKILLS` set). For every baseline-owned skill, the audit re-derives sha256 hashes from `manifest.files` and compares against on-disk content; a mismatch is reported as `hash mismatch at <path>` against the named slug. A baseline skill present in the manifest but absent from disk is reported as `baseline skill missing`. A SKILL.md missing the `owner:` field, or carrying an invalid value, is reported as `missing owner frontmatter` or `invalid owner=<value>`. User-owned skills (`owner: user`) are excluded from the baseline count and the names-match check, so adding a local skill does not break the audit.
581
+ The audit at `.claude/skills/audit-baseline/audit.sh` consumes `manifest.owners.skills` as the canonical baseline-skill enumeration (replacing the previous hard-coded `EXPECTED_SKILLS` set). For every baseline-owned skill, the audit re-derives sha256 hashes from `manifest.files` and compares against on-disk content; a mismatch is reported as `hash mismatch at <path>` against the named slug. A baseline skill present in the manifest but absent from disk is reported as `baseline skill missing`. A SKILL.md whose `owner:` field is present but carries an invalid value (anything other than `baseline` or `user`) is reported as `invalid owner=<value>`. SKILL.md files without an `owner:` field are treated as user/third-party and silently skipped — they are excluded from the baseline count, the names-match check, and the hash-drift check, so installing the baseline into a project that already has its own skills never breaks the audit.
582
582
 
583
583
  The audit also verifies constitutional citation: CLAUDE.md SHALL contain the literal string "Article XI" and a reference to the manifest, and `docs/init/seed.md` SHALL contain "§17" and a manifest reference. Missing citations trigger FAIL with `CLAUDE.md missing Article XI citation` or `seed.md missing §17 citation`.
584
584