generate_claude_config
Create a CLAUDE.md configuration file to define project structure, languages, and specifications for Claude AI development tasks.
Instructions
Generates a CLAUDE.md file for Claude Projects/Tasks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectName | Yes | Name of the project | |
| languages | Yes | Programming languages used | |
| description | No | Project description |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"description": {
"description": "Project description",
"type": "string"
},
"languages": {
"description": "Programming languages used",
"items": {
"type": "string"
},
"type": "array"
},
"projectName": {
"description": "Name of the project",
"type": "string"
}
},
"required": [
"projectName",
"languages"
],
"type": "object"
}
Implementation Reference
- src/tools/aiconfigs.ts:116-144 (handler)The core handler function that generates CLAUDE.md file content using the provided project name, languages, and optional description. It constructs a markdown template with tech stack, guidelines, and code review checklist.export function generateClaudeConfigHandler(args: any) { const { projectName, languages, description = "" } = args; const content = `# ${projectName} ${description} ## Tech Stack ${languages.map((l: string) => `- ${l}`).join("\n")} ## Guidelines 1. Follow ${languages[0]} idioms and best practices 2. Write clean, readable code 3. Include proper error handling 4. Document complex logic 5. Write tests for critical paths ## Code Review Checklist - [ ] Code follows style guide - [ ] Tests are included - [ ] No security vulnerabilities - [ ] Performance considered - [ ] Documentation updated `; return { content: [{ type: "text", text: content }] }; }
- src/tools/aiconfigs.ts:24-32 (schema)Zod schema defining the tool's input parameters: projectName (string), languages (array of strings), description (optional string).export const generateClaudeConfigSchema = { name: "generate_claude_config", description: "Generates a CLAUDE.md file for Claude Projects/Tasks.", inputSchema: z.object({ projectName: z.string().describe("Name of the project"), languages: z.array(z.string()).describe("Programming languages used"), description: z.string().optional().describe("Project description") }) };
- src/index.ts:97-97 (registration)Registration of the tool in the main stdio server toolRegistry Map.["generate_claude_config", { schema: generateClaudeConfigSchema, handler: generateClaudeConfigHandler }],
- src/server.ts:108-108 (registration)Registration of the tool in the HTTP server toolRegistry Map.["generate_claude_config", { schema: generateClaudeConfigSchema, handler: generateClaudeConfigHandler }],