Class: Ocak::Commands::Audit

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/ocak/commands/audit.rb

Instance Method Summary collapse

Instance Method Details

#call(scope: nil) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/ocak/commands/audit.rb', line 11

def call(scope: nil, **)
  skill_path = File.join(Dir.pwd, '.claude', 'skills', 'audit', 'SKILL.md')

  unless File.exist?(skill_path)
    warn 'No audit skill found. Run `ocak init` first.'
    exit 1
  end

  puts "Starting audit#{" (scope: #{scope})" if scope}..."
  puts 'Run this inside Claude Code:'
  puts "  /audit#{" #{scope}" if scope}"
end