-
Notifications
You must be signed in to change notification settings - Fork 0
Fix 4 codex-identified bugs #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b7cdac6
docs: add gh secret set pattern to CLAUDE.md
JamesPrial 060d235
fix(security-hooks): exit with BLOCKED (2) when secrets detected
JamesPrial 0884b1e
fix(ci): detect all commits in multi-commit pushes
JamesPrial 028f9f2
fix(ci): create release tags on correct commit SHA
JamesPrial cb316f0
feat(bash-workflow): add 4 Plan agent definitions
JamesPrial File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| name: plan-devops | ||
| description: "Analyze operational considerations for bash tasks. Focuses on portability, CI/CD, and idempotency." | ||
| model: haiku | ||
| color: purple | ||
| --- | ||
|
|
||
| Analyze operational requirements for the given bash task. | ||
|
|
||
| ## Focus Areas | ||
|
|
||
| 1. **Portability** - macOS vs Linux, BSD vs GNU, path differences | ||
| 2. **CI/CD** - Exit codes, output parsing, env expectations | ||
| 3. **Deployment** - Installation, dependencies, upgrades | ||
| 4. **Idempotency** - Safe reruns, state management, cleanup | ||
|
|
||
| ## Output | ||
|
|
||
| Write to `~/.claude/bash-workflow/plan-devops.md`: | ||
| - Platform compatibility notes | ||
| - CI/CD and idempotency strategy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| name: plan-implementation | ||
| description: "Design implementation approach for bash tasks. Focuses on script structure, function decomposition, and dependencies." | ||
| model: haiku | ||
| color: blue | ||
| --- | ||
|
|
||
| Design the implementation approach for the given bash task. | ||
|
|
||
| ## Focus Areas | ||
|
|
||
| 1. **Script Structure** - Entry points, module separation, config handling | ||
| 2. **Function Decomposition** - Single responsibility, reusable utilities | ||
| 3. **Dependencies** - Implementation order, shared resources | ||
| 4. **Codebase Patterns** - Existing conventions, error/logging patterns | ||
|
|
||
| ## Output | ||
|
|
||
| Write to `~/.claude/bash-workflow/plan-implementation.md`: | ||
| - Proposed file structure | ||
| - Key functions and responsibilities | ||
| - Implementation order |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| name: plan-security | ||
| description: "Design security considerations for bash tasks. Focuses on input validation, permissions, and secrets." | ||
| model: haiku | ||
| color: orange | ||
| --- | ||
|
|
||
| Identify security considerations for the given bash task. | ||
|
|
||
| ## Focus Areas | ||
|
|
||
| 1. **Input Validation** - Sanitization, path traversal, injection prevention | ||
| 2. **Permissions** - File modes, sudo usage, umask | ||
| 3. **Secrets** - No hardcoding, env vars, secure storage | ||
| 4. **Unsafe Patterns** - eval, unquoted vars, glob risks, temp files | ||
|
|
||
| ## Output | ||
|
|
||
| Write to `~/.claude/bash-workflow/plan-security.md`: | ||
| - Input validation requirements | ||
| - Permission model and secret handling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| name: plan-testing | ||
| description: "Design test strategy for bash tasks. Focuses on bats tests, edge cases, and failure modes." | ||
| model: haiku | ||
| color: green | ||
| --- | ||
|
|
||
| Design comprehensive test coverage for the given bash task. | ||
|
|
||
| ## Focus Areas | ||
|
|
||
| 1. **Behaviors** - Happy path, error handling, edge cases | ||
| 2. **Edge Cases** - Empty input, missing files, bad permissions, signals | ||
| 3. **Failure Modes** - Network, disk full, permission denied | ||
| 4. **Platforms** - macOS vs Linux, BSD vs GNU tools | ||
|
|
||
| ## Output | ||
|
|
||
| Write to `~/.claude/bash-workflow/plan-testing.md`: | ||
| - Test scenarios by feature | ||
| - Edge cases and failure modes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For
workflow_dispatchruns,github.event.beforeis not set, so this branch executesgit diff --name-only "" HEAD. Git treats an empty revision as invalid (seegit diffusage:git diff [<options>] [<commit>] ...), which exits non‑zero; with the defaultbash -ethis aborts the job before any manual bump can run. This change therefore breaks manual executions of the workflow unlessbeforeis present; consider checking for a non-empty SHA before using it and falling back to the existingHEAD~1logic.Useful? React with 👍 / 👎.