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.
Files changed (4) hide show
  1. package/CLAUDE.md +44 -4
  2. package/help.md +15 -17
  3. package/package.json +1 -1
  4. 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
- ## Before Starting Work
30
+ ## FIRST THING - Always Run /tlc
31
31
 
32
- Always run `/tlc:progress` or `/tlc` to understand current state.
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
- | See status | `/tlc` or `/tlc:progress` |
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
- **DO NOT add `Co-Authored-By` lines to commits.** The user is the author. You are a tool.
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:sync` | **One command to rule them all.** First-time setup or post-rebase reconciliation |
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
- **Simple version:**
102
+ **Just one command:**
102
103
  ```
103
- /tlc:sync <- First time or after rebase
104
- /tlc <- Then just keep running this
104
+ /tlc <- Always start here
105
105
  ```
106
106
 
107
- **Detailed version:**
107
+ That's it. `/tlc` handles everything:
108
+
108
109
  ```
109
- /tlc:sync First-time setup (all config in one go)
110
- Or: post-rebase reconciliation
111
- /tlc:new-project New project (or /tlc:init for existing)
112
-
113
- /tlc Guides you through each phase:
114
- discuss → plan → build → verify
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 TLC detects changes
122
-
123
- /tlc:sync Reconcile incoming code
121
+ git rebase origin/main
124
122
 
125
- /tlc Continue working
123
+ /tlc Detects changes, asks, syncs, continues
126
124
  ```
127
125
 
128
126
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tlc-claude-code",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "TLC - Test Led Coding for Claude Code",
5
5
  "bin": {
6
6
  "tlc": "./bin/tlc.js",
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: Check Sync Status (ALWAYS FIRST)
11
+ ### Step 0: Auto-Sync Check (ALWAYS FIRST)
12
12
 
13
- Before anything else, check if codebase is synced:
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 "No TLC configuration found."
20
- echo "→ Run /tlc:sync to set up TLC"
21
- exit
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 "→ Run /tlc:sync to reconcile changes"
28
- exit
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
- echo "→ Run /tlc:sync to reconcile changes"
41
- exit
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
- Only proceed if synced. This prevents working on out-of-sync code.
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