A document management framework powered by Claude Code that enables generating multiple document formats from a single source of truth.
"One content, any format" - Create content once and generate documents, slides, reports in any format through Claude Code's AI capabilities.
Content ร Scope ร Context = Any Document Format
- Content: Raw information and facts
- Scope: Document coverage range and depth
- Context: Target audience, purpose, usage scenario
- Basic CLI functionality with Claude Code integration
- Technical writing quality framework (Effectiveness, Efficiency, Satisfaction)
- Interactive command-line interface
- Content linting and quality assessment
- Project initialization (
ccdcc init) - Document generation (
ccdcc gen slides|report|doc) - Metadata management system
- Decision tracking and architectural logging
- Version control integration
- Diagram and chart generation
- Meta-analysis and self-improvement capabilities
- Multi-format output pipeline
- Node.js 18 or higher
- pnpm package manager
pnpm installpnpm run build# Ask Claude Code a question
ccdcc ask -p "Explain TypeScript interfaces"
# Interactive mode
ccdcc ask -i
# Start interactive session
ccdcc interactive
# Content quality check (planned)
ccdcc lint
# Show help
ccdcc --help-p, --prompt <text>- Prompt text to send to Claude Code-m, --max-turns <number>- Maximum conversation turns (default: 5)-i, --interactive- Enable interactive mode
# Direct question
ccdcc ask -p "How to optimize React components?"
# Interactive session with custom turn limit
ccdcc ask -i -m 10
# Quality check content (planned feature)
ccdcc lint content/technical-spec.mdCCDCC evaluates content across three dimensions:
- Clear and unambiguous expressions
- Concrete examples and details
- Prevention of misunderstandings
- Factual accuracy
- Logical structure and hierarchy
- Clear navigation paths
- Concise, non-redundant content
- Prioritized information presentation
- Appropriate vocabulary for target audience
- Consistent and polite tone
- Readable presentation format
- Visual organization and clarity
- Language: TypeScript with ESM modules
- Runtime: Node.js 18+
- Build Tool: Vite
- Package Manager: pnpm
- Code Quality: Biome (formatter + linter)
@anthropic-ai/claude-code- Claude Code SDK integrationcommander- CLI frameworkchalk- Terminal stylinginquirer- Interactive prompts
vite- Build tool and bundlertypescript- TypeScript compilerbiome- Code formatting and linting
# Start development server with watch mode
pnpm run dev
# Build for production
pnpm run build
# Run the built CLI
pnpm run start
# or directly
node dist/index.js
# Code quality checks
pnpm run check # Format, lint, and organize imports
pnpm run format # Format code only
pnpm run lint # Lint code only
pnpm run typecheck # Type checking onlysrc/
index.ts # Main CLI entry point
dist/
index.js # Built executable CLI
vite.config.ts # Vite build configuration
tsconfig.json # TypeScript configuration
CLAUDE.md # Claude Code project instructions
project/
โโโ .ccdcc/config.yaml # Project settings
โโโ content/raw/ # Raw content
โโโ content/refined/ # Linted content
โโโ metadata/scope.yaml # Scope definitions
โโโ metadata/context.yaml # Context definitions
โโโ decisions/*.log # Decision history
โโโ output/slides|reports|docs/ # Generated documents
- Self-hosting this repository
- Establish Source of Truth methodology
- Automated document generation pipeline
- Project initialization workflow
- Multi-format document generation
- Metadata management system
- Content validation and linting
- Version control integration
- Visual content generation
- Decision history tracking
- Meta-analysis and continuous improvement
The project follows an ESM module architecture with:
- Single Bundle Output:
dist/index.jswith shebang for direct execution - External Dependencies: CLI dependencies not bundled for smaller size
- ES2022 Target: Modern JavaScript features for Node.js 18+
- Type Safety: Full TypeScript coverage with strict configuration
CCDCC uses Biome with the following standards:
- Indentation: Tabs
- Quotes: Double quotes for JavaScript
- Import Organization: Automatic sorting and cleanup
- Node.js Protocol: Required for builtin modules (
node:path,node:fs) - Linting: Recommended rules with TypeScript support
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make changes following the code style guidelines
- Run quality checks:
pnpm run check - Build and test:
pnpm run build && node dist/index.js --help - Submit a pull request
MIT License - see LICENSE file for details.
CCDCC - Transforming how we create and manage technical documentation through AI-powered content generation.