@claudetools/cli 0.12.0 → 0.13.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/README.md ADDED
@@ -0,0 +1,423 @@
1
+ # ClaudeTools CLI
2
+
3
+ A command-line toolkit for AI-assisted project onboarding and documentation generation. ClaudeTools automatically detects your tech stack, generates comprehensive documentation, and creates context files that help AI agents like Claude Code understand your codebase.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @claudetools/cli
9
+ ```
10
+
11
+ **Requirements:**
12
+ - Node.js 18.0.0 or higher
13
+ - Optional: [Claude CLI](https://claude.ai/cli) for AI-powered analysis
14
+ - Optional: mcp-cli for Context7 documentation fetching
15
+
16
+ ## Quick Start
17
+
18
+ ```bash
19
+ # Navigate to your project
20
+ cd my-project
21
+
22
+ # Run the onboarding wizard
23
+ claudetools onboard
24
+ ```
25
+
26
+ That's it. ClaudeTools will analyze your project, ask a few questions, and generate everything needed for AI-assisted development.
27
+
28
+ ## Commands
29
+
30
+ ### `claudetools onboard`
31
+
32
+ The primary command. Runs a 4-phase onboarding workflow that analyzes your project and generates comprehensive AI context.
33
+
34
+ ```bash
35
+ claudetools onboard [options]
36
+ ```
37
+
38
+ **Options:**
39
+
40
+ | Flag | Description |
41
+ |------|-------------|
42
+ | `-r, --refresh` | Re-fetch and regenerate all documentation |
43
+ | `--skip-docs` | Skip documentation generation (faster) |
44
+ | `--verbose` | Show detailed output |
45
+ | `--no-update` | Skip auto-update check |
46
+
47
+ **Examples:**
48
+
49
+ ```bash
50
+ # Standard onboarding
51
+ claudetools onboard
52
+
53
+ # Refresh existing documentation
54
+ claudetools onboard --refresh
55
+
56
+ # Quick run without docs
57
+ claudetools onboard --skip-docs
58
+ ```
59
+
60
+ ### `claudetools init`
61
+
62
+ Minimal setup that creates the `.claude/` directory structure without the full onboarding process.
63
+
64
+ ```bash
65
+ claudetools init
66
+ ```
67
+
68
+ ### `claudetools cleanup`
69
+
70
+ Removes legacy configuration files from previous versions.
71
+
72
+ ```bash
73
+ claudetools cleanup
74
+ ```
75
+
76
+ ### Global Options
77
+
78
+ ```bash
79
+ claudetools --version # Show version and check for updates
80
+ claudetools --help # Show help message
81
+ ```
82
+
83
+ ## How It Works
84
+
85
+ ### Phase 1: Stack Detection
86
+
87
+ ClaudeTools scans your project for manifest files and automatically detects:
88
+
89
+ - **Package Managers:** npm, pnpm, yarn, bun, pip, poetry, go modules, cargo
90
+ - **Frameworks:** React, Vue, Next.js, Nuxt, Astro, Express, FastAPI, NestJS, and 25+ more
91
+ - **Libraries:** Database (Prisma, Drizzle), State Management (Zustand, Redux), UI Components (Radix, shadcn/ui), and 40+ categories
92
+ - **Dev Tools:** TypeScript, ESLint, Prettier, Vitest, Jest, Playwright
93
+
94
+ **Supported manifest files:**
95
+ - `package.json` (JavaScript/TypeScript)
96
+ - `requirements.txt`, `pyproject.toml` (Python)
97
+ - `go.mod` (Go)
98
+ - `Cargo.toml` (Rust)
99
+
100
+ ### Phase 2: Quick Questions
101
+
102
+ An interactive prompt gathers context about your project:
103
+
104
+ 1. **"What do you want to build?"** — Brief project description
105
+ 2. **"What are you working on right now?"** — Current focus area
106
+ 3. **"Anything else Claude should know?"** — Additional context
107
+
108
+ For new/empty projects, additional questions include:
109
+ - Project type selection (Web App, API, CLI, Library, Full-stack)
110
+ - AI-generated follow-up questions tailored to your project
111
+
112
+ All questions are optional (except project description for new projects). Press Enter to skip.
113
+
114
+ ### Phase 3: AI Analysis & Proposal
115
+
116
+ If the Claude CLI is installed, ClaudeTools uses it to:
117
+
118
+ 1. **Analyze your codebase** and generate a stack summary
119
+ 2. **Propose a configuration** including frameworks, libraries, architecture
120
+ 3. **Accept feedback** and refine the proposal iteratively
121
+
122
+ For new/empty projects, it will:
123
+ - Recommend a complete tech stack based on your description
124
+ - Offer to scaffold the project (create `package.json`, install dependencies)
125
+
126
+ **Approval workflow:**
127
+ ```
128
+ ┌─ Proposed Configuration ────────────────
129
+
130
+ │ A task management CLI with local storage
131
+
132
+ │ Frameworks: commander, ink
133
+ │ Libraries: chalk, conf, ora
134
+ │ Dev Tools: typescript, vitest, tsup
135
+ │ Architecture: CLI with command pattern
136
+
137
+ │ Recommendations:
138
+ │ • Use commander for argument parsing
139
+ │ • Store data in ~/.config with conf
140
+ │ • Add --json flag for scriptability
141
+
142
+ └──────────────────────────────────────────
143
+
144
+ ? How does this look?
145
+ ❯ Looks good, proceed
146
+ I have feedback
147
+ Skip AI analysis
148
+ ```
149
+
150
+ ### Phase 4: Documentation Generation
151
+
152
+ ClaudeTools generates comprehensive documentation:
153
+
154
+ 1. **Fetches official docs** via Context7 MCP for all detected libraries
155
+ 2. **Creates organized documentation** in `.claudetools/docs/`
156
+ 3. **Generates AGENTS.md** — the primary AI context file
157
+
158
+ ## Output Structure
159
+
160
+ After running `claudetools onboard`, your project will have:
161
+
162
+ ```
163
+ project-root/
164
+ ├── AGENTS.md # Primary AI context file
165
+ ├── .claude/
166
+ │ └── CLAUDE.md # Pointer to AGENTS.md
167
+ └── .claudetools/
168
+ └── docs/
169
+ ├── index.md # Documentation hub
170
+ ├── architecture/
171
+ │ ├── index.md
172
+ │ ├── system-design.md
173
+ │ ├── data-flow.md
174
+ │ └── components.md
175
+ ├── api/
176
+ │ ├── index.md
177
+ │ └── endpoints.md
178
+ ├── guides/
179
+ │ ├── getting-started.md
180
+ │ ├── development.md
181
+ │ └── contributing.md
182
+ ├── reference/
183
+ │ ├── configuration.md
184
+ │ └── environment.md
185
+ ├── patterns/
186
+ │ ├── coding-standards.md
187
+ │ └── naming-conventions.md
188
+ ├── testing/
189
+ │ └── strategy.md
190
+ ├── deployment/
191
+ │ └── environments.md
192
+ └── libraries/
193
+ ├── index.md
194
+ ├── react.md # Framework-specific docs
195
+ └── [library].md # Library-specific docs
196
+ ```
197
+
198
+ ### AGENTS.md
199
+
200
+ The primary AI context file contains:
201
+
202
+ - **Project Overview:** Name, description, and key technologies
203
+ - **Stack Summary:** Detected frameworks, libraries, and dev tools
204
+ - **Directory Structure:** Project tree (up to 4 levels)
205
+ - **Entry Points:** Main files and their purposes
206
+ - **Conventions:** Detected coding patterns and standards
207
+ - **Documentation Links:** References to generated docs
208
+
209
+ This file is designed to be read by AI agents at the start of a session to understand your project quickly.
210
+
211
+ ## New Project Support
212
+
213
+ ClaudeTools fully supports empty/new projects:
214
+
215
+ ```bash
216
+ mkdir my-new-project
217
+ cd my-new-project
218
+ claudetools onboard
219
+ ```
220
+
221
+ **For new projects, ClaudeTools will:**
222
+
223
+ 1. Ask what you want to build (required)
224
+ 2. Ask the project type (web, api, cli, library, fullstack)
225
+ 3. Generate AI-powered follow-up questions specific to your project
226
+ 4. Recommend a complete tech stack
227
+ 5. Offer to scaffold the project:
228
+ - Create `package.json` with recommended dependencies
229
+ - Detect and use your preferred package manager (pnpm, bun, yarn, npm)
230
+ - Install dependencies automatically
231
+ 6. Generate AGENTS.md with the proposed configuration
232
+
233
+ **Example flow:**
234
+
235
+ ```
236
+ ▸ Phase 1/4: Stack Detection
237
+ ℹ New project - let's set it up
238
+
239
+ ▸ Phase 2/4: Quick Questions
240
+
241
+ ┌─ Quick Context ───────────────────────
242
+
243
+ │ New project setup
244
+ │ Tell us what you want to build.
245
+
246
+ └──────────────────────────────────────────
247
+
248
+ ? What do you want to build? A REST API for managing bookmarks
249
+ ? What type of project? API/Backend (Express/Fastify)
250
+ ? What are you working on right now? Setting up the project structure
251
+
252
+ ┌─ A few more questions ─────────────────
253
+
254
+ │ These will help tailor the stack.
255
+
256
+ └──────────────────────────────────────────
257
+
258
+ ? Which database will you use? PostgreSQL
259
+ ? Do you need user authentication? Yes, JWT-based
260
+
261
+ ▸ Phase 3/4: AI Analysis
262
+ ✓ Approved
263
+ ? Create package.json and install dependencies? Yes
264
+ ✓ Scaffolded with pnpm
265
+
266
+ ▸ Phase 4/4: Building Documentation
267
+ ✓ Generated 12 docs
268
+ ✓ Created AGENTS.md
269
+ ```
270
+
271
+ ## Configuration
272
+
273
+ ### Environment Variables
274
+
275
+ | Variable | Description |
276
+ |----------|-------------|
277
+ | `CLAUDETOOLS_NO_UPDATE` | Set to `1` to disable auto-update checks |
278
+
279
+ ### Auto-Updates
280
+
281
+ ClaudeTools checks for updates automatically and prompts to upgrade when a new version is available. Disable with:
282
+
283
+ ```bash
284
+ # Per-command
285
+ claudetools onboard --no-update
286
+
287
+ # Permanently
288
+ export CLAUDETOOLS_NO_UPDATE=1
289
+ ```
290
+
291
+ ## Integration with Claude Code
292
+
293
+ ClaudeTools generates files specifically designed for Claude Code:
294
+
295
+ 1. **AGENTS.md** — Placed in project root, automatically read by Claude Code
296
+ 2. **.claude/CLAUDE.md** — Points to AGENTS.md, follows Claude Code conventions
297
+ 3. **Documentation structure** — Organized for easy AI navigation
298
+
299
+ When you start a Claude Code session, it will automatically have context about:
300
+ - Your tech stack and dependencies
301
+ - Project structure and entry points
302
+ - Coding conventions and patterns
303
+ - Links to relevant documentation
304
+
305
+ ## Context7 Integration
306
+
307
+ ClaudeTools integrates with [Context7](https://context7.com) to fetch up-to-date documentation for your dependencies. When available, it will:
308
+
309
+ 1. Resolve library names to Context7 IDs
310
+ 2. Fetch official documentation, best practices, and examples
311
+ 3. Generate markdown files in `.claudetools/docs/libraries/`
312
+
313
+ This requires `mcp-cli` to be configured with Context7 access.
314
+
315
+ ## Supported Technologies
316
+
317
+ ### Frameworks (25+)
318
+
319
+ | Category | Frameworks |
320
+ |----------|------------|
321
+ | Frontend | React, Vue, Svelte, Angular, Solid |
322
+ | Backend | Express, Fastify, Hono, NestJS, Koa |
323
+ | Full-stack | Next.js, Nuxt, Astro, Remix, SvelteKit |
324
+ | Mobile | React Native, Expo |
325
+ | Desktop | Electron, Tauri |
326
+
327
+ ### Libraries (40+ categories)
328
+
329
+ | Category | Examples |
330
+ |----------|----------|
331
+ | Database | Prisma, Drizzle, Mongoose, TypeORM |
332
+ | State Management | Zustand, Redux, Jotai, MobX |
333
+ | Validation | Zod, Yup, Joi, Valibot |
334
+ | Authentication | Lucia, NextAuth, Clerk |
335
+ | UI Components | Radix, shadcn/ui, Headless UI |
336
+ | Styling | Tailwind CSS, Emotion, styled-components |
337
+ | HTTP Clients | Axios, ky, got |
338
+ | Testing | Vitest, Jest, Playwright, Cypress |
339
+
340
+ ### Dev Tools
341
+
342
+ | Category | Tools |
343
+ |----------|-------|
344
+ | Type Checking | TypeScript |
345
+ | Linting | ESLint, Biome |
346
+ | Formatting | Prettier, Biome |
347
+ | Bundling | Vite, Webpack, esbuild, tsup |
348
+ | Testing | Vitest, Jest, Playwright |
349
+
350
+ ## Troubleshooting
351
+
352
+ ### "Claude CLI not available"
353
+
354
+ The AI analysis features require Claude CLI. Install it from [claude.ai/cli](https://claude.ai/cli).
355
+
356
+ Without Claude CLI, ClaudeTools will:
357
+ - Still detect your stack automatically
358
+ - Skip AI-powered proposal generation
359
+ - Generate documentation based on detected dependencies
360
+
361
+ ### "No project files detected"
362
+
363
+ This message appears for empty directories. ClaudeTools now supports new project setup — just answer the questions and it will recommend and scaffold a stack for you.
364
+
365
+ ### Documentation not generating
366
+
367
+ Ensure you have:
368
+ 1. `mcp-cli` installed and configured
369
+ 2. Context7 MCP server accessible
370
+ 3. Network connectivity
371
+
372
+ Use `--verbose` to see detailed output:
373
+
374
+ ```bash
375
+ claudetools onboard --verbose
376
+ ```
377
+
378
+ ### Refreshing stale documentation
379
+
380
+ If your dependencies have changed:
381
+
382
+ ```bash
383
+ claudetools onboard --refresh
384
+ ```
385
+
386
+ This will re-fetch all documentation and regenerate AGENTS.md.
387
+
388
+ ## Uninstalling
389
+
390
+ ```bash
391
+ npm uninstall -g @claudetools/cli
392
+ ```
393
+
394
+ To remove generated files from a project:
395
+
396
+ ```bash
397
+ rm -rf AGENTS.md .claude .claudetools
398
+ ```
399
+
400
+ ## Contributing
401
+
402
+ ClaudeTools is part of a monorepo. To contribute:
403
+
404
+ ```bash
405
+ git clone https://github.com/claudetools/claudetools
406
+ cd claudetools
407
+ pnpm install
408
+ pnpm dev
409
+ ```
410
+
411
+ Run tests:
412
+
413
+ ```bash
414
+ pnpm test
415
+ ```
416
+
417
+ ## License
418
+
419
+ MIT
420
+
421
+ ---
422
+
423
+ **Built for AI-assisted development.** ClaudeTools reduces the friction of onboarding AI agents to your codebase by automatically generating comprehensive context files.
@@ -4,10 +4,34 @@ import type { OnboardingAnswers } from './questions.js';
4
4
  * Check if Claude CLI is available
5
5
  */
6
6
  export declare function isClaudeCliAvailable(): boolean;
7
+ /**
8
+ * Run Claude analysis with a custom prompt
9
+ * Returns the raw response or null on failure
10
+ */
11
+ export declare function runClaudeAnalysis(projectPath: string, prompt: string, timeout?: number): Promise<string | null>;
7
12
  /**
8
13
  * Use Claude to analyze the codebase and generate onboarding answers
9
14
  */
10
15
  export declare function analyzeWithClaude(projectPath: string, stack: StackInfo): Promise<OnboardingAnswers>;
16
+ export interface DynamicQuestion {
17
+ id: string;
18
+ question: string;
19
+ type: 'text' | 'select' | 'confirm';
20
+ options?: Array<{
21
+ title: string;
22
+ value: string;
23
+ }>;
24
+ why?: string;
25
+ }
26
+ /**
27
+ * Generate dynamic follow-up questions based on initial context
28
+ */
29
+ export declare function generateDynamicQuestions(projectPath: string, context: {
30
+ projectDescription?: string;
31
+ projectType?: string;
32
+ mainGoal?: string;
33
+ isNewProject: boolean;
34
+ }): Promise<DynamicQuestion[]>;
11
35
  /**
12
36
  * Use Claude to generate comprehensive documentation
13
37
  */
@@ -1 +1 @@
1
- {"version":3,"file":"claude-inference.d.ts","sourceRoot":"","sources":["../../src/onboard/claude-inference.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAO9C;AAuFD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,SAAS,GACf,OAAO,CA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IAClB,YAAY,EAAE,OAAO,CAAC;CACvB,GACA,OAAO,CAAC,eAAe,EAAE,CAAC,CAwD5B;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,UAAU,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,GAChE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAgDxB"}
@@ -54,6 +54,18 @@ async function runClaudeHeadless(prompt, workingDir, options = {}) {
54
54
  });
55
55
  });
56
56
  }
57
+ /**
58
+ * Run Claude analysis with a custom prompt
59
+ * Returns the raw response or null on failure
60
+ */
61
+ export async function runClaudeAnalysis(projectPath, prompt, timeout = 60000) {
62
+ try {
63
+ return await runClaudeHeadless(prompt, projectPath, { timeout });
64
+ }
65
+ catch {
66
+ return null;
67
+ }
68
+ }
57
69
  /**
58
70
  * Get a sample of key files for context
59
71
  */
@@ -133,6 +145,64 @@ Respond ONLY with valid JSON, no explanation.`;
133
145
  }
