{"id":47671941,"url":"https://github.com/zzhiyuann/ccinit","last_synced_at":"2026-04-02T13:00:00.611Z","repository":{"id":346706281,"uuid":"1191231825","full_name":"zzhiyuann/ccinit","owner":"zzhiyuann","description":"Auto-generate Claude Code configuration from your codebase","archived":false,"fork":false,"pushed_at":"2026-03-25T04:07:28.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-26T09:23:24.954Z","etag":null,"topics":["ai-agents","claude-code","cli","configuration","developer-tools","mcp"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zzhiyuann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-25T03:26:54.000Z","updated_at":"2026-03-25T16:15:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zzhiyuann/ccinit","commit_stats":null,"previous_names":["zzhiyuann/ccinit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zzhiyuann/ccinit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzhiyuann%2Fccinit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzhiyuann%2Fccinit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzhiyuann%2Fccinit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzhiyuann%2Fccinit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzhiyuann","download_url":"https://codeload.github.com/zzhiyuann/ccinit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzhiyuann%2Fccinit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31306688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","claude-code","cli","configuration","developer-tools","mcp"],"created_at":"2026-04-02T12:59:59.477Z","updated_at":"2026-04-02T13:00:00.589Z","avatar_url":"https://github.com/zzhiyuann.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ccinit\n\n[![CI](https://github.com/zzhiyuann/ccinit/actions/workflows/ci.yml/badge.svg)](https://github.com/zzhiyuann/ccinit/actions/workflows/ci.yml)\n[![npm version](https://img.shields.io/npm/v/ccinit.svg)](https://www.npmjs.com/package/ccinit)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n\u003e Auto-generate Claude Code configuration from your codebase.\n\nOne command. Zero config. Your project is ready for Claude Code.\n\n**[Landing page](https://zzhiyuann.github.io/ccinit/)** | **[npm](https://www.npmjs.com/package/ccinit)**\n\n## Quick Start\n\n```bash\nnpx ccinit\n```\n\nThat's it. ccinit scans your project and generates:\n\n- **CLAUDE.md** -- Build, test, lint commands and project conventions\n- **.claude/settings.local.json** -- MCP server recommendations (Git, filesystem, Context7, and more)\n- **.claude/commands/** -- Project-specific slash commands (test, dev, review, + framework-specific)\n\n## What It Detects\n\n| Signal | Examples |\n|--------|---------|\n| Languages | TypeScript, Python, Rust, Go, Java, Ruby, C#, Swift |\n| Frameworks | Next.js, React, FastAPI, Django, Axum, Gin, Express, NestJS |\n| Build systems | npm/yarn/pnpm, cargo, pip/poetry/uv, go, make |\n| Test runners | vitest, jest, pytest, cargo test, go test |\n| Linters | ESLint, Prettier, Biome, ruff, black, clippy, golangci-lint |\n| Dev servers | Detected from package.json scripts, uvicorn, flask run |\n| Monorepos | npm/yarn/pnpm workspaces, Lerna, Cargo workspaces |\n\n## Example Output\n\nFor a Next.js project, ccinit generates a CLAUDE.md like this:\n\n```markdown\n# my-app\n\n## Build \u0026 Run\n- `npm run build`\n\nDev server:\n- `npm run dev`\n\n## Test\n- `npm run test`\n- `npm run test path/to/file.test.ts` -- run a single test file\n\n## Lint \u0026 Format\n- `npm run lint`\n\n## Project Structure\n- `src/` -- Source code\n- `app/` -- Application entry / pages\n- `components/` -- UI components\n- `public/` -- Static assets\n- `tests/` -- Tests\n\n## Tech Stack\n- Language: TypeScript\n- Framework: Next.js, React\n- Package manager: npm\n\n## Conventions\n- TypeScript strict mode enabled\n- ESM modules (`import`/`export`)\n- ESLint configured -- fix all warnings\n- Prettier configured -- format before committing\n```\n\n## Options\n\n```\nUsage: ccinit [options] [directory]\n\nArguments:\n  directory          Project directory to scan (default: \".\")\n\nOptions:\n  --dry-run          Preview without writing files\n  --force            Overwrite existing configuration\n  --no-commands      Skip slash command generation\n  --verbose          Show detection details\n  -V, --version      Show version\n  -h, --help         Show help\n```\n\n## Programmatic API\n\n```typescript\nimport { scanProject, generateConfig } from \"ccinit\";\n\nconst profile = await scanProject(\"./my-project\");\nconst config = generateConfig(profile);\n\nconsole.log(config.claudeMd);    // CLAUDE.md content\nconsole.log(config.settings);     // MCP server config\nconsole.log(config.commands);     // Slash commands\n```\n\n## How It Works\n\n1. **Scan** -- Reads package.json, Cargo.toml, pyproject.toml, go.mod, Makefile, and 40+ config files\n2. **Detect** -- Identifies languages, frameworks, build/test/lint commands, and project structure\n3. **Generate** -- Produces tailored CLAUDE.md, MCP settings, and slash commands\n4. **Write** -- Saves files to your project (respects existing files unless `--force`)\n\n## Intelligent MCP Recommendations\n\nccinit recommends MCP servers based on your detected stack:\n\n| Signal | MCP Server |\n|--------|-----------|\n| Any project | `@anthropic/mcp-filesystem` -- File browsing and search |\n| Git repo | `@anthropic/mcp-git` -- Repository history and diffs |\n| Has dependencies | `@upstash/context7-mcp` -- Documentation lookup |\n| Web frontend (React, Vue, etc.) | `@anthropic/mcp-puppeteer` -- Browser automation |\n| Database signals (Prisma, migrations) | `@anthropic/mcp-postgres` -- Schema inspection |\n\n## Framework-Specific Commands\n\nBeyond the standard `/test`, `/dev`, and `/review` commands, ccinit generates framework-specific slash commands:\n\n| Framework | Commands |\n|-----------|---------|\n| Next.js | `/build-prod` -- Production build analysis |\n| Django | `/migrate` -- Database migrations |\n| FastAPI / Flask | `/routes` -- API endpoint listing |\n| React / Vue / Svelte | `/component` -- Component analysis |\n| Rust | `/check` -- Clippy analysis |\n| Go | `/check` -- Static analysis |\n| Database projects | `/schema` -- Data model exploration |\n\n## Related\n\n- [ccmanager](https://github.com/zzhiyuann/claude-code-manager) -- TUI to view all your Claude Code configurations\n- [claude-code-skills](https://github.com/zzhiyuann/claude-code-skills) -- Custom slash commands for Claude Code\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzhiyuann%2Fccinit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzhiyuann%2Fccinit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzhiyuann%2Fccinit/lists"}