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
8 changes: 8 additions & 0 deletions .claude/skills/deepwork_rules.define/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,25 @@ Manages rules that automatically trigger when certain files change during an AI
Rules help ensure that code changes follow team guidelines, documentation is updated,
and architectural decisions are respected.

IMPORTANT: Rules are evaluated at the "Stop" hook, which fires when an agent finishes its turn.
This includes when sub-agents complete their work. Rules are NOT evaluated immediately after
each file edit - they batch up and run once at the end of the agent's response cycle.
- Command action rules: Execute their command (e.g., `uv sync`) when the agent stops
- Prompt action rules: Display instructions to the agent, blocking until addressed

Rules are stored as individual markdown files with YAML frontmatter in the `.deepwork/rules/`
directory. Each rule file specifies:
- Detection mode: trigger/safety, set (bidirectional), or pair (directional)
- Patterns: Glob patterns for matching files, with optional variable capture
- Action type: prompt (default) to show instructions, or command to run a shell command
- Instructions: Markdown content describing what the agent should do

Example use cases:
- Update installation docs when configuration files change
- Require security review when authentication code is modified
- Ensure API documentation stays in sync with API code
- Enforce source/test file pairing
- Auto-run `uv sync` when pyproject.toml changes (command action)


## Required Inputs
Expand Down
8 changes: 8 additions & 0 deletions .claude/skills/deepwork_rules/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,25 @@ Manages rules that automatically trigger when certain files change during an AI
Rules help ensure that code changes follow team guidelines, documentation is updated,
and architectural decisions are respected.

IMPORTANT: Rules are evaluated at the "Stop" hook, which fires when an agent finishes its turn.
This includes when sub-agents complete their work. Rules are NOT evaluated immediately after
each file edit - they batch up and run once at the end of the agent's response cycle.
- Command action rules: Execute their command (e.g., `uv sync`) when the agent stops
- Prompt action rules: Display instructions to the agent, blocking until addressed

Rules are stored as individual markdown files with YAML frontmatter in the `.deepwork/rules/`
directory. Each rule file specifies:
- Detection mode: trigger/safety, set (bidirectional), or pair (directional)
- Patterns: Glob patterns for matching files, with optional variable capture
- Action type: prompt (default) to show instructions, or command to run a shell command
- Instructions: Markdown content describing what the agent should do

Example use cases:
- Update installation docs when configuration files change
- Require security review when authentication code is modified
- Ensure API documentation stays in sync with API code
- Enforce source/test file pairing
- Auto-run `uv sync` when pyproject.toml changes (command action)


## Available Steps
Expand Down
8 changes: 8 additions & 0 deletions .deepwork/jobs/deepwork_rules/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,25 @@ description: |
Rules help ensure that code changes follow team guidelines, documentation is updated,
and architectural decisions are respected.

IMPORTANT: Rules are evaluated at the "Stop" hook, which fires when an agent finishes its turn.
This includes when sub-agents complete their work. Rules are NOT evaluated immediately after
each file edit - they batch up and run once at the end of the agent's response cycle.
- Command action rules: Execute their command (e.g., `uv sync`) when the agent stops
- Prompt action rules: Display instructions to the agent, blocking until addressed

Rules are stored as individual markdown files with YAML frontmatter in the `.deepwork/rules/`
directory. Each rule file specifies:
- Detection mode: trigger/safety, set (bidirectional), or pair (directional)
- Patterns: Glob patterns for matching files, with optional variable capture
- Action type: prompt (default) to show instructions, or command to run a shell command
- Instructions: Markdown content describing what the agent should do

Example use cases:
- Update installation docs when configuration files change
- Require security review when authentication code is modified
- Ensure API documentation stays in sync with API code
- Enforce source/test file pairing
- Auto-run `uv sync` when pyproject.toml changes (command action)

changelog:
- version: "0.1.0"
Expand Down
15 changes: 15 additions & 0 deletions .deepwork/rules/uv-lock-sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: UV Lock Sync
trigger: pyproject.toml
action:
command: uv sync
compare_to: prompt
---

# UV Lock Sync

