Identify error-prone APIs and dangerous configurations
Add this skill
npx mdskills install sickn33/sharp-edgesProvides high-level guidance but lacks specific patterns, examples, or actionable detection logic
1---2name: sharp-edges3description: "Identify error-prone APIs and dangerous configurations"4source: "https://github.com/trailofbits/skills/tree/main/plugins/sharp-edges"5risk: safe6---78# Sharp Edges910## Overview1112Identify error-prone APIs and dangerous configurations that could lead to bugs, security vulnerabilities, or system failures.1314## When to Use This Skill1516Use this skill when you need to identify error-prone APIs and dangerous configurations.1718Use this skill when:19- Reviewing code for potentially dangerous API usage20- Identifying configurations that could cause issues21- Analyzing code for error-prone patterns22- Assessing risk in API design or configuration choices23- Performing security audits focused on API misuse2425## Instructions2627This skill helps identify problematic APIs and configurations:28291. **API Analysis**: Review API usage for error-prone patterns302. **Configuration Review**: Identify dangerous or risky configurations313. **Pattern Recognition**: Spot common mistakes and pitfalls324. **Risk Assessment**: Evaluate the potential impact of identified issues3334## Common Sharp Edges3536### Error-Prone APIs3738- APIs with complex parameter requirements39- APIs with non-obvious failure modes40- APIs that require careful resource management41- APIs with timing or concurrency issues42- APIs with unclear error handling4344### Dangerous Configurations4546- Default settings that are insecure47- Configurations that bypass security controls48- Settings that enable dangerous features49- Options that reduce system reliability50- Parameters that affect performance negatively5152## Detection Strategies53541. **Code Review**: Look for known problematic patterns552. **Static Analysis**: Use tools to identify risky API usage563. **Configuration Audits**: Review configuration files for dangerous settings574. **Documentation Review**: Check for warnings about API usage585. **Experience-Based**: Leverage knowledge of common pitfalls5960## Best Practices6162- Document identified sharp edges63- Provide clear guidance on safe usage64- Create examples of correct vs incorrect usage65- Recommend safer alternatives when available66- Update documentation with findings6768## Resources6970For more information, see the [source repository](https://github.com/trailofbits/skills/tree/main/plugins/sharp-edges).71
Full transparency — inspect the skill content before installing.