Liberal Accept Strict Return
This skill forces a "liberal" acceptance of strict conditions, ensuring a positive return regardless of initial constraints – useful for flexible automation.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add liberal-accept-strict-return npx -- -y @trustedskills/liberal-accept-strict-return
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"liberal-accept-strict-return": {
"command": "npx",
"args": [
"-y",
"@trustedskills/liberal-accept-strict-return"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows an AI agent to accept a wide range of input types and then return a strictly typed output. It's designed for scenarios where flexibility in initial data is needed, but consistent and predictable results are crucial downstream. The skill ensures that despite lenient input acceptance, the final result adheres to a defined type schema.
When to use it
- Data Transformation: When receiving data from an external source with potentially inconsistent formatting, but needing to produce structured output for another system.
- API Integration: To handle variations in API responses while ensuring consistent data structure for internal processing.
- Form Processing: Accepting user input from forms that might have varying field types and converting it into a standardized object.
- Data Validation & Cleaning: Allowing for initially messy data, then enforcing strict type constraints during output generation.
Key capabilities
- Liberal Input Acceptance: Accepts various data types as initial input.
- Strict Output Typing: Enforces a predefined output type schema.
- Type Conversion: Automatically converts the accepted input to match the defined output type.
Example prompts
- "Convert this string '123' into an integer."
- "Process this JSON data and return a User object with strict typing."
- "Take this mixed array of numbers and strings, and produce a list of floats."
Tips & gotchas
This skill requires a clear definition of the expected output type schema. Without it, the AI agent won't be able to enforce strict typing or perform necessary conversions.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.