Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
518 commits
Select commit Hold shift + click to select a range
be37684
feat(llkb): implement medium priority improvements (T005-T009)
Jan 23, 2026
b1ca917
feat(llkb): Complete LLKB-AutoGen integration fixes (15/15 tasks)
Jan 23, 2026
e73849a
chore(cli): update bundled assets
Jan 23, 2026
a27219d
chore: update gitignore and clean up local configs
Jan 24, 2026
56c853e
chore: stop tracking local/machine-specific files
Jan 24, 2026
53125ad
fix: correct .github/skills gitignore pattern
Jan 24, 2026
3b924c6
[A] Complete Tetris implementation
Jan 24, 2026
3535b9d
chore: add tmp/ to gitignore
Jan 27, 2026
ecd5d98
fix: strengthen verbatim instructions in discover-foundation prompt
Jan 27, 2026
260c866
fix: add file header to playwright.config.ts example in prompt
Jan 27, 2026
11d8f43
fix: require terminal access for journey-implement, don't fallback si…
Jan 27, 2026
c85ffd5
feat: auto-configure VS Code Copilot terminal access during bootstrap
Jan 27, 2026
bfa88c3
fix: add retry logic for file locking on Windows
Jan 27, 2026
9fabc95
fix: handle JSONC (comments) in VS Code settings merge
Jan 27, 2026
0ffed88
docs: add AutoGen empty stubs implementation plan
Jan 27, 2026
0128153
feat(cli): add LLKB subcommand group
claude Jan 27, 2026
9490b3b
fix(prompts): fix LLKB path resolution to use harness root
claude Jan 27, 2026
d6f3b9a
fix(bootstrap): consolidate .artk inside artk-e2e directory
claude Jan 27, 2026
e71555d
docs: update LLKB CLI references from npx artk-llkb to artk llkb
claude Jan 27, 2026
c4daaff
feat(autogen): add multi-variant build system
claude Jan 27, 2026
2533610
feat(autogen): add enhanced error feedback for blocked steps
claude Jan 27, 2026
710456e
feat(autogen): add journey format validation
claude Jan 27, 2026
9d99f68
feat(autogen): add Phase 3 targeted pattern expansion
claude Jan 27, 2026
fd4c206
feat(autogen): add Phase 4 LLKB learning loop
claude Jan 27, 2026
d8a03c7
docs(research): add critical review of autogen empty stubs implementa…
claude Jan 28, 2026
d2be6fe
feat(autogen): integrate LLKB into stepMapper and add variant-aware g…
claude Jan 28, 2026
8e7fc75
chore(autogen): update dist build artifacts
claude Jan 28, 2026
9bcaf40
fix: exclude dist directories from OpenAI code review to avoid token …
claude Jan 28, 2026
c322d89
fix(autogen): close LLKB learning loop and fix normalization mismatch
claude Jan 28, 2026
bb67fd8
chore(autogen): update dist build artifacts
claude Jan 28, 2026
f872f53
Merge branch 'claude/autogen-empty-stubs-xeKjv' into claude/fix-token…
claude Jan 28, 2026
732e9e3
fix(autogen): add LLKB pattern caching and improve initialization
claude Jan 28, 2026
2b6eb1c
chore(autogen): update dist build artifacts
claude Jan 28, 2026
919ba87
fix(autogen): fix critical issues from code review
claude Jan 28, 2026
73fdd6c
chore(autogen): update dist build artifacts
claude Jan 28, 2026
4428654
fix(autogen): address additional code review suggestions
claude Jan 28, 2026
038f1f4
chore(autogen): update dist build artifacts
claude Jan 28, 2026
f4cd4d5
Merge pull request #11 from mehdic/claude/autogen-empty-stubs-xeKjv
mehdic Jan 28, 2026
8af0c5e
fix(autogen): infer harness root path instead of hardcoding .artk/
Jan 28, 2026
317ae19
chore(cli): update bundled autogen assets
Jan 28, 2026
1178f5b
feat(bootstrap): auto-install Journey Core to consumer projects
Jan 29, 2026
912e46c
chore(cli): update bundled assets for Journey Core auto-install
Jan 29, 2026
a76f6cb
fix(testid-audit): strengthen Next Commands box enforcement
Jan 29, 2026
446f46f
chore(cli): update bundled assets
Jan 29, 2026
8412141
fix(journey-propose): strengthen anti-hallucination rules for Next Co…
Jan 29, 2026
40214a4
chore(cli): update bundled assets
Jan 29, 2026
869a33b
feat(prompts): add static Next Commands files to prevent hallucination
Jan 29, 2026
1a45f9e
chore(cli): update bundled assets
Jan 29, 2026
f6b64fd
fix(bootstrap): copy next-commands static files to client projects
Jan 29, 2026
8c4edae
fix(prompts): update all prompts to use static file approach for Next…
Jan 29, 2026
caaad3e
chore(cli): update bundled assets
Jan 29, 2026
5029a96
fix(prompts): remove duplicate next-commands, match fallbacks to stat…
Jan 29, 2026
d56129c
chore(cli): update bundled assets
Jan 29, 2026
2a4f4f8
fix(prompts): remove invalid alternative path references
Jan 29, 2026
85ec108
chore(cli): update bundled assets
Jan 29, 2026
bcf9705
fix: add LLKB to discover-foundation completion checklist
Jan 30, 2026
cefc59d
chore: sync CLI assets after LLKB checklist update
Jan 30, 2026
8b134ff
feat: initialize LLKB during bootstrap with discover-foundation fallback
Jan 30, 2026
15bfc84
chore: sync CLI assets after LLKB bootstrap changes
Jan 30, 2026
42ea8fa
fix: refactor LLKB bootstrap to use dedicated CJS helper
Jan 30, 2026
2b1f8a6
chore: sync CLI assets after LLKB bootstrap refactor
Jan 30, 2026
aca863b
fix: comprehensive LLKB bootstrap improvements from multi-AI review
Jan 30, 2026
e49499e
chore: sync CLI assets after LLKB improvements
Jan 30, 2026
5f6b48f
fix: LLKB bootstrap improvements from second multi-AI review
Jan 30, 2026
07aa944
chore: sync CLI assets after LLKB improvements
Jan 30, 2026
05a4112
fix: PowerShell 5.1 compatibility for Join-Path
Jan 30, 2026
8a460d1
fix: always show LLKB initialization progress in bootstrap
Jan 30, 2026
5fcc159
fix: show LLKB in installation summary
Jan 30, 2026
3e58375
fix: add proper header to generated playwright.config.ts
Jan 30, 2026
0bde201
fix: use require() instead of await import() in validation tests
Jan 30, 2026
d182a0e
chore: sync CLI assets after require() fix
Jan 30, 2026
cb62b3a
feat: comprehensive VS Code Copilot tool auto-approve settings
Jan 30, 2026
f56def0
feat: add 'All critical workflows' option to journey-propose questions
Jan 30, 2026
d3243a4
chore: sync CLI assets after journey-propose update
Jan 30, 2026
965ab87
chore: remove leftover test fixture
Jan 30, 2026
272a211
feat: improve auth bypass detection in discovery and journey-propose
Jan 30, 2026
c6ab9b8
chore: sync CLI assets after auth bypass detection improvements
Jan 30, 2026
31aaa89
docs: extract auth bypass patterns to reusable document
Jan 30, 2026
62e6ef2
chore: sync CLI assets after auth bypass patterns extraction
Jan 30, 2026
4dea408
fix(journey-propose): prevent stopping mid-generation
Jan 30, 2026
a7e3606
chore: sync CLI assets after journey-propose fix
Jan 30, 2026
5854311
fix(journey-define): prevent stopping mid-generation + add batch support
Jan 30, 2026
f8d0865
chore: sync CLI assets after journey-define fix
Jan 30, 2026
d290885
feat(vscode): add terminalAccess string setting for Copilot
Jan 30, 2026
89dcce7
fix: enforce LLKB integration in journey-implement
Jan 30, 2026
f7bd7da
chore: sync CLI assets after journey-implement LLKB enforcement
Jan 30, 2026
791743f
feat(vscode): add VS Code extension for ARTK
claude Jan 30, 2026
037d793
feat(cli): add journey workflow commands with security hardening
Feb 1, 2026
1855853
feat: implement two-tier prompt/agent architecture for VS Code Copilot
Feb 2, 2026
d195442
chore: sync CLI assets after two-tier architecture changes
Feb 2, 2026
7b913a9
fix: comprehensive two-tier architecture improvements from code review
Feb 2, 2026
ef67d2f
feat: add LLKB seed command and journey-implement improvements
Feb 2, 2026
ad17167
fix(vscode): address critical security vulnerabilities
claude Feb 2, 2026
888a97c
test(vscode): add comprehensive test suite for VS Code extension
claude Feb 2, 2026
c5960d5
feat(autogen): implement hybrid agentic CLI architecture with critica…
Feb 2, 2026
a163f06
chore: sync CLI assets after autogen architecture changes
Feb 2, 2026
4bdc751
Merge fix/cli-workflow-implementation into claude/vscode-setup-extens…
claude Feb 2, 2026
28edaff
feat(vscode): integrate LLKB seed and journey commands in dashboard
claude Feb 2, 2026
44fc307
fix(autogen): resolve TypeScript strict mode errors in all modules
Feb 2, 2026
e400f29
chore: sync CLI assets
Feb 2, 2026
383ea77
Merge fix/cli-workflow-implementation - TypeScript error fixes
claude Feb 2, 2026
5d345cb
feat(vscode): add LLKB stats display and Journey Summary card to dash…
claude Feb 2, 2026
43d10d2
feat(vscode): add implementation progress tracking and journey quick …
claude Feb 2, 2026
01dd300
fix: implement 8 recommended fixes from multi-AI code review
Feb 2, 2026
d3476b7
Merge fix/cli-workflow-implementation - multi-AI code review fixes
claude Feb 2, 2026
dd55010
ci(vscode): add GitHub Actions workflow to build and package extension
claude Feb 2, 2026
3bfde05
ci(vscode): add automatic patch version bumping for releases
claude Feb 2, 2026
b8360df
fix: implement 10 priority fixes from multi-AI code review
Feb 2, 2026
9ab3109
fix(vscode): register missing journey and LLKB commands
claude Feb 2, 2026
81e7dd8
chore: update bundled CLI assets
Feb 2, 2026
b913ea2
Merge fix/cli-workflow-implementation into vscode extension branch
claude Feb 2, 2026
d86922d
fix(vscode): add package-lock.json for CI caching
claude Feb 2, 2026
71f1dd1
chore: trigger CI workflow
claude Feb 2, 2026
81f0771
fix(ci): remove paths filter from vscode workflow
claude Feb 3, 2026
f5fb046
fix(ci): remove all branch filters to debug workflow trigger
claude Feb 3, 2026
f345e2b
fix(autogen): implement P0/P1 security and state validation fixes
Feb 3, 2026
d188705
chore: update bundled CLI assets
Feb 3, 2026
d6c03c2
feat(autogen): add integration tests and security enhancements
Feb 3, 2026
9529723
chore: update bundled CLI assets
Feb 3, 2026
1f85d8b
feat(vscode): bundle ARTK assets for offline installation
claude Feb 3, 2026
db70e8c
feat(vscode): complete bundled installer matching bootstrap.sh
claude Feb 3, 2026
6681285
feat(autogen): add CLI execution tests and acceptance test framework
Feb 3, 2026
5599a8e
chore: update bundled CLI assets
Feb 3, 2026
6414fbc
fix(acceptance): align checklists with actual CLI output format
Feb 3, 2026
082f6dc
docs(research): add bundled installer gap analysis
claude Feb 3, 2026
3a69592
feat(autogen): add full E2E test script for CLI pipeline
Feb 3, 2026
bfbd03d
fix(vscode): implement all P0-P2 priority fixes for bundled installer
claude Feb 3, 2026
62181ff
fix(e2e): full ARTK installation with generate stage working
Feb 3, 2026
3b74cd6
docs(research): add bundled installer review v2 after P0-P2 fixes
claude Feb 3, 2026
e1d2eb1
Merge remote-tracking branch 'origin/fix/cli-workflow-implementation'…
claude Feb 3, 2026
b7a9093
fix(vscode): implement all P0-P1 critical fixes from code review v2
claude Feb 3, 2026
5ced90a
fix(vscode): implement all P2 remaining fixes for bundled installer
claude Feb 3, 2026
1861acd
fix(vscode): implement browser fallback matching bootstrap.sh behavior
claude Feb 3, 2026
9980497
fix(vscode): implement all P0-P1 critical fixes from code review v3
claude Feb 3, 2026
88098c6
fix(vscode): implement remaining P1-P2 fixes for bundled installer
claude Feb 3, 2026
03de483
docs(research): add final comprehensive review v4 for bundled installer
claude Feb 3, 2026
bd92104
fix(vscode): implement native check command without CLI dependency
claude Feb 3, 2026
0c106dc
fix(vscode): implement native doctor, upgrade, uninstall commands
claude Feb 3, 2026
ee5aafd
test(vscode): add integration tests for bundled installer
claude Feb 3, 2026
8d11c61
fix(vscode): add installer validation, progress UI, and verification
claude Feb 3, 2026
30b1235
feat(vscode): add Workflow tree view with Copilot integration
claude Feb 3, 2026
e30b653
feat(autogen): implement LLKB feedback loop and coverage improvement …
Feb 3, 2026
032bdcb
chore: update bundled CLI assets
Feb 3, 2026
20b067b
fix(vscode): correct workflow steps and add Copilot check
claude Feb 3, 2026
1c19bba
fix(autogen): address code review issues from LLKB feedback loop
Feb 3, 2026
9591bd4
chore: sync dist files and add remaining autogen improvements
Feb 3, 2026
d3f448e
feat(vscode): add rich tooltips with full command descriptions
claude Feb 3, 2026
6b5ee2a
Merge fix/cli-workflow-implementation into vscode-setup-extension
claude Feb 3, 2026
2aa4799
fix(autogen): replace dynamic require with ES import for path module
Feb 3, 2026
2cfda7c
chore: update bundled CLI assets
Feb 3, 2026
2e172d2
chore: update bundled @artk/cli assets
Feb 3, 2026
4ea0d7b
docs(claude): add LLKB feedback loop verification instructions
Feb 3, 2026
e53080a
Merge pull request #14 from mehdic/claude/vscode-setup-extension-1VsSs
mehdic Feb 3, 2026
74b61c6
Merge branch 'fix/cli-workflow-implementation'
Feb 3, 2026
298190f
fix(ci): add contents write permission for version bump push
claude Feb 3, 2026
c7bbcd9
Merge main into vscode-setup-extension
claude Feb 3, 2026
c5f9270
Merge pull request #15 from mehdic/claude/vscode-setup-extension-1VsSs
mehdic Feb 3, 2026
1aea5b3
chore(vscode): bump version to 1.0.1 [skip ci]
github-actions[bot] Feb 3, 2026
19b3a64
chore(vscode): bump version to 1.0.2 [skip ci]
github-actions[bot] Feb 4, 2026
f5ca448
fix(bootstrap): add robust JSON repair for settings.json parsing
Feb 4, 2026
41e0774
chore(vscode): bump version to 1.0.3 [skip ci]
github-actions[bot] Feb 4, 2026
9a40ecc
feat(bootstrap): add robust JSON repair with verbose logging
Feb 4, 2026
c0a4c11
chore(vscode): bump version to 1.0.4 [skip ci]
github-actions[bot] Feb 4, 2026
3ce0e99
feat(bootstrap): add --verbose/-v flag for npm install output
Feb 4, 2026
feb9da5
chore(vscode): bump version to 1.0.5 [skip ci]
github-actions[bot] Feb 4, 2026
eacc8c8
fix(bootstrap): address code review findings
Feb 4, 2026
2b12019
chore(vscode): bump version to 1.0.6 [skip ci]
github-actions[bot] Feb 4, 2026
9d2beb7
fix(bootstrap): stream npm output in real-time for verbose mode
Feb 4, 2026
a36b824
chore(vscode): bump version to 1.0.7 [skip ci]
github-actions[bot] Feb 4, 2026
8b3ef3b
fix(bootstrap): stream npm output in real-time for bash verbose mode
Feb 4, 2026
492dfda
chore(vscode): bump version to 1.0.8 [skip ci]
github-actions[bot] Feb 4, 2026
e2d6e13
refactor(bootstrap): simplify verbose flag to just -V
Feb 4, 2026
a47710a
chore(vscode): bump version to 1.0.9 [skip ci]
github-actions[bot] Feb 4, 2026
9614395
refactor(bootstrap): simplify verbose flag to just -V for bash
Feb 4, 2026
255de22
chore(vscode): bump version to 1.0.10 [skip ci]
github-actions[bot] Feb 4, 2026
d50bd59
fix(templates): replace Unicode box-drawing chars with ASCII
Feb 4, 2026
5c69b6a
chore(vscode): bump version to 1.0.11 [skip ci]
github-actions[bot] Feb 4, 2026
00d96b2
fix(bootstrap): strip devDependencies from vendor package.json to fix…
Feb 4, 2026
e43af2d
chore(vscode): bump version to 1.0.12 [skip ci]
github-actions[bot] Feb 4, 2026
d824d39
fix(assets): strip devDependencies from bundled vendor package.json f…
Feb 4, 2026
7f65f63
chore: update bundled CLI assets with stripped package.json
Feb 4, 2026
dc7fdcf
chore(vscode): bump version to 1.0.13 [skip ci]
github-actions[bot] Feb 4, 2026
6574ae5
fix(vscode): fix init-playbook completion detection
Feb 4, 2026
a795422
chore(vscode): bump version to 1.0.14 [skip ci]
github-actions[bot] Feb 4, 2026
cf7339f
fix(vscode): change workflow icons to blue and fix dashboard buttons
Feb 4, 2026
60a8b46
chore(vscode): bump version to 1.0.15 [skip ci]
github-actions[bot] Feb 4, 2026
3eaa3c1
fix(vscode): add missing next-commands static files to bundled assets
Feb 4, 2026
e0a75ed
chore(vscode): bump version to 1.0.16 [skip ci]
github-actions[bot] Feb 4, 2026
3fdef99
fix(prompts): make stub prompt language more imperative
Feb 4, 2026
3b5ff81
chore(vscode): bump version to 1.0.17 [skip ci]
github-actions[bot] Feb 4, 2026
dd3de70
fix(prompts): update handoffs to show only relevant next steps
Feb 4, 2026
14ea61d
chore: sync CLI bundled prompts with updated handoffs
Feb 4, 2026
9f576ed
chore(vscode): bump version to 1.0.18 [skip ci]
github-actions[bot] Feb 4, 2026
a2ba80a
chore(vscode): sync bundled prompts with updated handoffs
Feb 4, 2026
db0ac09
chore(vscode): bump version to 1.0.19 [skip ci]
github-actions[bot] Feb 4, 2026
1022a9c
feat(hooks): add pre-push sync for VS Code extension prompts
Feb 4, 2026
c21d7f1
chore(vscode): bump version to 1.0.20 [skip ci]
github-actions[bot] Feb 4, 2026
998042c
fix: address code review findings (HIGH and MEDIUM)
Feb 4, 2026
1215b10
chore(vscode): bump version to 1.0.21 [skip ci]
github-actions[bot] Feb 4, 2026
d293e18
fix(vscode): correct detection paths for context.json and LLKB
Feb 4, 2026
0b49d16
chore(vscode): bump version to 1.0.22 [skip ci]
github-actions[bot] Feb 4, 2026
e3245da
fix(vscode): use correct artkE2ePath property for initialization check
Feb 4, 2026
bd6150f
chore(vscode): bump version to 1.0.23 [skip ci]
github-actions[bot] Feb 4, 2026
21151a0
fix(prompts): make environment detection and auth bypass mandatory
Feb 4, 2026
a584681
chore: sync prompts to VS Code extension assets
Feb 4, 2026
12456bc
chore: sync prompts to CLI bundled assets
Feb 4, 2026
cd74a94
chore(vscode): bump version to 1.0.24 [skip ci]
github-actions[bot] Feb 4, 2026
cf23dc2
fix(prompts): prevent journey-propose from stopping after questionnaire
Feb 4, 2026
a432afc
chore: sync prompts to bundled assets
Feb 4, 2026
ff7d30c
chore: sync prompts to CLI bundled assets
Feb 4, 2026
edd9389
chore(vscode): bump version to 1.0.25 [skip ci]
github-actions[bot] Feb 4, 2026
4225571
feat(hooks): add SKIP_ASSET_SYNC option for faster pushes
Feb 4, 2026
74bfe0e
chore(vscode): bump version to 1.0.26 [skip ci]
github-actions[bot] Feb 4, 2026
69cb507
Revert "feat(hooks): add SKIP_ASSET_SYNC option for faster pushes"
Feb 4, 2026
d380d75
feat(ci): make VS Code extension build manual-only
Feb 4, 2026
e1d44ba
research: IntelliJ IDEA plugin feasibility analysis
claude Feb 4, 2026
196e575
research: detailed IntelliJ IDEA plugin implementation plan
claude Feb 4, 2026
64f8320
feat(ci): add manual IntelliJ IDEA plugin build workflow
claude Feb 4, 2026
f20abfd
docs: add dashboard install button requirement to implementation plan
claude Feb 4, 2026
68c1079
feat(intellij): implement IntelliJ IDEA plugin
claude Feb 4, 2026
c13c2b4
feat(intellij): complete bundled installer and LLKB actions
claude Feb 4, 2026
610a894
feat(intellij): add install dialog, tests, and JUnit 5 support
claude Feb 4, 2026
4deeb50
fix(intellij): critical bugs and missing features from review
claude Feb 4, 2026
5202b0f
docs(research): implementation research for IntelliJ plugin remaining…
claude Feb 5, 2026
2b1a565
feat(intellij): implement all remaining gaps from research
claude Feb 5, 2026
cbd18ed
fix(intellij): critical bugs and missing features from review
claude Feb 5, 2026
a90bb46
fix(intellij): medium and minor issues from final review
claude Feb 5, 2026
630e13d
docs(research): second-pass critical review of IntelliJ plugin
claude Feb 5, 2026
e27a5ca
fix(intellij): critical issues from second-pass review
claude Feb 5, 2026
d9241a5
docs(research): third-pass review after critical fixes
claude Feb 5, 2026
02a527e
fix(intellij): high-priority issues from third-pass review
claude Feb 5, 2026
48515e3
fix(intellij): medium-priority issues from third-pass review
claude Feb 5, 2026
e2cf7f9
fix(intellij): low-priority polish issues from third-pass review
claude Feb 6, 2026
2aa9256
docs(research): fourth-pass final review after all 12 fixes
claude Feb 6, 2026
7a72a6a
fix(intellij): add missing gradle-wrapper.jar
claude Feb 6, 2026
32bdb59
fix(intellij): use JBCefApp.isSupported() for 2024.1 compatibility
claude Feb 6, 2026
6df2846
ci(intellij): build all IntelliJ versions in parallel
claude Feb 6, 2026
2b7b268
feat(intellij): add journey validate/implement and LLKB seed actions
claude Feb 9, 2026
2027ba9
fix(intellij): update Kotlin version for IntelliJ 2025.1 compatibility
claude Feb 9, 2026
09dfb96
ci(intellij): support all IntelliJ versions from 2024.1 to 2025.3
claude Feb 9, 2026
dee73ba
fix(ci): correct sed pattern for Kotlin version replacement
claude Feb 9, 2026
1736dbc
ci(intellij): skip tests that require IntelliJ Platform context
claude Feb 9, 2026
c0a2e04
test(intellij): rewrite tests to use IntelliJ Platform fixtures
claude Feb 9, 2026
3f4b002
ci(intellij): skip tests that require IntelliJ Platform context
claude Feb 9, 2026
4407ada
test(intellij): rewrite tests to use JUnit 5 without platform depende…
claude Feb 9, 2026
eb0b9a6
test(intellij): use IntelliJ Platform test fixtures properly
claude Feb 9, 2026
7eaba67
docs: add IntelliJ plugin testing guidelines to CLAUDE.md
claude Feb 9, 2026
451106c
fix(intellij): add explicit test dependencies and configuration
claude Feb 9, 2026
325649c
test(intellij): refactor tests to avoid ProcessUtils dependencies
claude Feb 9, 2026
e1fc187
test(intellij): use BasePlatformTestCase with JUnit 3 style
claude Feb 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1,249 changes: 1,249 additions & 0 deletions .claude/agents/developer.md

