Skip to content

Conversation

@TabishB
Copy link
Contributor

@TabishB TabishB commented Jan 10, 2026

Summary

  • Wire up the explore skill and slash command templates to artifact-experimental-setup
  • Add /opsx:explore as a thinking partner mode for exploring ideas, investigating problems, and clarifying requirements before committing to a change
  • Update documentation to include the new command

Changes

src/commands/artifact-workflow.ts:

  • Add imports for getExploreSkillTemplate and getOpsxExploreCommandTemplate
  • Add explore skill to skills array (generates openspec-explore/SKILL.md)
  • Add explore command to commands array (generates opsx/explore.md)
  • Add /opsx:explore to CLI usage message

docs/experimental-workflow.md:

  • Add /opsx:explore to the Commands table
  • Add "Explore an idea" usage section
  • Add explore tip to the Tips section

Test plan

  • Build passes (npm run build)
  • openspec artifact-experimental-setup generates explore skill and command files
  • Test /opsx:explore in Claude Code

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Introduced the /opsx:explore command, enabling users to explore and validate ideas before committing to changes.
    • Added comprehensive documentation with usage examples and tips for leveraging the new exploration capability.

✏️ Tip: You can customize this high-level summary in your review settings.

Wire up the explore skill and slash command templates to the
artifact-experimental-setup command. This adds /opsx:explore as
a thinking partner mode for exploring ideas, investigating problems,
and clarifying requirements before committing to a change.

Changes:
- Add imports for getExploreSkillTemplate and getOpsxExploreCommandTemplate
- Add explore skill to skills array (generates openspec-explore/SKILL.md)
- Add explore command to commands array (generates opsx/explore.md)
- Add /opsx:explore to CLI usage message
- Update docs/experimental-workflow.md with explore command
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 10, 2026

📝 Walkthrough

Walkthrough

This pull request introduces a new /opsx:explore command to the experimental workflow by adding documentation, creating template functions for the explore skill and command, and wiring them into the artifact workflow setup process. All changes are additive with no modifications to existing control flow.

Changes

Cohort / File(s) Summary
Documentation
docs/experimental-workflow.md
Added command description table entry, usage example showing /opsx:explore command, and tip recommending exploration before committing to changes.
Workflow Integration
src/commands/artifact-workflow.ts
Imported and instantiated explore skill and command templates; wired them into skills and commands arrays; added setup steps to generate openspec-explore skill and explore.md command file; updated user guidance to mention the new /opsx:explore slash command.
Template Definitions
src/core/templates/skill-templates.ts
Added two new public functions: getExploreSkillTemplate() (openspec-explore skill with stance, activities, and guardrails) and getOpsxExploreCommandTemplate() (ready-to-use explore command template). Minor wording adjustments in existing templates for consistency (updated references from "Selected schema/workflow" to "Schema/workflow being used").

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

🐰 Hop into the unknown with /opsx:explore,

A curious command to learn and adore,

Before changes are set in stone,

Let ideas be thoroughly known! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately summarizes the main change: adding a new /opsx:explore command for exploratory thinking.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@vibe-kanban-cloud
Copy link

Review Complete

Your review story is ready!

View Story

Comment !reviewfast on this PR to re-generate the story.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @docs/experimental-workflow.md:
- Around line 95-99: The fenced code block showing the command "/opsx:explore"
is missing a language identifier; update that block to include a language like
bash (i.e., change the opening ``` to ```bash) so the static analysis and
consistency with other examples (e.g., the `/opsx:explore` example) are
satisfied.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bb9f6ce and 5ee9e56.

📒 Files selected for processing (3)
  • docs/experimental-workflow.md
  • src/commands/artifact-workflow.ts
  • src/core/templates/skill-templates.ts
🧰 Additional context used
🧠 Learnings (7)
📚 Learning: 2025-11-25T01:08:19.004Z
Learnt from: CR
Repo: Fission-AI/OpenSpec PR: 0
File: openspec/AGENTS.md:0-0
Timestamp: 2025-11-25T01:08:19.004Z
Learning: Applies to openspec/changes/*/tasks.md : Ensure `tasks.md` contains implementation checklist with numbered sections and checkbox items

Applied to files:

  • docs/experimental-workflow.md
  • src/commands/artifact-workflow.ts
📚 Learning: 2025-11-25T01:08:02.839Z
Learnt from: CR
Repo: Fission-AI/OpenSpec PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-25T01:08:02.839Z
Learning: Use `@/openspec/AGENTS.md` to learn how to create and apply change proposals, spec format and conventions, and project structure and guidelines

Applied to files:

  • docs/experimental-workflow.md
  • src/core/templates/skill-templates.ts
📚 Learning: 2025-11-25T01:08:19.004Z
Learnt from: CR
Repo: Fission-AI/OpenSpec PR: 0
File: openspec/AGENTS.md:0-0
Timestamp: 2025-11-25T01:08:19.004Z
Learning: Applies to openspec/changes/**/*.md : Scaffold proposal using `proposal.md`, `tasks.md`, optional `design.md`, and delta specs under `openspec/changes/<id>/`

Applied to files:

  • docs/experimental-workflow.md
  • src/core/templates/skill-templates.ts
