Skip to content

Commit fe4928f

Browse files
committed
amazonq: add initial set of agent rules
1 parent 5540b8f commit fe4928f

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Implementing Features
2+
3+
- Whenever you implement a feature or create a code change you MUST follow this process
4+
5+
## Implementation Process
6+
7+
1. You MUST implement the code required changes without waiting for human input.
8+
2. You MUST run the build to ensure tests pass.
9+
3. You MUST debug and fix any failures.
10+
4. You MUST thoroughly and pedantically follow any provided style guides, paying special attention to MUST, SHOULD, and MAY statements.
11+
5. When the code is finished, you MUST ensure that the following checks have been completed:
12+
- You MUST perform a build, based on the programming language (e.g. cargo build)
13+
- You MUST run tests based on language (e.g. cargo test or pytest)
14+
- You MUST check lints using the programming language preferences (e.g. cargo clippy, mypy + ruff)
15+
- You MUST format the changes (e.g. cargo fmt or black)
16+
6. You MUST print a status update summarizing the work done (you MUST NOT show any code, just do a verbal summary)
17+
7. You MUST perform a code-review using the style guide as a reference, paying special attention to SHOULD, MUST, and MAY statements. You MUST print a summary of the review (for code samples, you MUST NOT print large sections of code. You MAY only show handfuls of lines when it makes sense)
18+
8. You MUST implement the changes suggested by the code review by going back to step 1.
19+
9. You MUST iterate on the code until all elements of point 5. are complete.

.amazonq/rules/02-using-git.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Using Git
2+
3+
- You MUST never use `git push` or any command that would send code off the host.
4+
- You MUST never perform deletions.
5+
- You MUST never commit any `.gitignore`d content to git.
6+
- You MUST create local commits with `git add` and `git commit`.
7+
- If anything goes wrong with Git, you MUST NOT delete data or attempt destructive operations.
8+
- You MUST NOT rebase changes or modify Git history in any way.
9+
- You MUST NOT use `git filter-branch`, `git reset --hard`, or similar commands.
10+
- If you encounter Git issues, you MUST immediately report them and exit gracefully.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Bottlerocket Git Commit Convention
2+
3+
* Commits MUST NOT follow the conventional commit format
4+
* Commits MUST follow this format:
5+
```
6+
<component>: <description>
7+
8+
<body>
9+
```
10+
11+
Where:
12+
* <component> MUST be the subsystem you modified (e.g., "prompt-plan", "implement", "code-review")
13+
* <description> MUST use present imperative tense (e.g., "add", "fix", "update", not "adds", "fixed", "updated")
14+
* <description> MUST be lowercase and MUST NOT end with a period
15+
* The commit message SHOULD complete the sentence: "If applied, this commit will ________"
16+
* If needed, you MAY add a body separated by a blank line, with lines no longer than 72 characters
17+
18+
Example:
19+
```
20+
prompt-plan: implement structured format parser
21+
22+
This change adds a parser for the structured prompt plan format that
23+
extracts prompt information and status.
24+
`

0 commit comments

Comments
 (0)