-
Notifications
You must be signed in to change notification settings - Fork 796
fix(scripts): harden the task script runtime #576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,7 +67,7 @@ Before any Q&A, ensure a task exists. If none exists, create one immediately. | |
| * It's OK if the title is imperfect — refine later in PRD. | ||
|
|
||
| ```bash | ||
| TASK_DIR=$(python3 ./.trellis/scripts/task.py create "brainstorm: <short goal>" --slug <auto>) | ||
| TASK_DIR=$(python3 ./.trellis/scripts/task.py create "brainstorm: <short goal>" --description "<one-line summary>" --slug <auto>) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win Require task-creation consent before executing these commands. This skill creates task directories immediately, but it does not require explicit task-creation consent. The new Also applies to: 457-458 🤖 Prompt for AI Agents |
||
| ``` | ||
|
|
||
| Use a slug without a date prefix. `task.py create` adds the `MM-DD-` | ||
|
|
@@ -454,8 +454,8 @@ For complex tasks with multiple independent work items, create subtasks: | |
|
|
||
| ```bash | ||
| # Create child tasks | ||
| CHILD1=$(python3 ./.trellis/scripts/task.py create "Child task 1" --slug child1 --parent "$TASK_DIR") | ||
| CHILD2=$(python3 ./.trellis/scripts/task.py create "Child task 2" --slug child2 --parent "$TASK_DIR") | ||
| CHILD1=$(python3 ./.trellis/scripts/task.py create "Child task 1" --description "First slice of the parent task" --slug child1 --parent "$TASK_DIR") | ||
| CHILD2=$(python3 ./.trellis/scripts/task.py create "Child task 2" --description "Second slice of the parent task" --slug child2 --parent "$TASK_DIR") | ||
|
|
||
| # Or link existing tasks | ||
| python3 ./.trellis/scripts/task.py add-subtask "$TASK_DIR" "$CHILD_DIR" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Document the required
--descriptionoption.The examples now require
--description, but theOptionslist immediately below does not document it. Add--descriptionto that list so users can discover the required argument without relying on the example.🤖 Prompt for AI Agents