hack23/cia/osint-methodologies

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.

OSINT collection, source evaluation, data integration, verification techniques for Swedish political intelligence

Install

npx vskill@latest install hack23/cia/osint-methodologies

SKILL.md

The same SKILL.md was published earlier as hack23/cia/osint-methodologies.

OSINT Methodologies Skill

Purpose

This skill provides comprehensive Open-Source Intelligence (OSINT) collection methodologies specifically tailored for the CIA (Citizen Intelligence Agency) platform's mission of democratic transparency and political accountability in Sweden. It ensures ethical, legal, and effective intelligence gathering from public sources while maintaining GDPR compliance and respecting privacy principles.

When to Use This Skill

Apply this skill when:

  • ✅ Integrating new public data sources (government APIs, open datasets)
  • ✅ Evaluating data source reliability and completeness
  • ✅ Implementing data collection pipelines for political intelligence
  • ✅ Verifying information from multiple independent sources
  • ✅ Conducting source triangulation for accuracy validation
  • ✅ Designing OSINT collection strategies for new intelligence requirements
  • ✅ Assessing data quality and establishing quality metrics
  • ✅ Creating automated data harvesting and validation workflows

Do NOT use for:

  • ❌ Collecting non-public or classified information
  • ❌ Social media scraping without clear public interest justification
  • ❌ Personal data collection beyond public official capacity
  • ❌ Intelligence gathering that violates GDPR or Swedish privacy laws

OSINT Collection Framework

Four Primary Sources Architecture

The CIA platform integrates four high-integrity OSINT sources to create comprehensive political intelligence:

mermaid
graph TB
subgraph "OSINT Sources"
A1["📡 Riksdagen API<br/>98.5% completeness<br/>3.5M+ votes, 89K documents"]
A2["📊 Election Authority<br/>99.2% completeness<br/>1970-present electoral data"]
A3["💰 World Bank<br/>94.1% completeness<br/>598K indicators, 211 countries"]
A4["🏛️ Financial Authority ESV<br/>97.8% completeness<br/>Monthly updates"]
end
subgraph "Collection Layer"
A1 --> B[Data Ingestion Pipeline]
A2 --> B
A3 --> B
A4 --> B
end
subgraph "Quality Assurance"
B --> C{Source Verification}
C --> D[Completeness Check]
C --> E[Consistency Validation]
C --> F[Temporal Continuity]
C --> G[Cross-Reference Check]
end
subgraph "Data Integration"
D & E & F & G --> H[(Integrated Dataset)]
H --> I[Entity Resolution]
I --> J[Data Enrichment]
end
subgraph "Quality Metrics"
J --> K["📊 Quality Dashboard"]
K --> L[Completeness: 97.4%]
K --> M[Accuracy: 99.1%]
K --> N[Timeliness: 24h lag]
end
style A1 fill:#e1f5ff
style A2 fill:#e1f5ff
style A3 fill:#e1f5ff
style A4 fill:#e1f5ff
style C fill:#ffeb99
style H fill:#ccffcc
style K fill:#ffe6cc

Source Evaluation Matrix

1. Riksdagen API (Swedish Parliament)

Source Profile:

  • URL: https://data.riksdagen.se/
  • Authority: Swedish Parliament (Legislative Branch)
  • Classification: Primary Source, Government Official
  • Completeness: 98.5%
  • Update Frequency: Daily (real-time for votes)
  • Historical Coverage: 1971-present (54 years)
  • Data Volume: 3.5M+ votes, 89K documents, 2.5K politicians

Quality Metrics:

