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,272 @@
1
+ # awesome-slash for Codex CLI
2
+
3
+ Professional-grade slash commands adapted for OpenAI's Codex CLI.
4
+
5
+ ## Quick Install
6
+
7
+ ```bash
8
+ git clone https://github.com/avifenesh/awesome-slash.git
9
+ cd awesome-slash
10
+ ./adapters/codex/install.sh
11
+ ```
12
+
13
+ ## Prerequisites
14
+
15
+ - **Codex CLI** - Install from [developers.openai.com/codex/cli](https://developers.openai.com/codex/cli)
16
+ - **Node.js 18+** - Download from [nodejs.org](https://nodejs.org)
17
+ - **Git** - Download from [git-scm.com](https://git-scm.com)
18
+ - **GitHub CLI (`gh`)** - For PR commands (install: `brew install gh` or see [cli.github.com](https://cli.github.com))
19
+
20
+ ## Available Commands
21
+
22
+ ### 🧹 `/deslop-around` - AI Slop Cleanup
23
+
24
+ Remove debugging code, old TODOs, and other AI slop.
25
+
26
+ ```bash
27
+ codex
28
+ > /deslop-around
29
+ > /deslop-around apply
30
+ > /deslop-around apply src/ 10
31
+ ```
32
+
33
+ **What it does:**
34
+ - Scans for console.logs, print statements, old TODOs
35
+ - Generates report or auto-applies fixes
36
+ - Runs verification tests
37
+ - Preserves functionality with minimal diffs
38
+
39
+ ---
40
+
41
+ ### 📋 `/next-task` - Intelligent Task Prioritization
42
+
43
+ Discover what to work on next with AI analysis.
44
+
45
+ ```bash
46
+ codex
47
+ > /next-task
48
+ > /next-task bug
49
+ > /next-task --include-blocked
50
+ ```
51
+
52
+ **What it does:**
53
+ - Analyzes GitHub Issues (required)
54
+ - Validates tasks aren't already implemented
55
+ - Scores by impact, urgency, effort
56
+ - Provides top 5 recommendations with evidence
57
+
58
+ **Requires:** GitHub CLI (`gh`)
59
+
60
+ ---
61
+
62
+ ### 🔍 `/project-review` - Multi-Agent Code Review
63
+
64
+ Comprehensive review with specialized AI agents.
65
+
66
+ ```bash
67
+ codex
68
+ > /project-review
69
+ > /project-review --recent
70
+ > /project-review --domain security
71
+ ```
72
+
73
+ **What it does:**
74
+ - Deploys 8 specialized agents
75
+ - Adapts to your tech stack
76
+ - Finds bugs, security issues, performance problems
77
+ - Iterates until zero critical issues
78
+
79
+ ---
80
+
81
+ ### 🚀 `/ship` - Complete PR Workflow
82
+
83
+ Ship from commit to production with validation.
84
+
85
+ ```bash
86
+ codex
87
+ > /ship
88
+ > /ship --strategy rebase
89
+ ```
90
+
91
+ **What it does:**
92
+ 1. Commits changes with AI message
93
+ 2. Creates PR with description
94
+ 3. Waits for CI to pass
95
+ 4. Runs quality reviews
96
+ 5. Merges to main
97
+ 6. Deploys to dev/prod
98
+ 7. Validates deployments
99
+ 8. Auto-rollback on failure
100
+
101
+ **Requires:** Git, GitHub CLI (`gh`)
102
+
103
+ ---
104
+
105
+ ## Installation Details
106
+
107
+ The installer:
108
+ 1. Creates `~/.codex/prompts/awesome-slash/`
109
+ 2. Copies command files with path adjustments
110
+ 3. Installs shared libraries (platform detection, patterns)
111
+ 4. Creates environment setup scripts
112
+
113
+ ### File Structure
114
+
115
+ ```
116
+ ~/.codex/prompts/awesome-slash/
117
+ ├── commands/
118
+ │ ├── deslop-around.md
119
+ │ ├── next-task.md
120
+ │ ├── project-review.md
121
+ │ └── ship.md
122
+ ├── lib/
123
+ │ ├── platform/
124
+ │ │ ├── detect-platform.js
125
+ │ │ └── verify-tools.js
126
+ │ ├── patterns/
127
+ │ │ ├── review-patterns.js
128
+ │ │ └── slop-patterns.js
129
+ │ └── utils/
130
+ │ └── context-optimizer.js
131
+ ├── env.sh
132
+ └── README.md
133
+ ```
134
+
135
+ ---
136
+
137
+ ## Usage Examples
138
+
139
+ ### Clean up debugging code
140
+ ```bash
141
+ codex
142
+ > /deslop-around apply
143
+
144
+ # Changeset 1/5: Remove console.log statements
145
+ # - src/app.js: Removed 3 console.log calls
146
+ # ✓ Tests passed
147
+ #
148
+ # Summary: 5 files changed, 23 lines deleted
149
+ ```
150
+
151
+ ### Get next priority task
152
+ ```bash
153
+ codex
154
+ > /next-task
155
+
156
+ # Top 5 Priority Tasks:
157
+ #
158
+ # 1. [High Impact] Fix login timeout on mobile
159
+ # Score: 9.2/10 (Impact: 10, Urgency: 9, Effort: 3)
160
+ # Status: not-started (no code found)
161
+ ```
162
+
163
+ ### Ship a feature
164
+ ```bash
165
+ # Make your changes
166
+ git add .
167
+
168
+ codex
169
+ > /ship
170
+
171
+ # ✓ Commits with AI message
172
+ # ✓ Creates PR with context
173
+ # ✓ Waits for CI
174
+ # ✓ Reviews code
175
+ # ✓ Merges to main
176
+ # ✓ Deploys and validates
177
+ ```
178
+
179
+ ---
180
+
181
+ ## Codex-Specific Notes
182
+
183
+ ### Custom Prompt Integration
184
+
185
+ These commands integrate with Codex's custom prompt system. You can also create shortcuts by adding to your Codex config.
186
+
187
+ ### Multi-Agent Differences
188
+
189
+ Codex CLI may handle multi-agent workflows differently than Claude Code. Commands will adapt to available capabilities.
190
+
191
+ ### Built-in Commands
192
+
193
+ Use alongside Codex's built-in commands:
194
+ - `/diff` - View Git diff
195
+ - `/review` - Codex's native review
196
+ - `/compact` - Summarize conversation
197
+ - `/model` - Switch models
198
+
199
+ awesome-slash commands complement these.
200
+
201
+ ---
202
+
203
+ ## Platform Support
204
+
205
+ ### Auto-Detected CI Platforms
206
+ GitHub Actions · GitLab CI · CircleCI · Jenkins · Travis CI
207
+
208
+ ### Auto-Detected Deployment Platforms
209
+ Railway · Vercel · Netlify · Fly.io · Platform.sh · Render
210
+
211
+ ### Auto-Detected Project Types
212
+ Node.js · Python · Rust · Go · Java
213
+
214
+ ---
215
+
216
+ ## Updating
217
+
218
+ To update commands:
219
+
220
+ ```bash
221
+ cd /path/to/awesome-slash
222
+ git pull origin main
223
+ ./adapters/codex/install.sh
224
+ ```
225
+
226
+ ---
227
+
228
+ ## Troubleshooting
229
+
230
+ ### Commands not showing up
231
+ 1. Restart Codex CLI
232
+ 2. Check installation: `ls ~/.codex/prompts/awesome-slash/commands/`
233
+ 3. Re-run installer
234
+
235
+ ### Path errors
236
+ Re-run installer to fix path substitutions:
237
+ ```bash
238
+ ./adapters/codex/install.sh
239
+ ```
240
+
241
+ ### Node.js not found
242
+ Ensure Node.js 18+ is installed:
243
+ ```bash
244
+ node --version # Should be v18.0.0 or higher
245
+ ```
246
+
247
+ ### GitHub CLI authentication
248
+ ```bash
249
+ gh auth login
250
+ gh auth status
251
+ ```
252
+
253
+ ---
254
+
255
+ ## Support
256
+
257
+ - **Repository**: https://github.com/avifenesh/awesome-slash
258
+ - **Issues**: https://github.com/avifenesh/awesome-slash/issues
259
+ - **Codex CLI Docs**: https://developers.openai.com/codex/cli
260
+
261
+ ---
262
+
263
+ ## Resources
264
+
265
+ - [Codex CLI Slash Commands](https://developers.openai.com/codex/cli/slash-commands/)
266
+ - [Custom Prompts](https://developers.openai.com/codex/custom-prompts/)
267
+ - [awesome-slash Main README](../../README.md)
268
+ - [Multi-Tool Adapters](../README.md)
269
+
270
+ ---
271
+
272
+ Made with ❤️ for the Codex CLI community
@@ -0,0 +1,179 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ # Codex CLI Installer for awesome-slash commands
5
+ # This script installs all 5 slash commands for use with OpenAI Codex CLI
6
+
7
+ echo "🚀 Installing awesome-slash commands for Codex CLI..."
8
+ echo
9
+
10
+ # Configuration
11
+ REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
12
+ CODEX_CONFIG_DIR="${HOME}/.codex"
13
+ CODEX_PROMPTS_DIR="${CODEX_CONFIG_DIR}/prompts"
14
+ CODEX_LIB_DIR="${CODEX_CONFIG_DIR}/awesome-slash/lib"
15
+
16
+ # Detect OS and normalize paths
17
+ if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
18
+ IS_WINDOWS=true
19
+ # Convert Windows path to Unix-style for bash compatibility
20
+ CODEX_CONFIG_DIR="${USERPROFILE}/.codex"
21
+ # Replace backslashes with forward slashes
22
+ CODEX_CONFIG_DIR="${CODEX_CONFIG_DIR//\\//}"
23
+ CODEX_PROMPTS_DIR="${CODEX_CONFIG_DIR}/prompts"
24
+ CODEX_LIB_DIR="${CODEX_CONFIG_DIR}/awesome-slash/lib"
25
+ else
26
+ IS_WINDOWS=false
27
+ fi
28
+
29
+ echo "📂 Configuration:"
30
+ echo " Repository: $REPO_ROOT"
31
+ echo " Prompts to: $CODEX_PROMPTS_DIR"
32
+ echo " Libraries to: $CODEX_LIB_DIR"
33
+ echo
34
+
35
+ # Check prerequisites
36
+ echo "🔍 Checking prerequisites..."
37
+
38
+ # Check Node.js
39
+ if ! command -v node &> /dev/null; then
40
+ echo "❌ Node.js not found. Install from: https://nodejs.org"
41
+ exit 1
42
+ fi
43
+ NODE_VERSION=$(node --version)
44
+ echo " ✓ Node.js $NODE_VERSION"
45
+
46
+ # Check Git
47
+ if ! command -v git &> /dev/null; then
48
+ echo "❌ Git not found. Install from: https://git-scm.com"
49
+ exit 1
50
+ fi
51
+ GIT_VERSION=$(git --version | cut -d' ' -f3)
52
+ echo " ✓ Git $GIT_VERSION"
53
+
54
+ # Check Codex CLI (optional - user may not have it installed yet)
55
+ if command -v codex &> /dev/null; then
56
+ CODEX_VERSION=$(codex --version 2>&1 | head -n1 || echo "unknown")
57
+ echo " ✓ Codex CLI $CODEX_VERSION"
58
+ else
59
+ echo " ⚠️ Codex CLI not found (install from: https://developers.openai.com/codex/cli)"
60
+ echo " You can still install commands and use Codex CLI later"
61
+ fi
62
+
63
+ echo
64
+
65
+ # Create directories
66
+ echo "📁 Creating directories..."
67
+ mkdir -p "$CODEX_PROMPTS_DIR"
68
+ mkdir -p "$CODEX_LIB_DIR"/{platform,patterns,utils}
69
+ echo " ✓ Created $CODEX_PROMPTS_DIR"
70
+ echo " ✓ Created $CODEX_LIB_DIR"
71
+ echo
72
+
73
+ # Copy library files from shared root lib directory
74
+ echo "📚 Installing shared libraries..."
75
+ # Use explicit iteration to handle paths with spaces safely
76
+ for item in "${REPO_ROOT}/lib"/*; do
77
+ cp -r "$item" "${CODEX_LIB_DIR}/"
78
+ done
79
+ echo " ✓ Copied platform detection"
80
+ echo " ✓ Copied pattern libraries"
81
+ echo " ✓ Copied utility functions"
82
+ echo
83
+
84
+ # Install commands with path adjustments
85
+ echo "⚙️ Installing commands..."
86
+
87
+ COMMANDS=(
88
+ "deslop-around"
89
+ "next-task"
90
+ "project-review"
91
+ "ship"
92
+ "pr-merge"
93
+ )
94
+
95
+ for cmd in "${COMMANDS[@]}"; do
96
+ SOURCE_FILE="$REPO_ROOT/plugins/$cmd/commands/$cmd.md"
97
+ # Install directly in prompts directory (Codex looks here)
98
+ TARGET_FILE="$CODEX_PROMPTS_DIR/$cmd.md"
99
+
100
+ if [ -f "$SOURCE_FILE" ]; then
101
+ # Replace Claude-specific path variables with Codex lib paths
102
+ # Escape sed special characters in path to prevent injection
103
+ SAFE_LIB_DIR=$(echo "${CODEX_LIB_DIR}/.." | sed 's/[&/\]/\\&/g')
104
+ sed "s|\${CLAUDE_PLUGIN_ROOT}|${SAFE_LIB_DIR}|g" "$SOURCE_FILE" > "$TARGET_FILE"
105
+ echo " ✓ Installed /prompts:$cmd"
106
+ else
107
+ echo " ⚠️ Skipped /$cmd (source not found)"
108
+ fi
109
+ done
110
+
111
+ echo
112
+
113
+ # Create README
114
+ cat > "$CODEX_CONFIG_DIR/AWESOME_SLASH_README.md" << 'EOF'
115
+ # awesome-slash for Codex CLI
116
+
117
+ Commands installed for OpenAI Codex CLI.
118
+
119
+ ## Available Commands
120
+
121
+ Access via /prompts: menu:
122
+ - `/prompts:deslop-around` - AI slop cleanup
123
+ - `/prompts:next-task` - Task prioritization
124
+ - `/prompts:project-review` - Code review
125
+ - `/prompts:ship` - PR workflow
126
+ - `/prompts:pr-merge` - PR merge
127
+
128
+ ## Usage
129
+
130
+ In Codex CLI:
131
+ ```bash
132
+ codex
133
+ > /prompts:deslop-around
134
+ > /prompts:next-task bug
135
+ > /prompts:ship --strategy rebase
136
+ ```
137
+
138
+ Or type `/prompts:` to see the menu.
139
+
140
+ ## Libraries
141
+
142
+ Shared libraries at: ~/.codex/awesome-slash/lib/
143
+
144
+ ## Updates
145
+
146
+ ```bash
147
+ cd /path/to/awesome-slash
148
+ ./adapters/codex/install.sh
149
+ ```
150
+
151
+ ## Support
152
+
153
+ - Repository: https://github.com/avifenesh/awesome-slash
154
+ - Issues: https://github.com/avifenesh/awesome-slash/issues
155
+ EOF
156
+
157
+ echo " ✓ Created README"
158
+ echo
159
+
160
+ # Success message
161
+ echo "✅ Installation complete!"
162
+ echo
163
+ echo "📋 Installed Commands (access via /prompts: menu):"
164
+ for cmd in "${COMMANDS[@]}"; do
165
+ echo " • /prompts:$cmd"
166
+ done
167
+ echo
168
+ echo "📖 Next Steps:"
169
+ echo " 1. Start Codex CLI: codex"
170
+ echo " 2. Type: /prompts: (shows menu)"
171
+ echo " 3. Select a command or type: /prompts:deslop-around"
172
+ echo " 4. See help: cat $CODEX_CONFIG_DIR/AWESOME_SLASH_README.md"
173
+ echo
174
+ echo "💡 Pro Tip: Type /prompts: to see all available prompts"
175
+ echo
176
+ echo "🔄 To update commands, re-run this installer:"
177
+ echo " ./adapters/codex/install.sh"
178
+ echo
179
+ echo "Happy coding! 🎉"