Automatically runs `uv sync` when `pyproject.toml` is modified to keep
`uv.lock` in sync with dependency changes.

This ensures the lock file is always up-to-date when dependencies are
added, removed, or updated in pyproject.toml.
8 changes: 8 additions & 0 deletions .gemini/skills/deepwork_rules/define.toml
Original file line number Diff line number Diff line change
Expand Up @@ -275,17 +275,25 @@ Manages rules that automatically trigger when certain files change during an AI
Rules help ensure that code changes follow team guidelines, documentation is updated,
and architectural decisions are respected.

IMPORTANT: Rules are evaluated at the "Stop" hook, which fires when an agent finishes its turn.
This includes when sub-agents complete their work. Rules are NOT evaluated immediately after
each file edit - they batch up and run once at the end of the agent's response cycle.
- Command action rules: Execute their command (e.g., `uv sync`) when the agent stops
- Prompt action rules: Display instructions to the agent, blocking until addressed

Rules are stored as individual markdown files with YAML frontmatter in the `.deepwork/rules/`
directory. Each rule file specifies:
- Detection mode: trigger/safety, set (bidirectional), or pair (directional)
- Patterns: Glob patterns for matching files, with optional variable capture
- Action type: prompt (default) to show instructions, or command to run a shell command
- Instructions: Markdown content describing what the agent should do

Example use cases:
- Update installation docs when configuration files change
- Require security review when authentication code is modified
- Ensure API documentation stays in sync with API code
- Enforce source/test file pairing
- Auto-run `uv sync` when pyproject.toml changes (command action)


## Required Inputs
Expand Down
8 changes: 8 additions & 0 deletions .gemini/skills/deepwork_rules/index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,25 @@ Manages rules that automatically trigger when certain files change during an AI
Rules help ensure that code changes follow team guidelines, documentation is updated,
and architectural decisions are respected.

IMPORTANT: Rules are evaluated at the "Stop" hook, which fires when an agent finishes its turn.
This includes when sub-agents complete their work. Rules are NOT evaluated immediately after
each file edit - they batch up and run once at the end of the agent's response cycle.
- Command action rules: Execute their command (e.g., `uv sync`) when the agent stops
- Prompt action rules: Display instructions to the agent, blocking until addressed

Rules are stored as individual markdown files with YAML frontmatter in the `.deepwork/rules/`
directory. Each rule file specifies:
- Detection mode: trigger/safety, set (bidirectional), or pair (directional)
- Patterns: Glob patterns for matching files, with optional variable capture
- Action type: prompt (default) to show instructions, or command to run a shell command
- Instructions: Markdown content describing what the agent should do

Example use cases:
- Update installation docs when configuration files change
- Require security review when authentication code is modified
- Ensure API documentation stays in sync with API code
- Enforce source/test file pairing
- Auto-run `uv sync` when pyproject.toml changes (command action)


## Available Steps
Expand Down
8 changes: 8 additions & 0 deletions src/deepwork/standard_jobs/deepwork_rules/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,25 @@ description: |
Rules help ensure that code changes follow team guidelines, documentation is updated,
and architectural decisions are respected.

IMPORTANT: Rules are evaluated at the "Stop" hook, which fires when an agent finishes its turn.
This includes when sub-agents complete their work. Rules are NOT evaluated immediately after
each file edit - they batch up and run once at the end of the agent's response cycle.
- Command action rules: Execute their command (e.g., `uv sync`) when the agent stops
- Prompt action rules: Display instructions to the agent, blocking until addressed

Rules are stored as individual markdown files with YAML frontmatter in the `.deepwork/rules/`
directory. Each rule file specifies:
- Detection mode: trigger/safety, set (bidirectional), or pair (directional)
- Patterns: Glob patterns for matching files, with optional variable capture
- Action type: prompt (default) to show instructions, or command to run a shell command
- Instructions: Markdown content describing what the agent should do

Example use cases:
- Update installation docs when configuration files change
- Require security review when authentication code is modified
- Ensure API documentation stays in sync with API code
- Enforce source/test file pairing
- Auto-run `uv sync` when pyproject.toml changes (command action)

changelog:
- version: "0.1.0"
Expand Down