📚 Learning: 2025-11-25T01:08:02.839Z
Learnt from: CR
Repo: Fission-AI/OpenSpec PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-25T01:08:02.839Z
Learning: Always open `@/openspec/AGENTS.md` when the request mentions planning or proposals (words like proposal, spec, change, plan), introduces new capabilities, breaking changes, architecture shifts, or performance/security work, or sounds ambiguous and needs the authoritative spec before coding

Applied to files:

  • src/core/templates/skill-templates.ts
📚 Learning: 2025-11-25T01:08:19.004Z
Learnt from: CR
Repo: Fission-AI/OpenSpec PR: 0
File: openspec/AGENTS.md:0-0
Timestamp: 2025-11-25T01:08:19.004Z
Learning: Check `openspec/project.md` for project conventions before creating specs

Applied to files:

  • src/core/templates/skill-templates.ts
📚 Learning: 2025-11-25T01:08:19.004Z
Learnt from: CR
Repo: Fission-AI/OpenSpec PR: 0
File: openspec/AGENTS.md:0-0
Timestamp: 2025-11-25T01:08:19.004Z
Learning: Use `openspec archive <change-id> --skip-specs --yes` for tooling-only changes

Applied to files:

  • src/core/templates/skill-templates.ts
📚 Learning: 2025-11-25T01:08:19.004Z
Learnt from: CR
Repo: Fission-AI/OpenSpec PR: 0
File: openspec/AGENTS.md:0-0
Timestamp: 2025-11-25T01:08:19.004Z
Learning: Run `openspec validate [change-id] --strict` before requesting approval

Applied to files:

  • src/core/templates/skill-templates.ts
🧬 Code graph analysis (1)
src/commands/artifact-workflow.ts (1)
src/core/templates/skill-templates.ts (2)
  • getExploreSkillTemplate (21-301)
  • getOpsxExploreCommandTemplate (899-1069)
🪛 markdownlint-cli2 (0.18.1)
docs/experimental-workflow.md

96-96: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🔇 Additional comments (12)
docs/experimental-workflow.md (2)

85-85: LGTM!

The new /opsx:explore command is correctly added to the Commands table with an accurate description that aligns with the template content.


530-530: LGTM!

Good addition to the Tips section - recommending /opsx:explore before committing to a change aligns well with the exploratory thinking use case.

src/commands/artifact-workflow.ts (5)

31-31: LGTM!

The import statement correctly adds the two new template functions (getExploreSkillTemplate, getOpsxExploreCommandTemplate) alongside the existing template imports.


796-796: LGTM!

Template instantiation follows the established pattern for other skills and commands.

Also applies to: 805-805


814-822: LGTM!

The explore skill is correctly added to the skills array with the appropriate directory name openspec-explore, following the naming convention of other skills.


845-853: LGTM!

The explore command is correctly added to the commands array with the filename explore.md, consistent with other command entries.


905-905: LGTM!

The console output correctly lists /opsx:explore first in the slash commands section, with an accurate description that matches the command's purpose.

src/core/templates/skill-templates.ts (5)

17-25: LGTM!

The function signature and return type follow the established SkillTemplate interface pattern. The description clearly conveys the exploratory thinking-partner purpose.


25-301: Well-structured explore skill template.

The template provides comprehensive guidance for the AI agent including:

  • Clear stance definition (curious, visual, adaptive, patient, grounded)
  • Concrete examples with ASCII diagrams for different entry points
  • OpenSpec integration awareness with openspec list --json usage
  • Appropriate guardrails preventing auto-capture behavior

The extensive examples for different user entry points (vague idea, specific problem, mid-implementation, comparison) are particularly helpful for guiding agent behavior.


895-905: LGTM!

The command template follows the established CommandTemplate interface with appropriate metadata (name, description, category, tags).


905-1069: Content largely duplicates skill template - acceptable pattern.

The command template content mirrors the skill template with the addition of input handling guidance (lines 909-914). This duplication is consistent with how other skill/command pairs in this file are structured (e.g., getNewChangeSkillTemplate vs getOpsxNewCommandTemplate).

The command template appropriately adds the **Input** section explaining the argument handling, which the skill template omits since skills are triggered by natural language rather than explicit slash commands.


324-374: Minor wording update in existing template - consistent improvement.

The changes from "Selected schema/workflow" to "Schema/workflow being used" and related phrasing updates are consistent style improvements across the templates. These are minor documentation clarifications.

Comment on lines +95 to +99
### Explore an idea
```
/opsx:explore
```
Think through ideas, investigate problems, compare options. No structure required - just a thinking partner. When insights crystallize, transition to `/opsx:new` or `/opsx:ff`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Add a language identifier to the fenced code block.

The static analysis tool flagged the missing language specifier on the fenced code block. For consistency with other usage examples in this file (e.g., line 103), add bash or leave it as a generic text block with an explicit identifier.

Proposed fix
 ### Explore an idea
-```
+```bash
 /opsx:explore

</details>

<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

```suggestion
### Explore an idea
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)

96-96: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
In @docs/experimental-workflow.md around lines 95 - 99, The fenced code block
showing the command "/opsx:explore" is missing a language identifier; update
that block to include a language like bash (i.e., change the opening ``` to
```bash) so the static analysis and consistency with other examples (e.g., the
`/opsx:explore` example) are satisfied.

@TabishB TabishB merged commit d49a88c into main Jan 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants