Skip to content

fix: OpenSpec specs are not found - #1107

Merged
kalbasit merged 1 commit into
mainfrom
fix-openspec-specs-are-not-found
Mar 18, 2026
Merged

kalbasit merged 1 commit into
mainfrom
fix-openspec-specs-are-not-found

Conversation

@kalbasit

Copy link
Copy Markdown
Owner

The OpenSpec CLI expects each spec to be in its own folder with a
spec.md file inside (e.g. openspec/specs/api-surface/spec.md).
Previously, the specs were flat markdown files at the root of the
specs directory, which the CLI could not detect.

Restructured the directory to match OpenSpec's expected format and
added .openspec.yaml metadata files to each spec folder.

The OpenSpec CLI expects each spec to be in its own folder with a
spec.md file inside (e.g. openspec/specs/api-surface/spec.md).
Previously, the specs were flat markdown files at the root of the
specs directory, which the CLI could not detect.

Restructured the directory to match OpenSpec's expected format and
added .openspec.yaml metadata files to each spec folder.
@kalbasit

Copy link
Copy Markdown
Owner Author

@dosubot dosubot Bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Mar 18, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request resolves an issue where the OpenSpec CLI was unable to locate specification files due to an outdated directory structure. It reorganizes the specification files into a hierarchical format, placing each spec within its own folder alongside a new .openspec.yaml metadata file, which is crucial for the CLI's detection mechanism. Furthermore, the PR integrates new prompts and skills to streamline the OpenSpec workflow, enabling more intuitive interaction for applying, archiving, exploring, and proposing changes within the system.

Highlights

  • OpenSpec File Restructuring: Restructured OpenSpec specification files by moving them into dedicated subdirectories, each containing a spec.md file, to comply with the OpenSpec CLI's expected format.
  • OpenSpec Metadata Files: Introduced .openspec.yaml metadata files within each new specification directory to provide schema and creation date information.
  • New OpenSpec Prompts and Skills: Added a suite of new prompt and skill definition files for OpenSpec commands, including apply, archive, explore, and propose, enhancing the interactive workflow.
  • Git Ignore Update: Updated the .gitignore file to exclude the newly introduced .claude/worktrees/ directory.
  • Nix Formatter Configuration: Modified the Nix formatter configuration to include the newly added prompt and skill markdown files for consistent formatting.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request restructures the OpenSpec specs directory to align with the CLI's expectations and introduces a set of new prompts and skills for an AI agent workflow. The directory restructuring is correct and follows the description. The new agent-related files are well-structured, but I've noted a few minor inconsistencies between the prompt files (what the user sees) and the skill files (the agent's instructions). Aligning these will improve the clarity and predictability of the agent's behavior. The changes to .gitignore and nix/formatter/flake-module.nix are appropriate.

Comment thread .github/prompts/opsx-apply.prompt.md Resolved
Comment thread .github/prompts/opsx-propose.prompt.md Resolved
@kalbasit
kalbasit enabled auto-merge (squash) March 18, 2026 07:55
@codecov

codecov Bot commented Mar 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 5.04%. Comparing base (492b3d2) to head (c9bcbfb).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1107   +/-   ##
=====================================
  Coverage   5.04%   5.04%           
=====================================
  Files          6       6           
  Lines        436     436           
=====================================
  Hits          22      22           
  Misses       410     410           
  Partials       4       4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kalbasit
kalbasit merged commit a1f0655 into main Mar 18, 2026
17 checks passed
@kalbasit
kalbasit deleted the fix-openspec-specs-are-not-found branch March 18, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant