diff --git a/AGENTS.md b/AGENTS.md index 2f0ced2b..cd88dd34 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -77,10 +77,6 @@ agent_folder_map = { "kilocode": ".kilocode/", "auggie": ".auggie/", "copilot": ".github/", - "windsurf": ".windsurf/", - "kilocode": ".kilocode/", - "auggie": ".auggie/", - "copilot": ".github/", "q": ".amazonq/", "codebuddy": ".codebuddy/" } diff --git a/scripts/powershell/update-agent-context.ps1 b/scripts/powershell/update-agent-context.ps1 index 806ee090..baf586e4 100644 --- a/scripts/powershell/update-agent-context.ps1 +++ b/scripts/powershell/update-agent-context.ps1 @@ -381,7 +381,6 @@ function Update-SpecificAgent { 'codebuddy' { Update-AgentFile -TargetFile $CODEBUDDY_FILE -AgentName 'CodeBuddy' } 'q' { Update-AgentFile -TargetFile $Q_FILE -AgentName 'Amazon Q Developer CLI' } default { Write-Err "Unknown agent type '$Type'"; Write-Err 'Expected: claude|gemini|copilot|cursor|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|q'; return $false } - } } diff --git a/templates/commands/implement.md b/templates/commands/implement.md index 2c9b65b0..60555975 100644 --- a/templates/commands/implement.md +++ b/templates/commands/implement.md @@ -58,7 +58,11 @@ You **MUST** consider the user input before proceeding (if not empty). - **REQUIRED**: Create/verify ignore files based on actual project setup: **Detection & Creation Logic**: - - Check `git rev-parse --git-dir 2>/dev/null` → create/verify .gitignore + - Check if the following command succeeds to determine if the repository is a git repo (create/verify .gitignore if so): + + ```sh + git rev-parse --git-dir 2>/dev/null + ``` - Check if Dockerfile* exists or Docker in plan.md → create/verify .dockerignore - Check if .eslintrc* or eslint.config.* exists → create/verify .eslintignore - Check if .prettierrc* exists → create/verify .prettierignore @@ -78,7 +82,7 @@ You **MUST** consider the user input before proceeding (if not empty). - **Universal**: `.DS_Store`, `Thumbs.db`, `*.tmp`, `*.swp`, `.vscode/`, `.idea/` **Tool-Specific Patterns**: - - **Docker**: `node_modules/`, `.git/`, `.gitignore`, `README.md`, `Dockerfile*`, `.dockerignore`, `*.log*`, `.env*`, `coverage/` + - **Docker**: `node_modules/`, `.git/`, `Dockerfile*`, `.dockerignore`, `*.log*`, `.env*`, `coverage/` - **ESLint**: `node_modules/`, `dist/`, `build/`, `coverage/`, `*.min.js` - **Prettier**: `node_modules/`, `dist/`, `build/`, `coverage/`, `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml` - **Terraform**: `.terraform/`, `*.tfstate*`, `*.tfvars`, `.terraform.lock.hcl`