feat(reqstool-openspec): implement openspecui hook for enrich_document MCP tool#25
Merged
Merged
Conversation
…t MCP tool Add reqstool-openspec:init skill that writes openspec/openspecui.hooks.ts into the consuming project. The hook spawns reqstool mcp as a subprocess (Node.js built-ins only, no npm deps), caches the MCP client as a module singleton, and calls enrich_document to inline requirement/SVC/MVR titles and descriptions into all OpenSpec documents at read time. Closes #24 Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
…ect plugin discovery The plugin loader does not traverse into subdirectories of a skill that already has a SKILL.md. Moving reqstool-openspec-init to its own top-level skills directory mirrors the pattern used by the reqstool plugin. Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
- Add // @reqstool-openspec-hooks: 0.1.0 to the hooks template so the init skill can detect whether an installed copy is current or stale - Update reqstool-openspec:init to compare versions and offer an upgrade instead of a blind overwrite prompt - Update reqstool-openspec convention skill to suggest running the init skill when openspec/openspecui.hooks.ts is missing from the project Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reqstool-openspec:initskill that writesopenspec/openspecui.hooks.tsinto the consuming projectreqstool mcpas a subprocess using Node.jschild_processonly (no npm deps), caches the MCP client as a module singleton, and callsenrich_documentto inline requirement/SVC/MVR titles and descriptions into all OpenSpec documents (spec, changes, archived) at read timereqstool-openspecplugin to0.2.0and marketplace to0.4.0Test plan
/reqstool-openspec:initin a project — confirmsopenspec/openspecui.hooks.tsis createdreqstoolon PATH and openspecui configured, opening a spec document shows enriched requirement/SVC IDs inlinereqstool mcpsubprocessreqstoolnot on PATH, awarningdiagnostic appears instead of a hard errorCloses #24