Skip to content

Commit 55e6ac7

Browse files
committed
Add rule to prevent accidental standard job creation
Triggers on new folders in src/deepwork/standard_jobs/ to warn that standard jobs should rarely be created. Prompts user to confirm intent since most jobs should be repository or library jobs instead. Uses compare_to: prompt to catch new folders within a conversation. Excludes existing deepwork_jobs and deepwork_rules folders via safety.
1 parent 3afaeba commit 55e6ac7

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: No New Standard Jobs
3+
trigger: src/deepwork/standard_jobs/*/job.yml
4+
safety:
5+
- src/deepwork/standard_jobs/deepwork_jobs/**/*
6+
- src/deepwork/standard_jobs/deepwork_rules/**/*
7+
compare_to: prompt
8+
---
9+
A new folder is being created in `src/deepwork/standard_jobs/`.
10+
11+
**STOP: Standard jobs should rarely be created.**
12+
13+
Standard jobs are installed globally via `deepwork install` and ship with the tool itself. Most jobs should be:
14+
15+
1. **Repository jobs** (`/.deepwork/jobs/`) - Specific to this repository, committed with the codebase
16+
2. **Library jobs** - Reusable jobs shared across projects via a library mechanism
17+
18+
Only create a standard job if the user has **explicitly and clearly stated** that:
19+
- This should be a standard job that ships with deepwork itself
20+
- This is intended for global installation across all projects
21+
- They understand the difference between standard, repository, and library jobs
22+
23+
If the user did not explicitly request a standard job, ask them to clarify whether they want:
24+
- A **repository job** (most common) - stored in `.deepwork/jobs/` for this repo only
25+
- A **library job** - reusable across projects
26+
- A **standard job** - only for core deepwork functionality
27+
28+
Please confirm the user's intent before proceeding.

0 commit comments

Comments
 (0)