ragarciaruben 1.20.19 → 1.20.21

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 (91) hide show
  1. package/.github/agents/product-owner.agent.md +98 -0
  2. package/.github/agents/verifier.agent.md +3 -0
  3. package/.github/prompts/break-down-epic.prompt.md +125 -0
  4. package/.github/prompts/create-tickets.prompt.md +93 -0
  5. package/.github/prompts/refine-backlog.prompt.md +88 -0
  6. package/bin/install.js +406 -1969
  7. package/get-shit-done/templates/AGENTS.md +83 -0
  8. package/get-shit-done/templates/opencode/agents/executor.md +61 -0
  9. package/get-shit-done/templates/opencode/agents/planner.md +77 -0
  10. package/get-shit-done/templates/opencode/agents/product-owner.md +65 -0
  11. package/{.github/copilot-context/agents/verifier.agent.md → get-shit-done/templates/opencode/agents/verifier.md} +12 -35
  12. package/get-shit-done/templates/opencode/commands/break-down-epic.md +120 -0
  13. package/get-shit-done/templates/opencode/commands/create-tickets.md +75 -0
  14. package/{.github/copilot-context/prompts/execute-phase.prompt.md → get-shit-done/templates/opencode/commands/execute-phase.md} +5 -33
  15. package/{.github/copilot-context/prompts/map-codebase.prompt.md → get-shit-done/templates/opencode/commands/map-codebase.md} +12 -41
  16. package/{.github/copilot-context/prompts/new-project.prompt.md → get-shit-done/templates/opencode/commands/new-project.md} +17 -33
  17. package/{.github/copilot-context/prompts/pause-work.prompt.md → get-shit-done/templates/opencode/commands/pause-work.md} +6 -19
  18. package/{.github/copilot-context/prompts/plan-phase.prompt.md → get-shit-done/templates/opencode/commands/plan-phase.md} +4 -27
  19. package/{.github/copilot-context/prompts/progress.prompt.md → get-shit-done/templates/opencode/commands/progress.md} +1 -4
  20. package/{.github/copilot-context/prompts/redefine-roadmap.prompt.md → get-shit-done/templates/opencode/commands/redefine-roadmap.md} +8 -21
  21. package/get-shit-done/templates/opencode/commands/refine-backlog.md +77 -0
  22. package/{.github/copilot-context/prompts/resume-work.prompt.md → get-shit-done/templates/opencode/commands/resume-work.md} +2 -13
  23. package/get-shit-done/templates/opencode/commands/set-profile.md +65 -0
  24. package/{.github/copilot-context/prompts/sync-instructions.prompt.md → get-shit-done/templates/opencode/commands/sync-instructions.md} +9 -13
  25. package/{.github/copilot-context/prompts/sync-jira.prompt.md → get-shit-done/templates/opencode/commands/sync-jira.md} +5 -17
  26. package/{.github/copilot-context/prompts/verify-work.prompt.md → get-shit-done/templates/opencode/commands/verify-work.md} +5 -33
  27. package/get-shit-done/templates/opencode.json +15 -0
  28. package/package.json +7 -17
  29. package/.github/copilot-context/README.md +0 -556
  30. package/.github/copilot-context/agents/executor.agent.md +0 -84
  31. package/.github/copilot-context/agents/planner.agent.md +0 -96
  32. package/.github/copilot-context/hooks/hooks.json +0 -11
  33. package/.github/copilot-context/hooks/inject-context.js +0 -107
  34. package/.github/copilot-context/instructions/architecture.instructions.md +0 -33
  35. package/.github/copilot-context/instructions/concerns.instructions.md +0 -30
  36. package/.github/copilot-context/instructions/conventions.instructions.md +0 -25
  37. package/.github/copilot-context/instructions/integrations.instructions.md +0 -30
  38. package/.github/copilot-context/instructions/stack.instructions.md +0 -30
  39. package/.github/copilot-context/instructions/structure.instructions.md +0 -32
  40. package/.github/copilot-context/instructions/testing.instructions.md +0 -25
  41. package/.github/copilot-context/skills/map-codebase/SKILL.md +0 -49
  42. package/.github/copilot-context/skills/project-history/SKILL.md +0 -46
  43. package/.vscode/settings.json +0 -9
  44. package/agents/gsd-codebase-mapper.md +0 -764
  45. package/agents/gsd-debugger.md +0 -1246
  46. package/agents/gsd-executor.md +0 -469
  47. package/agents/gsd-integration-checker.md +0 -443
  48. package/agents/gsd-phase-researcher.md +0 -546
  49. package/agents/gsd-plan-checker.md +0 -690
  50. package/agents/gsd-planner.md +0 -1275
  51. package/agents/gsd-project-researcher.md +0 -621
  52. package/agents/gsd-research-synthesizer.md +0 -239
  53. package/agents/gsd-roadmapper.md +0 -642
  54. package/agents/gsd-verifier.md +0 -573
  55. package/bin/setup-copilot-context.js +0 -245
  56. package/commands/gsd/add-phase.md +0 -43
  57. package/commands/gsd/add-tests.md +0 -41
  58. package/commands/gsd/add-todo.md +0 -47
  59. package/commands/gsd/audit-milestone.md +0 -36
  60. package/commands/gsd/check-todos.md +0 -45
  61. package/commands/gsd/cleanup.md +0 -18
  62. package/commands/gsd/complete-milestone.md +0 -136
  63. package/commands/gsd/debug.md +0 -167
  64. package/commands/gsd/discuss-phase.md +0 -83
  65. package/commands/gsd/execute-phase.md +0 -41
  66. package/commands/gsd/health.md +0 -22
  67. package/commands/gsd/help.md +0 -22
  68. package/commands/gsd/insert-phase.md +0 -32
  69. package/commands/gsd/join-discord.md +0 -18
  70. package/commands/gsd/list-phase-assumptions.md +0 -46
  71. package/commands/gsd/map-codebase.md +0 -71
  72. package/commands/gsd/new-milestone.md +0 -44
  73. package/commands/gsd/new-project.md +0 -42
  74. package/commands/gsd/new-project.md.bak +0 -1041
  75. package/commands/gsd/pause-work.md +0 -38
  76. package/commands/gsd/plan-milestone-gaps.md +0 -34
  77. package/commands/gsd/plan-phase.md +0 -45
  78. package/commands/gsd/progress.md +0 -24
  79. package/commands/gsd/quick.md +0 -41
  80. package/commands/gsd/reapply-patches.md +0 -110
  81. package/commands/gsd/remove-phase.md +0 -31
  82. package/commands/gsd/research-phase.md +0 -189
  83. package/commands/gsd/resume-work.md +0 -40
  84. package/commands/gsd/set-profile.md +0 -34
  85. package/commands/gsd/settings.md +0 -36
  86. package/commands/gsd/update.md +0 -37
  87. package/commands/gsd/verify-work.md +0 -38
  88. package/hooks/dist/gsd-check-update.js +0 -62
  89. package/hooks/dist/gsd-context-monitor.js +0 -122
  90. package/hooks/dist/gsd-statusline.js +0 -108
  91. package/scripts/build-hooks.js +0 -43
