Skip to content

add --skill flag and include claude skill in chad init#177

Merged
cs01 merged 2 commits intomainfrom
feat/skill-flag
Mar 10, 2026
Merged

add --skill flag and include claude skill in chad init#177
cs01 merged 2 commits intomainfrom
feat/skill-flag

Conversation

@cs01
Copy link
Owner

@cs01 cs01 commented Mar 10, 2026

Summary

  • Add chad --skill flag that prints a Claude Code SKILL.md to stdout (for existing projects)
  • chad init now also creates .claude/skills/chadscript/SKILL.md (for new projects)
  • Skill content lives in lib/skill.md, embedded at compile time in the native binary via ChadScript.embedFile()
  • Skill covers CLI usage, supported TS features, built-ins, file embedding, and key differences from Node.js

Test plan

  • chad --skill prints skill content to stdout
  • chad --skill > file.md redirect works
  • chad init creates .claude/skills/chadscript/SKILL.md with correct directory structure
  • chad init skips skill file if already exists
  • chad --help shows --skill flag
  • all compiler tests pass

@cs01 cs01 merged commit c96dbc7 into main Mar 10, 2026
12 checks passed
@cs01 cs01 deleted the feat/skill-flag branch March 10, 2026 05:23
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.

1 participant