Class: Legion::Extensions::Skill::Superpowers::Skills::Brainstorming
- Inherits:
-
LLM::Skills::Base
- Object
- LLM::Skills::Base
- Legion::Extensions::Skill::Superpowers::Skills::Brainstorming
- Defined in:
- lib/legion/extensions/skill/superpowers/skills/brainstorming.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#clarify_requirements(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#explore_context(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#present_design(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#propose_approaches(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#write_spec(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Class Method Details
.content_path ⇒ Object
58 59 60 |
# File 'lib/legion/extensions/skill/superpowers/skills/brainstorming.rb', line 58 def content_path ::File.('../../../../../../content/brainstorming/SKILL.md', __dir__) end |
Instance Method Details
#clarify_requirements(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
22 23 24 25 26 27 28 |
# File 'lib/legion/extensions/skill/superpowers/skills/brainstorming.rb', line 22 def clarify_requirements(context: {}) # rubocop:disable Lint/UnusedMethodArgument Legion::LLM::Skills::StepResult.new( inject: nil, gate: { type: :user_input, prompt: 'What would you like to build?' }, metadata: { step: 'clarify_requirements' } ) end |
#explore_context(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
14 15 16 17 18 19 20 |
# File 'lib/legion/extensions/skill/superpowers/skills/brainstorming.rb', line 14 def explore_context(context: {}) # rubocop:disable Lint/UnusedMethodArgument Legion::LLM::Skills::StepResult.new( inject: self.class.content, gate: nil, metadata: { step: 'explore_context' } ) end |
#present_design(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
38 39 40 41 42 43 44 |
# File 'lib/legion/extensions/skill/superpowers/skills/brainstorming.rb', line 38 def present_design(context: {}) # rubocop:disable Lint/UnusedMethodArgument Legion::LLM::Skills::StepResult.new( inject: nil, gate: { type: :user_input, prompt: 'Does this design look correct?' }, metadata: { step: 'present_design' } ) end |
#propose_approaches(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
30 31 32 33 34 35 36 |
# File 'lib/legion/extensions/skill/superpowers/skills/brainstorming.rb', line 30 def propose_approaches(context: {}) # rubocop:disable Lint/UnusedMethodArgument Legion::LLM::Skills::StepResult.new( inject: nil, gate: { type: :user_input, prompt: 'Review the approaches above and choose one.' }, metadata: { step: 'propose_approaches' } ) end |
#write_spec(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
46 47 48 49 50 51 52 |
# File 'lib/legion/extensions/skill/superpowers/skills/brainstorming.rb', line 46 def write_spec(context: {}) # rubocop:disable Lint/UnusedMethodArgument Legion::LLM::Skills::StepResult.new( inject: nil, gate: nil, metadata: { step: 'write_spec', complete: true } ) end |