claude-code-team 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Али
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # CCT - Claude Code Team
2
+
3
+ Orchestrate multiple Claude sessions to work on complex tasks in parallel.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g cct-cli
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Create new project
14
+
15
+ ```bash
16
+ cct init my-project
17
+ cd my-project
18
+ claude --dangerously-skip-permissions
19
+ ```
20
+
21
+ ### Initialize in existing folder
22
+
23
+ ```bash
24
+ cd existing-project
25
+ cct init .
26
+ claude --dangerously-skip-permissions
27
+ ```
28
+
29
+ ### Give orchestrator a task
30
+
31
+ ```
32
+ > Create a web service for generating startup ideas...
33
+ ```
34
+
35
+ The orchestrator will:
36
+ 1. Ask clarifying questions
37
+ 2. Create worker sessions (specialists)
38
+ 3. Delegate tasks to workers
39
+ 4. Coordinate and aggregate results
40
+
41
+ ## Project Structure
42
+
43
+ After `cct init`:
44
+ ```
45
+ my-project/
46
+ ├── CLAUDE.md # Orchestrator (reads this automatically)
47
+ └── features/ # Agent & skill templates
48
+ ```
49
+
50
+ After orchestrator runs:
51
+ ```
52
+ my-project/
53
+ ├── CLAUDE.md
54
+ ├── features/
55
+ ├── .sessions/ # Session IDs for Q&A
56
+ ├── .outputs/ # Worker results
57
+ ├── .context/
58
+ │ └── project.md # Shared project context
59
+ ├── workers/
60
+ │ └── backend_worker/
61
+ │ └── CLAUDE.md # Worker identity
62
+ ├── backend/ # Actual code (written by workers)
63
+ └── frontend/
64
+ ```
65
+
66
+ ## How It Works
67
+
68
+ 1. **Orchestrator** reads CLAUDE.md and understands its role
69
+ 2. **Orchestrator** creates workers (separate Claude sessions)
70
+ 3. **Workers** execute tasks and write results to `.outputs/`
71
+ 4. **Orchestrator** aggregates results and responds to user
72
+
73
+ ## License
74
+
75
+ MIT
package/bin/cct.js ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { init } = require('../lib/init');
4
+
5
+ const args = process.argv.slice(2);
6
+ const command = args[0];
7
+
8
+ if (command === 'init') {
9
+ const name = args[1] || '.';
10
+ init(name);
11
+ } else if (command === '--help' || command === '-h' || !command) {
12
+ console.log(`
13
+ CCT - Claude Code Team
14
+
15
+ Usage:
16
+ cct init <name> Create new CCT project
17
+ cct init . Initialize in current folder
18
+ cct --help Show this help
19
+
20
+ Example:
21
+ cct init my-startup
22
+ cd my-startup
23
+ claude --dangerously-skip-permissions
24
+ `);
25
+ } else {
26
+ console.error(`Unknown command: ${command}`);
27
+ console.log('Run "cct --help" for usage');
28
+ process.exit(1);
29
+ }
package/lib/init.js ADDED
@@ -0,0 +1,53 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ function init(name) {
5
+ const targetDir = name === '.' ? process.cwd() : path.join(process.cwd(), name);
6
+ const templatesDir = path.join(__dirname, '..', 'templates');
7
+
8
+ // Create directory if not exists
9
+ if (name !== '.' && !fs.existsSync(targetDir)) {
10
+ fs.mkdirSync(targetDir, { recursive: true });
11
+ }
12
+
13
+ // Create features folder
14
+ const featuresDir = path.join(targetDir, 'features');
15
+ if (!fs.existsSync(featuresDir)) {
16
+ fs.mkdirSync(featuresDir, { recursive: true });
17
+ }
18
+
19
+ // Copy CLAUDE.md (orchestrator)
20
+ const orchestratorSrc = path.join(templatesDir, 'orchestrator.md');
21
+ const orchestratorDest = path.join(targetDir, 'CLAUDE.md');
22
+
23
+ if (fs.existsSync(orchestratorSrc)) {
24
+ fs.copyFileSync(orchestratorSrc, orchestratorDest);
25
+ }
26
+
27
+ // Copy all feature files
28
+ const featureFiles = ['agents.md', 'skills.md', 'commands.md', 'mcps.md', 'TEMPLATE.md'];
29
+ for (const file of featureFiles) {
30
+ const src = path.join(templatesDir, file);
31
+ const dest = path.join(featuresDir, file);
32
+ if (fs.existsSync(src)) {
33
+ fs.copyFileSync(src, dest);
34
+ }
35
+ }
36
+
37
+ const displayPath = name === '.' ? 'current directory' : name;
38
+ console.log(`
39
+ ✅ CCT project initialized: ${displayPath}
40
+
41
+ Created:
42
+ CLAUDE.md - Orchestrator instructions
43
+ features/ - Agent & skill templates
44
+
45
+ Next steps:
46
+ ${name !== '.' ? `cd ${name}` : ''}
47
+ claude --dangerously-skip-permissions
48
+
49
+ Then give the orchestrator a task!
50
+ `);
51
+ }
52
+
53
+ module.exports = { init };
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "claude-code-team",
3
+ "version": "0.1.0",
4
+ "description": "Claude Code Team - orchestrate multiple Claude sessions",
5
+ "bin": {
6
+ "cct": "./bin/cct.js"
7
+ },
8
+ "files": [
9
+ "bin",
10
+ "lib",
11
+ "templates"
12
+ ],
13
+ "keywords": [
14
+ "claude",
15
+ "ai",
16
+ "orchestrator",
17
+ "agents",
18
+ "cli"
19
+ ],
20
+ "author": "",
21
+ "license": "MIT",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/USER/cct.git"
25
+ }
26
+ }
@@ -0,0 +1,50 @@
1
+ # Feature: [Название]
2
+
3
+ > Шаблон для создания новых features.
4
+ > Удали этот блок при создании реального feature.
5
+
6
+ ## Требования (от Business Analytics)
7
+
8
+ ### Бизнес-задачи
9
+
10
+ 1. [Что должен решать]
11
+ 2. [Какую ценность приносит]
12
+
13
+ ### Ожидаемые результаты
14
+
15
+ - [Что должен выдавать]
16
+
17
+ ### Ограничения
18
+
19
+ - [Что НЕ должен делать]
20
+
21
+ ## Инструменты (от Tech Lead)
22
+
23
+ ### MCP Серверы
24
+
25
+ - [mcp-server-name]: [для чего]
26
+
27
+ ### Skills
28
+
29
+ - [skill-name]: [для чего]
30
+
31
+ ### Библиотеки/Зависимости
32
+
33
+ - [library]: [версия]
34
+
35
+ ## Когда использовать
36
+
37
+ - [Сценарий 1]
38
+ - [Сценарий 2]
39
+
40
+ ## Кто может назначить
41
+
42
+ - Team Leads: для своих разрабов
43
+ - Tech Lead: для Team Leads
44
+
45
+ ## Статус
46
+
47
+ - [ ] Требования от BA
48
+ - [ ] Создан Tech Lead
49
+ - [ ] Подтверждён CCT Lead
50
+ - [ ] Подтверждён User
@@ -0,0 +1,50 @@
1
+ npx claude-code-templates@latest --agent=development-team/frontend-developer --yes
2
+
3
+ npx claude-code-templates@latest --agent=development-tools/code-reviewer --yes
4
+
5
+ npx claude-code-templates@latest --agent=development-team/backend-architect --yes
6
+
7
+ npx claude-code-templates@latest --agent=performance-testing/react-performance-optimization --yes
8
+
9
+ npx claude-code-templates@latest --agent=development-team/ui-ux-designer --yes
10
+
11
+ npx claude-code-templates@latest --agent=development-team/fullstack-developer --yes
12
+
13
+ npx claude-code-templates@latest --agent=database/database-optimization --yes
14
+
15
+ npx claude-code-templates@latest --agent=programming-languages/typescript-pro --yes
16
+
17
+ npx claude-code-templates@latest --agent=programming-languages/python-pro --yes
18
+
19
+ npx claude-code-templates@latest --agent=database/database-architect --yes
20
+
21
+ npx claude-code-templates@latest --agent=expert-advisors/architect-review --yes
22
+
23
+ npx claude-code-templates@latest --agent=development-team/devops-engineer --yes
24
+
25
+ npx claude-code-templates@latest --agent=deep-research-team/technical-researcher --yes
26
+
27
+ npx claude-code-templates@latest --agent=database/database-optimizer --yes
28
+
29
+ npx claude-code-templates@latest --agent=programming-languages/sql-pro --yes
30
+
31
+ npx claude-code-templates@latest --agent=business-marketing/business-analyst --yes
32
+
33
+ npx claude-code-templates@latest --agent=deep-research-team/data-analyst --yes
34
+
35
+ npx claude-code-templates@latest --agent=deep-research-team/research-orchestrator --yes
36
+
37
+ npx claude-code-templates@latest --agent=web-tools/react-performance-optimizer --yes
38
+
39
+
40
+ npx claude-code-templates@latest --agent=devops-infrastructure/monitoring-specialist --yes
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
@@ -0,0 +1,29 @@
1
+ npx claude-code-templates@latest --command=utilities/ultra-think --yes
2
+
3
+ npx claude-code-templates@latest --command=documentation/create-architecture-documentation --yes
4
+
5
+ npx claude-code-templates@latest --command=documentation/update-docs --yes
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
@@ -0,0 +1,32 @@
1
+ npx claude-code-templates@latest --mcp=devtools/context7 --yes
2
+
3
+ npx claude-code-templates@latest --mcp=browser_automation/playwright-mcp-server --yes
4
+
5
+ npx claude-code-templates@latest --mcp=deepgraph/deepgraph-react --yes
6
+
7
+ npx claude-code-templates@latest --mcp=web/web-fetch --yes
8
+
9
+ npx claude-code-templates@latest --mcp=devtools/chrome-devtools --yes
10
+
11
+ npx claude-code-templates@latest --mcp=browser_automation/playwright-mcp --yes
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
@@ -0,0 +1,184 @@
1
+ # CCT Orchestrator
2
+
3
+ You are an orchestrator managing a team of AI workers.
4
+
5
+ ## First Run Setup
6
+
7
+ ```bash
8
+ mkdir -p .sessions .outputs .context
9
+ echo "YOUR_SESSION_ID" > .sessions/orchestrator.id
10
+ ```
11
+
12
+ ## Important Rules
13
+
14
+ ### YOU DO NOT WRITE CODE
15
+ - You are a coordinator, not a coder
16
+ - Only WORKERS write code
17
+ - Your job: plan, delegate, coordinate, aggregate results
18
+
19
+ ### Launching Workers
20
+ - Create worker folders in `workers/<name>_worker/`
21
+ - **Launch each worker FROM THEIR FOLDER** (cd into it first)
22
+ - Workers write their output to `.outputs/`
23
+
24
+ ### Before Creating Workers
25
+ - **Always clarify task with USER first** — ask questions to fill gaps
26
+ - Decompose complex tasks into clear subtasks
27
+ - Define precise scope for each worker
28
+ - Write project context to `.context/project.md`
29
+
30
+ ### If Instruction Is Vague, Ask USER:
31
+ - What exact output is expected?
32
+ - What constraints?
33
+ - What priorities?
34
+
35
+ ## Project Context
36
+
37
+ Write and maintain `.context/project.md`:
38
+ ```bash
39
+ cat > .context/project.md << 'EOF'
40
+ # Project Context
41
+
42
+ ## Goal
43
+ <what we're building>
44
+
45
+ ## User Requirements
46
+ <what user asked for>
47
+
48
+ ## Constraints
49
+ <limitations, requirements>
50
+
51
+ ## Current Status
52
+ <what's done, what's in progress>
53
+
54
+ ## Definitions
55
+ <terms, concepts workers should know>
56
+ EOF
57
+ ```
58
+
59
+ - You write and update this file
60
+ - Workers read it before starting and to refresh context
61
+ - Single source of truth
62
+
63
+ ## Creating a Worker
64
+
65
+ ### 1. Choose Specialist from Templates
66
+
67
+ Read `features/` folder:
68
+ - `agents.md` — agent templates
69
+ - `skills.md` — skill templates
70
+
71
+ ### 2. Create Folder and CLAUDE.md
72
+
73
+ ```bash
74
+ mkdir -p workers/<name>_worker
75
+ ```
76
+
77
+ Worker's CLAUDE.md defines WHO THEY ARE:
78
+ ```markdown
79
+ # <Role Name>
80
+
81
+ You are a <specialist description>.
82
+
83
+ ## Your Competencies
84
+ - ...
85
+
86
+ ## How You Work
87
+ 1. Read .context/project.md first
88
+ 2. Do your task
89
+ 3. Save result to .outputs/<name>.md
90
+
91
+ ## If Something Is Unclear
92
+
93
+ Ask orchestrator and WAIT for answer:
94
+ \`\`\`bash
95
+ ORCH_ID=$(cat .sessions/orchestrator.id)
96
+ claude --dangerously-skip-permissions -r "$ORCH_ID" --print -p "QUESTION|<name>|<your question>"
97
+ \`\`\`
98
+
99
+ ## When You Finish
100
+
101
+ \`\`\`bash
102
+ ORCH_ID=$(cat .sessions/orchestrator.id)
103
+ claude --dangerously-skip-permissions -r "$ORCH_ID" --print -p "DONE|<name>|.outputs/<name>.md"
104
+ \`\`\`
105
+ ```
106
+
107
+ ### 3. Launch Worker and Save Session ID
108
+
109
+ ```bash
110
+ WORKER_ID=$(uuidgen)
111
+
112
+ # Save worker session ID for Q&A
113
+ echo "$WORKER_ID" > .sessions/<name>_worker.id
114
+
115
+ # Launch
116
+ claude --dangerously-skip-permissions \
117
+ --session-id "$WORKER_ID" \
118
+ --print \
119
+ -p "TASK: <specific assignment>" \
120
+ > .outputs/<name>.md 2>&1 &
121
+ ```
122
+
123
+ ## Q&A Protocol
124
+
125
+ ### Worker Asks Question
126
+ ```
127
+ Worker: claude -r <orch-id> -p "QUESTION|name|what is X?"
128
+ ```
129
+
130
+ ### You Answer Worker
131
+ ```bash
132
+ WORKER_ID=$(cat .sessions/<name>_worker.id)
133
+ claude --dangerously-skip-permissions -r "$WORKER_ID" --print -p "ANSWER: X is ..."
134
+ ```
135
+
136
+ ## Message Protocol
137
+
138
+ | Message | From | Meaning |
139
+ |---------|------|---------|
140
+ | `DONE\|name\|path` | Worker | Finished, result at path |
141
+ | `QUESTION\|name\|text` | Worker | Needs clarification |
142
+ | `ERROR\|name\|text` | Worker | Error occurred |
143
+ | `ANSWER: ...` | You | Answer to worker question |
144
+
145
+ ## Workflow
146
+
147
+ ```
148
+ 1. User gives task
149
+
150
+ 2. ASK USER clarifying questions
151
+
152
+ 3. Write .context/project.md
153
+
154
+ 4. Create workers (CLAUDE.md = who they are)
155
+
156
+ 5. Launch with task, save session IDs
157
+
158
+ 6. Handle QUESTION messages → send ANSWER
159
+
160
+ 7. Wait for DONE messages
161
+
162
+ 8. Read .outputs/, aggregate
163
+
164
+ 9. Update .context/project.md if needed
165
+
166
+ 10. Respond to user
167
+ ```
168
+
169
+ ## Structure
170
+
171
+ ```
172
+ <project>/
173
+ ├── CLAUDE.md # You (orchestrator)
174
+ ├── features/ # Agent/skill templates
175
+ ├── .sessions/
176
+ │ ├── orchestrator.id # Your session ID
177
+ │ └── <name>_worker.id # Worker IDs (for Q&A)
178
+ ├── .outputs/ # Worker results
179
+ ├── .context/
180
+ │ └── project.md # Project context (you maintain)
181
+ └── workers/
182
+ └── <name>_worker/
183
+ └── CLAUDE.md # Who they are
184
+ ```
@@ -0,0 +1,35 @@
1
+ npx claude-code-templates@latest --skill=development/webapp-testing --yes
2
+
3
+
4
+ npx claude-code-templates@latest --skill=creative-design/frontend-design --yes
5
+
6
+ npx claude-code-templates@latest --skill=development/senior-frontend --yes
7
+
8
+ npx claude-code-templates@latest --skill=development/senior-backend --yes
9
+
10
+ npx claude-code-templates@latest --skill=development/senior-architect --yes
11
+
12
+ npx claude-code-templates@latest --skill=development/senior-data-engineer --yes
13
+
14
+ npx claude-code-templates@latest --skill=creative-design/ui-design-system --yes
15
+
16
+ npx claude-code-templates@latest --skill=development/brainstorming --yes
17
+
18
+ npx claude-code-templates@latest --skill=business-marketing/cto-advisor --yes
19
+
20
+ npx claude-code-templates@latest --skill=development/systematic-debugging --yes
21
+
22
+ npx claude-code-templates@latest --skill=development/senior-qa --yes
23
+
24
+ npx claude-code-templates@latest --skill=business-marketing/ceo-advisor --yes
25
+
26
+ npx claude-code-templates@latest --skill=development/senior-ml-engineer --yes
27
+
28
+ npx claude-code-templates@latest --skill=ai-research/agents-langchain --yes
29
+
30
+ npx claude-code-templates@latest --skill=development/skill-development --yes
31
+
32
+
33
+
34
+
35
+