Large diffs are not rendered by default.

474 changes: 474 additions & 0 deletions .claude/agents/tech_stack_scout.md

Large diffs are not rendered by default.

179 changes: 179 additions & 0 deletions .claude/commands/apply-patches.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
---
mode: agent
description: "Apply patches from Company PC, fix any issues, and push to GitHub (Home PC only)"
---

# Apply Patches from Company PC

**This prompt is for HOME PC use only** (where you CAN push to GitHub).

You are an autonomous agent that applies patches from Company PC, handles any issues automatically, and cleans up when done.

## What You Must Do

1. Check for patch files in `./patches/` (synced from Company PC)
2. If no patches found: report and exit
3. Pull latest changes from remote
4. Apply patches using `git am patches/*.patch`
5. **If issues occur: FIX THEM AUTOMATICALLY** (see below)
6. Push to GitHub
7. **Delete applied patches** (patches/*.patch and patches/README.txt)
8. Confirm success

## Execution Steps

### Step 1: Check for patches
```bash
ls patches/*.patch 2>/dev/null
```

If no patches: Report "No patches to apply" and exit.

### Step 2: Check working directory is clean
```bash
git status --porcelain
```

If not clean:
- **Auto-fix:** Commit any uncommitted changes with message "chore: auto-commit before applying patches"
- Or stash if appropriate

### Step 3: Pull latest changes
```bash
git pull
```

### Step 4: Apply patches
```bash
git am patches/*.patch
```

### Step 5: Handle Issues Automatically

**Issue: Merge conflicts**
```
Applying: Some commit message
error: patch failed: somefile.txt:10
Falling back to 3-way merge...
```

**Auto-fix:**
1. Check conflict files: `git status`
2. Read conflicting files
3. Resolve conflicts intelligently:
- If trivial (whitespace, import order): auto-resolve
- If code conflict: analyze both versions, merge intelligently
- Keep both changes when safe
4. Stage resolved files: `git add <files>`
5. Continue: `git am --continue`

**Issue: Patch already applied**
```
error: patch does not apply
```

**Auto-fix:**
1. Skip: `git am --skip`
2. Continue with next patch

**Issue: Whitespace errors**
```
warning: squelched 3 whitespace errors
```

**Auto-fix:** Ignore (non-critical)

### Step 6: Push to GitHub
```bash
git push
```

### Step 7: Clean up patches
```bash
rm patches/*.patch
rm patches/README.txt 2>/dev/null || true
```

### Step 8: Report success
Show:
- Number of patches applied
- Commits added (git log)
- Confirmation patches were deleted

## Important Autonomy Rules

**You MUST fix issues automatically. Do NOT stop and ask the user.**

Examples of automatic fixes:
- Merge conflicts → Read files, resolve intelligently, continue
- Whitespace errors → Ignore and continue
- Already applied → Skip and continue
- Working directory dirty → Commit or stash automatically

**Only stop if:**
- No patches to apply (normal, just report)
- Critical error you absolutely cannot fix (rare)

## Expected Output

When successful:
```
Checking for patches...
✓ Found 3 patches

Pulling latest changes...
✓ Up to date

Applying patches...
→ Applying: Fix something
→ Applying: Add feature
→ Applying: Update docs (conflict detected)
→ Resolving conflicts in src/file.ts
→ Merged both changes
→ Continuing...
✓ All patches applied

Applied commits:
abc1234 Fix something
def5678 Add feature
ghi9012 Update docs

Pushing to GitHub...
✓ Pushed successfully

Cleaning up patches...
→ Deleted 0001-Fix-something.patch
→ Deleted 0002-Add-feature.patch
→ Deleted 0003-Update-docs.patch
→ Deleted README.txt
✓ Patches cleaned up

╔════════════════════════════════════════════╗
║ All Patches Applied & Pushed ✓ ║
╚════════════════════════════════════════════╝
```

## Troubleshooting Guide (For Reference Only)

You should handle these automatically:

**Conflict resolution strategy:**
1. Read both versions (ours vs theirs)
2. If changes are in different areas: keep both
3. If changes overlap: intelligently merge (prefer safer option)
4. If imports/whitespace: auto-fix
5. Mark resolved and continue

**Already applied patches:**
- Skip with `git am --skip`
- Continue with remaining patches

**Uncommitted changes:**
- Commit with: `git add . && git commit -m "chore: auto-commit before patches"`
- Then continue

## Notes

- **NEVER run this on Company PC** - use `/export-patches` instead
- Patches are deleted (not archived) after successful application
- If you cannot fix an issue, explain what you tried and what the user needs to do manually
Loading
Loading