Not a direct solution to your question but you could also use the localrules
keyword to specify that a rule is local in your main smk file.
You wouldn't have to edit each rule just add localrules: my_rule1, my_rule2
in the first lines. Which might be easier to add and remove the local behaviour.