claude-code-conductor 0.0.1
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 +201 -0
- package/README.md +72 -0
- package/conductor/archive/init_cli_setup_20260107/metadata.json +8 -0
- package/conductor/archive/init_cli_setup_20260107/plan.md +22 -0
- package/conductor/archive/init_cli_setup_20260107/spec.md +78 -0
- package/conductor/archive/npm_publish_20260107/metadata.json +8 -0
- package/conductor/archive/npm_publish_20260107/plan.md +18 -0
- package/conductor/archive/npm_publish_20260107/spec.md +34 -0
- package/conductor/code_styleguides/javascript.md +51 -0
- package/conductor/code_styleguides/typescript.md +43 -0
- package/conductor/product-guidelines.md +16 -0
- package/conductor/product.md +20 -0
- package/conductor/setup_state.json +1 -0
- package/conductor/tech-stack.md +19 -0
- package/conductor/tracks/rename_cli_20260107/metadata.json +8 -0
- package/conductor/tracks/rename_cli_20260107/plan.md +25 -0
- package/conductor/tracks/rename_cli_20260107/spec.md +25 -0
- package/conductor/tracks.md +11 -0
- package/conductor/workflow.md +333 -0
- package/dist/bin/claude-code-conductor.js +30 -0
- package/dist/bin/claude-conductor.js +30 -0
- package/dist/src/commands/implement.js +15 -0
- package/dist/src/commands/init.js +24 -0
- package/dist/src/commands/setup.js +30 -0
- package/dist/src/commands/status.js +15 -0
- package/dist/src/index.js +4 -0
- package/dist/src/services/CommandRegistrar.js +26 -0
- package/dist/src/services/FileGenerator.js +42 -0
- package/dist/src/services/ProjectDiscovery.js +48 -0
- package/dist/src/services/SetupWizard.js +40 -0
- package/package.json +52 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Claude Code Conductor
|
|
2
|
+
|
|
3
|
+
> A context-driven wrapper for Claude Code to enforce spec-driven development.
|
|
4
|
+
|
|
5
|
+
**Claude Code Conductor** is a CLI tool that wraps [Claude Code](https://docs.anthropic.com/claude/docs/claude-code) to provide a structured, context-aware development workflow. It ensures that every session starts with the correct context (`product.md`, `tech-stack.md`, `plan.md`) and enforces a disciplined "Spec -> Plan -> Implement" cycle.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- **Context Management:** Automatically loads relevant project documentation into Claude's context.
|
|
10
|
+
- **Track System:** Manages feature development through "Tracks" (`tracks.md`) with dedicated specs and plans.
|
|
11
|
+
- **Workflow Enforcement:** Guides users through the proper development lifecycle (Spec, Plan, Red, Green, Refactor).
|
|
12
|
+
- **Slash Command Integration:** Registers commands like `/conductor:setup`, `/conductor:implement`, and `/conductor:status` directly in Claude Code.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install -g claude-code-conductor
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
### 1. Initialize a Project
|
|
23
|
+
|
|
24
|
+
In your project root:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
claude-code-conductor setup
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
This will:
|
|
31
|
+
- Analyze your project.
|
|
32
|
+
- Create the `conductor/` directory.
|
|
33
|
+
- Generate `product.md`, `tech-stack.md`, etc.
|
|
34
|
+
|
|
35
|
+
### 2. Register Slash Commands
|
|
36
|
+
|
|
37
|
+
To use Conductor inside Claude Code:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
claude-code-conductor init
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
This registers `/conductor:setup`, `/conductor:implement`, etc., in your `.claude/commands/` directory.
|
|
44
|
+
|
|
45
|
+
### 3. Start a Track
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
claude-code-conductor implement
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Or inside Claude Code:
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
/conductor:implement
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Development
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Install dependencies
|
|
61
|
+
npm install
|
|
62
|
+
|
|
63
|
+
# Build
|
|
64
|
+
npm run build
|
|
65
|
+
|
|
66
|
+
# Run tests
|
|
67
|
+
npm test
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
ISC
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"track_id": "init_cli_setup_20260107",
|
|
3
|
+
"type": "feature",
|
|
4
|
+
"status": "new",
|
|
5
|
+
"created_at": "2026-01-07T00:00:00Z",
|
|
6
|
+
"updated_at": "2026-01-07T00:00:00Z",
|
|
7
|
+
"description": "Initialize the `claude-conductor` CLI project structure and implement the core `setup` command."
|
|
8
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Plan: Initialize CLI & Core Setup Command
|
|
2
|
+
|
|
3
|
+
## Phase 1: Project Scaffolding [checkpoint: 75b2125]
|
|
4
|
+
- [x] Task: Initialize npm project with `package.json` [1d8258b]
|
|
5
|
+
- [x] Task: Configure TypeScript (`tsconfig.json`) with strict mode [251aaf6]
|
|
6
|
+
- [x] Task: Configure ESLint and Prettier [14073fe]
|
|
7
|
+
- [x] Task: Create project directory structure (`bin`, `src`, `templates`) [7492835]
|
|
8
|
+
- [~] Task: Conductor - User Manual Verification 'Project Scaffolding' (Protocol in workflow.md)
|
|
9
|
+
|
|
10
|
+
## Phase 2: Core CLI Infrastructure [checkpoint: 76c4681]
|
|
11
|
+
- [x] Task: Install runtime dependencies (`commander`, `inquirer`, `chalk`, `ora`, `fs-extra`) [41c3df6]
|
|
12
|
+
- [x] Task: Create CLI entry point `bin/claude-conductor.ts` and verify execution [7520ce5]
|
|
13
|
+
- [x] Task: Implement basic `commander` program setup with version and help [46301a7]
|
|
14
|
+
- [x] Task: Conductor - User Manual Verification 'Core CLI Infrastructure' (Protocol in workflow.md) [76c4681]
|
|
15
|
+
|
|
16
|
+
## Phase 3: Project Discovery & Setup Wizard [checkpoint: 00d71fa]
|
|
17
|
+
- [x] Task: Implement `conductor:setup` command stub and registration [5c8675a]
|
|
18
|
+
- [x] Task: Implement `ProjectDiscovery` service (Greenfield/Brownfield detection logic) [8cae241]
|
|
19
|
+
- [x] Task: Implement `SetupWizard` class with interactive prompts for Product Definition [741c96f]
|
|
20
|
+
- [x] Task: Implement `FileGenerator` service to write `conductor/*.md` files [3d196f1]
|
|
21
|
+
- [x] Task: Integrate Discovery, Wizard, and Generator into `conductor:setup` command [0ab5605]
|
|
22
|
+
- [x] Task: Conductor - User Manual Verification 'Project Discovery & Setup Wizard' (Protocol in workflow.md) [00d71fa]
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Specification: Initialize CLI & Core Setup Command
|
|
2
|
+
|
|
3
|
+
## 1. Overview
|
|
4
|
+
This track establishes the foundation of the `claude-conductor` npm package. It covers project scaffolding, TypeScript configuration, CLI entry point creation, and the implementation of the primary `conductor:setup` command. This command is responsible for initializing new projects or "adopting" existing ones (Brownfield) into the Conductor workflow.
|
|
5
|
+
|
|
6
|
+
## 2. Requirements
|
|
7
|
+
|
|
8
|
+
### 2.1 Project Scaffolding
|
|
9
|
+
- **Package Manager:** `npm`
|
|
10
|
+
- **Language:** TypeScript (Strict mode enabled)
|
|
11
|
+
- **Linter:** ESLint (with TypeScript support)
|
|
12
|
+
- **Formatter:** Prettier
|
|
13
|
+
- **Directory Structure:**
|
|
14
|
+
- `bin/`: Executable entry points.
|
|
15
|
+
- `src/`: Source code.
|
|
16
|
+
- `conductor/`: Default templates (if applicable).
|
|
17
|
+
- `dist/`: Compiled output.
|
|
18
|
+
|
|
19
|
+
### 2.2 Core CLI Infrastructure
|
|
20
|
+
- **Dependencies:**
|
|
21
|
+
- `commander`: For command-line argument parsing.
|
|
22
|
+
- `inquirer`: For interactive command-line prompts.
|
|
23
|
+
- `chalk`: For terminal styling.
|
|
24
|
+
- `ora`: For loading spinners.
|
|
25
|
+
- `fs-extra`: For file system operations.
|
|
26
|
+
- **Entry Point:** `bin/claude-conductor.ts` (mapped to `bin` in `package.json`).
|
|
27
|
+
- **Execution:** The CLI should be executable via `npx claude-conductor` or globally installed.
|
|
28
|
+
|
|
29
|
+
### 2.3 Feature: Project Discovery
|
|
30
|
+
- **Logic:**
|
|
31
|
+
- Check for `.git` directory to detect version control.
|
|
32
|
+
- Check for `package.json`, `pom.xml`, etc., to detect "Brownfield" status.
|
|
33
|
+
- If no indicators are found, classify as "Greenfield".
|
|
34
|
+
- **Output:** Display the detected project status to the user.
|
|
35
|
+
|
|
36
|
+
### 2.4 Feature: Interactive Setup Wizard (`conductor:setup`)
|
|
37
|
+
- **Flow:**
|
|
38
|
+
1. **Welcome Message:** Display "Welcome to Conductor..."
|
|
39
|
+
2. **Project Discovery:** Run discovery logic (2.3).
|
|
40
|
+
3. **Brownfield Handling:**
|
|
41
|
+
- If Brownfield, warn about uncommitted changes.
|
|
42
|
+
- Ask for permission to scan.
|
|
43
|
+
4. **Product Definition:**
|
|
44
|
+
- Ask "What do you want to build?" (Greenfield) or analyze `README.md` (Brownfield).
|
|
45
|
+
- Generate `conductor/product.md`.
|
|
46
|
+
5. **Tech Stack:**
|
|
47
|
+
- Inquire about or detect the tech stack.
|
|
48
|
+
- Generate `conductor/tech-stack.md`.
|
|
49
|
+
6. **Product Guidelines:**
|
|
50
|
+
- Inquire about tone/style.
|
|
51
|
+
- Generate `conductor/product-guidelines.md`.
|
|
52
|
+
7. **Finalization:**
|
|
53
|
+
- Create `conductor/setup_state.json`.
|
|
54
|
+
- Summary of actions.
|
|
55
|
+
|
|
56
|
+
## 3. Implementation Details
|
|
57
|
+
|
|
58
|
+
### 3.1 `package.json` Scripts
|
|
59
|
+
- `build`: `tsc`
|
|
60
|
+
- `start`: `node dist/index.js`
|
|
61
|
+
- `dev`: `ts-node src/index.ts`
|
|
62
|
+
- `lint`: `eslint src/**/*.ts`
|
|
63
|
+
|
|
64
|
+
### 3.2 File Generation Templates
|
|
65
|
+
- The setup command should have embedded templates or write logic for:
|
|
66
|
+
- `conductor/product.md`
|
|
67
|
+
- `conductor/tech-stack.md`
|
|
68
|
+
- `conductor/product-guidelines.md`
|
|
69
|
+
- `conductor/setup_state.json`
|
|
70
|
+
|
|
71
|
+
## 4. Acceptance Criteria
|
|
72
|
+
- [ ] `npm install` installs all required dependencies.
|
|
73
|
+
- [ ] `npm run build` compiles TypeScript without errors.
|
|
74
|
+
- [ ] Running the CLI executable works.
|
|
75
|
+
- [ ] `conductor:setup` correctly identifies an empty folder as Greenfield.
|
|
76
|
+
- [ ] `conductor:setup` correctly identifies a folder with `package.json` as Brownfield.
|
|
77
|
+
- [ ] The setup wizard successfully generates all required markdown files in the `conductor/` directory.
|
|
78
|
+
- [ ] `conductor/setup_state.json` is created with the correct completion state.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"track_id": "npm_publish_20260107",
|
|
3
|
+
"type": "feature",
|
|
4
|
+
"status": "new",
|
|
5
|
+
"created_at": "2026-01-07T00:00:00Z",
|
|
6
|
+
"updated_at": "2026-01-07T00:00:00Z",
|
|
7
|
+
"description": "The project is going to be published on npm. When installed in the user's workspace, Claude Code is going to get more commands from the package. Make sure that happens before git pushing it."
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Plan: NPM Publication & Slash Command Registration
|
|
2
|
+
|
|
3
|
+
## Phase 1: NPM & CLI Configuration [checkpoint: 7daa017]
|
|
4
|
+
- [x] Task: Audit and update `package.json` metadata (bin, main, files) and dependencies [5a699a6]
|
|
5
|
+
- [x] Task: Implement `status` and `implement` command stubs in CLI to ensure targets exist [1e4a317]
|
|
6
|
+
- [x] Task: Conductor - User Manual Verification 'NPM & CLI Configuration' (Protocol in workflow.md) [7daa017]
|
|
7
|
+
- [ ] Task: Conductor - User Manual Verification 'NPM & CLI Configuration' (Protocol in workflow.md)
|
|
8
|
+
|
|
9
|
+
## Phase 2: Init Command Implementation [checkpoint: a096ea3]
|
|
10
|
+
- [x] Task: Create `init` command structure and register it in `bin/claude-conductor.ts` [e159a32]
|
|
11
|
+
- [x] Task: Implement `CommandRegistrar` service to handle `.claude/commands` directory detection and creation [67671a5]
|
|
12
|
+
- [x] Task: Implement logic to generate shell scripts/configs for `/conductor:*` commands [61005a6]
|
|
13
|
+
- [x] Task: Conductor - User Manual Verification 'Init Command Implementation' (Protocol in workflow.md) [a096ea3]
|
|
14
|
+
|
|
15
|
+
## Phase 3: Validation & Polish [checkpoint: 6ec0b1d]
|
|
16
|
+
- [x] Task: Verify `npm publish --dry-run` succeeds [f7890a3]
|
|
17
|
+
- [x] Task: End-to-end test: Run `init` and verify generated commands invoke the CLI correctly [236879e]
|
|
18
|
+
- [x] Task: Conductor - User Manual Verification 'Validation & Polish' (Protocol in workflow.md) [6ec0b1d]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Specification: NPM Publication & Slash Command Registration
|
|
2
|
+
|
|
3
|
+
## 1. Overview
|
|
4
|
+
This track prepares the `claude-conductor` package for NPM publication and implements a mechanism to register its functionalities as custom slash commands within the user's Claude Code environment. The goal is to allow users to install the package and easily set up commands like `/conductor:setup`, `/conductor:implement`, and `/conductor:status` to boost their workflow productivity.
|
|
5
|
+
|
|
6
|
+
## 2. Functional Requirements
|
|
7
|
+
|
|
8
|
+
### 2.1 NPM Configuration
|
|
9
|
+
- **Package Metadata:** Ensure `package.json` is correctly configured for publication (name, version, description, main, bin).
|
|
10
|
+
- **Executable Bin:** Verify `bin/claude-conductor.ts` is correctly mapped in `package.json` to be executable via `npx` or global install.
|
|
11
|
+
- **Dependencies:** Audit dependencies to ensure `devDependencies` and `dependencies` are correctly separated.
|
|
12
|
+
|
|
13
|
+
### 2.2 Command Registration (`init` command)
|
|
14
|
+
- **Trigger:** A new command `claude-conductor init` (or `npx claude-conductor init`) must be implemented.
|
|
15
|
+
- **Functionality:**
|
|
16
|
+
1. **Detection:** Detect the presence of the `.claude/commands` directory in the user's workspace.
|
|
17
|
+
2. **Creation:** If the directory does not exist, create it.
|
|
18
|
+
3. **Registration:** Generate executable scripts or configuration files within `.claude/commands/` that map to the underlying `claude-conductor` CLI.
|
|
19
|
+
- **Target Commands:**
|
|
20
|
+
- `/conductor:setup` -> calls `claude-conductor setup`
|
|
21
|
+
- `/conductor:implement` -> calls `claude-conductor implement` (placeholder if not yet implemented)
|
|
22
|
+
- `/conductor:status` -> calls `claude-conductor status` (placeholder if not yet implemented)
|
|
23
|
+
4. **Idempotency:** If the commands already exist, update them or skip gracefully (do not break existing configs).
|
|
24
|
+
5. **Output:** Inform the user which commands were registered and how to use them.
|
|
25
|
+
|
|
26
|
+
## 3. Non-Functional Requirements
|
|
27
|
+
- **Ease of Use:** The `init` process should be single-step and require minimal user intervention.
|
|
28
|
+
- **Safety:** Do not overwrite unrelated files in `.claude/commands`.
|
|
29
|
+
|
|
30
|
+
## 4. Acceptance Criteria
|
|
31
|
+
- [ ] `package.json` passes `npm publish --dry-run` checks.
|
|
32
|
+
- [ ] Running `npx claude-conductor init` creates/updates the `.claude/commands` directory.
|
|
33
|
+
- [ ] After running `init`, files exist in `.claude/commands` corresponding to `setup`, `implement`, and `status`.
|
|
34
|
+
- [ ] These generated commands successfully invoke the `claude-conductor` CLI.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Google JavaScript Style Guide Summary
|
|
2
|
+
|
|
3
|
+
This document summarizes key rules and best practices from the Google JavaScript Style Guide.
|
|
4
|
+
|
|
5
|
+
## 1. Source File Basics
|
|
6
|
+
- **File Naming:** All lowercase, with underscores (`_`) or dashes (`-`). Extension must be `.js`.
|
|
7
|
+
- **File Encoding:** UTF-8.
|
|
8
|
+
- **Whitespace:** Use only ASCII horizontal spaces (0x20). Tabs are forbidden for indentation.
|
|
9
|
+
|
|
10
|
+
## 2. Source File Structure
|
|
11
|
+
- New files should be ES modules (`import`/`export`).
|
|
12
|
+
- **Exports:** Use named exports (`export {MyClass};`). **Do not use default exports.**
|
|
13
|
+
- **Imports:** Do not use line-wrapped imports. The `.js` extension in import paths is mandatory.
|
|
14
|
+
|
|
15
|
+
## 3. Formatting
|
|
16
|
+
- **Braces:** Required for all control structures (`if`, `for`, `while`, etc.), even single-line blocks. Use K&R style ("Egyptian brackets").
|
|
17
|
+
- **Indentation:** +2 spaces for each new block.
|
|
18
|
+
- **Semicolons:** Every statement must be terminated with a semicolon.
|
|
19
|
+
- **Column Limit:** 80 characters.
|
|
20
|
+
- **Line-wrapping:** Indent continuation lines at least +4 spaces.
|
|
21
|
+
- **Whitespace:** Use single blank lines between methods. No trailing whitespace.
|
|
22
|
+
|
|
23
|
+
## 4. Language Features
|
|
24
|
+
- **Variable Declarations:** Use `const` by default, `let` if reassignment is needed. **`var` is forbidden.**
|
|
25
|
+
- **Array Literals:** Use trailing commas. Do not use the `Array` constructor.
|
|
26
|
+
- **Object Literals:** Use trailing commas and shorthand properties. Do not use the `Object` constructor.
|
|
27
|
+
- **Classes:** Do not use JavaScript getter/setter properties (`get name()`). Provide ordinary methods instead.
|
|
28
|
+
- **Functions:** Prefer arrow functions for nested functions to preserve `this` context.
|
|
29
|
+
- **String Literals:** Use single quotes (`'`). Use template literals (`` ` ``) for multi-line strings or complex interpolation.
|
|
30
|
+
- **Control Structures:** Prefer `for-of` loops. `for-in` loops should only be used on dict-style objects.
|
|
31
|
+
- **`this`:** Only use `this` in class constructors, methods, or in arrow functions defined within them.
|
|
32
|
+
- **Equality Checks:** Always use identity operators (`===` / `!==`).
|
|
33
|
+
|
|
34
|
+
## 5. Disallowed Features
|
|
35
|
+
- `with` keyword.
|
|
36
|
+
- `eval()` or `Function(...string)`.
|
|
37
|
+
- Automatic Semicolon Insertion.
|
|
38
|
+
- Modifying builtin objects (`Array.prototype.foo = ...`).
|
|
39
|
+
|
|
40
|
+
## 6. Naming
|
|
41
|
+
- **Classes:** `UpperCamelCase`.
|
|
42
|
+
- **Methods & Functions:** `lowerCamelCase`.
|
|
43
|
+
- **Constants:** `CONSTANT_CASE` (all uppercase with underscores).
|
|
44
|
+
- **Non-constant Fields & Variables:** `lowerCamelCase`.
|
|
45
|
+
|
|
46
|
+
## 7. JSDoc
|
|
47
|
+
- JSDoc is used on all classes, fields, and methods.
|
|
48
|
+
- Use `@param`, `@return`, `@override`, `@deprecated`.
|
|
49
|
+
- Type annotations are enclosed in braces (e.g., `/** @param {string} userName */`).
|
|
50
|
+
|
|
51
|
+
*Source: [Google JavaScript Style Guide](https://google.github.io/styleguide/jsguide.html)*
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Google TypeScript Style Guide Summary
|
|
2
|
+
|
|
3
|
+
This document summarizes key rules and best practices from the Google TypeScript Style Guide, which is enforced by the `gts` tool.
|
|
4
|
+
|
|
5
|
+
## 1. Language Features
|
|
6
|
+
- **Variable Declarations:** Always use `const` or `let`. **`var` is forbidden.** Use `const` by default.
|
|
7
|
+
- **Modules:** Use ES6 modules (`import`/`export`). **Do not use `namespace`.**
|
|
8
|
+
- **Exports:** Use named exports (`export {MyClass};`). **Do not use default exports.**
|
|
9
|
+
- **Classes:**
|
|
10
|
+
- **Do not use `#private` fields.** Use TypeScript's `private` visibility modifier.
|
|
11
|
+
- Mark properties never reassigned outside the constructor with `readonly`.
|
|
12
|
+
- **Never use the `public` modifier** (it's the default). Restrict visibility with `private` or `protected` where possible.
|
|
13
|
+
- **Functions:** Prefer function declarations for named functions. Use arrow functions for anonymous functions/callbacks.
|
|
14
|
+
- **String Literals:** Use single quotes (`'`). Use template literals (`` ` ``) for interpolation and multi-line strings.
|
|
15
|
+
- **Equality Checks:** Always use triple equals (`===`) and not equals (`!==`).
|
|
16
|
+
- **Type Assertions:** **Avoid type assertions (`x as SomeType`) and non-nullability assertions (`y!`)**. If you must use them, provide a clear justification.
|
|
17
|
+
|
|
18
|
+
## 2. Disallowed Features
|
|
19
|
+
- **`any` Type:** **Avoid `any`**. Prefer `unknown` or a more specific type.
|
|
20
|
+
- **Wrapper Objects:** Do not instantiate `String`, `Boolean`, or `Number` wrapper classes.
|
|
21
|
+
- **Automatic Semicolon Insertion (ASI):** Do not rely on it. **Explicitly end all statements with a semicolon.**
|
|
22
|
+
- **`const enum`:** Do not use `const enum`. Use plain `enum` instead.
|
|
23
|
+
- **`eval()` and `Function(...string)`:** Forbidden.
|
|
24
|
+
|
|
25
|
+
## 3. Naming
|
|
26
|
+
- **`UpperCamelCase`:** For classes, interfaces, types, enums, and decorators.
|
|
27
|
+
- **`lowerCamelCase`:** For variables, parameters, functions, methods, and properties.
|
|
28
|
+
- **`CONSTANT_CASE`:** For global constant values, including enum values.
|
|
29
|
+
- **`_` Prefix/Suffix:** **Do not use `_` as a prefix or suffix** for identifiers, including for private properties.
|
|
30
|
+
|
|
31
|
+
## 4. Type System
|
|
32
|
+
- **Type Inference:** Rely on type inference for simple, obvious types. Be explicit for complex types.
|
|
33
|
+
- **`undefined` and `null`:** Both are supported. Be consistent within your project.
|
|
34
|
+
- **Optional vs. `|undefined`:** Prefer optional parameters and fields (`?`) over adding `|undefined` to the type.
|
|
35
|
+
- **`Array<T>` Type:** Use `T[]` for simple types. Use `Array<T>` for more complex union types (e.g., `Array<string | number>`).
|
|
36
|
+
- **`{}` Type:** **Do not use `{}`**. Prefer `unknown`, `Record<string, unknown>`, or `object`.
|
|
37
|
+
|
|
38
|
+
## 5. Comments and Documentation
|
|
39
|
+
- **JSDoc:** Use `/** JSDoc */` for documentation, `//` for implementation comments.
|
|
40
|
+
- **Redundancy:** **Do not declare types in `@param` or `@return` blocks** (e.g., `/** @param {string} user */`). This is redundant in TypeScript.
|
|
41
|
+
- **Add Information:** Comments must add information, not just restate the code.
|
|
42
|
+
|
|
43
|
+
*Source: [Google TypeScript Style Guide](https://google.github.io/styleguide/tsguide.html)*
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Product Guidelines: Claude Code Conductor
|
|
2
|
+
|
|
3
|
+
## Prose & Tone
|
|
4
|
+
- **Tone:** Professional, Minimalist, Direct.
|
|
5
|
+
- **Voice:** The CLI should speak as a tool, not a person. Avoid "I will..." or "Let's...". Use imperative verbs (e.g., "Analyzing project...", "Generating plan...").
|
|
6
|
+
- **Verbosity:** Concise. Provide only essential information. Success messages should be brief. Errors should be actionable.
|
|
7
|
+
|
|
8
|
+
## Visual Identity (CLI)
|
|
9
|
+
- **Formatting:** Use standard ANSI colors for status indicators (Green=Success, Yellow=Warning, Red=Error).
|
|
10
|
+
- **Structure:** Use whitespace effectively to separate distinct sections of output.
|
|
11
|
+
- **Decorations:** Minimal. Avoid excessive emojis or ASCII art. Use standard loading spinners for long-running processes.
|
|
12
|
+
|
|
13
|
+
## Interaction Patterns
|
|
14
|
+
- **Input:** Default to "Yes/No" or numeric selection for multiple choices.
|
|
15
|
+
- **Defaults:** Always provide sensible defaults for prompts (displayed in brackets, e.g., `[Y/n]`).
|
|
16
|
+
- **Confirmation:** Require explicit confirmation for destructive actions.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Product Guide: Claude Code Conductor
|
|
2
|
+
|
|
3
|
+
## Initial Concept
|
|
4
|
+
Create an npm package for Claude code to be a wrapper around Claude code. Make it be exactly like Gemini cli conductor. Research multiple websites and sources before building.
|
|
5
|
+
|
|
6
|
+
## Product Vision
|
|
7
|
+
To provide a structured, context-driven development workflow for Claude Code users, mirroring the functionality of the Gemini CLI Conductor. This tool will act as a project manager, ensuring AI agents adhere to consistent documentation and plans.
|
|
8
|
+
|
|
9
|
+
## Core Features
|
|
10
|
+
- **Project Initialization:** Interactive wizard to classify projects (Greenfield/Brownfield) and set up the `conductor/` directory structure.
|
|
11
|
+
- **Command Integration:** Automated registration of `conductor` commands (`setup`, `implement`, `status`) as native slash commands in the Claude Code environment.
|
|
12
|
+
- **Context Management:** Automated generation and maintenance of `product.md`, `tech-stack.md`, and `product-guidelines.md`.
|
|
13
|
+
- **Track System:** A "Tracks" based workflow (`tracks.md`) to manage feature development.
|
|
14
|
+
- **Planning Engine:** Automated generation of detailed `plan.md` and `spec.md` files for each track.
|
|
15
|
+
- **CLI Wrapper:** A unified CLI command (e.g., `claude-code-conductor`) that wraps the underlying Claude Code execution.
|
|
16
|
+
|
|
17
|
+
## User Experience
|
|
18
|
+
- **Interactive Mode:** CLI prompts for setup and decision-making.
|
|
19
|
+
- **Automated Execution:** "Implement" mode to execute plans step-by-step.
|
|
20
|
+
- **Transparency:** All context and state are stored in readable Markdown/JSON files within the user's project.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"last_successful_step": "3.3_initial_track_generated"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Tech Stack: Claude Code Conductor
|
|
2
|
+
|
|
3
|
+
## Core Runtime
|
|
4
|
+
- **Language:** TypeScript
|
|
5
|
+
- **Runtime:** Node.js
|
|
6
|
+
- **Package Manager:** npm
|
|
7
|
+
|
|
8
|
+
## CLI Framework
|
|
9
|
+
- **Library:** Commander.js
|
|
10
|
+
- **Interactivity:** Inquirer.js
|
|
11
|
+
- **Styling:** Chalk (for terminal coloring), Ora (for spinners)
|
|
12
|
+
|
|
13
|
+
## Integration
|
|
14
|
+
- **AI Engine:** Claude Code (via `claude` CLI execution)
|
|
15
|
+
- **Context Storage:** Markdown (`.md`) and JSON (`.json`) files
|
|
16
|
+
|
|
17
|
+
## Testing
|
|
18
|
+
- **Framework:** Jest
|
|
19
|
+
- **Runner:** ts-jest
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Implementation Plan - Rename to Claude Code Conductor
|
|
2
|
+
|
|
3
|
+
## Phase 1: Package Identity Update [checkpoint: 28105d0]
|
|
4
|
+
- [x] Task: Update Package Configuration 0249499
|
|
5
|
+
- [ ] Sub-task: Create a test that reads `package.json` and asserts name is `claude-code-conductor` (Red)
|
|
6
|
+
- [ ] Sub-task: Update `package.json` name, description, and bin entry (Green)
|
|
7
|
+
- [ ] Sub-task: Update `package-lock.json` (Green)
|
|
8
|
+
- [ ] Task: Conductor - User Manual Verification 'Phase 1: Package Identity Update' (Protocol in workflow.md)
|
|
9
|
+
|
|
10
|
+
## Phase 2: CLI & Source Code Refactor [checkpoint: de93efc]
|
|
11
|
+
- [x] Task: Rename Binary Entry Point 24daa4a
|
|
12
|
+
- [ ] Sub-task: Rename `bin/claude-conductor.ts` to `bin/claude-code-conductor.ts`
|
|
13
|
+
- [ ] Sub-task: Verify `tsconfig.json` includes the new bin path (it uses glob `bin/**/*` so it should be fine, but verification is needed)
|
|
14
|
+
- [x] Task: Update CLI Output & Strings ab559a1
|
|
15
|
+
- [ ] Sub-task: Update existing tests to expect "Claude Code Conductor" in help/version output (Red)
|
|
16
|
+
- [ ] Sub-task: Search and replace user-facing strings in `src/` (Green)
|
|
17
|
+
- [ ] Sub-task: Verify all tests pass (Refactor)
|
|
18
|
+
- [ ] Task: Conductor - User Manual Verification 'Phase 2: CLI & Source Code Refactor' (Protocol in workflow.md)
|
|
19
|
+
|
|
20
|
+
## Phase 3: Documentation Updates [checkpoint: cb23914]
|
|
21
|
+
- [x] Task: Update Project Documentation d62274d
|
|
22
|
+
- [ ] Sub-task: Update `README.md` with new command usage
|
|
23
|
+
- [ ] Sub-task: Update `conductor/` files (`product.md`, `tech-stack.md`)
|
|
24
|
+
- [ ] Sub-task: Update `CLAUDE.md` and `QUICKSTART.md` if applicable
|
|
25
|
+
- [ ] Task: Conductor - User Manual Verification 'Phase 3: Documentation Updates' (Protocol in workflow.md)
|