Class: RosettAi::Mcp::Prompts::CompliancePrompt

Inherits:
Object
  • Object
show all
Defined in:
lib/rosett_ai/mcp/prompts/compliance_prompt.rb

Overview

MCP prompt: compliance workflow.

Provides a structured prompt for AI agents to run compliance checks and interpret the results.

Author:

  • hugo

  • claude

Constant Summary collapse

PROMPT_NAME =
'rai_compliance_workflow'
DESCRIPTION =
'Run compliance checks and interpret results'

Instance Method Summary collapse

Instance Method Details

#call(scope: nil) ⇒ Array<Hash>

Generates the compliance prompt messages.

Parameters:

  • scope (String, nil) (defaults to: nil)

    optional scope ('cra', 'license', 'headers')

Returns:

  • (Array<Hash>)

    MCP prompt messages



24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/rosett_ai/mcp/prompts/compliance_prompt.rb', line 24

def call(scope: nil)
  scope_text = scope ? " focusing on #{scope} checks" : ''
  [
    {
      role: 'user',
      content: {
        type: 'text',
        text: "Please run rosett-ai compliance checks#{scope_text}. " \
              'Use the Rosett-AI_comply tool to check for violations, then ' \
              'review any findings and suggest remediation steps.'
      }
    }
  ]
end