awesome-slash 2.4.2

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 (95) hide show
  1. package/.claude-plugin/marketplace.json +54 -0
  2. package/.claude-plugin/plugin.json +11 -0
  3. package/.mcp.json +8 -0
  4. package/CHANGELOG.md +261 -0
  5. package/LICENSE +21 -0
  6. package/README.md +363 -0
  7. package/SECURITY.md +101 -0
  8. package/adapters/README.md +256 -0
  9. package/adapters/codex/README.md +272 -0
  10. package/adapters/codex/install.sh +179 -0
  11. package/adapters/opencode/README.md +301 -0
  12. package/adapters/opencode/install.sh +223 -0
  13. package/lib/patterns/review-patterns.js +511 -0
  14. package/lib/patterns/slop-patterns.js +647 -0
  15. package/lib/platform/detect-platform.js +535 -0
  16. package/lib/platform/verify-tools.js +235 -0
  17. package/lib/state/workflow-state.js +635 -0
  18. package/lib/state/workflow-state.schema.json +282 -0
  19. package/lib/utils/context-optimizer.js +227 -0
  20. package/mcp-server/index.js +303 -0
  21. package/mcp-server/package.json +23 -0
  22. package/package.json +63 -0
  23. package/plugins/deslop-around/.claude-plugin/plugin.json +20 -0
  24. package/plugins/deslop-around/commands/deslop-around.md +220 -0
  25. package/plugins/deslop-around/lib/patterns/review-patterns.js +511 -0
  26. package/plugins/deslop-around/lib/patterns/slop-patterns.js +641 -0
  27. package/plugins/deslop-around/lib/platform/detect-platform.js +514 -0
  28. package/plugins/deslop-around/lib/platform/verify-tools.js +235 -0
  29. package/plugins/deslop-around/lib/state/workflow-state.js +635 -0
  30. package/plugins/deslop-around/lib/state/workflow-state.schema.json +282 -0
  31. package/plugins/deslop-around/lib/utils/context-optimizer.js +222 -0
  32. package/plugins/next-task/.claude-plugin/plugin.json +24 -0
  33. package/plugins/next-task/agents/ci-fixer.md +236 -0
  34. package/plugins/next-task/agents/ci-monitor.md +291 -0
  35. package/plugins/next-task/agents/delivery-validator.md +451 -0
  36. package/plugins/next-task/agents/deslop-work.md +272 -0
  37. package/plugins/next-task/agents/docs-updater.md +506 -0
  38. package/plugins/next-task/agents/exploration-agent.md +277 -0
  39. package/plugins/next-task/agents/implementation-agent.md +427 -0
  40. package/plugins/next-task/agents/planning-agent.md +236 -0
  41. package/plugins/next-task/agents/policy-selector.md +248 -0
  42. package/plugins/next-task/agents/review-orchestrator.md +521 -0
  43. package/plugins/next-task/agents/simple-fixer.md +136 -0
  44. package/plugins/next-task/agents/task-discoverer.md +357 -0
  45. package/plugins/next-task/agents/test-coverage-checker.md +447 -0
  46. package/plugins/next-task/agents/worktree-manager.md +419 -0
  47. package/plugins/next-task/commands/delivery-approval.md +331 -0
  48. package/plugins/next-task/commands/next-task.md +627 -0
  49. package/plugins/next-task/commands/update-docs-around.md +418 -0
  50. package/plugins/next-task/hooks/hooks.json +14 -0
  51. package/plugins/next-task/lib/patterns/review-patterns.js +511 -0
  52. package/plugins/next-task/lib/patterns/slop-patterns.js +641 -0
  53. package/plugins/next-task/lib/platform/detect-platform.js +514 -0
  54. package/plugins/next-task/lib/platform/verify-tools.js +235 -0
  55. package/plugins/next-task/lib/state/tasks-registry.schema.json +85 -0
  56. package/plugins/next-task/lib/state/workflow-state.js +635 -0
  57. package/plugins/next-task/lib/state/workflow-state.schema.json +282 -0
  58. package/plugins/next-task/lib/state/worktree-status.schema.json +219 -0
  59. package/plugins/next-task/lib/utils/context-optimizer.js +222 -0
  60. package/plugins/project-review/.claude-plugin/plugin.json +20 -0
  61. package/plugins/project-review/commands/project-review-agents.md +286 -0
  62. package/plugins/project-review/commands/project-review-github.md +142 -0
  63. package/plugins/project-review/commands/project-review.md +273 -0
  64. package/plugins/project-review/lib/patterns/review-patterns.js +511 -0
  65. package/plugins/project-review/lib/patterns/slop-patterns.js +641 -0
  66. package/plugins/project-review/lib/platform/detect-platform.js +514 -0
  67. package/plugins/project-review/lib/platform/verify-tools.js +235 -0
  68. package/plugins/project-review/lib/state/workflow-state.js +635 -0
  69. package/plugins/project-review/lib/state/workflow-state.schema.json +282 -0
  70. package/plugins/project-review/lib/utils/context-optimizer.js +222 -0
  71. package/plugins/reality-check/.claude-plugin/plugin.json +23 -0
  72. package/plugins/reality-check/README.md +156 -0
  73. package/plugins/reality-check/agents/code-explorer.md +353 -0
  74. package/plugins/reality-check/agents/doc-analyzer.md +337 -0
  75. package/plugins/reality-check/agents/issue-scanner.md +231 -0
  76. package/plugins/reality-check/agents/plan-synthesizer.md +479 -0
  77. package/plugins/reality-check/commands/scan.md +242 -0
  78. package/plugins/reality-check/commands/set.md +203 -0
  79. package/plugins/reality-check/lib/state/reality-check-state.js +509 -0
  80. package/plugins/reality-check/skills/reality-analysis/SKILL.md +317 -0
  81. package/plugins/ship/.claude-plugin/plugin.json +21 -0
  82. package/plugins/ship/commands/ship-ci-review-loop.md +443 -0
  83. package/plugins/ship/commands/ship-deployment.md +330 -0
  84. package/plugins/ship/commands/ship-error-handling.md +254 -0
  85. package/plugins/ship/commands/ship.md +370 -0
  86. package/plugins/ship/lib/patterns/review-patterns.js +511 -0
  87. package/plugins/ship/lib/patterns/slop-patterns.js +641 -0
  88. package/plugins/ship/lib/platform/detect-platform.js +514 -0
  89. package/plugins/ship/lib/platform/verify-tools.js +235 -0
  90. package/plugins/ship/lib/state/workflow-state.js +635 -0
  91. package/plugins/ship/lib/state/workflow-state.schema.json +282 -0
  92. package/plugins/ship/lib/utils/context-optimizer.js +222 -0
  93. package/scripts/install/claude.sh +50 -0
  94. package/scripts/install/codex.sh +181 -0
  95. package/scripts/install/opencode.sh +211 -0
@@ -0,0 +1,181 @@
1
+ #!/bin/bash
2
+ # Install awesome-slash for Codex CLI
3
+ # Usage: ./scripts/install/codex.sh
4
+
5
+ set -e
6
+
7
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
+ PLUGIN_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
9
+
10
+ echo "Installing awesome-slash for Codex CLI..."
11
+ echo "Plugin root: $PLUGIN_ROOT"
12
+
13
+ # Check if codex is installed
14
+ if ! command -v codex &> /dev/null; then
15
+ echo "Error: Codex CLI not found. Please install it first."
16
+ echo "See: https://developers.openai.com/codex/quickstart/"
17
+ exit 1
18
+ fi
19
+
20
+ # Install MCP server dependencies
21
+ echo "Installing MCP server dependencies..."
22
+ cd "$PLUGIN_ROOT/mcp-server"
23
+ npm install --production
24
+
25
+ # Add MCP server using codex mcp add command
26
+ echo "Configuring MCP server..."
27
+
28
+ # Remove existing awesome-slash MCP server if present
29
+ codex mcp remove awesome-slash 2>/dev/null || true
30
+
31
+ # Add the MCP server with environment variable
32
+ codex mcp add awesome-slash \
33
+ --env "PLUGIN_ROOT=$PLUGIN_ROOT" \
34
+ -- node "$PLUGIN_ROOT/mcp-server/index.js"
35
+
36
+ echo "MCP server configured."
37
+
38
+ # Create skills directory
39
+ CODEX_CONFIG="${CODEX_CONFIG:-$HOME/.codex}"
40
+ SKILLS_DIR="$CODEX_CONFIG/skills"
41
+
42
+ echo "Installing Codex skills..."
43
+
44
+ # Create next-task skill
45
+ mkdir -p "$SKILLS_DIR/next-task"
46
+ cat > "$SKILLS_DIR/next-task/SKILL.md" << 'EOF'
47
+ ---
48
+ name: next-task
49
+ description: Master workflow orchestrator for task-to-production automation. Use when users want to find their next task, prioritize work, start a new workflow, or ask "what should I work on". Integrates with GitHub Issues, Linear, and PLAN.md for task discovery.
50
+ ---
51
+
52
+ # Next Task Workflow
53
+
54
+ Find and implement the next priority task with full workflow automation.
55
+
56
+ ## Capabilities
57
+
58
+ Use the awesome-slash MCP tools:
59
+ - `workflow_status` - Check current workflow state
60
+ - `workflow_start` - Start a new workflow
61
+ - `workflow_resume` - Resume from checkpoint
62
+ - `workflow_abort` - Cancel and cleanup
63
+ - `task_discover` - Find and prioritize tasks
64
+
65
+ ## Workflow
66
+
67
+ 1. Check `workflow_status` for existing workflow
68
+ 2. If none exists, use `workflow_start` to begin
69
+ 3. Use `task_discover` to find priority tasks from configured source
70
+ 4. Guide through task selection and implementation
71
+ 5. Use `workflow_resume` if interrupted
72
+
73
+ ## Task Sources
74
+
75
+ - GitHub Issues (default)
76
+ - Linear issues
77
+ - PLAN.md file
78
+ EOF
79
+
80
+ # Create ship skill
81
+ mkdir -p "$SKILLS_DIR/ship"
82
+ cat > "$SKILLS_DIR/ship/SKILL.md" << 'EOF'
83
+ ---
84
+ name: ship
85
+ description: Complete PR workflow from commit to production with validation. Use when users want to ship code, create a PR, merge changes, or deploy. Handles commit, PR creation, CI monitoring, review, merge, and deployment.
86
+ ---
87
+
88
+ # Ship Workflow
89
+
90
+ Complete PR workflow from commit to production.
91
+
92
+ ## Capabilities
93
+
94
+ Use the awesome-slash MCP tools:
95
+ - `workflow_status` - Check current state
96
+ - `review_code` - Run multi-agent review
97
+
98
+ ## Workflow
99
+
100
+ 1. Stage and commit changes with AI-generated message
101
+ 2. Create PR with context
102
+ 3. Run `review_code` for multi-agent review
103
+ 4. Monitor CI status
104
+ 5. Merge when approved
105
+ 6. Deploy if configured
106
+
107
+ ## Platforms
108
+
109
+ Supports: GitHub Actions, GitLab CI, CircleCI, Railway, Vercel, Netlify, Fly.io
110
+ EOF
111
+
112
+ # Create review skill
113
+ mkdir -p "$SKILLS_DIR/review"
114
+ cat > "$SKILLS_DIR/review/SKILL.md" << 'EOF'
115
+ ---
116
+ name: review
117
+ description: Run multi-agent code review on changes. Use when users want to review code, check code quality, or run code analysis before committing or creating a PR.
118
+ ---
119
+
120
+ # Code Review
121
+
122
+ Run multi-agent code review on changes.
123
+
124
+ ## Capabilities
125
+
126
+ Use the awesome-slash MCP tools:
127
+ - `review_code` - Run multi-agent review
128
+
129
+ ## Review Agents
130
+
131
+ - Code quality analysis
132
+ - Silent failure detection
133
+ - Test coverage analysis
134
+ - Security review
135
+
136
+ ## Usage
137
+
138
+ Run `review_code` tool with the files to review.
139
+ Auto-fixes critical and high severity issues.
140
+ Reports medium and low severity for manual review.
141
+ EOF
142
+
143
+ # Create deslop skill
144
+ mkdir -p "$SKILLS_DIR/deslop"
145
+ cat > "$SKILLS_DIR/deslop/SKILL.md" << 'EOF'
146
+ ---
147
+ name: deslop
148
+ description: Clean AI slop from codebase - console.log statements, TODO comments, placeholder text, empty catch blocks, and other debugging artifacts. Use when users want to clean up code, remove debugging statements, or prepare code for production.
149
+ ---
150
+
151
+ # Deslop - AI Slop Cleanup
152
+
153
+ Remove debugging code, old TODOs, and AI-generated slop from codebase.
154
+
155
+ ## Detection Patterns
156
+
157
+ - Console debugging (console.log, print, dbg!)
158
+ - Placeholder text (TODO, FIXME, lorem ipsum)
159
+ - Empty catch blocks
160
+ - Commented-out code
161
+ - Magic numbers
162
+ - Disabled linters
163
+
164
+ ## Usage
165
+
166
+ 1. Analyze codebase or specific files
167
+ 2. Report issues found with severity
168
+ 3. Apply fixes with verification when requested
169
+ EOF
170
+
171
+ echo ""
172
+ echo "✓ Installation complete!"
173
+ echo ""
174
+ echo "Usage:"
175
+ echo " 1. Start Codex: codex --enable skills"
176
+ echo " 2. Skills available: \$next-task, \$ship, \$review, \$deslop"
177
+ echo " 3. MCP tools: workflow_status, workflow_start, task_discover, review_code"
178
+ echo ""
179
+ echo "To verify installation:"
180
+ echo " codex mcp list"
181
+ echo " ls ~/.codex/skills/"
@@ -0,0 +1,211 @@
1
+ #!/bin/bash
2
+ # Install awesome-slash for OpenCode
3
+ # Usage: ./scripts/install/opencode.sh
4
+
5
+ set -e
6
+
7
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
+ PLUGIN_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
9
+
10
+ echo "Installing awesome-slash for OpenCode..."
11
+ echo "Plugin root: $PLUGIN_ROOT"
12
+
13
+ # Check if OpenCode is installed
14
+ if ! command -v opencode &> /dev/null; then
15
+ echo "Error: OpenCode not found. Please install it first."
16
+ echo "See: https://opencode.ai/docs/cli/"
17
+ exit 1
18
+ fi
19
+
20
+ # Check if OpenCode config directory exists
21
+ OPENCODE_CONFIG="${OPENCODE_CONFIG:-$HOME/.config/opencode}"
22
+ if [ ! -d "$OPENCODE_CONFIG" ]; then
23
+ echo "Creating OpenCode config directory..."
24
+ mkdir -p "$OPENCODE_CONFIG"
25
+ fi
26
+
27
+ # Install MCP server dependencies
28
+ echo "Installing MCP server dependencies..."
29
+ cd "$PLUGIN_ROOT/mcp-server"
30
+ npm install --production
31
+
32
+ # Create/update OpenCode config with MCP server
33
+ CONFIG_FILE="$OPENCODE_CONFIG/opencode.json"
34
+ echo "Configuring MCP server in $CONFIG_FILE..."
35
+
36
+ if [ -f "$CONFIG_FILE" ]; then
37
+ cp "$CONFIG_FILE" "$CONFIG_FILE.backup"
38
+ echo "Backed up existing config to $CONFIG_FILE.backup"
39
+ fi
40
+
41
+ # Check if jq is available for JSON manipulation
42
+ if command -v jq &> /dev/null; then
43
+ if [ -f "$CONFIG_FILE.backup" ]; then
44
+ # Merge with existing config
45
+ jq --arg root "$PLUGIN_ROOT" '.mcp["awesome-slash"] = {
46
+ "type": "local",
47
+ "command": ["node", ($root + "/mcp-server/index.js")],
48
+ "environment": {"PLUGIN_ROOT": $root},
49
+ "enabled": true
50
+ }' "$CONFIG_FILE.backup" > "$CONFIG_FILE"
51
+ else
52
+ # Create new config
53
+ jq -n --arg root "$PLUGIN_ROOT" '{
54
+ "mcp": {
55
+ "awesome-slash": {
56
+ "type": "local",
57
+ "command": ["node", ($root + "/mcp-server/index.js")],
58
+ "environment": {"PLUGIN_ROOT": $root},
59
+ "enabled": true
60
+ }
61
+ }
62
+ }' > "$CONFIG_FILE"
63
+ fi
64
+ else
65
+ # Create config without jq
66
+ cat > "$CONFIG_FILE" << EOF
67
+ {
68
+ "mcp": {
69
+ "awesome-slash": {
70
+ "type": "local",
71
+ "command": ["node", "$PLUGIN_ROOT/mcp-server/index.js"],
72
+ "environment": {
73
+ "PLUGIN_ROOT": "$PLUGIN_ROOT"
74
+ },
75
+ "enabled": true
76
+ }
77
+ }
78
+ }
79
+ EOF
80
+ fi
81
+
82
+ # Create agent definitions
83
+ AGENT_DIR="$OPENCODE_CONFIG/agent"
84
+ mkdir -p "$AGENT_DIR"
85
+
86
+ echo "Installing agent configurations..."
87
+
88
+ # Workflow orchestrator agent (primary)
89
+ cat > "$AGENT_DIR/workflow.md" << 'EOF'
90
+ ---
91
+ description: Master workflow orchestrator for task-to-production automation with MCP tools
92
+ mode: primary
93
+ tools:
94
+ read: true
95
+ write: true
96
+ bash: true
97
+ glob: true
98
+ grep: true
99
+ ---
100
+
101
+ # Workflow Orchestrator
102
+
103
+ You are a workflow orchestrator that manages development tasks from discovery to production.
104
+
105
+ ## MCP Tools Available
106
+
107
+ Use the awesome-slash MCP tools:
108
+ - `workflow_status` - Check current workflow state
109
+ - `workflow_start` - Start a new workflow
110
+ - `workflow_resume` - Resume from checkpoint
111
+ - `workflow_abort` - Cancel and cleanup
112
+ - `task_discover` - Find and prioritize tasks
113
+ - `review_code` - Run multi-agent review
114
+
115
+ ## Workflow Phases
116
+
117
+ 1. Policy Selection - Configure task source, priority, stopping point
118
+ 2. Task Discovery - Find and prioritize tasks
119
+ 3. Worktree Setup - Create isolated environment
120
+ 4. Exploration - Deep codebase analysis
121
+ 5. Planning - Design implementation plan
122
+ 6. User Approval - Get plan approval
123
+ 7. Implementation - Execute the plan
124
+ 8. Review Loop - Multi-agent review until approved
125
+ 9. Ship - PR creation, CI monitoring, merge
126
+ 10. Cleanup - Remove worktree, update state
127
+
128
+ When starting, check for existing workflow with `workflow_status` first.
129
+ EOF
130
+
131
+ # Review agent (subagent)
132
+ cat > "$AGENT_DIR/review.md" << 'EOF'
133
+ ---
134
+ description: Multi-agent code reviewer for quality analysis
135
+ mode: subagent
136
+ tools:
137
+ read: true
138
+ write: false
139
+ edit: false
140
+ bash: false
141
+ glob: true
142
+ grep: true
143
+ ---
144
+
145
+ # Code Review Agent
146
+
147
+ Run comprehensive code review using the awesome-slash `review_code` MCP tool.
148
+
149
+ ## Review Domains
150
+
151
+ - Code quality analysis
152
+ - Silent failure detection
153
+ - Test coverage analysis
154
+ - Security review
155
+
156
+ ## Process
157
+
158
+ 1. Call `review_code` with files to review
159
+ 2. Report issues by severity (critical, high, medium, low)
160
+ 3. Auto-fix critical and high severity issues
161
+ 4. Report medium and low for manual review
162
+ EOF
163
+
164
+ # Ship agent (subagent)
165
+ cat > "$AGENT_DIR/ship.md" << 'EOF'
166
+ ---
167
+ description: Complete PR workflow from commit to production
168
+ mode: subagent
169
+ tools:
170
+ read: true
171
+ write: true
172
+ bash: true
173
+ glob: true
174
+ grep: true
175
+ permission:
176
+ bash:
177
+ "git *": allow
178
+ "gh *": allow
179
+ "*": ask
180
+ ---
181
+
182
+ # Ship Agent
183
+
184
+ Complete PR workflow from commit to production.
185
+
186
+ ## Workflow
187
+
188
+ 1. Stage and commit changes with AI-generated message
189
+ 2. Create PR with context
190
+ 3. Run `review_code` MCP tool for multi-agent review
191
+ 4. Monitor CI status
192
+ 5. Merge when approved
193
+ 6. Deploy if configured
194
+
195
+ ## Platform Support
196
+
197
+ - CI: GitHub Actions, GitLab CI, CircleCI
198
+ - Deploy: Railway, Vercel, Netlify, Fly.io
199
+ EOF
200
+
201
+ echo ""
202
+ echo "✓ Installation complete!"
203
+ echo ""
204
+ echo "Usage:"
205
+ echo " 1. Start OpenCode: opencode"
206
+ echo " 2. Switch agents with Tab: workflow, review, ship"
207
+ echo " 3. MCP tools: workflow_status, workflow_start, task_discover, etc."
208
+ echo ""
209
+ echo "To verify installation:"
210
+ echo " opencode mcp list"
211
+ echo " ls ~/.config/opencode/agent/"