scope
Enforce task scope for multi-file coding tasks. Declare allowed files and patterns, verify file inclusion, expand scope with reasons, check violations, and reset. Prevents working outside permitted files.
Instructions
Scope guard for multi-file tasks. Operations:
declare: Set task scope (task_description, in_scope_files, in_scope_patterns)
check: Verify file is in scope (file_path)
expand: Add files to scope (files_to_add, reason)
status: Get violations
clear: Reset scope
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Operation | |
| task_description | No | For declare: task being done | |
| in_scope_files | No | For declare: allowed files | |
| in_scope_patterns | No | For declare: glob patterns | |
| file_path | No | For check: file to verify | |
| files_to_add | No | For expand: files to add | |
| reason | No | For expand: why adding |