134
146
  return {};
135
147
  }
148
+ /**
149
+ * Generate dynamic follow-up questions based on initial context
150
+ */
151
+ export async function generateDynamicQuestions(projectPath, context) {
152
+ const prompt = `Based on the user's project context, generate 2-4 clarifying questions that would help you recommend the best tech stack and architecture.
153
+
154
+ User context:
155
+ - Description: "${context.projectDescription || 'Not provided'}"
156
+ - Project type: ${context.projectType || 'Not specified'}
157
+ - Current focus: ${context.mainGoal || 'Not specified'}
158
+ - Is new project: ${context.isNewProject}
159
+
160
+ Generate questions that:
161
+ 1. Clarify important technical decisions (auth, database, deployment, etc.)
162
+ 2. Understand constraints (team size, timeline, existing systems)
163
+ 3. Are specific to this type of project
164
+ 4. Would significantly impact the tech stack recommendation
165
+
166
+ DO NOT ask generic questions. Be specific to what they're building.
167
+
168
+ Respond ONLY with valid JSON array:
169
+ [
170
+ {
171
+ "id": "unique-id",
172
+ "question": "The question text?",
173
+ "type": "select",
174
+ "options": [
175
+ { "title": "Option 1", "value": "option1" },
176
+ { "title": "Option 2", "value": "option2" }
177
+ ],
178
+ "why": "Brief reason this matters"
179
+ },
180
+ {
181
+ "id": "another-id",
182
+ "question": "Open-ended question?",
183
+ "type": "text",
184
+ "why": "Why this helps"
185
+ }
186
+ ]
187
+
188
+ Use "select" for questions with clear options, "text" for open-ended, "confirm" for yes/no.`;
189
+ try {
190
+ const response = await runClaudeHeadless(prompt, projectPath, { timeout: 45000 });
191
+ // Extract JSON array from response
192
+ const jsonMatch = response.match(/\[[\s\S]*\]/);
193
+ if (jsonMatch) {
194
+ const parsed = JSON.parse(jsonMatch[0]);
195
+ // Validate and limit to 4 questions
196
+ return parsed
197
+ .filter(q => q.id && q.question && q.type)
198
+ .slice(0, 4);
199
+ }
200
+ }
201
+ catch {
202
+ // Silent fail - return empty array
203
+ }
204
+ return [];
205
+ }
136
206
  /**
137
207
  * Use Claude to generate comprehensive documentation
138
208
  */
@@ -1 +1 @@
1
- {"version":3,"file":"claude-inference.js","sourceRoot":"","sources":["../../src/onboard/claude-inference.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,0BAA0B;AAC1B,gFAAgF;AAChF,kEAAkE;AAElE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAI9C;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,IAAI,CAAC;QACH,QAAQ,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAClF,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;GAEG;AACH,KAAK,UAAU,iBAAiB,CAC9B,MAAc,E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QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/onboard/index.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AASD;;GAEG;AACH,wBAAsB,UAAU,CAC9B,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAwTf;AAwFD,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/onboard/index.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAmBD;;GAEG;AACH,wBAAsB,UAAU,CAC9B,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CA0Lf;AAmYD,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}