Skip to content

Commit 91469d7

Browse files
authored
Fix debug-app command and other comments. (#72)
1 parent 962b482 commit 91469d7

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

commands/commit.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
# This command will be invoked via: /flutter:commit
5+
# This command will be invoked via: /commit (or /flutter:commit in the case of collisions)
66

77
description = "Ensure your Dart or Flutter project is in a healthy place (analysis warnings and errors are addressed, for example) and prep a descriptive git commit."
88

commands/create-app.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
# This command will be invoked via: /flutter:create_app
5+
# This command will be invoked via: /create-app (or /flutter:create-app in the case of collisions)
66

77
description = "Create a new Flutter app, with an opinionated structure."
88

commands/create-package.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
# This command will be invoked via: /flutter:create_package
5+
# This command will be invoked via: /create-package (or /flutter:create-package in the case of collisions)
66

77
description = "Create a new Dart or Flutter package, with an opinionated structure."
88

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
Your goal is to help a user debug an issue in their Dart or Flutter application. Follow these steps methodically.
1+
# Copyright 2025 The Flutter Authors.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
# This command will be invoked via: /debug-app (or /flutter:debug-app in the case of collisions)
6+
7+
description = "Do a deep dive to debug a complex issue in a Dart or Flutter app or package."
8+
9+
prompt = """
10+
We're going to debug a Dart or Flutter application. Your goal is to help the user debug an issue in their Dart or Flutter application. Follow these steps methodically.
211
312
## Problem Specification
413
@@ -97,4 +106,5 @@ Once the bug is confirmed to be fixed and the application is stable:
97106
- [ ] Remove any temporary debugging code (e.g., logging statements that aren't generally useful).
98107
- [ ] Run `dart_fix`, `dart_format`, `analyze_files`, and `run_tests` to ensure the codebase is clean and healthy.
99108
- [ ] Prepare a descriptive commit message for the fix, following the "Conventional Commits" specification. The message should include a subject, an optional body explaining the "why" behind the change, and a footer (e.g., `Fixes: #123`) if the user provides an issue number or link. Present the message to the user for approval before committing the changes.
100-
- Do not include the DEBUGGING_PLAN.md file in the commit. When done, ask the user if they would like to remove it.
109+
- Do not include the DEBUGGING_PLAN.md file in the commit. When done, ask the user if they would like to remove it.
110+
"""

commands/modify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
# This command will be invoked via: /flutter:modify
5+
# This command will be invoked via: /modify (or /flutter:modify in the case of collisions)
66

77
description = "Perform a modification of your Flutter or Dart project."
88

99
prompt = """
10-
We're going to modify some code.
10+
We're going to modify some Dart or Flutter project code.
1111
1212
## Problem specification
1313

0 commit comments

Comments
 (0)