java
@Component
public class RiksdagenSourceQualityMetrics {
public SourceQualityReport evaluateRiksdagenAPI() {
return SourceQualityReport.builder()
.sourceName("Riksdagen API")
.completeness(98.5) // Measured against expected records
.accuracy(99.8) // Verified via manual audit sampling
.timeliness(1.0) // Hours lag for new data
.reliability(5) // 1-5 scale, 5 = highest
.trustLevel("PRIMARY_SOURCE")
.legalBasis("Public Records Act (Offentlighetsprincipen)")
.gdprCompliance(true)
.updateFrequency("DAILY")
.build();
}
public List<DataGap> identifyDataGaps() {
// Example: Check for missing voting records
String sql = """
SELECT
COUNT(*) as expected_votes,
COUNT(DISTINCT ballot_id) as actual_votes,
COUNT(*) - COUNT(DISTINCT ballot_id) as missing_votes
FROM view_riksdagen_vote_daily_summary
WHERE created_date >= CURRENT_DATE - INTERVAL '30 days'
""";
// Calculate completeness percentage
return jdbcTemplate.query(sql, (rs, rowNum) ->
DataGap.builder()
.expectedRecords(rs.getInt("expected_votes"))
.actualRecords(rs.getInt("actual_votes"))
.missingRecords(rs.getInt("missing_votes"))
.completeness((double) rs.getInt("actual_votes") /
rs.getInt("expected_votes") * 100)
.build()
);
}
}

Data Categories:

  1. Voting Records (vote_data table)
  • Individual votes on ballots
  • Party discipline metrics
  • Coalition voting patterns
  • Temporal voting trends
  1. Documents (document_element, document_status_container)
  • Legislative proposals (motioner)
  • Government bills (propositioner)
  • Committee reports (utskottsbetänkanden)
  • Parliamentary questions (interpellationer)
  1. Politicians (person_data, assignment_data)
  • Parliamentary roles and assignments
  • Committee memberships
  • Party affiliations
  • Career trajectories
  1. Parliamentary Activities
  • Debate participation
  • Committee work
  • Government questions
  • Speaker time

OSINT Techniques:

sql
-- Source Triangulation: Verify politician voting record completeness
WITH expected_votes AS (
SELECT
person_id,
COUNT(DISTINCT ballot_id) as riksdagen_vote_count
FROM vote_data
WHERE vote_date >= '2022-09-11' -- Current parliament
GROUP BY person_id
),
document_activity AS (
SELECT
person_id,
COUNT(DISTINCT document_id) as document_count
FROM document_person_reference_data
WHERE document_type IN ('mot', 'ip') -- Motions & Questions
GROUP BY person_id
)
SELECT
p.first_name || ' ' || p.last_name as politician_name,
p.party as party_affiliation,
ev.riksdagen_vote_count,
da.document_count,
CASE
WHEN ev.riksdagen_vote_count > 500 THEN 'ACTIVE'
WHEN ev.riksdagen_vote_count BETWEEN 100 AND 500 THEN 'MODERATE'
WHEN ev.riksdagen_vote_count < 100 THEN 'INACTIVE'
END as engagement_level
FROM person_data p
LEFT JOIN expected_votes ev ON p.person_id = ev.person_id
LEFT JOIN document_activity da ON p.person_id = da.person_id
WHERE p.status = 'Tjänstgörande riksdagsledamot' -- Active MPs
ORDER BY ev.riksdagen_vote_count DESC;
2. Election Authority (Valmyndigheten)

Source Profile:

  • URL: https://www.val.se/
  • Authority: Swedish Election Authority (Independent)
  • Classification: Primary Source, Government Official
  • Completeness: 99.2%
  • Update Frequency: Post-election (every 4 years + special elections)
  • Historical Coverage: 1970-present (14 elections)
  • Data Volume: 40 parties, national & regional results

Quality Metrics:

