Skip to content

feat: add Claude Code plugin with /ops:run and /ops:init-opsfile skills#47

Merged
seanseannery merged 1 commit intomainfrom
feat/claude-code-plugin
Mar 13, 2026
Merged

feat: add Claude Code plugin with /ops:run and /ops:init-opsfile skills#47
seanseannery merged 1 commit intomainfrom
feat/claude-code-plugin

Conversation

@seanseannery
Copy link
Copy Markdown
Owner

Key Changes

  • Add .claude-plugin/plugin.json — plugin manifest (name: ops, skills path ./skills/)
  • Add skills/run/SKILL.md/ops:run skill: accepts direct CLI args or natural language; runs ops --list to discover commands when given a prompt, shows resolved command before executing
  • Add skills/init-opsfile/SKILL.md + skills/init-opsfile/reference.md/ops:init-opsfile skill: detects tech stack (language, containerization, cloud platform, IaC), selects matching platform template, generates a tailored Opsfile; reference file is self-contained so users don't need the repo cloned
  • Add SessionStart hook in plugin.json to warn if ops CLI is not installed
  • Update README.md with Claude Code Plugin section (install + skill docs)
  • Update docs/site/index.html: Claude Plugin nav entry, install tab, OR-dividers in Getting Started steps, Claude plugin section; bash syntax highlighting on all install tabs; terminal demo 3rd entry showing claude "/ops:run ..."; various style improvements (h3 prominence, tagline font, centered h2s, or-divider, prereq note)
  • Update docs/site/style.css: new rules for .skill, .skill-inline, .or-divider, .prereq-note, section h2 centering, monospace tagline, h3 sizing, terminal padding and animation additions
  • Update AGENTS.md directory structure

Why do we need this?

Enables Claude Code users to install the ops plugin from this repo and use two skills: one to run ops commands by name or natural language (/ops:run), and one to scaffold a new Opsfile by analyzing the current repo's tech stack (/ops:init-opsfile). This makes opsfile accessible to AI-assisted workflows without requiring users to remember CLI syntax.

New modules or other dependencies introduced

None — plugin is markdown + JSON only, no new Go code or external dependencies.

How was this tested?

  • All existing Go tests pass (pre-push hook verified)
  • GitHub Pages site previewed locally via python3 -m http.server
  • Plugin manifest, skill files, and reference file reviewed for correctness

Adds an installable Claude Code plugin to the opsfile repo. The plugin exposes two skills: /ops:run (run ops commands by direct args or natural language) and /ops:init-opsfile (analyze a repo's tech stack and scaffold an Opsfile). Updates README, GitHub Pages site, and AGENTS.md directory structure to document the plugin and integrate it into the Getting Started flow.
@seanseannery seanseannery merged commit 8f930b4 into main Mar 13, 2026
4 checks passed
@seanseannery seanseannery deleted the feat/claude-code-plugin branch March 19, 2026 20:41
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