Skip to content

feat: add modules and templates skills#2

Merged
DevelopmentCats merged 3 commits into
mainfrom
agent/add-modules-templates-skills
May 26, 2026
Merged

feat: add modules and templates skills#2
DevelopmentCats merged 3 commits into
mainfrom
agent/add-modules-templates-skills

Conversation

@DevelopmentCats
Copy link
Copy Markdown
Contributor

Summary

Adds two new skills alongside the existing setup skill:

  • modules: helps agents add or update Coder modules (from registry.coder.com/modules) inside an existing Coder template.
  • templates: helps agents scaffold, edit, push, and version Coder templates.

Both follow the same shape as setup: SKILL.md with workflow plus an agents/openai.yaml metadata file for the Codex plugin manifest.

Naming

The registry has reserved .icons/coder-modules.svg and .icons/coder-templates.svg, so the catalogue side is anticipated. The skill slugs themselves are modules and templates, matching the existing setup convention. Full IDs end up as coder/modules and coder/templates. Display names are Coder Modules and Coder Templates.

If you'd rather have the slugs themselves be coder-modules and coder-templates, say so and I'll rename.

Content scope

Each SKILL.md keeps the same opinions as setup:

  • Concrete workflow with numbered phases and exit criteria.
  • Source-of-truth pointers to coder.com/docs and registry.coder.com.
  • A short curated list of common modules or starter templates so the agent doesn't have to enumerate the full catalogue.
  • Safeguards section calling out common ways to break a template (missing coder_agent, secrets in tfvars, blind --activate pushes).
  • No copying of upstream reference material; the skill delegates to the live registry/module/template READMEs.

Descriptions are 514 chars (modules) and 536 chars (templates), well under the 1024-char Codex cap enforced by scripts/lint.sh.

Verified locally

make lint
==> shellcheck                       OK
==> shfmt                            OK
==> markdownlint                     OK
==> jq (JSON syntax)                 OK
==> claude plugin validate           OK
==> emdash / endash                  OK
==> SKILL.md description length      OK
all checks passed

The existing test harness (test/claude.sh, test/codex.sh) is wired to the setup skill specifically and is not extended here. New tests for modules and templates would need their own harness fixtures; happy to follow up if you want them.

Related

This PR was created with help from Coder Agents.

Adds two new skills under skills/coder namespace:

- modules: helps agents add or update Coder modules
  (registry.coder.com/modules) inside an existing Coder template.
- templates: helps agents author, edit, push, and version Coder
  templates.

Each skill mirrors the setup skill's structure: SKILL.md with
frontmatter and a workflow, plus an agents/openai.yaml metadata file
for the Codex plugin manifest.

The skill slugs are 'modules' and 'templates' to match the existing
'setup' convention (full IDs are coder/modules, coder/templates, and
coder/setup). Display names are 'Coder Modules' and 'Coder Templates'.

Both skills delegate detail to upstream coder.com/docs and to each
module's or template's README on registry.coder.com, keeping the
SKILL.md content focused on integration workflow rather than
copying upstream reference material.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds two new Coder skills (modules and templates) under skills/ to complement the existing setup skill, providing agent workflows for integrating registry modules into templates and for authoring/updating templates end-to-end.

Changes:

  • Added skills/modules/SKILL.md + skills/modules/agents/openai.yaml to guide adding/updating Coder registry modules inside an existing template.
  • Added skills/templates/SKILL.md + skills/templates/agents/openai.yaml to guide scaffolding/editing/pushing/versioning Coder templates.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
skills/templates/SKILL.md New workflow and guardrails for scaffolding and maintaining Coder templates.
skills/templates/agents/openai.yaml New skill metadata for Codex/OpenAI agent manifest (needs alignment with existing manifest structure).
skills/modules/SKILL.md New workflow and guardrails for integrating Coder registry modules into an existing template.
skills/modules/agents/openai.yaml New skill metadata for Codex/OpenAI agent manifest (needs alignment with existing manifest structure).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread skills/templates/agents/openai.yaml Outdated
Comment thread skills/modules/agents/openai.yaml Outdated
Comment thread skills/modules/SKILL.md
- Add top-level interface: key to agents/openai.yaml on both new
  skills, matching the existing setup skill's manifest shape.
- Add per-skill assets/icon.png and assets/logo.png so icon paths
  resolve to skills/<slug>/assets/* like the setup skill, instead of
  pointing outside the skill root.
- Tighten the push section in skills/modules/SKILL.md to match
  skills/templates/SKILL.md: pass --yes to coder templates push and
  verify with coder templates versions list rather than coder
  templates list.
Per review feedback, the per-skill assets/ directories were redundant
copies of /assets/icon.png and /assets/logo.png at the repo root.
Drop the duplicates and point both manifests at the existing root
copies via ../../assets/icon.png and ../../assets/logo.png.

The setup skill keeps its own copies for now; cleaning that up is a
separate change.
@DevelopmentCats DevelopmentCats merged commit 4fd4ccb into main May 26, 2026
1 check passed
DevelopmentCats added a commit to coder/registry that referenced this pull request May 26, 2026
)

## Summary

Adds two new catalogue entries to `registry/coder/skills/README.md`:

- `coder/modules` with `coder-modules.svg`
- `coder/templates` with `coder-templates.svg`

Both pull from `coder/skills@main` alongside the existing `setup` skill.
Tag sets are scoped so the registry-server filter facets pick them up
(`[coder, terraform, modules]` and `[coder, terraform, templates]`).

## Verified locally

```
go run ./cmd/readmevalidation
processing skills README files  num_files=1
processed all skills README files  num_files=1
```

No other validator output changed (23 contributor profiles, 79 modules,
33 templates still parse cleanly).

## Source repo content

The skill content (SKILL.md plus per-skill metadata) lives in
coder/skills#2. Until that PR merges, this catalogue change is
effectively a no-op: the registry-server build pipeline iterates over
skills it discovers in the source repo, and looks up catalogue overrides
per skill. Catalogue entries for skills that do not yet exist in the
source repo are silently ignored.

That means these two PRs can land in either order without breaking
anything. Both have to be merged before the new skills appear on
registry.coder.com.

## Related

- coder/skills#2 (source repo content for `modules` and `templates`)
- coder/registry-server#442 (build pipeline, API, MCP, frontend)
- #884 (catalogue format)

This PR was created with help from Coder Agents.
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.

2 participants