crewkit 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 Guilherme Sousa
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,100 @@
1
+ # crewkit
2
+
3
+ Context engineering framework for AI-assisted development. One command to set up agents, skills, hooks, rules, and memory for your project.
4
+
5
+ ## What it does
6
+
7
+ `crewkit` scans your codebase and generates a complete, calibrated context engineering setup:
8
+
9
+ - **Agents** (5) — explorer, architect, coder, tester, reviewer with defined roles and model tiers
10
+ - **Skills** (4) — full-workflow, hotfix, explore-and-plan, review-pr
11
+ - **Hooks** (4) — session-start, protect-sensitive-files, post-compact-recovery, stop-quality-gate
12
+ - **Rules** — per-stack coding rules generated from detected patterns
13
+ - **Memory** (`.ai/memory/`) — architecture, conventions, commands, testing, lessons
14
+ - **CLAUDE.md** — project-specific hard rules derived from actual code patterns
15
+ - **settings.json** — conservative permissions + hook registrations
16
+ - **.mcp.json** — MCP servers detected from your infrastructure (PostgreSQL, Redis, Sentry, etc.)
17
+
18
+ Everything is tailored to your actual code — not generic boilerplate.
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ npx crewkit install
24
+ ```
25
+
26
+ This copies the skill to `~/.claude/skills/crewkit-setup/` (one-time setup).
27
+
28
+ ## Usage
29
+
30
+ Open any project in Claude Code and run:
31
+
32
+ ```
33
+ /crewkit-setup
34
+ ```
35
+
36
+ The AI scans your codebase (~8-15 min) and generates the full setup. No questions asked during scan — it detects everything from code, git history, and docs.
37
+
38
+ ### What happens
39
+
40
+ 1. **Pre-flight** — checks model, detects re-runs, offers backup
41
+ 2. **Phase 0** — creates directory structure, updates .gitignore
42
+ 3. **Phase 1-3** — detects stacks, reads docs, maps project structure
43
+ 4. **Phase 4** — deep reads representative files, detects patterns with confidence scoring
44
+ 5. **Phase 5** — health check (optional, with `--check-health`)
45
+ 6. **Phase 6** — presents profile for your review before generating
46
+ 7. **Phase 7** — generates all files in graceful-failure order
47
+
48
+ ### Re-runs
49
+
50
+ If you run `/crewkit-setup` again on a project that already has a setup:
51
+
52
+ - **[R] Regenerate** — backup existing, regenerate everything
53
+ - **[M] Memory only** — re-scan and update memory + CLAUDE.md, preserve agents/hooks/skills
54
+ - **[C] Cancel**
55
+
56
+ ## Supported stacks
57
+
58
+ Detected automatically from manifest files:
59
+
60
+ | Stack | Detected by |
61
+ |-------|------------|
62
+ | .NET | `*.csproj`, `*.sln` |
63
+ | Node.js | `package.json` (Express, Next.js, Nest, etc.) |
64
+ | Python | `pyproject.toml`, `requirements.txt` |
65
+ | Go | `go.mod` |
66
+ | Rust | `Cargo.toml` |
67
+ | Java/Kotlin | `pom.xml`, `build.gradle` |
68
+ | Ruby | `Gemfile` |
69
+ | Elixir | `mix.exs` |
70
+ | PHP | `composer.json` |
71
+ | Dart/Flutter | `pubspec.yaml` |
72
+
73
+ ## Generated agents
74
+
75
+ | Agent | Model | Role |
76
+ |-------|-------|------|
77
+ | explorer | Sonnet | Read-only codebase exploration |
78
+ | architect | Opus | Architecture review + approval gate |
79
+ | coder | Sonnet | Minimal diffs, existing patterns |
80
+ | tester | Sonnet | Full test workflow + coverage accountability |
81
+ | reviewer | Opus | High signal code review, no noise |
82
+
83
+ ## What gets committed vs ignored
84
+
85
+ **Committed** (shared with team):
86
+ - `CLAUDE.md`, `.claude/agents/`, `.claude/rules/`, `.claude/skills/`, `.claude/hooks/`
87
+ - `.claude/settings.json`, `.ai/memory/`
88
+
89
+ **Ignored** (personal/metadata):
90
+ - `.claude/settings.local.json`, `.crewkit/`, `.crewkit-backup/`
91
+
92
+ ## Requirements
93
+
94
+ - Node.js >= 20
95
+ - Claude Code (v0.1 — Copilot and Cursor support planned for v0.2)
96
+ - Opus or Sonnet recommended (Haiku works but produces shallower scans)
97
+
98
+ ## License
99
+
100
+ MIT
package/bin/crewkit.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { run } from '../src/cli.js';
4
+ run(process.argv.slice(2));
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "crewkit",
3
+ "version": "0.1.0",
4
+ "description": "Context engineering framework for AI-assisted development. One command to set up agents, skills, hooks, rules, and memory for your project.",
5
+ "type": "module",
6
+ "bin": {
7
+ "crewkit": "bin/crewkit.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "src",
12
+ "skill"
13
+ ],
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "test": "node --test tests/"
17
+ },
18
+ "keywords": [
19
+ "context-engineering",
20
+ "ai",
21
+ "claude-code",
22
+ "copilot",
23
+ "cursor",
24
+ "agents",
25
+ "skills",
26
+ "mcp",
27
+ "developer-tools"
28
+ ],
29
+ "author": "Guilherme Sousa",
30
+ "license": "MIT",
31
+ "engines": {
32
+ "node": ">=20.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "typescript": "^5.7.0"
36
+ }
37
+ }