aceternity-ui
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or…
Claude Code Bash tool patterns with hooks, automation, git workflows. Use for PreToolUse hooks, command chaining, CLI orchestration, custom commands, or encountering bash permissions, command failures, security guards, hook configurations.
Claude Code
$ npx -y skills add secondsky/claude-skills --skill claude-code-bash-patterns --agent claude-code
Codex
$ npx skills add secondsky/claude-skills --skill claude-code-bash-patterns -a codex -y
Cursor
$ npx skills add secondsky/claude-skills --skill claude-code-bash-patterns -a cursor -y
Gemini CLI
$ npx skills add secondsky/claude-skills --skill claude-code-bash-patterns -a gemini-cli -y
GitHub Copilot
$ npx skills add secondsky/claude-skills --skill claude-code-bash-patterns -a github-copilot -y
OpenCode
$ npx skills add secondsky/claude-skills --skill claude-code-bash-patterns -a opencode -y
Windsurf
$ npx skills add secondsky/claude-skills --skill claude-code-bash-patterns -a windsurf -y
name: claude-code-bash-patterns description: Claude Code Bash tool patterns with hooks, automation, git workflows. Use for PreToolUse hooks, command chaining, CLI orchestration, custom commands, or encountering bash permissions, command failures, security guards, hook configurations. license: MIT metadata: version: "2.0.0" last_verified: "2025-11-18" production_tested: true token_savings: "55%" errors_prevented: 12 templates_included: 5 references_included: 5
**Status**: Production Ready ✅ | **Last Verified**: 2025-11-18
---
ls -la
bun install && bun run build && bun test
Create `.claude-hook-pretooluse.sh`:
#!/usr/bin/env bash # PreToolUse hook - runs before every Bash command echo "Running: $1"
**Load `references/hooks-examples.md` for complete hook patterns.**
---
**Use when**: Each command depends on previous success
git add . && git commit -m "message" && git push
**Why**: Stops chain if any command fails
---
**Use when**: Commands are independent
Message with multiple Bash tool calls in parallel
**Load `references/cli-tool-integration.md` for parallel patterns.**
---
**Use when**: Need to maintain state across commands
# Set environment variable export API_KEY="sk-..." # Use in later commands (same session) curl -H "Authorization: Bearer $API_KEY" api.example.com
---
**Use when**: Long-running tasks
npm run dev & # Get PID with $!
---
**Use when**: Need pre/post command logic
**Load `references/hooks-examples.md` for all hook types.**
---
1. **Use && for sequential dependencies** (not semicolons) 2. **Quote paths with spaces** (`cd "path with spaces"`) 3. **Check environment before destructive ops** (rm, git push --force) 4. **Use specialized tools first** (Read, Grep, Glob before Bash) 5. **Set timeouts for long operations** (up to 10 minutes) 6. **Validate inputs** before passing to shell commands 7. **Use hooks for repeated patterns** (logging, validation) 8. **Maintain session state** (export variables once) 9. **Handle errors explicitly** (check exit codes) 10. **Document custom commands** in .claude/commands/
1. **Never use ; for dependent commands** (use &&) 2. **Never skip quoting paths** with spaces 3. **Never run rm -rf without confirmation** 4. **Never expose secrets** in command output 5. **Never ignore timeout limits** (max 10 min) 6. **Never use bash for file operations** when specialized tools exist 7. **Never chain with newlines** (use && or ; explicitly) 8. **Never force-push to main** without explicit user request 9. **Never skip hooks** (--no-verify) without user request 10. **Never use interactive commands** (git rebase -i, git add -i)
---
git add . && git commit -m "feat: add feature"
npm test && git add . && git commit -m "fix: bug fix" && git push
git checkout -b feature/new && git add . && git commit -m "feat: new feature" && git push -u origin feature/new
**Load `references/git-workflows.md` for complete workflows including:**
---
**`.claude-hook-pretooluse.sh`**:
#!/usr/bin/env bash
COMMAND="$1"
# Log all commands
echo "[$(date)] Running: $COMMAND" >> ~/claude-commands.log
# Block dangerous patterns
if [[ "$COMMAND" =~ rm\ -rf\ / ]]; then
echo "❌ Blocked dangerous command"
exit 1
fi**Load `references/hooks-examples.md` for all hook types and examples.**
---
bun install && bun run build
bunx wrangler deploy
gh pr create --title "Fix bug" --body "Description"
**Load `references/cli-tool-integration.md` for complete tool patterns.**
---
Create `.claude/commands/deploy.md`:
--- description: Deploy to production --- Run these steps: 1. Run tests: `npm test` 2. Build: `npm run build` 3. Deploy: `wrangler deploy`
User can invoke with: `/deploy`
**Load `templates/custom-command-template.md` for template.**
---
**`settings.json`**:
{
"dangerousCommandsAllowList": [
"git push --force"
]
}# ✅ Good: Use environment variables export API_KEY="$SECURE_VALUE" # ❌ Bad: Hardcode secrets curl -H "Authorization: Bearer sk-abc123..."
**Load `references/security-best-practices.md` for complete security guide.**
---
npm test && git add . && git commit -m "message"
npm run lint && npm test && npm run build && bunx wrangler deploy
cd repo1 && git pull && cd ../repo2 && git pull
npm run dev &
**Load `references/cli-tool-integration.md` for more patterns.**
---
**Solution**: Increase timeout or use background mode
# Background mode npm run dev &
**Solution**: Quote the path
cd "path with spaces/file.txt"
**Solution**: Check hook logic i
145 production-ready skills for Claude Code CLI 🔌 Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or…
Secure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations,…
Creates comprehensive API changelogs documenting breaking changes, deprecations, and migration strategies for API consumers. Use…
Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing…
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use…
Implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.