sharp-edges
Identify Dangerous APIs and Risky Configurations
Code reviews often miss error-prone APIs and dangerous configurations that lead to bugs and security vulnerabilities. This skill helps identify these sharp edges before they cause production issues.
Die Skill-ZIP herunterladen
In Claude hochladen
Gehe zu Einstellungen → Fähigkeiten → Skills → Skill hochladen
Einschalten und loslegen
Teste es
Verwendung von "sharp-edges". Review this code for sharp edges: Using timezone functions without specifying timezone can lead to incorrect time calculations.
Erwartetes Ergebnis:
Sharp Edges Identified:
1. **Timezone API Risk** (Medium)
- Issue: Using Date/time functions without explicit timezone handling
- Impact: Incorrect time calculations, data corruption in scheduled tasks
- Recommendation: Always use explicit timezone with IANA timezone identifiers (e.g., 'America/New_York')
- Safer Alternative: Use libraries like moment-timezone or date-fns-tz
Verwendung von "sharp-edges". Analyze this configuration for dangerous settings
Erwartetes Ergebnis:
Configuration Sharp Edges Found:
1. **Debug Mode Enabled** (High)
- Setting: DEBUG=true in production config
- Risk: Exposes sensitive error details and internal system information
- Recommendation: Disable debug mode in production environments
2. **Default Credentials** (Critical)
- Setting: Default admin/password credentials active
- Risk: Unauthorized access via brute force attacks
- Recommendation: Force password change on first login, use strong credential requirements
Sicherheitsaudit
SicherThis skill is a documentation/guide for identifying error-prone APIs and dangerous configurations. The static analyzer detected hardcoded URLs (lines 4, 70) which are legitimate source references to the original GitHub repository - not data exfiltration. The 'weak cryptographic algorithm' detections at lines 3, 22, and 39 are false positives - the scanner misidentified text patterns as cryptographic issues when there are no cryptographic algorithms present. No actual security risks identified.
Probleme mit hohem Risiko (2)
Qualitätsbewertung
Was du bauen kannst
Security Audit Assistance
Use during code reviews to identify potentially dangerous API usage and risky configurations that could lead to security vulnerabilities.
API Design Review
Evaluate proposed API designs for known pitfalls and error-prone patterns before implementation.
Configuration Safety Check
Review configuration files and settings for dangerous defaults that could expose systems to risk.
Probiere diese Prompts
Use the sharp-edges skill to identify any error-prone APIs or dangerous configurations in this code snippet. Focus on APIs with non-obvious failure modes or complex parameter requirements.
Apply the sharp-edges skill to analyze these configuration settings. Identify any defaults that are insecure or settings that could bypass security controls.
Using the sharp-edges methodology, evaluate this proposed API design. What sharp edges should developers be aware of? What safer alternatives exist?
Perform a thorough sharp-edges analysis on this codebase. Identify error-prone patterns, dangerous configurations, and provide risk assessments with recommendations for each finding.
Bewährte Verfahren
- Always document identified sharp edges with clear explanations of the risk
- Provide concrete examples of both incorrect and correct usage patterns
- Recommend specific safer alternatives when available, with code examples
- Keep sharp edge documentation updated as new vulnerabilities are discovered
Vermeiden
- Ignoring API documentation warnings about known failure modes
- Using default configurations without reviewing security implications
- Assuming all APIs behave consistently across different contexts
- Skipping resource management checks for APIs that require cleanup
Häufig gestellte Fragen
What is a sharp edge in code?
Does this skill scan my code automatically?
Can this skill detect all security vulnerabilities?
What types of APIs does this skill help identify?
How is this skill different from static analysis tools?
Can I use this skill for any programming language?
Entwicklerdetails
Autor
sickn33Lizenz
MIT
Repository
https://github.com/sickn33/antigravity-awesome-skills/tree/main/web-app/public/skills/sharp-edgesRef
main
Dateistruktur
đź“„ SKILL.md