hack23/cia/api-integration
Claude Code and agent skill by hack23/cia
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
External API integration patterns, retry logic, circuit breakers, caching, rate limiting for government data APIs
Install
npx vskill@latest install hack23/cia/api-integrationSKILL.md
The same SKILL.md was published earlier as hack23/cia/api-integration.
API Integration Skill
Purpose
Provide robust patterns for integrating the CIA platform with external government data APIs, including the Swedish Riksdagen, Election Authority, World Bank, and ESV (Swedish Financial Management Authority). Covers resilience, caching, and error handling.
When to Use
- ✅ Integrating new external data sources
- ✅ Improving reliability of existing API connections
- ✅ Implementing caching for frequently accessed political data
- ✅ Adding rate limiting to respect API provider constraints
- ✅ Debugging API integration failures
Do NOT use for:
- ❌ Internal service-to-service calls (use Spring patterns directly)
- ❌ Database access patterns (use JPA/Hibernate skill)
CIA External API Landscape
| API | Base URL | Data Type | Rate Limit | |
|---|---|---|---|---|
| Riksdagen Open Data | data.riksdagen.se | Parliament data, votes, documents | Best effort | |
| Swedish Election Authority | data.val.se | Election results, parties | Low volume | |
| World Bank Open Data | api.worldbank.org | Economic indicators | 50 req/sec | |
| ESV | www.esv.se | Government finances | Best effort |
Retry Logic Pattern
Exponential Backoff with Jitter
Circuit Breaker Pattern
Caching Strategy
Spring Cache Configuration
Cache TTL Guidelines
| Data Type | TTL | Reason | |
|---|---|---|---|
| Politician profiles | 24 hours | Changes infrequently | |
| Voting records | 1 hour | Updated during sessions | |
| Document content | 7 days | Immutable once published | |
| Election results | 30 days | Updated only at elections | |
| Economic indicators | 24 hours | Daily updates from World Bank |
Rate Limiting
Error Handling
Security Considerations
- Never log API keys or tokens — mask sensitive headers in logs
- Validate all API responses — treat external data as untrusted input
- Use HTTPS exclusively — reject insecure connections
- Timeout connections — set connect (5s) and read (30s) timeouts
- Sanitize data — escape or validate all data before database storage
ISMS Alignment
| Control | Requirement | |
|---|---|---|
| ISO 27001 A.8.24 | Use of cryptography for API transport | |
| NIST CSF PR.DS-2 | Data-in-transit protection | |
| CIS Control 12 | Network infrastructure management |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/api-integration/SKILL.md
Popularity
- Repository stars
- 235
- Repository forks
- 56
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hack23/cia/api-integration)