2.8k★by yconst
request-approval – OpenClaw Skill
request-approval is an OpenClaw Skills integration for coding workflows. Use Preloop's request_approval tool to get human approval before risky operations like deletions, production changes, or external modifications
Skill Snapshot
| name | request-approval |
| description | Use Preloop's request_approval tool to get human approval before risky operations like deletions, production changes, or external modifications OpenClaw Skills integration. |
| owner | yconst |
| repository | yconst/request-approval |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @yconst/request-approval |
| last updated | Feb 7, 2026 |
Maintainer

name: request-approval description: Use Preloop's request_approval tool to get human approval before risky operations like deletions, production changes, or external modifications compatibility: Requires Preloop MCP server configured and accessible metadata: author: preloop version: "1.0"
Request Approval Skill
Use Preloop's request_approval MCP tool to get human approval before executing risky operations. Preloop will notify the user (via Slack, email, mobile apps, etc.) and wait for their response.
Setup
Preloop must be configured as an MCP server. See references/SETUP.md for configuration details.
When to Request Approval
ALWAYS Request Approval For:
- Deleting anything (files, directories, database records, cloud resources)
- Production changes (deployments, config changes, environment variables)
- Database operations (schema changes, migrations, bulk deletions/updates)
- External modifications (creating/merging PRs, posting to APIs, sending emails)
- Security changes (permissions, access controls, API keys)
- Financial operations (purchases, charges, refunds)
- System modifications (installing packages, changing system settings, CI/CD changes)
Usually Request Approval For:
- Creating pull requests or issues (unless explicitly requested)
- Pushing commits to main/master branches
- Modifying critical files (package.json, requirements.txt, docker-compose.yml, etc.)
- Running commands that modify system state
- Making bulk changes (affecting many files/records)
DON'T Request Approval For:
- Reading files or data
- Searching or querying
- Creating feature branches
- Running tests (in isolated environments)
- Making commits to feature branches
How to Use
Call the request_approval tool BEFORE executing the risky operation.
Parameters
Required:
-
operation(string): Clear, specific description of what you'll do- ✅ Good: "Delete the logs/2024-01/ directory containing 1,234 log files (2.3GB)"
- ❌ Bad: "Delete some logs"
-
context(string): Additional details about what will be affected- ✅ Good: "This directory contains archived application logs from January 2024. The logs have been backed up to S3. Deleting will free up 2.3GB."
- ❌ Bad: "Old logs"
-
reasoning(string): Why this operation is necessary- ✅ Good: "Disk usage is at 92% capacity. These logs are archived in S3 and no longer needed locally."
- ❌ Bad: "Need more space"
Optional:
caller(string): Auto-populated by Preloopapproval_policy(string): Specific approval policy name (uses account default if omitted)
Response
The tool returns a string:
- Approved: Success message → proceed with the operation
- Denied: "Approval denied" or "Approval denied: {reason}" → STOP, don't execute
- Error: Error message → check configuration or try again
Quick Example
Task: User asks to delete old cache files
Your workflow:
- Check what exists: 3,421 cache files, 1.8GB, from last week
- Call
request_approval:- operation: "Delete the temp-cache/ directory"
- context: "Contains 3,421 cache files totaling 1.8GB from batch jobs that ran last week. All jobs completed successfully."
- reasoning: "Cache is no longer needed and is consuming disk space. Results are in the database."
- Wait for response
- If "denied" in response → tell user it's cancelled, ask for alternatives
- If approved → proceed with deletion
See references/EXAMPLES.md for more examples.
Decision Framework
When unsure:
- Can this be undone easily? NO → Request approval
- Could this cause harm or data loss? YES → Request approval
- Is this modifying production or external systems? YES → Request approval
- Would a human want to review this first? YES → Request approval
- Am I uncertain about the safety? YES → Request approval
Golden Rule: When in doubt, request approval. Better to ask unnecessarily than to cause harm.
If Approval is Denied
- Stop immediately - do NOT proceed
- Check for comments - denial may include reasoning
- Inform the user - explain why it was cancelled
- Look for alternatives - can you accomplish the goal differently?
- Don't retry - don't ask again unless circumstances change
Best Practices
DO:
- ✅ Request approval BEFORE executing
- ✅ Be specific and detailed
- ✅ Include numbers (file count, size, affected records)
- ✅ Explain the impact
- ✅ Respect denials
DON'T:
- ❌ Execute first, then ask
- ❌ Be vague
- ❌ Bundle multiple operations
- ❌ Proceed if denied
- ❌ Skip approval because you think it's "probably fine"
Additional Resources
- references/SETUP.md - Configuration and MCP server setup
- references/EXAMPLES.md - Detailed examples and workflows
- references/TROUBLESHOOTING.md - Common errors and solutions
Remember: Safety first! Trust is earned by being cautious and respectful of the user's systems and data.
Request Approval Skill
This skill teaches AI agents to use Preloop's request_approval MCP tool for safe operation with human oversight.
Structure
request-approval/
├── SKILL.md # Main skill file (agents load this first)
├── README.md # This file
└── references/
├── SETUP.md # Configuration and MCP server setup
├── EXAMPLES.md # Detailed examples and workflows
└── TROUBLESHOOTING.md # Common errors and solutions
Progressive Disclosure
This skill follows the progressive disclosure pattern:
-
SKILL.md (~150 lines): Core instructions loaded when skill is activated
- When to request approval
- How to use the tool
- Quick example
- Decision framework
-
references/ (loaded on-demand): Detailed documentation
- SETUP.md: Configuration instructions
- EXAMPLES.md: 8+ detailed examples
- TROUBLESHOOTING.md: Error resolution
Agents load SKILL.md initially, then reference additional files only when needed.
Installation
For Users
Copy this directory to your agent's skills folder:
Claude Desktop / Claude Code:
cp -r request-approval ~/.claude/skills/
Cline:
cp -r request-approval ~/.cline/skills/
Other agents: Check your agent's documentation for the skills directory location.
For Distribution
This skill can be:
- Bundled with Preloop installations
- Distributed via package managers
- Shared as a git repository
- Included in agent presets
Configuration
Before using this skill:
- Configure Preloop as an MCP server (see references/SETUP.md)
- Create an approval policy in Preloop
- Set the policy as default
- Restart your agent
Usage
Once installed and configured, agents will automatically:
- Identify risky operations that need approval
- Call the
request_approvaltool before executing - Wait for human approval/denial
- Proceed only if approved
Validation
This skill follows the Agent Skills specification.
Validate with:
npm install -g @agentskills/cli
agentskills validate request-approval/
License
See the main Preloop repository for license information.
Support
- Documentation: https://docs.preloop.ai
- Community: https://community.preloop.ai
- GitHub: https://github.com/preloop/preloop
Permissions & Security
Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.
Requirements
- OpenClaw CLI installed and configured.
- Language: Markdown
- License: MIT
- Topics:
FAQ
How do I install request-approval?
Run openclaw add @yconst/request-approval in your terminal. This installs request-approval into your OpenClaw Skills catalog.
Does this skill run locally or in the cloud?
OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.
Where can I verify the source code?
The source repository is available at https://github.com/openclaw/skills/tree/main/skills/yconst/request-approval. Review commits and README documentation before installing.
