feat: cforge-dev init — scaffold and maintain project documentation - #38
Merged
ermin-muratovic merged 1 commit intoApr 7, 2026
Conversation
Implements `cforge-dev init`: an interactive wizard that discovers existing context files (README.md, IDEA.md, ARCHITECTURE.md, MEMORANDUM.md, MILESTONES.md, CONTRIBUTING.md, CFORGE_DEV.md, docs/**/*.md), generates missing documentation from user answers and git-remote coordinates, and optionally scaffolds docs/decisions/ (ADRs) and docs/scenarios/ (SCEs). New files: - src/domain/interfaces/DocumentStore.ts — filesystem abstraction (clean arch) - src/application/dtos/InitProjectDto.ts — DTO + IdeaAnswers - src/application/use-cases/InitProject.ts — pure use case; exports CONTEXT_FILE_ORDER - src/infrastructure/filesystem/FileSystemDocumentStore.ts — concrete fs impl - src/cli/commands/init.ts — interactive CLI command - tests/application/InitProject.test.ts — 30 use-case unit tests (TDD) - tests/infrastructure/FileSystemDocumentStore.test.ts — 10 infra tests - tests/cli/commands/init.test.ts — 8 CLI tests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Automated implementation via cforge-dev --auto
cforge-dev init — scaffold and maintain project documentation
Issue
Closes #7
Implementation
All done. Here's a summary of what was implemented:
cforge-dev init— implementation summary246/246 tests passing on branch
feat/cforge-dev-init-scaffold-and-maintain-project-documentation.New files (10 total, 927 lines)
src/domain/interfaces/DocumentStore.tssrc/application/dtos/InitProjectDto.tsIdeaAnswersinterfaceCost
Claude session cost: $1.4148 (46 turns)