@@ -1,38 +0,0 @@
1
- ---
2
- name: gsd:verify-work
3
- description: Validate built features through conversational UAT
4
- argument-hint: "[phase number, e.g., '4']"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Glob
9
- - Grep
10
- - Edit
11
- - Write
12
- - Task
13
- ---
14
- <objective>
15
- Validate built features through conversational testing with persistent state.
16
-
17
- Purpose: Confirm what Claude built actually works from user's perspective. One test at a time, plain text responses, no interrogation. When issues are found, automatically diagnose, plan fixes, and prepare for execution.
18
-
19
- Output: {phase_num}-UAT.md tracking all test results. If issues found: diagnosed gaps, verified fix plans ready for /gsd:execute-phase
20
- </objective>
21
-
22
- <execution_context>
23
- @~/.claude/get-shit-done/workflows/verify-work.md
24
- @~/.claude/get-shit-done/templates/UAT.md
25
- </execution_context>
26
-
27
- <context>
28
- Phase: $ARGUMENTS (optional)
29
- - If provided: Test specific phase (e.g., "4")
30
- - If not provided: Check for active sessions or prompt for phase
31
-
32
- Context files are resolved inside the workflow (`init verify-work`) and delegated via `<files_to_read>` blocks.
33
- </context>
34
-
35
- <process>
36
- Execute the verify-work workflow from @~/.claude/get-shit-done/workflows/verify-work.md end-to-end.
37
- Preserve all workflow gates (session management, test presentation, diagnosis, fix planning, routing).
38
- </process>
@@ -1,62 +0,0 @@
1
- #!/usr/bin/env node
2
- // Check for GSD updates in background, write result to cache
3
- // Called by SessionStart hook - runs once per session
4
-
5
- const fs = require('fs');
6
- const path = require('path');
7
- const os = require('os');
8
- const { spawn } = require('child_process');
9
-
10
- const homeDir = os.homedir();
11
- const cwd = process.cwd();
12
- const cacheDir = path.join(homeDir, '.claude', 'cache');
13
- const cacheFile = path.join(cacheDir, 'gsd-update-check.json');
14
-
15
- // VERSION file locations (check project first, then global)
16
- const projectVersionFile = path.join(cwd, '.claude', 'get-shit-done', 'VERSION');
17
- const globalVersionFile = path.join(homeDir, '.claude', 'get-shit-done', 'VERSION');
18
-
19
- // Ensure cache directory exists
20
- if (!fs.existsSync(cacheDir)) {
21
- fs.mkdirSync(cacheDir, { recursive: true });
22
- }
23
-
24
- // Run check in background (spawn background process, windowsHide prevents console flash)
25
- const child = spawn(process.execPath, ['-e', `
26
- const fs = require('fs');
27
- const { execSync } = require('child_process');
28
-
29
- const cacheFile = ${JSON.stringify(cacheFile)};
30
- const projectVersionFile = ${JSON.stringify(projectVersionFile)};
31
- const globalVersionFile = ${JSON.stringify(globalVersionFile)};
32
-
33
- // Check project directory first (local install), then global
34
- let installed = '0.0.0';
35
- try {
36
- if (fs.existsSync(projectVersionFile)) {
37
- installed = fs.readFileSync(projectVersionFile, 'utf8').trim();
38
- } else if (fs.existsSync(globalVersionFile)) {
39
- installed = fs.readFileSync(globalVersionFile, 'utf8').trim();
40
- }
41
- } catch (e) {}
42
-
43
- let latest = null;
44
- try {
45
- latest = execSync('npm view get-shit-done-cc version', { encoding: 'utf8', timeout: 10000, windowsHide: true }).trim();
46
- } catch (e) {}
47
-
48
- const result = {
49
- update_available: latest && installed !== latest,
50
- installed,
51
- latest: latest || 'unknown',
52
- checked: Math.floor(Date.now() / 1000)
53
- };
54
-
55
- fs.writeFileSync(cacheFile, JSON.stringify(result));
56
- `], {
57
- stdio: 'ignore',
58
- windowsHide: true,
59
- detached: true // Required on Windows for proper process detachment
60
- });
61
-
62
- child.unref();
@@ -1,122 +0,0 @@
1
- #!/usr/bin/env node
2
- // Context Monitor - PostToolUse hook
3
- // Reads context metrics from the statusline bridge file and injects
4
- // warnings when context usage is high. This makes the AGENT aware of
5
- // context limits (the statusline only shows the user).
6
- //
7
- // How it works:
8
- // 1. The statusline hook writes metrics to /tmp/claude-ctx-{session_id}.json
9
- // 2. This hook reads those metrics after each tool use
10
- // 3. When remaining context drops below thresholds, it injects a warning
11
- // as additionalContext, which the agent sees in its conversation
12
- //
13
- // Thresholds:
14
- // WARNING (remaining <= 35%): Agent should wrap up current task
15
- // CRITICAL (remaining <= 25%): Agent should stop immediately and save state
16
- //
17
- // Debounce: 5 tool uses between warnings to avoid spam
18
- // Severity escalation bypasses debounce (WARNING -> CRITICAL fires immediately)
19
-
20
- const fs = require('fs');
21
- const os = require('os');
22
- const path = require('path');
23
-
24
- const WARNING_THRESHOLD = 35; // remaining_percentage <= 35%
25
- const CRITICAL_THRESHOLD = 25; // remaining_percentage <= 25%
26
- const STALE_SECONDS = 60; // ignore metrics older than 60s
27
- const DEBOUNCE_CALLS = 5; // min tool uses between warnings
28
-
29
- let input = '';
30
- process.stdin.setEncoding('utf8');
31
- process.stdin.on('data', chunk => input += chunk);
32
- process.stdin.on('end', () => {
33
- try {
34
- const data = JSON.parse(input);
35
- const sessionId = data.session_id;
36
-
37
- if (!sessionId) {
38
- process.exit(0);
39
- }
40
-
41
- const tmpDir = os.tmpdir();
42
- const metricsPath = path.join(tmpDir, `claude-ctx-${sessionId}.json`);
43
-
44
- // If no metrics file, this is a subagent or fresh session -- exit silently
45
- if (!fs.existsSync(metricsPath)) {
46
- process.exit(0);
47
- }
48
-
49
- const metrics = JSON.parse(fs.readFileSync(metricsPath, 'utf8'));
50
- const now = Math.floor(Date.now() / 1000);
51
-
52
- // Ignore stale metrics
53
- if (metrics.timestamp && (now - metrics.timestamp) > STALE_SECONDS) {
54
- process.exit(0);
55
- }
56
-
57
- const remaining = metrics.remaining_percentage;
58
- const usedPct = metrics.used_pct;
59
-
60
- // No warning needed
61
- if (remaining > WARNING_THRESHOLD) {
62
- process.exit(0);
63
- }
64
-
65
- // Debounce: check if we warned recently
66
- const warnPath = path.join(tmpDir, `claude-ctx-${sessionId}-warned.json`);
67
- let warnData = { callsSinceWarn: 0, lastLevel: null };
68
- let firstWarn = true;
69
-
70
- if (fs.existsSync(warnPath)) {
71
- try {
72
- warnData = JSON.parse(fs.readFileSync(warnPath, 'utf8'));
73
- firstWarn = false;
74
- } catch (e) {
75
- // Corrupted file, reset
76
- }
77
- }
78
-
79
- warnData.callsSinceWarn = (warnData.callsSinceWarn || 0) + 1;
80
-
81
- const isCritical = remaining <= CRITICAL_THRESHOLD;
82
- const currentLevel = isCritical ? 'critical' : 'warning';
83
-
84
- // Emit immediately on first warning, then debounce subsequent ones
85
- // Severity escalation (WARNING -> CRITICAL) bypasses debounce
86
- const severityEscalated = currentLevel === 'critical' && warnData.lastLevel === 'warning';
87
- if (!firstWarn && warnData.callsSinceWarn < DEBOUNCE_CALLS && !severityEscalated) {
88
- // Update counter and exit without warning
89
- fs.writeFileSync(warnPath, JSON.stringify(warnData));
90
- process.exit(0);
91
- }
92
-
93
- // Reset debounce counter
94
- warnData.callsSinceWarn = 0;
95
- warnData.lastLevel = currentLevel;
96
- fs.writeFileSync(warnPath, JSON.stringify(warnData));
97
-
98
- // Build warning message
99
- let message;
100
- if (isCritical) {
101
- message = `CONTEXT MONITOR CRITICAL: Usage at ${usedPct}%. Remaining: ${remaining}%. ` +
102
- 'STOP new work immediately. Save state NOW and inform the user that context is nearly exhausted. ' +
103
- 'If using GSD, run /gsd:pause-work to save execution state.';
104
- } else {
105
- message = `CONTEXT MONITOR WARNING: Usage at ${usedPct}%. Remaining: ${remaining}%. ` +
106
- 'Begin wrapping up current task. Do not start new complex work. ' +
107
- 'If using GSD, consider /gsd:pause-work to save state.';
108
- }
109
-
110
- const output = {
111
- hookSpecificOutput: {
112
- hookEventName: "PostToolUse",
113
- additionalContext: message
114
- }
115
- };
116
-
117
- process.stdout.write(JSON.stringify(output));
118
- } catch (e) {
119
- // Silent fail -- never block tool execution
120
- process.exit(0);
121
- }
122
- });
@@ -1,108 +0,0 @@
1
- #!/usr/bin/env node
2
- // Claude Code Statusline - GSD Edition
3
- // Shows: model | current task | directory | context usage
4
-
5
- const fs = require('fs');
6
- const path = require('path');
7
- const os = require('os');
8
-
9
- // Read JSON from stdin
10
- let input = '';
11
- process.stdin.setEncoding('utf8');
12
- process.stdin.on('data', chunk => input += chunk);
13
- process.stdin.on('end', () => {
14
- try {
15
- const data = JSON.parse(input);
16
- const model = data.model?.display_name || 'Claude';
17
- const dir = data.workspace?.current_dir || process.cwd();
18
- const session = data.session_id || '';
19
- const remaining = data.context_window?.remaining_percentage;
20
-
21
- // Context window display (shows USED percentage scaled to 80% limit)
22
- // Claude Code enforces an 80% context limit, so we scale to show 100% at that point
23
- let ctx = '';
24
- if (remaining != null) {
25
- const rem = Math.round(remaining);
26
- const rawUsed = Math.max(0, Math.min(100, 100 - rem));
27
- // Scale: 80% real usage = 100% displayed
28
- const used = Math.min(100, Math.round((rawUsed / 80) * 100));
29
-
30
- // Write context metrics to bridge file for the context-monitor PostToolUse hook.
31
- // The monitor reads this file to inject agent-facing warnings when context is low.
32
- if (session) {
33
- try {
34
- const bridgePath = path.join(os.tmpdir(), `claude-ctx-${session}.json`);
35
- const bridgeData = JSON.stringify({
36
- session_id: session,
37
- remaining_percentage: remaining,
38
- used_pct: used,
39
- timestamp: Math.floor(Date.now() / 1000)
40
- });
41
- fs.writeFileSync(bridgePath, bridgeData);
42
- } catch (e) {
43
- // Silent fail -- bridge is best-effort, don't break statusline
44
- }
45
- }
46
-
47
- // Build progress bar (10 segments)
48
- const filled = Math.floor(used / 10);
49
- const bar = '█'.repeat(filled) + '░'.repeat(10 - filled);
50
-
51
- // Color based on scaled usage (thresholds adjusted for new scale)
52
- if (used < 63) { // ~50% real
53
- ctx = ` \x1b[32m${bar} ${used}%\x1b[0m`;
54
- } else if (used < 81) { // ~65% real
55
- ctx = ` \x1b[33m${bar} ${used}%\x1b[0m`;
56
- } else if (used < 95) { // ~76% real
57
- ctx = ` \x1b[38;5;208m${bar} ${used}%\x1b[0m`;
58
- } else {
59
- ctx = ` \x1b[5;31m💀 ${bar} ${used}%\x1b[0m`;
60
- }
61
- }
62
-
63
- // Current task from todos
64
- let task = '';
65
- const homeDir = os.homedir();
66
- const todosDir = path.join(homeDir, '.claude', 'todos');
67
- if (session && fs.existsSync(todosDir)) {
68
- try {
69
- const files = fs.readdirSync(todosDir)
70
- .filter(f => f.startsWith(session) && f.includes('-agent-') && f.endsWith('.json'))
71
- .map(f => ({ name: f, mtime: fs.statSync(path.join(todosDir, f)).mtime }))
72
- .sort((a, b) => b.mtime - a.mtime);
73
-
74
- if (files.length > 0) {
75
- try {
76
- const todos = JSON.parse(fs.readFileSync(path.join(todosDir, files[0].name), 'utf8'));
77
- const inProgress = todos.find(t => t.status === 'in_progress');
78
- if (inProgress) task = inProgress.activeForm || '';
79
- } catch (e) {}
80
- }
81
- } catch (e) {
82
- // Silently fail on file system errors - don't break statusline
83
- }
84
- }
85
-
86
- // GSD update available?
87
- let gsdUpdate = '';
88
- const cacheFile = path.join(homeDir, '.claude', 'cache', 'gsd-update-check.json');
89
- if (fs.existsSync(cacheFile)) {
90
- try {
91
- const cache = JSON.parse(fs.readFileSync(cacheFile, 'utf8'));
92
- if (cache.update_available) {
93
- gsdUpdate = '\x1b[33m⬆ /gsd:update\x1b[0m │ ';
94
- }
95
- } catch (e) {}
96
- }
97
-
98
- // Output
99
- const dirname = path.basename(dir);
100
- if (task) {
101
- process.stdout.write(`${gsdUpdate}\x1b[2m${model}\x1b[0m │ \x1b[1m${task}\x1b[0m │ \x1b[2m${dirname}\x1b[0m${ctx}`);
102
- } else {
103
- process.stdout.write(`${gsdUpdate}\x1b[2m${model}\x1b[0m │ \x1b[2m${dirname}\x1b[0m${ctx}`);
104
- }
105
- } catch (e) {
106
- // Silent fail - don't break statusline on parse errors
107
- }
108
- });
@@ -1,43 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Copy GSD hooks to dist for installation.
4
- */
5
-
6
- const fs = require('fs');
7
- const path = require('path');
8
-
9
- const HOOKS_DIR = path.join(__dirname, '..', 'hooks');
10
- const DIST_DIR = path.join(HOOKS_DIR, 'dist');
11
-
12
- // Hooks to copy (pure Node.js, no bundling needed)
13
- const HOOKS_TO_COPY = [
14
- 'gsd-check-update.js',
15
- 'gsd-context-monitor.js',
16
- 'gsd-statusline.js'
17
- ];
18
-
19
- function build() {
20
- // Ensure dist directory exists
21
- if (!fs.existsSync(DIST_DIR)) {
22
- fs.mkdirSync(DIST_DIR, { recursive: true });
23
- }
24
-
25
- // Copy hooks to dist
26
- for (const hook of HOOKS_TO_COPY) {
27
- const src = path.join(HOOKS_DIR, hook);
28
- const dest = path.join(DIST_DIR, hook);
29
-
30
- if (!fs.existsSync(src)) {
31
- console.warn(`Warning: ${hook} not found, skipping`);
32
- continue;
33
- }
34
-
35
- console.log(`Copying ${hook}...`);
36
- fs.copyFileSync(src, dest);
37
- console.log(` → ${dest}`);
38
- }
39
-
40
- console.log('\nBuild complete.');
41
- }
42
-
43
- build();