Repository navigation
feat: add coder-templates rule and coder-template-reviewer subagent - #6
Merged
Merged
Conversation
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.
Provider 2.20.0 removed the deprecation, so the rule and reviewer now treat dir as optional instead of flagging it.
matifali
approved these changes
Nov 4, 2026
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.
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**/*.tfand only applies when the file declares thecoder/coderprovider. It's a short list of template conventions taken from the vendoredtemplatesskill and the official Docker starter:coder_parameterfor user choices,variablefor admin choicesdironcoder_agentis optional (no longer deprecated as of provider 2.20.0)start_counton compute, with persistent storage named from the workspace ID.tf/.tfvarsfmt/validatebefore pushing, and no--activatewhile still iteratingFor the full workflow it points to the
templatesandmodulesskills.agents/coder-template-reviewer.md: areadonlysubagent withmodel: inherit. It runsterraform fmt -check -diff, plusterraform validatewhen the template is already initialized, and never runsinit/plan/applyor state-changingcodercommands. It then checks providers, agent wiring, lifecycle, parameters, modules, and secrets, and reports findings as Must fix / Should fix / Nit withfile:line. The rule offers it before a push.Bumped to 0.3.0 in
plugin.jsonandmarketplace.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.mjspasses. The only warning is the existing one about a missinghooks/hooks.json.registry/coder/templates/docker/main.tf:start_count, thecoder-${data.coder_workspace.me.id}-homevolume, pinned modules withagent_id, andinit_script/tokenwiring.plugins/coderto~/.cursor/plugins/local/coder, reload, open a template.tffile, and ask "review my template".Added via Superblink