Install
openclaw skills install optional-strict-instructionsManage operations with mandatory user confirmation, permission checks, explicit method adherence, and clear choices before execution on sensitive system tasks.
openclaw skills install optional-strict-instructionsThis skill encapsulates the learned workflow for handling operations that require user confirmation, permission verification, and strict adherence to explicit instructions.
1. Check if target resource exists
2. Gather details (size, permissions, ownership, timestamps)
3. Determine what operations are possible
[Operation Context]
Found: /path/to/resource (details)
Options:
1. [Method A - e.g., sudo with explanation]
2. [Method B - e.g., user permissions]
3. [Safety option - e.g., move to trash]
4. [Cancel operation]
Enter number choice (1-4):
1. Execute exactly as described in chosen option
2. If fails due to permissions/authentication, report and stop
3. Do not attempt unauthorized alternatives
1. Verify operation completed successfully
2. Report results clearly
3. If failed, explain why and offer next steps
User: "Use sudo to delete file.txt"
Correct Response:
sudo rm file.txtrm file.txt without sudoWrong Response: Trying user permissions when sudo fails
User: "Delete the log file"
Correct Response:
Found: /var/log/app.log (requires root)
Options:
1. sudo rm /var/log/app.log
2. sudo truncate /var/log/app.log (clear contents)
3. Show file contents first
4. Cancel
User: "Modify system configuration"
Correct Response:
Modifying /etc/config/file (system-critical)
Options:
1. Proceed with backup first
2. Proceed without backup (risky)
3. Show proposed changes only
4. Cancel
Found: /path/file (size, owner, modified)
Options:
1. sudo rm -f (permanent, needs password)
2. rm (permanent, user permissions)
3. trash/move to recycle (reversible)
4. Cancel
Operation requires sudo to [action]
Options:
1. Run with sudo (needs password)
2. Show command for manual execution
3. Check if alternative exists
4. Cancel
This will [describe change] affecting [system component]
Options:
1. Proceed with precautions [list]
2. Proceed without precautions (risk: [list])
3. Dry-run/show changes only
4. Cancel
If sudo/authentication fails:
1. Report "Authentication required/failed"
2. Stop execution
3. Offer: "Provide password or choose alternative"
4. Do NOT attempt unauthorized methods
If permission denied:
1. Report exact error
2. Explain why permission was denied
3. Offer appropriate alternatives
4. Do NOT attempt to bypass permissions
If resource doesn't exist:
1. Report "Resource not found: /path"
2. Suggest possible locations or alternatives
3. Do NOT proceed with operation
Wrong: When sudo fails, try user permissions without asking Correct: Report failure, wait for instruction
Wrong: Automatically choose "best" method Correct: Present options, let user choose
Wrong: Proceed without checking resource details Correct: Gather complete info first
Before any sensitive operation:
User choice > Automation efficiency Explicit instructions > Assumed intent Safety > Speed Verification > Assumption