Skip to content

Commit 4e3afcf

Browse files
committed
Add rule to warn about new standard job creation
Triggers when a new job.yml is created in src/deepwork/standard_jobs/ to remind that standard jobs ship with DeepWork and should only be created when explicitly requested (vs repository or library jobs).
1 parent 7680c3b commit 4e3afcf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: New Standard Job Warning
3+
created: src/deepwork/standard_jobs/*/job.yml
4+
compare_to: prompt
5+
---
6+
A new standard job is being created. Standard jobs are bundled with DeepWork and available to all users.
7+
8+
**Before proceeding, verify this is intentional:**
9+
10+
- **Standard jobs** (`src/deepwork/standard_jobs/`) - Ship with DeepWork, available globally
11+
- **Repository jobs** (`.deepwork/jobs/`) - Specific to a single repository
12+
- **Library jobs** - Installed from external packages
13+
14+
Unless the user **explicitly requested** creating a new standard job (not just "a job" or "a new job"), this should likely be a **repository job** in `.deepwork/jobs/` instead.
15+
16+
If uncertain, ask the user: "Should this be a standard job (shipped with DeepWork) or a repository-specific job?"

0 commit comments

Comments
 (0)