Skip to content

feat: add coder-templates rule and coder-template-reviewer subagent - #6

Merged
matifali merged 2 commits into
mainfrom
feat/template-rule-and-reviewer
Nov 4, 2026
Merged

matifali merged 2 commits into
mainfrom
feat/template-rule-and-reviewer

Conversation

@coder

@coder coder Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Adds two new component types to the Coder plugin: a rule and a subagent. The plugin then ships five of the six marketplace component types (MCP, skills, commands, rules, subagents). That's the bar for the Elite marketplace partner tier, if Cursor counts components by type.

Changes

  • rules/coder-templates.mdc: auto-attaches to **/*.tf and only applies when the file declares the coder/coder provider. It's a short list of template conventions taken from the vendored templates skill and the official Docker starter:

    • coder_parameter for user choices, variable for admin choices
    • dir on coder_agent is optional (no longer deprecated as of provider 2.20.0)
    • start_count on compute, with persistent storage named from the workspace ID
    • pinned module versions
    • no secrets in .tf/.tfvars
    • fmt/validate before pushing, and no --activate while still iterating

    For the full workflow it points to the templates and modules skills.

  • agents/coder-template-reviewer.md: a readonly subagent with model: inherit. It runs terraform fmt -check -diff, plus terraform validate when the template is already initialized, and never runs init/plan/apply or state-changing coder commands. It then checks providers, agent wiring, lifecycle, parameters, modules, and secrets, and reports findings as Must fix / Should fix / Nit with file:line. The rule offers it before a push.

  • Bumped to 0.3.0 in plugin.json and marketplace.json, added a CHANGELOG entry, and updated the README feature and usage tables, the plugin README, and the CONTRIBUTING layout.

The vendored skills are unchanged. No hook yet: hooks run scripts on the user's machine and need cross-platform handling, so they're better as a separate PR.

Validation

  • node scripts/validate-template.mjs passes. The only warning is the existing one about a missing hooks/hooks.json.
  • Checked the rule's and reviewer's claims against registry/coder/templates/docker/main.tf: start_count, the coder-${data.coder_workspace.me.id}-home volume, pinned modules with agent_id, and init_script/token wiring.
  • Not yet tested in Cursor itself. Copy plugins/coder to ~/.cursor/plugins/local/coder, reload, open a template .tf file, and ask "review my template".

Added via Superblink

Adds a rule that auto-attaches to .tf files and applies Coder template conventions, and a read-only subagent that reviews a template before it is pushed. Bumps the plugin to 0.3.0.
@coder coder Bot assigned matifali Nov 4, 2026
Provider 2.20.0 removed the deprecation, so the rule and reviewer now treat dir as optional instead of flagging it.
@matifali
matifali merged commit 2036657 into main Nov 4, 2026
1 check 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.

1 participant