Skip to content

fix: add missing instruction body to opencode plannotator-last command#613

Open
xiaolai wants to merge 1 commit intobacknotprop:mainfrom
xiaolai:fix/nlpm-opencode-last-empty-body
Open

fix: add missing instruction body to opencode plannotator-last command#613
xiaolai wants to merge 1 commit intobacknotprop:mainfrom
xiaolai:fix/nlpm-opencode-last-empty-body

Conversation

@xiaolai
Copy link
Copy Markdown

@xiaolai xiaolai commented Apr 26, 2026

Automated audit: This PR was generated by NLPM, a natural language programming linter, running via claude-code-action. Please evaluate the diff on its merits.

Bug

apps/opencode-plugin/commands/plannotator-last.md has an empty body after its frontmatter. When a user invokes /plannotator-last in OpenCode, the agent receives no instructions and behavior is undefined.

Every other OpenCode command in this repo has a short instruction body that tells the agent what the command triggers and to acknowledge then wait for user feedback:

  • plannotator-review.md: "The Plannotator Code Review has been triggered. Opening the review UI... Acknowledge and wait for the user's feedback."
  • plannotator-annotate.md: "The Plannotator Annotate UI has been triggered. Opening the annotation UI... Acknowledge and wait for the user's feedback."
  • plannotator-archive.md: "The Plannotator Archive has been triggered. Opening the archive browser... Acknowledge and wait for the user to finish browsing."

plannotator-last.md is missing this body entirely.

Fix

Added the matching instruction body following the established OpenCode command pattern. Also aligned the description frontmatter field with the hook and copilot variants ("Annotate the last rendered assistant message" — the word "rendered" was missing from the opencode version).

The command file had only a frontmatter description and an empty body.
All other OpenCode commands (annotate, review, archive) have a brief
instruction body; this omission left the agent with no guidance when
the command was invoked outside the plugin's intercept path.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@xiaolai xiaolai force-pushed the fix/nlpm-opencode-last-empty-body branch from 84a0700 to 6ddddbb Compare April 26, 2026 18:26
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.

1 participant