@ginkoai/cli 2.1.6-beta.0 → 2.1.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.
@@ -1,221 +0,0 @@
1
- # Ginko CLI Commands Reference
2
-
3
- Complete reference for all ginko CLI commands.
4
-
5
- ## Session Commands
6
-
7
- ### `ginko start [sessionId]`
8
- Start or resume a session with event-based context loading.
9
- - Loads context from `.ginko/sessions/[user]/`
10
- - Shows active sprint and next task
11
- - Warns about uncommitted files
12
-
13
- ### `ginko status`
14
- Show current session status.
15
-
16
- ### `ginko handoff [message]`
17
- Pause current session and create handoff document.
18
- - Archives previous session
19
- - Creates continuity document for next session
20
-
21
- ### `ginko log [description]`
22
- Log an event to the current session (defensive logging).
23
-
24
- ### `ginko compact`
25
- Reduce context size by removing stale information.
26
-
27
- ## Task Management
28
-
29
- ### `ginko task complete <taskId>`
30
- Mark task as complete. Updates knowledge graph (syncs to dashboard).
31
- - Options: `--cascade` (auto-complete parent if all siblings done)
32
-
33
- ### `ginko task start <taskId>`
34
- Mark task as in progress.
35
-
36
- ### `ginko task pause <taskId>`
37
- Return task to not_started state.
38
-
39
- ### `ginko task block <taskId> [reason]`
40
- Block task with reason. Prompts for reason if not provided.
41
-
42
- ### `ginko task show <taskId>`
43
- Show current task status.
44
-
45
- ## Sprint Management
46
-
47
- ### `ginko sprint start <sprintId>`
48
- Start sprint (planned → active).
49
-
50
- ### `ginko sprint complete <sprintId>`
51
- Complete sprint (active → complete).
52
-
53
- ### `ginko sprint pause <sprintId>`
54
- Pause sprint (active → paused).
55
-
56
- ### `ginko sprint status show <sprintId>`
57
- Show current sprint status.
58
-
59
- ### `ginko sprint deps`
60
- Visualize task dependencies as a tree.
61
-
62
- ## Knowledge Graph
63
-
64
- ### `ginko graph init`
65
- Initialize knowledge graph for your project.
66
-
67
- ### `ginko graph load [options]`
68
- Upload documents to knowledge graph.
69
- - `--docs-only`: Load ADRs and PRDs only
70
- - `--extended-only`: Load patterns, gotchas, sessions only
71
- - `--force`: Reload all documents even if unchanged
72
-
73
- ### `ginko graph status`
74
- Show graph statistics and health.
75
-
76
- ### `ginko graph health`
77
- Show graph reliability metrics (success rate, latency, retries).
78
-
79
- ### `ginko graph query <text>`
80
- Search documents using semantic similarity.
81
- - Options: `--limit N`, `--type <TYPE>`
82
-
83
- ### `ginko graph explore <documentId>`
84
- Explore document and its connections.
85
-
86
- ### `ginko graph migrate <migration>`
87
- Run graph migrations.
88
-
89
- ## Team & Assignment
90
-
91
- ### `ginko assign <taskIdOrEmail> [email]`
92
- Assign tasks to team members.
93
- - Updates both graph and sprint markdown
94
- - Options: `--sprint <id> --all` (assign all tasks in sprint)
95
-
96
- ### `ginko sync [options]`
97
- Pull dashboard knowledge edits to local git.
98
- - `--preview`: Preview without syncing
99
- - `--dry-run`: Preview what files would sync
100
- - `--force`: Overwrite local files
101
- - `--type <type>`: Sync only specific type (ADR, PRD, Pattern, etc.)
102
- - `--no-commit`: Sync without committing
103
-
104
- ### `ginko team-activity [user]`
105
- View team activity from user-namespaced session logs.
106
-
107
- ### `ginko invite [email]`
108
- Invite collaborators to join your team.
109
-
110
- ### `ginko join [code]`
111
- Join a team using an invitation code.
112
-
113
- ## Planning & Architecture
114
-
115
- ### `ginko charter`
116
- Create and manage project charter (AI-assisted).
117
-
118
- ### `ginko epic`
119
- Create and manage epics with status tracking.
120
-
121
- ### `ginko sprint [intent]`
122
- Sprint management and planning commands.
123
-
124
- ### `ginko plan [feature]`
125
- Create phased implementation plan with acceptance criteria.
126
-
127
- ### `ginko architecture [decision]`
128
- Design mode for crafting ADRs with AI enhancement.
129
-
130
- ### `ginko roadmap`
131
- View product roadmap (Now/Next/Later priority lanes).
132
-
133
- ### `ginko backlog`
134
- Manage git-native backlog items.
135
-
136
- ### `ginko feature <description>`
137
- Quick create a feature (shortcut for backlog create feature).
138
-
139
- ### `ginko story <description>`
140
- Quick create a story (shortcut for backlog create story).
141
-
142
- ## Development Tools
143
-
144
- ### `ginko ship [message]`
145
- AI-enhanced shipping with smart commit messages and PR descriptions.
146
-
147
- ### `ginko verify <taskId>`
148
- Verify task completion by running acceptance criteria checks.
149
-
150
- ### `ginko vibecheck [concern]`
151
- Pause moment for recalibration - conversational check-in.
152
-
153
- ### `ginko capture [description]`
154
- Capture a learning, discovery, or important context.
155
-
156
- ### `ginko explore [topic]`
157
- Collaborative thinking mode for exploring problems and solutions.
158
-
159
- ### `ginko reflect <intent>`
160
- Universal reflection pattern for AI-enhanced content generation.
161
-
162
- ## Multi-Agent
163
-
164
- ### `ginko orchestrate`
165
- Run as supervisor agent to coordinate multi-agent task execution.
166
-
167
- ### `ginko agent`
168
- Manage AI agents for multi-agent collaboration.
169
-
170
- ### `ginko checkpoint`
171
- Manage checkpoints for task rollback and recovery.
172
-
173
- ### `ginko dlq`
174
- Manage Dead Letter Queue (failed events).
175
-
176
- ### `ginko escalation`
177
- Manage human escalations for multi-agent collaboration.
178
-
179
- ### `ginko notifications`
180
- Manage notification hooks for human observability.
181
-
182
- ## Authentication
183
-
184
- ### `ginko login`
185
- Authenticate CLI with GitHub via Supabase OAuth.
186
-
187
- ### `ginko logout`
188
- Clear local authentication session.
189
-
190
- ### `ginko whoami`
191
- Display current authentication status and user information.
192
-
193
- ## Configuration
194
-
195
- ### `ginko init`
196
- Initialize Ginko in your project (sets up local structure + cloud graph).
197
-
198
- ### `ginko config [key] [value]`
199
- Manage Ginko configuration.
200
-
201
- ### `ginko context`
202
- Manage session context.
203
-
204
- ## IDE Integration
205
-
206
- ### `ginko init-cursor`
207
- Generate Cursor setup preview or apply it to the repository.
208
-
209
- ### `ginko uninstall-cursor`
210
- Remove Cursor integration.
211
-
212
- ### `ginko init-copilot`
213
- Generate GitHub Copilot setup preview or apply to repository.
214
-
215
- ### `ginko uninstall-copilot`
216
- Remove GitHub Copilot integration.
217
-
218
- ## Migration
219
-
220
- ### `ginko migrate`
221
- Migration utilities for syncing markdown to graph.
@@ -1,56 +0,0 @@
1
- # Pull Skill (ADR-077)
2
-
3
- ## Purpose
4
- Pull dashboard edits from the Ginko Cloud knowledge graph to local git repository.
5
-
6
- ## When to Use
7
- - At the start of a session when team context may be stale
8
- - When `ginko start` shows staleness warnings
9
- - When user requests updates from dashboard
10
- - After team members have made edits in the dashboard
11
-
12
- ## Command Reference
13
-
14
- ```bash
15
- # Pull all changes from graph
16
- ginko pull
17
-
18
- # Pull specific entity types
19
- ginko pull sprint # Pull sprint changes (status updates)
20
- ginko pull adr # Pull ADR edits
21
- ginko pull epic # Pull epic changes
22
-
23
- # Options
24
- ginko pull --dry-run # Preview without pulling
25
- ginko pull --force # Overwrite local with graph versions
26
- ```
27
-
28
- ## Options
29
-
30
- | Flag | Description | Default |
31
- |------|-------------|---------|
32
- | `--dry-run` | Preview what would be pulled | false |
33
- | `--force` | Overwrite local files with graph versions | false |
34
-
35
- ## Error Handling
36
-
37
- | Error | Action |
38
- |-------|--------|
39
- | `Not authenticated` | Prompt: Run `ginko login` |
40
- | `Graph not initialized` | Prompt: Run `ginko graph init` |
41
- | Conflict detected | Interactive resolution (use-graph, use-local, skip) |
42
- | 5xx server error | Retry with exponential backoff |
43
-
44
- ## Behavioral Rules
45
-
46
- 1. **Pull at session start** - When `ginko start` shows staleness, auto-pull
47
- 2. **Content conflicts: local wins** - Per ADR-060, content in git is authoritative
48
- 3. **State conflicts: graph wins** - Status, assignments are graph-authoritative
49
- 4. **Never use deprecated alternatives** - Do not use `ginko sync` (deprecated)
50
- 5. **After pull, suggest push** - If local has unpushed changes, suggest `ginko push`
51
-
52
- ## Anti-Patterns (DO NOT)
53
-
54
- - Do NOT use `ginko sync` (deprecated, use `ginko pull`)
55
- - Do NOT use curl/fetch to hit graph API directly
56
- - Do NOT skip pull when team context is stale
@@ -1,73 +0,0 @@
1
- # Push Skill (ADR-077)
2
-
3
- ## Purpose
4
- Push local content changes to the Ginko Cloud knowledge graph using git-integrated change detection.
5
-
6
- ## When to Use
7
- - After creating or modifying content files (epics, sprints, ADRs, charters, patterns, gotchas)
8
- - After `ginko handoff` to ensure all work is synced
9
- - After `ginko task complete` / `ginko sprint complete` to persist state
10
- - When the orchestrator detects unpushed content changes
11
- - When user requests sync to graph
12
-
13
- ## Command Reference
14
-
15
- ```bash
16
- # Push all changes since last push
17
- ginko push
18
-
19
- # Push specific entity types
20
- ginko push epic # All changed epics
21
- ginko push epic EPIC-001 # Specific epic
22
- ginko push sprint e001_s01 # Specific sprint
23
- ginko push charter # Project charter
24
- ginko push adr # All changed ADRs
25
-
26
- # Options
27
- ginko push --dry-run # Preview without pushing
28
- ginko push --force # Overwrite graph content
29
- ginko push --all # Push all (not just changes)
30
- ginko push --no-events # Skip event files
31
- ```
32
-
33
- ## Options
34
-
35
- | Flag | Description | Default |
36
- |------|-------------|---------|
37
- | `--dry-run` | Preview what would be pushed | false |
38
- | `--force` | Overwrite graph even if conflicts | false |
39
- | `--all` | Push all content files, ignoring change detection | false |
40
- | `--no-events` | Skip pushing event JSONL files | false |
41
-
42
- ## Error Handling
43
-
44
- | Error | Action |
45
- |-------|--------|
46
- | `Not authenticated` | Prompt: Run `ginko login` |
47
- | `Graph not initialized` | Prompt: Run `ginko graph init` |
48
- | 5xx server error | Retry with exponential backoff (handled by API client) |
49
- | 4xx client error | Report to user, do not retry |
50
- | Network error | Retry up to 3 times |
51
-
52
- ## Behavioral Rules
53
-
54
- 1. **Always push after entity creation** - When an epic, sprint, charter, or ADR is created, push immediately
55
- 2. **Push is non-blocking for auto-push** - When dispatched as a subagent, run in background
56
- 3. **Prefer targeted push** - Use `ginko push epic` instead of `ginko push` when you know the entity type
57
- 4. **Never use deprecated alternatives** - Do not use `ginko graph load` or `--sync` flags
58
- 5. **Report results concisely** - Show file count, task count, and event count
59
-
60
- ## Anti-Patterns (DO NOT)
61
-
62
- - Do NOT use `ginko graph load` (deprecated, use `ginko push --all`)
63
- - Do NOT use `ginko epic --sync` (deprecated, use `ginko push epic`)
64
- - Do NOT use `ginko charter --sync` (deprecated, use `ginko push charter`)
65
- - Do NOT use curl/fetch to hit graph API directly
66
- - Do NOT skip push after creating content
67
-
68
- ## Exit Codes
69
-
70
- | Code | Meaning |
71
- |------|---------|
72
- | 0 | Push completed successfully |
73
- | 1 | Push failed (auth, config, or API error) |
@@ -1,209 +0,0 @@
1
- ---
2
- name: ginko
3
- description: Ginko CLI mastery - session management, task status, graph queries, sprint workflows. Use when working with ginko commands, managing tasks, querying the knowledge graph, or coordinating development sessions.
4
- ---
5
-
6
- # Ginko CLI Skill
7
-
8
- Execute ginko commands effectively for session management, task tracking, and knowledge graph operations.
9
-
10
- ## Quick Reference
11
-
12
- | Need | Command |
13
- |------|---------|
14
- | Start session | `ginko start` |
15
- | End session | `ginko handoff [message]` |
16
- | Check progress | `ginko sprint status show <sprintId>` |
17
- | Mark task done | `ginko task complete <taskId>` |
18
- | Mark sprint done | `ginko sprint complete <sprintId>` |
19
- | Search knowledge | `ginko graph query "topic"` |
20
- | View relationships | `ginko graph explore <nodeId>` |
21
- | Push to graph | `ginko push` |
22
- | Pull from dashboard | `ginko pull` |
23
- | Assign work | `ginko assign <taskId> <email>` |
24
-
25
- ## Session Lifecycle
26
-
27
- ### Starting Work
28
- ```bash
29
- GINKO_FORCE_TTY=1 ginko start
30
- ```
31
- - Shows flow state, work mode, active sprint
32
- - Displays "Next up" task based on assignment and status
33
- - Warns about uncommitted files or stale team context
34
-
35
- **On staleness warning**: Auto-run `ginko pull` to pull team updates.
36
-
37
- ### Ending Work
38
- ```bash
39
- ginko handoff "summary of what was done"
40
- ```
41
- - Archives session context
42
- - Creates handoff document for continuity
43
-
44
- ## Task & Sprint Status Management
45
-
46
- ### Task Status Flow
47
- ```
48
- not_started → in_progress → complete
49
-
50
- blocked (with reason)
51
- ```
52
-
53
- ### Critical: Marking Work Complete
54
-
55
- **Tasks**: Update the knowledge graph (syncs to dashboard)
56
- ```bash
57
- ginko task complete e016_s01_t01
58
- ginko task start e016_s01_t02
59
- ginko task block e016_s01_t03 "waiting for API review"
60
- ```
61
-
62
- **Sprints**: Use sprint command, not task command
63
- ```bash
64
- ginko sprint complete e016_s01
65
- ginko sprint start e016_s02
66
- ginko sprint pause e016_s01
67
- ```
68
-
69
- **Verify status**:
70
- ```bash
71
- ginko task show <taskId> # Shows: ✓ complete, ○ not_started, etc.
72
- ginko sprint status show <sprintId>
73
- ```
74
-
75
- ### Common Pitfall
76
- If dashboard shows tasks as "todo" but `ginko graph explore` shows checkmarks:
77
- - The graph node has markdown checkmarks but status property wasn't updated
78
- - Fix: Run `ginko task complete <taskId>` for each task
79
- - This updates the graph property that syncs to dashboard
80
-
81
- ### Cascade Completion
82
- When finishing the last task in a sprint:
83
- ```bash
84
- ginko task complete e016_s01_t07 --cascade
85
- ```
86
- Auto-completes parent sprint if all tasks done.
87
-
88
- ## Knowledge Graph Queries
89
-
90
- ### Semantic Search
91
- ```bash
92
- ginko graph query "authentication patterns"
93
- ginko graph query "error handling" --limit 10
94
- ginko graph query "topic" --type ADR
95
- ```
96
-
97
- ### Explore Relationships
98
- ```bash
99
- ginko graph explore e016_s01 # Sprint and its tasks
100
- ginko graph explore ADR-039 # ADR and connections
101
- ginko graph explore e016_s01_t01 # Task details
102
- ```
103
-
104
- ### Graph Health
105
- ```bash
106
- ginko graph status # Node counts, relationships
107
- ginko graph health # API reliability metrics
108
- ```
109
-
110
- ## Assignment & Team
111
-
112
- ### Assign Tasks
113
- ```bash
114
- ginko assign e016_s03_t01 user@example.com
115
- ginko assign --sprint e016_s03 --all user@example.com
116
- ```
117
-
118
- ### Push/Pull Sync (ADR-077)
119
-
120
- **MANDATORY**: Use push/pull for all sync operations. Never use deprecated `ginko sync` or `ginko graph load`.
121
-
122
- ```bash
123
- # Push local changes to graph
124
- ginko push # Push all changes since last push
125
- ginko push epic # Push only changed epics
126
- ginko push sprint e001_s01 # Push specific sprint
127
- ginko push charter # Push charter
128
- ginko push --dry-run # Preview what would be pushed
129
- ginko push --all # Push all content (like graph load)
130
-
131
- # Pull dashboard changes to local
132
- ginko pull # Pull all changes from dashboard
133
- ginko pull sprint # Pull only sprint changes
134
- ginko pull --force # Overwrite local with graph
135
-
136
- # Compare
137
- ginko diff epic/EPIC-001 # Show local vs graph diff
138
- ginko status # Show sync state (unpushed/unpulled)
139
- ```
140
-
141
- **Auto-push**: Fires automatically after task/sprint status changes and handoff.
142
-
143
- **Deprecated commands** (still work but show warnings):
144
- - `ginko sync` → use `ginko pull`
145
- - `ginko graph load` → use `ginko push --all`
146
- - `ginko epic --sync` → use `ginko push epic`
147
- - `ginko charter --sync` → use `ginko push charter`
148
-
149
- ## Sprint Planning
150
-
151
- ### View Roadmap
152
- ```bash
153
- ginko roadmap # Now/Next/Later priority lanes
154
- ```
155
-
156
- ### Sprint Commands
157
- ```bash
158
- ginko sprint deps # Visualize task dependencies
159
- ginko sprint start <id> # Activate sprint
160
- ginko sprint complete <id> # Mark sprint done
161
- ginko sprint pause <id> # Temporarily hold
162
- ```
163
-
164
- ## Entity Naming Convention
165
-
166
- | Entity | Format | Example |
167
- |--------|--------|---------|
168
- | Epic | `e{NNN}` | `e016` |
169
- | Sprint | `e{NNN}_s{NN}` | `e016_s03` |
170
- | Task | `e{NNN}_s{NN}_t{NN}` | `e016_s03_t01` |
171
- | Ad-hoc | `adhoc_{YYMMDD}_s{NN}` | `adhoc_260123_s01` |
172
-
173
- ## Environment Variables
174
-
175
- | Variable | Purpose |
176
- |----------|---------|
177
- | `GINKO_FORCE_TTY=1` | Force rich output (tables, colors) in Claude Code |
178
- | `FORCE_COLOR=1` | Force chalk colors (auto-set with GINKO_FORCE_TTY) |
179
-
180
- ## Troubleshooting
181
-
182
- | Issue | Solution |
183
- |-------|----------|
184
- | Task not found | Check ID format matches `e{NNN}_s{NN}_t{NN}` |
185
- | Sprint won't complete | Use `ginko sprint complete`, not `ginko task complete` |
186
- | Dashboard out of sync | Run `ginko push` to push local changes, or `ginko task complete` for status |
187
- | Stale team context | Run `ginko pull` to pull updates |
188
- | Graph query fails | Check `ginko graph health` for API issues |
189
-
190
- ## Common Workflows
191
-
192
- ### Daily Session
193
- 1. `ginko start` - Load context, see next task
194
- 2. `ginko task start <id>` - Mark task in progress
195
- 3. Do the work
196
- 4. `ginko task complete <id>` - Mark done
197
- 5. `ginko handoff "summary"` - End session
198
-
199
- ### Sprint Completion
200
- 1. Verify all tasks: `ginko graph explore <sprintId>`
201
- 2. Complete any unmarked tasks: `ginko task complete <taskId>`
202
- 3. Complete sprint: `ginko sprint complete <sprintId>`
203
- 4. Verify: `ginko sprint status show <sprintId>`
204
-
205
- ### Investigate Status Mismatch
206
- 1. Check graph: `ginko graph explore <id>`
207
- 2. Check status: `ginko task show <id>` or `ginko sprint status show <id>`
208
- 3. If mismatch: update with appropriate command
209
- 4. Verify dashboard reflects changes