Skip to content

feat(rules): add npx codingbuddy CLI entry point#881

Merged
JeremyDev87 merged 2 commits intomasterfrom
feat/cli-entry-point-819
Mar 22, 2026
Merged

feat(rules): add npx codingbuddy CLI entry point#881
JeremyDev87 merged 2 commits intomasterfrom
feat/cli-entry-point-819

Conversation

@JeremyDev87
Copy link
Owner

Summary

  • Add bin field to packages/rules/package.json so npx codingbuddy-rules works as a global CLI
  • Create packages/rules/bin/cli.js with four subcommands:
    • codingbuddy init — stub pointing to feat: codingbuddy init — project initialization CLI #813
    • codingbuddy validate — validates .ai-rules structure (JSON + markdown)
    • codingbuddy list-agents — lists all 37 available specialist agents
    • codingbuddy --help / --version — usage and version info
  • Lightweight: zero external dependencies, uses only Node.js built-in modules (fs, path)

Test plan

  • node packages/rules/bin/cli.js --help shows usage
  • node packages/rules/bin/cli.js --version shows 4.5.0
  • node packages/rules/bin/cli.js validate passes all checks
  • node packages/rules/bin/cli.js list-agents lists 37 agents
  • node packages/rules/bin/cli.js init shows stub message
  • node packages/rules/bin/cli.js unknown exits with code 1
  • ajv-cli agent schema validation passes
  • markdownlint passes (0 errors)

Closes #819

- Add bin field to packages/rules/package.json mapping codingbuddy -> ./bin/cli.js
- Create bin/cli.js with subcommands: init, validate, list-agents, --help, --version
- validate checks agents JSON, rules markdown, schemas, keyword-modes
- list-agents reads and displays all agent definitions
- init stubbed with reference to #813
- Lightweight: uses only built-in Node.js modules (fs, path)

Closes #819
@JeremyDev87 JeremyDev87 added feat sub-issue 상위 이슈의 하위 작업 priority:should Should Have - 중요하지만 필수는 아님 labels Mar 22, 2026
@vercel
Copy link

vercel bot commented Mar 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Mar 22, 2026 1:03pm

@JeremyDev87 JeremyDev87 added sub-issue 상위 이슈의 하위 작업 priority:should Should Have - 중요하지만 필수는 아님 labels Mar 22, 2026
Include lockfile changes required by the new bin entry in
packages/rules/package.json to pass CI --immutable install.
@JeremyDev87 JeremyDev87 self-assigned this Mar 22, 2026
@JeremyDev87 JeremyDev87 merged commit 446d3b8 into master Mar 22, 2026
2 checks passed
@JeremyDev87 JeremyDev87 deleted the feat/cli-entry-point-819 branch March 22, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat priority:should Should Have - 중요하지만 필수는 아님 sub-issue 상위 이슈의 하위 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: npx codingbuddy global CLI entry point

1 participant