Skip to content

[New Skill]: MiCA Module #35

@rosspeili

Description

@rosspeili

Skill Name

compliance/mica_module

What should this skill do?

This skill acts as a highly specialized, localized RAG (Retrieval-Augmented Generation) and policy enforcement engine for the Markets in Crypto-Assets (MiCA) regulation. It ensures any agent using it can understand, query, and enforce the entirety of MiCA with granular precision.

Because MiCA is massive, this skill will implement a unique architecture:

  1. Incremental RAG Parsing: The regulation is broken down in json blocks with rich metadata, keywords, and sections. Agents can fetch and read these incrementally rather than overloading their context window, retrieving only combinations of paragraphs/sentences relevant to the user's prompt.
  2. Pre-flight Policy Filtering: The skill intercepts the user prompt and runs it against the MiCA chunks to act as a strict compliance firewall before the agent crafts a response.
  3. Optional LLM Evaluator Node: An integrated evaluation loop. If enabled, the skill triggers a lightweight side-call using Gemini 2.5 Flash-Lite. It inputs the [User Prompt] + [Retrieved MiCA Text] + [Draft Agent Answer] and grades the response for regulatory holes or inaccuracies, returning suggestions on how to improve the answer before it is finally returned to the user.

Ideal Inputs & Outputs

Input:
{
"user_prompt": "Can I issue a new stablecoin backed by a basket of physical commodities under my current e-money license?",
"run_evaluator": true
}

Output:
{
"retrieved_sections": [
"Title III: Asset-referenced tokens",
"Article 16: Authorization requirements"
],
"policy_status": "HIGH_RISK_DETECTED",
"gemini_evaluator_feedback": {
"grade": "B-",
"holes_found": "The draft response forgot to mention the requirement for a white paper publication prior to issuance.",
"suggestion": "Revise the answer to explicitly state that an e-money license alone is insufficient without the publication of a crypto-asset white paper approved by the competent authority."
},
"final_context_for_agent": "Output the revised answer integrating the following requirement: [White paper publication under Article 16]."
}

Targeted Models (if applicable)

Model Agnostic (All)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestskill requestRequest for a new capability to be added.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions