Skip to content

[Bug] Explore skill doesn't read project context from config.yaml #696

@lsmonki

Description

@lsmonki

Problem

The opsx:explore skill has no awareness of the project's config.yaml context. When entering explore mode, it checks for active changes (openspec list --json) and reads change artifacts, but never reads the project context defined in openspec/config.yaml — tech stack, conventions, rules, etc.

This means explore mode operates without knowing basic project constraints (e.g., "TypeScript + ESM", "must be cross-platform", spec compliance rules).

Expected behavior

The explore skill should load the project context at the start of a session so it can ground its thinking in the project's actual constraints and conventions.

Possible approaches

  1. Read config.yaml directly — simplest, but couples the skill to the file format
  2. Add a CLI command (e.g., openspec config --project or openspec context) that outputs the local project context — cleaner, reusable by other skills
  3. Use openspec instructions somehow — already reads and returns context, but requires an artifact ID and change name, which explore mode may not have

Context

Other skills like opsx:continue get the project context indirectly via openspec instructions ... --json, which calls readProjectConfig() internally. Explore doesn't use that pathway since it's not creating artifacts.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions