approve
Approve the current PRD and begin parallel story execution. Analyzes dependencies, creates execution batches, launches background Task agents for each story,…
Check and update .gitignore to exclude Plan Cascade temporary files. Ensures planning files won't be accidentally committed to version control.
> /plugin marketplace add Taoidle/plan-cascade > /plugin install plan-cascade@plan-cascade
How it fires
How this command gets triggered: by you, by Claude, or both.
/check-gitignoreContext preview
What this command does when you run it.
Check and update .gitignore to exclude Plan Cascade temporary files. Ensures planning files won't be accidentally committed to version control.
description: "Check and update .gitignore to exclude Plan Cascade temporary files. Ensures planning files won't be accidentally committed to version control."
This command checks if your project's `.gitignore` is configured to exclude Plan Cascade temporary files, and updates it if needed.
Plan Cascade creates various temporary files during planning and execution:
These files should NOT be committed to version control because: 1. They are regenerated each session 2. They may contain environment-specific paths 3. They can cause merge conflicts 4. They clutter the repository history
First, check the current state of `.gitignore`:
uv run python -c "
from plan_cascade.utils.gitignore import GitignoreManager
from pathlib import Path
manager = GitignoreManager(Path.cwd())
result = manager.check()
print('=== .gitignore Status ===')
print()
print(f'File exists: {result.gitignore_exists}')
print(f'Has Plan Cascade section: {result.has_plan_cascade_section}')
print(f'Needs update: {result.needs_update}')
print()
if result.missing_entries:
print('Missing entries:')
for entry in result.missing_entries:
print(f' - {entry}')
else:
print('All Plan Cascade entries are present.')
"If the check shows missing entries, update `.gitignore`:
uv run python -c "
from plan_cascade.utils.gitignore import GitignoreManager
from pathlib import Path
manager = GitignoreManager(Path.cwd())
result = manager.update()
if result.success:
if result.action == 'created':
print('Created .gitignore with Plan Cascade entries')
elif result.action == 'updated':
print(f'Updated .gitignore: added {len(result.entries_added)} entries')
else:
print('No update needed - all entries already present')
else:
print(f'Error: {result.message}')
"Display the final status:
=== .gitignore Update Complete === The following Plan Cascade entries are now in .gitignore: Runtime directories: - .worktree/ - .locks/ - .state/ Planning documents: - prd.json - mega-plan.json - design_doc.json Status files: - .mega-status.json - .planning-config.json - .agent-status.json - .iteration-state.json - .retry-state.json Progress tracking: - findings.md - mega-findings.md - progress.txt Context recovery: - .hybrid-execution-context.md - .mega-execution-context.md New mode files: - .plan-cascade-link.json - .plan-cascade-backup/ - .plan-cascade.json Agent outputs: - .agent-outputs/ Your planning files will not be committed to version control.
You can also run this directly in Python:
from plan_cascade.utils.gitignore import ensure_gitignore
from pathlib import Path
# Returns True if gitignore is properly configured
ensure_gitignore(Path("/path/to/project"))Or via CLI:
python -m plan_cascade.utils.gitignore /path/to/project --update
AI-Powered Cascading Development Framework Transform complex projects into parallel executable tasks with intelligent decomposition and multi-provider execution Why Plan Cascade? • Product Editions • Quick Start • Architecture
Repo: Taoidle/plan-cascade
Approve the current PRD and begin parallel story execution. Analyzes dependencies, creates execution batches, launches background Task agents for each story,…
AI auto strategy executor. Analyzes task and automatically selects and executes the best strategy: direct execution, hybrid-auto PRD generation,…
Complete a worktree task. Verifies all phases are complete, commits code changes (excluding planning files), merges to target branch, and removes worktree. Can…
Show execution status dashboard. Usage: /plan-cascade:dashboard [--verbose|-v] [--json]
Generate a technical design document. Auto-detects level: project-level from mega-plan.json, or feature-level from prd.json. Provides architectural context for…
Import an external design document (Markdown, JSON, or HTML from Confluence/Notion) and convert it to design_doc.json format for Plan Cascade integration.