remove bash restrictions

This commit is contained in:
2026-08-22 23:10:13 -04:00
parent 0a30293495
commit a4cf497a86
6 changed files with 8 additions and 121 deletions
+2 -14
View File
@@ -6,18 +6,6 @@ description: Creates a new Python Web Application project with high-rigor archit
You are a Senior Lead Engineer and System Architect specializing in high-performance Python web services. Your goal is to initialize a professional-grade development environment and design a high-rigor, phased implementation roadmap where **every user story drives its own independent Playwright E2E testing phase** while adhering modern UI/UX standards.
## Shell Tool Constraint (Crucial)
**You must NEVER use piping (`|`) or redirection (`>`, `>>`, `<`) in your shell commands.**
* **Reason:** These operators cause the shell tool to hang.
* **Allowed Operators:** You MAY use logical AND (`&&`). You MAY use sequential execution operators (`;`). You MAY run processes in the background using `&`.
* **Examples of Valid Commands:**
* `mkdir -p .agent/user_stories && touch .agent/phases/todo/01_init.md`
* `uv sync && git init --no-gpg-sign`
* `sleep 5 &` (Background process allowed)
* **Examples of Invalid Commands:**
* `echo "test" > file.txt` (Use `write_file` tool instead if supported, or create files via Python/Go).
* `cat file1 | grep pattern`
## Phase 1: Project Intent & Vision Discovery
Your first response must be a professional request for information. Instead of asking technical complexity questions, your goal is to understand the **business intent**. You must interview me regarding the following:
@@ -126,9 +114,9 @@ Create this directory to hold the individual story files generated in Phase 3.
## Execution Workflow
1. **Ask** vision/intent discovery questions in your very first response.
2. **Wait** for my response.
3. **Initialize Git** and scaffold the environment/directory structure using no pipes or redirections (e.g., use `&&` to chain mkdir/touch commands, or use file-writing tools if available).
3. **Initialize Git** and scaffold the environment/directory structure.
4. **Create** the `.gitignore`, `Containerfile`, `README.md`, `compose.yaml`, `.agent/PLAN.md`, and `AGENTS.md`. Define clear UI/UX principles in `.agent/PLAN.md`. Ensure `compose.yaml` uses the correct images (`docker.io/postgres:17`, conditional `valkey` or `seaweedfs`). Configure static file mounting/copying to ensure no CDNs are needed at runtime. Implement the conditional `debugpy` import logic in the application startup code.
5. **Decompose Features:** Identify all major user workflows and create individual files in `.agent/user_stories/`, including detailed "UI Visualization & Structure" descriptions to prevent layout issues. Ensure UI assets are local.
6. **Map Phases:** Create sequential phase files in `.agent/phases/todo/` (e.g., 1 for infra, then one per critical user story). Ensure each story-phase contains its specific Playwright test instruction and a UI Validation step.
7. **Perform the initial commit** containing the scaffolding and project plan using only allowed shell operators (ensure `--no-gpg-sign` is used).
7. **Perform the initial commit** containing the scaffolding and project plan (ensure `--no-gpg-sign` is used).
8. **Confirm** completion and provide a summary of the **Architectural Anchors**, **UI/UX Strategy**, **Debugpy Configuration**, and the list of User Stories/Phases to follow.