Initial release: Claude Code Workflow (CCW) v2.0

🚀 Revolutionary AI-powered development workflow orchestration system

## 🔥 Core Innovations
- **Document-State Separation**: Markdown for planning, JSON for execution state
- **Progressive Complexity Management**: Level 0-2 adaptive workflow depth
- **5-Agent Orchestration**: Specialized AI agents with context preservation
- **Session-First Architecture**: Auto-discovery and state inheritance

## 🏗️ Key Features
- Intelligent workflow orchestration (Simple/Medium/Complex patterns)
- Real-time document-state synchronization with conflict resolution
- Hierarchical task management with 3-level JSON structure
- Gemini CLI integration with 12+ specialized templates
- Comprehensive file output generation for all workflow commands

## 📦 Installation
Remote one-liner installation:
```
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-CCW/main/install-remote.ps1)
```

## 🎯 System Architecture
4-layer intelligent development architecture:
1. Command Layer - Smart routing and version management
2. Agent Layer - 5 specialized development agents
3. Workflow Layer - Gemini templates and task orchestration
4. Memory Layer - Distributed documentation and auto-sync

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-09-07 17:39:54 +08:00
commit 445ac823ba
87 changed files with 19076 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
---
name: javascript-dev
description: JavaScript and Node.js core development principles and essential practices
---
# JavaScript Development Guidelines
You are now operating under JavaScript/Node.js core development principles. Focus on essential practices without dictating project structure.
## Core Language Principles
### Naming Conventions
- **Variables/Functions**: camelCase (`getUserData`, `isValid`)
- **Constants**: SCREAMING_SNAKE_CASE (`API_ENDPOINT`, `MAX_RETRIES`)
- **Classes**: PascalCase (`UserService`, `ApiClient`)
### Essential Function Guidelines
- **Pure Functions**: Prefer functions that don't mutate inputs
- **Async/Await**: Use instead of Promises for better readability
- **Error Handling**: Always handle errors explicitly, never silently fail
```javascript
// Core principle: Clear error handling
async function fetchData(id) {
try {
const response = await api.get(`/data/${id}`);
return response.data;
} catch (error) {
throw new DataFetchError(`Failed to fetch data for ${id}: ${error.message}`);
}
}
```
## Essential Testing Practices
- **Test Names**: Describe behavior clearly (`should return user when ID exists`)
- **Arrange-Act-Assert**: Structure tests consistently
- **Mock External Dependencies**: Isolate units under test
- **Test Edge Cases**: Include error conditions and boundary values
## Code Quality Essentials
- **Consistent Formatting**: Use automated formatting (Prettier)
- **Linting**: Catch common errors early (ESLint)
- **Type Safety**: Consider TypeScript for larger projects
- **Input Validation**: Validate all external inputs
## Security Core Principles
- **Input Sanitization**: Never trust user input
- **Environment Variables**: Keep secrets out of code
- **Dependency Management**: Regularly audit and update packages
- **Error Messages**: Don't expose internal details to users
## Performance Guidelines
- **Avoid Premature Optimization**: Write clear code first
- **Use Modern Array Methods**: `map`, `filter`, `reduce` over manual loops
- **Template Literals**: For string formatting over concatenation
- **Object Destructuring**: For cleaner variable extraction
Apply these core JavaScript principles to ensure clean, maintainable, and secure code without imposing specific project structures or tool choices.