update bug skill file for new features: parent/child relationships
2 files changed,  +20, -7
M opencode.jsonc
+6, -5
 1@@ -6,23 +6,24 @@
 2     "agent": {
 3         "plan": {
 4             "mode": "primary",
 5-            "model": "opencode-go/kimi-k2.6"
 6+            "model": "opencode-go/deepseek-v4-pro"
 7         },
 8         "build": {
 9             "mode": "primary",
10-            "model": "opencode-go/kimi-k2.6"
11+            "model": "opencode-go/deepseek-v4-pro"
12         }
13     },
14     "permission": {
15         "*": "allow",
16         "bash": {
17             "*": "allow",
18+            "grep *": "allow",
19             "go *": "allow",
20             "go get *": "ask",
21-            "git *": "ask",
22+            "git *": "allow",
23             "pnpm add *": "ask",
24-            "npm *": "deny",
25-            "npx *": "deny",
26+            "npm *": "ask",
27+            "npx *": "ask",
28             "rm *": "ask",
29             "rm /tmp/**/*": "allow",
30             "rm -rf /tmp/**/*": "allow",
M skills/superpowers/working-with-bug/SKILL.md
+14, -2
 1@@ -104,7 +104,7 @@ bug agent read abc1234
 2 - Retrieve documented plans from comments
 3 - Check current status before acting
 4 
 5-### bug agent new --title "..." [--message "..." | --stdin | --from-file <path>]
 6+### bug agent new --title "..." [--message "..." | --stdin | --from-file <path>] [--parent <bugID>]
 7 
 8 Create a new bug/issue as the agent.
 9 
10@@ -112,6 +112,9 @@ Create a new bug/issue as the agent.
11 # Using --message flag (simple strings)
12 bug agent new --title "CI Failure" --message "Build failed on commit abc123"
13 
14+# Linking under a parent issue (short or full ID)
15+bug agent new --title "Subtask" --message "Details" --parent abc1234
16+
17 # Using --stdin (pipe content)
18 echo "Build failed on commit abc123" | bug agent new --title "CI Failure" --stdin
19 
20@@ -126,6 +129,9 @@ bug agent new --title "CI Failure" --from-file /tmp/description.md
21   - `--stdin`: Read message from standard input
22   - `--from-file <path>`: Read message from a file
23 
24+**Optional flags:**
25+- `--parent <bugID>`: Link the new issue under a parent issue (short or full ID)
26+
27 **Important:** `--message`, `--stdin`, and `--from-file` are **mutually exclusive**. You must choose exactly one method to provide the message content.
28 
29 **Best practice for multi-line markdown content:** Use `--stdin` or `--from-file` instead of `--message`. Long multi-line strings with markdown formatting often fail when passed as shell command-line arguments due to escaping issues.
30@@ -230,6 +236,9 @@ bug agent edit abc1234 --from-file /tmp/new_desc.md
31 
32 # Edit both title and message
33 bug agent edit abc1234 --title "New Title" --message "New description"
34+
35+# Set the parent issue (only if none set)
36+bug agent edit abc1234 --parent def5678
37 ```
38 
39 **Flags:**
40@@ -238,6 +247,9 @@ bug agent edit abc1234 --title "New Title" --message "New description"
41   - `--message "..."`: Provide message as a command-line string
42   - `--stdin`: Read message from standard input
43   - `--from-file <path>`: Read message from a file
44+- `--parent <bugID>`: Parent issue short or full ID (optional, issues only; at least one of `--title`, message content, or `--parent` must be provided)
45+
46+**Note:** A parent link can only be added when the issue has none; parent links cannot be changed or removed afterwards.
47 
48 **Important:** When editing the message, `--message`, `--stdin`, and `--from-file` are **mutually exclusive**. You must choose exactly one method to provide the message content.
49 
50@@ -256,7 +268,7 @@ New details about this bug:
51 EOF
52 ```
53 
54-**Note:** When editing bugs, at least one of `--title` or a message option must be provided.
55+**Note:** When editing bugs, at least one of `--title`, a message option, or `--parent` must be provided.
56 
57 ### bug agent edit [commentID] [--message "..." | --stdin | --from-file <path>]
58