$npx -y skills add joeynyc/skillscore --skill url-skillIntegrates with various REST APIs using different URL patterns and endpoints when data fetching or authentication is needed.
| 1 | # API Integration Skill |
| 2 | |
| 3 | This skill demonstrates URL handling without false positives for path detection. |
| 4 | |
| 5 | ## Description |
| 6 | |
| 7 | Integrates with various APIs using different URL patterns and paths. |
| 8 | |
| 9 | ## When NOT to Use |
| 10 | |
| 11 | - Don't use this for local file operations |
| 12 | - Not for database queries |
| 13 | |
| 14 | ## API Endpoints |
| 15 | |
| 16 | - Base URL: https://api.example.com/v1/ |
| 17 | - Authentication: https://auth.example.com/oauth/token |
| 18 | - Data endpoint: https://data.example.com/api/v2/fetch |
| 19 | - File upload: https://files.example.com/upload |
| 20 | - CSS resources: https://cdn.example.com/CSS/styles.css |
| 21 | - Static assets: https://assets.example.com/beautifying/theme.css |
| 22 | - Natural language API: https://nlp.example.com/natural/language/process |
| 23 | |
| 24 | ## Usage |
| 25 | |
| 26 | ```bash |
| 27 | # Authenticate first |
| 28 | curl -X POST https://auth.example.com/oauth/token \ |
| 29 | -d "grant_type=client_credentials" |
| 30 | |
| 31 | # Fetch data |
| 32 | curl https://data.example.com/api/v2/fetch?query=test |
| 33 | |
| 34 | # Upload file |
| 35 | curl -F "file=@document.pdf" https://files.example.com/upload |
| 36 | ``` |
| 37 | |
| 38 | ## Dependencies |
| 39 | |
| 40 | - curl for HTTP requests (`curl --version` to verify) |
| 41 | - Standard Unix tools |
| 42 | |
| 43 | ## Notes |
| 44 | |
| 45 | All URLs use HTTPS and follow RESTful patterns. No hardcoded filesystem paths are used. |