Skip to content

fix(docs): label JavaScript blocks as JavaScript; Codex manifest says 25 skills - #677

Merged
addyosmani merged 1 commit into
addyosmani:mainfrom
ayobamiseun:fix/mislabelled-fences-and-codex-count
Oct 13, 2026
Merged

addyosmani merged 1 commit into
addyosmani:mainfrom
ayobamiseun:fix/mislabelled-fences-and-codex-count

Conversation

@ayobamiseun

Copy link
Copy Markdown
Contributor

Summary

Two small correctness fixes, found by scanning every fenced block in the repo by its declared language and checking each manifest's prose against the skills directory. These were the only mislabels and the only stale count.

Change

Three fences labelled bash that contain JavaScript.

  • skills/performance-optimization/SKILL.md, the Frontend measurement example (web-vitals import, onLCP/onINP/onCLS) and the Backend example (console.time around a query). Both become javascript with // comments; # is not a JavaScript comment, so the old blocks were not valid in either language.
  • references/performance-checklist.md, the measurement block, which mixed npx lighthouse / bundle-analysis commands with web-vitals code in one shell fence. Split into a bash fence for the four npx commands and a javascript fence for the code, at the point where the content switches.

Why it matters beyond highlighting: an agent that reads a bash block as something to run will try to execute import { onLCP } from 'web-vitals' in a shell. Content is unchanged line for line; only labels and comment markers change.

Codex manifest count. .codex-plugin/plugin.json still says "24 production engineering workflows". The pack has 25 skills and has since constraint-driven-development landed. The catalog-generation PR #548 does not touch this file.

Verification

node scripts/validate-skills.js          # 25 skills and 4 personas, 0 errors
node scripts/validate-reference-links.js # 25 skills, 0 errors
node scripts/validate-versions.js        # all manifests 0.6.12
node scripts/run-evals.js --min-rank1 95 # PASSED, rank-1 unchanged

Fence counts are even in both files, the manifest parses, and a re-scan finds no bash fence containing JavaScript anywhere in skills, references, docs, agents, or commands. #670 also edits performance-optimization/SKILL.md but at line 128; the hunks here are at 48 and 62, so they merge in either order.

… 25 skills

Three fenced blocks were labelled bash but hold JavaScript: the Frontend
and Backend measurement examples in performance-optimization (web-vitals
imports, console.time) and the measurement block in the performance
checklist, which mixed npx commands with web-vitals code in one shell
fence. An agent reading a bash block can try to run it in a shell, and
`#` is not a JavaScript comment. Relabel the two skill blocks as
javascript with // comments, and split the checklist block into a bash
fence for the npx commands and a javascript fence for the code. Content
is unchanged line for line.

The Codex manifest's longDescription still said 24 workflows; the pack
has had 25 skills since constraint-driven-development landed. Say 25.

Found by scanning every fenced block in the repo by declared language;
these were the only mislabels.

@addyosmani addyosmani left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: three real mislabels. I checked that each relabelled block is plain JavaScript and that nothing reads the fence language, and the Codex manifest was the last stale count of 24. Merging.

nitpick: the other JS fences in the repo use js and these use javascript. Not worth another round.

@addyosmani
addyosmani merged commit 4bcae53 into addyosmani:main Oct 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants