tlc-claude-code 1.2.0 → 1.2.1
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/CLAUDE.md +44 -4
- package/help.md +15 -17
- package/package.json +1 -1
- package/tlc.md +33 -10
package/CLAUDE.md
CHANGED
|
@@ -27,15 +27,41 @@ Instead, use TLC's file-based system:
|
|
|
27
27
|
| Test status | `.planning/phases/{N}-TESTS.md` |
|
|
28
28
|
| Config | `.tlc.json` |
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## FIRST THING - Always Run /tlc
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
**MANDATORY: Before ANY work, run `/tlc`**
|
|
33
|
+
|
|
34
|
+
This single command handles everything automatically:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
/tlc ← ALWAYS run this first, every time
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**What happens:**
|
|
41
|
+
|
|
42
|
+
| Scenario | /tlc Does |
|
|
43
|
+
|----------|-----------|
|
|
44
|
+
| No `.tlc.json` | "Welcome! Run setup now? (Y/n)" → Full config wizard |
|
|
45
|
+
| After rebase | "Changes detected. Run sync? (Y/n)" → Reconcile code |
|
|
46
|
+
| Already synced | "✓ Synced" → Shows dashboard/status |
|
|
47
|
+
|
|
48
|
+
**You never need to remember separate commands.** Just run `/tlc` and it:
|
|
49
|
+
- Detects what's needed
|
|
50
|
+
- Asks for go-ahead
|
|
51
|
+
- Runs the appropriate flow inline
|
|
52
|
+
- Then shows you what's next
|
|
53
|
+
|
|
54
|
+
**Why this matters:**
|
|
55
|
+
- One command to rule them all
|
|
56
|
+
- Can't accidentally work on out-of-sync code
|
|
57
|
+
- All config happens upfront, nothing forgotten
|
|
58
|
+
- Handles first-time setup AND post-rebase reconciliation
|
|
33
59
|
|
|
34
60
|
## Workflow Commands
|
|
35
61
|
|
|
36
62
|
| Action | Command |
|
|
37
63
|
|--------|---------|
|
|
38
|
-
|
|
|
64
|
+
| **START HERE** | **`/tlc`** ← Handles setup, sync, and status automatically |
|
|
39
65
|
| Plan a phase | `/tlc:plan` |
|
|
40
66
|
| Build (test-first) | `/tlc:build` |
|
|
41
67
|
| Verify with human | `/tlc:verify` |
|
|
@@ -44,6 +70,15 @@ Always run `/tlc:progress` or `/tlc` to understand current state.
|
|
|
44
70
|
| Release a task | `/tlc:release` |
|
|
45
71
|
| See team status | `/tlc:who` |
|
|
46
72
|
|
|
73
|
+
## What /tlc Does Automatically
|
|
74
|
+
|
|
75
|
+
1. **Checks sync status** - Is setup done? Any changes since last sync?
|
|
76
|
+
2. **Asks for go-ahead** - "Run setup/sync now? (Y/n)"
|
|
77
|
+
3. **Runs appropriate flow** - First-time wizard OR post-rebase reconciliation
|
|
78
|
+
4. **Shows dashboard** - Current phase, tests, next actions
|
|
79
|
+
|
|
80
|
+
**Never skip the go-ahead prompt.** It ensures code is properly synced before work begins.
|
|
81
|
+
|
|
47
82
|
## Test-First Development
|
|
48
83
|
|
|
49
84
|
All implementation follows **Red → Green → Refactor**:
|
|
@@ -69,6 +104,11 @@ When working with teammates:
|
|
|
69
104
|
|
|
70
105
|
## Git Commits
|
|
71
106
|
|
|
72
|
-
|
|
107
|
+
**⛔ NEVER ADD CO-AUTHORED-BY LINES TO COMMITS ⛔**
|
|
108
|
+
|
|
109
|
+
- NO `Co-Authored-By: Claude`
|
|
110
|
+
- NO `Co-Authored-By: Anthropic`
|
|
111
|
+
- NO co-authoring of any kind
|
|
112
|
+
- The USER is the author. Claude is a tool, not an author.
|
|
73
113
|
|
|
74
114
|
**ALWAYS ask before `git push`.** Never push to remote without explicit user approval.
|
package/help.md
CHANGED
|
@@ -22,7 +22,8 @@ Launches the visual dashboard. Detects where you are, shows what's next.
|
|
|
22
22
|
|
|
23
23
|
| Command | What It Does |
|
|
24
24
|
|---------|--------------|
|
|
25
|
-
| `/tlc
|
|
25
|
+
| `/tlc` | **Start here.** Auto-detects setup/sync needs, asks, then runs |
|
|
26
|
+
| `/tlc:sync` | Direct access to setup/sync (usually not needed - /tlc handles it) |
|
|
26
27
|
| `/tlc:new-project` | Start new project (discusses stack, creates roadmap) |
|
|
27
28
|
| `/tlc:init` | Add TLC to existing code |
|
|
28
29
|
| `/tlc:import-project` | Import multi-repo microservices architecture |
|
|
@@ -98,31 +99,28 @@ Launches the visual dashboard. Detects where you are, shows what's next.
|
|
|
98
99
|
|
|
99
100
|
## Workflow
|
|
100
101
|
|
|
101
|
-
**
|
|
102
|
+
**Just one command:**
|
|
102
103
|
```
|
|
103
|
-
/tlc
|
|
104
|
-
/tlc <- Then just keep running this
|
|
104
|
+
/tlc <- Always start here
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
That's it. `/tlc` handles everything:
|
|
108
|
+
|
|
108
109
|
```
|
|
109
|
-
/tlc
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
/tlc:complete Tag release
|
|
110
|
+
/tlc
|
|
111
|
+
↓
|
|
112
|
+
No config? → "Run setup? (Y/n)" → Full wizard
|
|
113
|
+
↓
|
|
114
|
+
Rebase detected? → "Run sync? (Y/n)" → Reconcile
|
|
115
|
+
↓
|
|
116
|
+
Already synced? → Dashboard + next actions
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
**After rebasing:**
|
|
120
120
|
```
|
|
121
|
-
git rebase origin/main
|
|
122
|
-
↓
|
|
123
|
-
/tlc:sync Reconcile incoming code
|
|
121
|
+
git rebase origin/main
|
|
124
122
|
↓
|
|
125
|
-
/tlc
|
|
123
|
+
/tlc ← Detects changes, asks, syncs, continues
|
|
126
124
|
```
|
|
127
125
|
|
|
128
126
|
---
|
package/package.json
CHANGED
package/tlc.md
CHANGED
|
@@ -8,24 +8,34 @@ Launches the TLC dashboard - a visual interface showing project state, phases, t
|
|
|
8
8
|
|
|
9
9
|
## Process
|
|
10
10
|
|
|
11
|
-
### Step 0:
|
|
11
|
+
### Step 0: Auto-Sync Check (ALWAYS FIRST)
|
|
12
12
|
|
|
13
|
-
Before anything else, check if
|
|
13
|
+
Before anything else, check if sync is needed and handle it automatically:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
# Check if .tlc.json exists
|
|
17
17
|
if [ ! -f ".tlc.json" ]; then
|
|
18
18
|
# No TLC config - need first-time setup
|
|
19
|
-
echo "
|
|
20
|
-
echo "
|
|
21
|
-
|
|
19
|
+
echo "Welcome to TLC!"
|
|
20
|
+
echo ""
|
|
21
|
+
echo "No configuration found. Let's set up your project."
|
|
22
|
+
echo "This configures test framework, team settings, quality gates, and more."
|
|
23
|
+
echo ""
|
|
24
|
+
echo "Run setup now? (Y/n)"
|
|
25
|
+
# If yes → Run /tlc:sync inline (first-time flow)
|
|
26
|
+
# Then continue to Step 1
|
|
22
27
|
fi
|
|
23
28
|
|
|
24
29
|
# Check for rebase marker
|
|
25
30
|
if [ -f ".tlc-rebase-marker" ]; then
|
|
26
31
|
echo "⚠️ Rebase detected since last sync."
|
|
27
|
-
echo "
|
|
28
|
-
|
|
32
|
+
echo ""
|
|
33
|
+
echo "TLC needs to reconcile incoming changes."
|
|
34
|
+
echo "This ensures new code meets TLC standards."
|
|
35
|
+
echo ""
|
|
36
|
+
echo "Run sync now? (Y/n)"
|
|
37
|
+
# If yes → Run /tlc:sync inline (post-rebase flow)
|
|
38
|
+
# Then continue to Step 1
|
|
29
39
|
fi
|
|
30
40
|
|
|
31
41
|
# Check if HEAD matches lastSync
|
|
@@ -37,12 +47,25 @@ if [ -n "$lastSync" ] && [ "$lastSync" != "$currentHead" ]; then
|
|
|
37
47
|
echo " Last sync: ${lastSync:0:7}"
|
|
38
48
|
echo " Current: ${currentHead:0:7}"
|
|
39
49
|
echo ""
|
|
40
|
-
|
|
41
|
-
|
|
50
|
+
changedCount=$(git diff --name-only $lastSync $currentHead 2>/dev/null | wc -l)
|
|
51
|
+
echo " $changedCount files changed"
|
|
52
|
+
echo ""
|
|
53
|
+
echo "Run sync now? (Y/n)"
|
|
54
|
+
# If yes → Run /tlc:sync inline (post-rebase flow)
|
|
55
|
+
# Then continue to Step 1
|
|
42
56
|
fi
|
|
57
|
+
|
|
58
|
+
# If we get here, sync is current
|
|
59
|
+
echo "✓ Synced"
|
|
43
60
|
```
|
|
44
61
|
|
|
45
|
-
|
|
62
|
+
**Key behavior:**
|
|
63
|
+
- Detects if sync needed
|
|
64
|
+
- Asks for confirmation
|
|
65
|
+
- Runs sync flow inline (not separate command)
|
|
66
|
+
- Then continues to dashboard/status
|
|
67
|
+
|
|
68
|
+
User never needs to know about `/tlc:sync` as a separate command - `/tlc` handles everything.
|
|
46
69
|
|
|
47
70
|
### Step 1: Launch Dashboard
|
|
48
71
|
|