Back to list
refugies-info

metadata-mapping-rco-to-ri

by refugies-info

1🍴 0📅 Jan 22, 2026

SKILL.md


name: Metadata Mapping RCO to RI description: Procedures and logic for mapping Carif-Oref (RCO) XML data to Réfugiés.info (RI) structured metadata. Use when processing new RCO fiches to generate the technical frontmatter and mapping table.

Metadata Mapping RCO to RI

This skill provides the logic and tools to transform metadata from a Carif-Oref XML (Lhéo) into the Réfugiés.info format.

📋 Workflow

  1. Extract: Read the RCO XML and identify relevant tags.
  2. Map: Apply business logic and conversion tables (from ressources_metadatas/base-connaissance.md).
  3. Generate: Produce the metadata_ri YAML frontmatter and the mapping traceability table.

🔧 Business Rules

Price Logic

  • Gratuit: If conventionnement = 1 AND code-financeur is in [2, 3, 8, 9, 11, 12, 13, 15, 19].
  • Payant: Otherwise.

Duration & Frequency

  • Commitment: Extract total hours from duree-indicative.
  • Frequency: Calculate hours/week from contenu-formation (e.g., "2h x 2 days" = 4h/week).

Conversions

  • Public: Map code-public-vise using the conversion table.
  • French Level: Extract from contenu-formation (alpha, A1, A2, B1, B2, C1, C2).
  • Dates: Convert YYYYMMDD to ISO 8601.

🛠️ Tools

A TypeScript script is available to automate the extraction and mapping:

pnpm tsx .skills/metadata/scripts/map-metadata.ts <path_to_xml>

📝 Output Format

The output must follow the standard RI frontmatter structure and include a markdown table for traceability.

MetadataValueRCO Source
Title...tag : value

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon