config: Extend execution timeout and default --all-files for CLI workflows

- Add 5-minute timeout for Bash commands in both gemini and codex workflows
- Mark --all-files as default behavior for gemini with fallback on content limits
- Update all examples to show explicit --all-files usage in gemini-unified.md
- Add execution settings section for both workflow guides

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-09-11 16:48:25 +08:00
parent b501506fd8
commit 47f0bb7bde
2 changed files with 18 additions and 8 deletions

View File

@@ -86,6 +86,11 @@ type: technical-guideline
- Enclose paths with spaces in quotes: `@{"My Project/src/**/*"}`.
- Escape special characters like brackets: `@{src/**/*\[bracket\]*}`.
### ⏱️ Execution Settings
- **Default Timeout**: Bash command execution extended to **5 minutes** to handle complex autonomous development workflows.
- **Autonomous Intelligence**: Codex automatically manages file discovery and context gathering in `--full-auto` mode.
### 📁 Shared Template Directory Structure
> **📋 Complete Template Reference**: See [Shared Template System](./shared-template-system.md) for comprehensive template directory structure, cross-tool compatibility, and detailed usage patterns.

View File

@@ -24,21 +24,21 @@ type: technical-guideline
gemini [flags] -p "@{patterns} {template} prompt"
```
- **Key Arguments**:
- `--all-files`: Includes all files in the current working directory.
- `--all-files`: Includes all files in the current working directory. **Default behavior unless content limit exceeded**.
- `-p`: The prompt string, which must contain file reference patterns and the analysis query.
- `{template}`: Template injection using `$(cat ~/.claude/workflows/cli-templates/prompts/[category]/[template].txt)` for standardized analysis
- `@{pattern}`: A special syntax for referencing files and directories.
- **Template Usage**:
```bash
# Without template (manual prompt)
gemini -p "@{src/**/*} @{CLAUDE.md} Analyze code patterns and conventions"
# Without template (manual prompt) - --all-files is default
gemini --all-files -p "@{src/**/*} @{CLAUDE.md} Analyze code patterns and conventions"
# With template (recommended)
gemini -p "@{src/**/*} @{CLAUDE.md} $(cat ~/.claude/workflows/cli-templates/prompts/analysis/pattern.txt)"
# With template (recommended) - --all-files is default
gemini --all-files -p "@{src/**/*} @{CLAUDE.md} $(cat ~/.claude/workflows/cli-templates/prompts/analysis/pattern.txt)"
# Multi-template composition
gemini -p "@{src/**/*} @{CLAUDE.md} $(cat <<'EOF'
# Multi-template composition - --all-files is default
gemini --all-files -p "@{src/**/*} @{CLAUDE.md} $(cat <<'EOF'
$(cat ~/.claude/workflows/cli-templates/prompts/analysis/architecture.txt)
Additional Security Focus:
@@ -66,6 +66,11 @@ type: technical-guideline
- Enclose paths with spaces in quotes: `@{"My Project/src/**/*"}`.
- Escape special characters like brackets: `@{src/**/*\[bracket\]*}`.
### ⏱️ Execution Settings
- **Default Timeout**: Bash command execution extended to **5 minutes** to handle large codebase analysis.
- **Content Limits**: When `--all-files` exceeds token limits, automatically fall back to selective `@` patterns.
### TPL (Templates)
@@ -123,7 +128,7 @@ These are recommended command templates for common scenarios.
- **Multi-Template Composition**
```bash
gemini -p "@{src/**/*} @{CLAUDE.md}
gemini --all-files -p "@{src/**/*} @{CLAUDE.md}
$(cat ~/.claude/workflows/cli-templates/prompts/analysis/pattern.txt)
Additional Security Focus: