chore(init-claude): improve init-claude to scaffold a ready-to-use setup#95
Merged
chore(init-claude): improve init-claude to scaffold a ready-to-use setup#95
Conversation
There was a problem hiding this comment.
Pull request overview
This PR upgrades the init-claude CLI command to scaffold a ready-to-use QualOps setup (default config + prompt + Claude command) without interactive Q&A, and introduces JSON-schema validation for the generated config.
Changes:
- Add
--providerflag (anthropic/openai/bedrock) and generate provider-specific default config values. - Generate
.qualops/.qualopsrc.json,.qualops/prompts/review/quality.md, and.claude/commands/qualops-setup.mdduringinit-claude. - Add AJV-based config validation + unit tests for generation/validation behavior.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/cli/commands/init-claude-command.spec.ts | Adds unit tests covering config generation/validation and scaffolding outputs. |
| src/shared/utils/validate-config.ts | Introduces AJV-based JSON schema validation for config objects. |
| src/cli/commands/init-claude-command.ts | Implements default config/prompt generation and validates config prior to writing. |
| src/cli.ts | Adds --provider option wiring for init-claude. |
| package.json | Adds ajv and ajv-formats dependencies. |
| package-lock.json | Locks new AJV dependencies. |
| CHANGELOG.md | Documents the improved init-claude scaffolding and provider flag. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
QualOps Code Quality AnalysisStatus: ✅ PASSED - No issues found Summary
No issues found in the analyzed code. 📊 Full ReportPowered by QualOps |
0b1399c to
bbc633e
Compare
bbc633e to
e931673
Compare
73ca94e to
2c472bf
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2c472bf to
4402c57
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
init-claudenow generates a working default config, quality prompt, and Claude command out of the box — no interactive Q&A required--providerflag to select AI provider (anthropic, openai, bedrock) with sensible defaultsTest plan
🤖 Generated with Claude Code
See also: QUALOPS-12