@slahon/lazykit 1.2.4 → 1.2.6
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 +29 -5
- package/init.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,11 +26,35 @@ Run this inside your project folder. That's it. LazyKit handles everything else
|
|
|
26
26
|
|
|
27
27
|
## How it works
|
|
28
28
|
|
|
29
|
-
1.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
### 1. Open an issue using the LazyKit Task template
|
|
30
|
+
|
|
31
|
+
Go to your repo on GitHub → **Issues → New issue**. You'll see a **"LazyKit Task"** option — click it to get a pre-filled form. Describe what you want Claude to build, then submit. The `lazykit` label is applied automatically by the template, so you don't need to do anything else.
|
|
32
|
+
|
|
33
|
+
### 2. GitHub Actions kicks in
|
|
34
|
+
|
|
35
|
+
The moment the issue is submitted, GitHub detects the `lazykit` label and triggers a workflow run. You can watch it live:
|
|
36
|
+
|
|
37
|
+
**Go to your repo → Actions tab → "Claude Issue-to-PR" workflow**
|
|
38
|
+
|
|
39
|
+
You'll see the run appear within seconds. Click into it to follow along in real time — Claude's output (what files it read, what changes it made, its reasoning) streams directly into the Actions log.
|
|
40
|
+
|
|
41
|
+
### 3. Claude reads, thinks, and writes
|
|
42
|
+
|
|
43
|
+
Inside the Actions runner, Claude:
|
|
44
|
+
- Reads your issue title and description
|
|
45
|
+
- Explores your codebase (guided by `CLAUDE.md` if you have one)
|
|
46
|
+
- Writes the code changes
|
|
47
|
+
- Commits them to a new branch
|
|
48
|
+
|
|
49
|
+
### 4. A pull request appears
|
|
50
|
+
|
|
51
|
+
When Claude is done, it opens a pull request against your main branch with a title, description, and a summary of what it did. You'll get a GitHub notification just like a PR from a teammate.
|
|
52
|
+
|
|
53
|
+
### 5. You review and merge
|
|
54
|
+
|
|
55
|
+
Look over the diff, request changes in comments if needed (Claude can re-run via `@claude`), then merge when you're happy.
|
|
56
|
+
|
|
57
|
+
---
|
|
34
58
|
|
|
35
59
|
You can also mention `@claude` in any issue comment to give follow-up instructions or re-trigger Claude mid-thread.
|
|
36
60
|
|
package/init.js
CHANGED
|
@@ -7,7 +7,7 @@ const chalk = require('chalk');
|
|
|
7
7
|
const ora = require('ora');
|
|
8
8
|
|
|
9
9
|
const { log } = require('./logger');
|
|
10
|
-
const {
|
|
10
|
+
const { confirm } = require('./prompt');
|
|
11
11
|
const { isGitRepo, getGitRemote, parseGitHubRepo, isGhCliAvailable, isGhAuthenticated, detectStack, hasBranchProtection } = require('./git');
|
|
12
12
|
const { generateWorkflow } = require('./workflow');
|
|
13
13
|
const { generateClaudeMd } = require('./claude-md');
|
|
@@ -74,7 +74,7 @@ async function init({ dryRun = false } = {}) {
|
|
|
74
74
|
log.title('Configure LazyKit');
|
|
75
75
|
log.blank();
|
|
76
76
|
|
|
77
|
-
const label =
|
|
77
|
+
const label = 'lazykit';
|
|
78
78
|
const autoTrigger = await confirm('Trigger Claude on every new issue automatically? (no = only when you apply the label)', true);
|
|
79
79
|
const wantClaudeMd = await confirm('Generate CLAUDE.md project guide?', true);
|
|
80
80
|
|