Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .agents/rules/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@
Bzlmod with `target_compatible_with = SUPPORTS_BZLMOD`
(`//tests/support:support.bzl`). WORKSPACE mode resolves pip dependencies for
only the host Python version.
* **Non-Obvious Test Constructs**: Add an inline comment when a test target
uses an intentionally unusual construct (e.g., a `select()` with only
`//conditions:default` to verify macro `select()` handling).
13 changes: 11 additions & 2 deletions .agents/skills/rule-creator/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,17 @@ trigger: <trigger-condition>

#### Trigger Conditions
* `always_on`: The rule is always active and must be followed for all tasks.
* Custom triggers: You can specify other trigger conditions if the rule only
applies in certain contexts.
* `model_decision`: The agent loads the rule based on its `description` when
relevant. Prefer `model_decision` for conceptual, architectural, or
cross-cutting rules (e.g., `pr.md`, `rules_python.md`).
* `glob`: The rule activates when matching files (`globs:`) are accessed.
Use for syntax/formatting rules tied to specific file types.

### Domain Separation
* Keep language and tool rule files (`starlark.md`, `bzl.md`, `python.md`,
`docs.md`) general to those domains.
* Place `rules_python`-specific Bzlmod, PyPI, and rule API invariants in
`.agents/rules/rules_python.md`.

### Formatting Guidelines
* **Line Wrapping:** Wrap all text to 80 columns.
Expand Down
Loading