java
@Component
public class ElectionAuthorityQualityMetrics {
public SourceQualityReport evaluateElectionAuthority() {
return SourceQualityReport.builder()
.sourceName("Valmyndigheten")
.completeness(99.2)
.accuracy(99.9) // Official certified results
.timeliness(168.0) // Hours post-election for final results
.reliability(5)
.trustLevel("PRIMARY_SOURCE")
.legalBasis("Election Act (Vallagen)")
.gdprCompliance(true)
.updateFrequency("ELECTION_CYCLE")
.build();
}
public List<ElectionDataValidation> validateElectionData() {
// Cross-reference with Riksdagen seat assignments
String sql = """
SELECT
e.party_name,
e.parliament_seats as election_authority_seats,
COUNT(DISTINCT a.person_id) as riksdagen_active_mps,
e.parliament_seats - COUNT(DISTINCT a.person_id) as seat_discrepancy
FROM sweden_political_party e
LEFT JOIN assignment_data a
ON e.party_id = a.party
AND a.role_code = 'Riksdagsledamot'
AND a.from_date <= CURRENT_DATE
AND (a.to_date IS NULL OR a.to_date >= CURRENT_DATE)
WHERE e.parliament_seats > 0
GROUP BY e.party_name, e.parliament_seats
HAVING e.parliament_seats != COUNT(DISTINCT a.person_id)
""";
return jdbcTemplate.query(sql, (rs, rowNum) ->
ElectionDataValidation.builder()
.partyName(rs.getString("party_name"))
.expectedSeats(rs.getInt("election_authority_seats"))
.actualSeats(rs.getInt("riksdagen_active_mps"))
.discrepancy(rs.getInt("seat_discrepancy"))
.build()
);
}
}

OSINT Techniques:

sql
-- Historical Election Trend Analysis
SELECT
party_name,
election_year,
percentage,
parliament_seats,
LAG(percentage, 1) OVER (PARTITION BY party_name ORDER BY election_year) as previous_percentage,
percentage - LAG(percentage, 1) OVER (PARTITION BY party_name ORDER BY election_year) as vote_swing,
LAG(parliament_seats, 1) OVER (PARTITION BY party_name ORDER BY election_year) as previous_seats,
parliament_seats - LAG(parliament_seats, 1) OVER (PARTITION BY party_name ORDER BY election_year) as seat_change
FROM sweden_political_party
WHERE parliament_seats IS NOT NULL
ORDER BY party_name, election_year DESC;
3. World Bank Open Data

Source Profile:

  • URL: https://data.worldbank.org/
  • Authority: World Bank (International Organization)
  • Classification: Secondary Source, International Authority
  • Completeness: 94.1%
  • Update Frequency: Quarterly
  • Historical Coverage: 1960-present (64 years)
  • Data Volume: 598K indicators, 211 countries

Quality Metrics:

java
@Component
public class WorldBankQualityMetrics {
public SourceQualityReport evaluateWorldBankAPI() {
return SourceQualityReport.builder()
.sourceName("World Bank Open Data")
.completeness(94.1)
.accuracy(97.5)
.timeliness(2160.0) // 90 days lag (quarterly updates)
.reliability(4) // High but not primary source
.trustLevel("SECONDARY_SOURCE")
.legalBasis("Open Data License")
.gdprCompliance(true) // Aggregate data only
.updateFrequency("QUARTERLY")
.build();
}
}

Use Cases:

  • Economic context for political decisions
  • International comparison benchmarks
  • Policy effectiveness measurement
  • Correlation analysis (GDP vs. government spending)
4. Financial Authority (ESV)

Source Profile:

  • URL: https://www.esv.se/
  • Authority: Swedish Financial Management Authority
  • Classification: Primary Source, Government Official
  • Completeness: 97.8%
  • Update Frequency: Monthly
  • Historical Coverage: 1990-present
  • Data Volume: Agency financial data

OSINT Collection Checklist

Pre-Collection Assessment

Legal & Ethical Review:

✅ Data is publicly available under Swedish Public Access Principle (Offentlighetsprincipen)
✅ Collection method complies with GDPR Article 6(1)(e) - public interest
✅ Data processing aligns with purpose limitation (Article 5(1)(b))
✅ Data retention periods defined and documented
✅ Privacy impact assessment completed for personal data
✅ Source attribution and license compliance verified

This is the start of the file. Read the full SKILL.md on GitHub.

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hack23/cia/osint-methodologies/badge)](https://verified-skill.com/skills/hack23/cia/osint-methodologies)

Something wrong with this skill or its page? Tell us.