Agenctic AI DevOps: Operations Agent: Claude Code & Spec Development
Recap of the previous session
- Claude Code Desktop as a Ready-Made Agent
- How a Question Is Answered
- Spec, Skills, MCP Servers and Guardrails
- Plugins and Marketplaces
In this session
- Installing the Plugin in Claude Code
- Using the Operations Agent
- Sharing the Agent and a Health Page
- Spec-Driven Development
In one sentence: you install the plugin with two commands, talk to the agent in plain English, and for new abilities you write a spec and let Claude build the skills and MCP servers.
1. The platform behind the agent
Application code can be written and tested on one machine. Platform work cannot: it spans AWS, Kubernetes, pipelines, permissions and your organisation’s own setup, and an AI cannot see your environment unless you connect it. That is why the agent needs access to a real platform:
| Part | Where it runs | What it provides |
|---|---|---|
| The shop (web, catalog, cart, payment) | Namespace edshopper on an EKS cluster |
The application |
| Fluent Bit | Namespace logging |
Sends every service’s logs to CloudWatch |
| Prometheus and Grafana | Namespace monitoring |
CPU, memory and request numbers |
- Why central logs?
kubectl logsshows the running pod. If the pod is replaced, its old logs are gone. CloudWatch keeps them. - Why separate namespaces? One per business application, plus one each for logging and monitoring, is good practice. Pods in different namespaces still reach each other through the cluster’s DNS.
2. Installing the plugin
Install the Claude Code command-line tool as well, for the claude command. Check it with claude --version. Then, from the agent folder, add the marketplace and install the plugin:
claude plugin marketplace add ./marketplace
claude plugin install edshopper-ops@edshopper-marketplace --scope project
edshopper-opsis the plugin name andedshopper-marketplacethe marketplace name.--scope projectmakes the plugin available only in sessions opened on this folder. Leave the scope out and it is available in every folder.- Everything stays on your machine. Nothing is uploaded.
Then start a new session and choose the agent folder. The plugin loads only there.
Check, validate and remove
| Command | What it does |
|---|---|
claude plugin list |
Lists installed plugins, their marketplace and whether they are enabled |
claude plugin details edshopper-ops |
Shows its skills, hooks and MCP servers |
claude mcp list |
Lists MCP servers and whether each connected |
claude plugin validate . |
Checks the structure and names of the plugin |
claude plugin uninstall edshopper-ops@edshopper-marketplace --scope project |
Removes the plugin |
Inside a session:
| Type | Shows |
|---|---|
/mcp |
The MCP servers of this folder and their tools |
/skills |
The available skills |
/reload-plugins |
Reloads the plugins after a change |
You can also open Settings, Plugins. If a server shows failed to connect, check it before the demo.
3. Why the permissions matter
The agent runs on your machine, so it can also use your shell. Before the plugin was installed, the question “list the namespaces” was answered by running kubectl directly. Nothing forbade it, and nothing was limited to the tools you chose.
The .claude/settings.json file in the agent folder holds three lists:
| List | Meaning | Example here |
|---|---|---|
| allow | Runs without asking | Listing pods, reading logs and events |
| ask | Asks you first | Restarting a deployment |
| deny | Never runs | kubectl, eksctl and helm in the shell |
- Why block the shell? The agent should use only the tools you registered. A shell can do anything your login can.
- You can also write “do not use kubectl” in plain English in a guardrails document. Settings are the more structured, enforced way.
- Renaming a file does not protect it: the agent searches for it. Put real limits in permissions, hooks and read-only identities.
- Organisations often manage such rules centrally.
4. Using the agent
With the plugin loaded, the same kinds of question behave differently:

- You never name the namespace or the tool. The agent finds the
edshoppernamespace, lists the deployments and loops through several tools. With 38 microservices the question stays the same. - Open the details of an answer to see which tools it loaded and ran. This is the best way to learn how the agent works.
- To add an ability, add an MCP server or a skill. You write no agent code. The MCP server is the only place with real code. Splunk or Datadog servers would add logs and metrics from those tools.
5. A health page you can share
For a manager who wants a table instead of a chat, add one more skill, health-page. Its folder holds the instructions and an HTML template. The skill tells Claude to collect the numbers with the MCP tools and fill the template.
- After adding the folder, run
/reload-plugins. If/skillsdoes not list it yet, restart the app. In the session, asking for the page was enough for Claude to find it. - Claude publishes the result as a private Artifact. Open Artifacts, then Share, and enter an email address. A private link works for people with access, and it opens for you because you are signed in.
- The page is a snapshot of what the agent read on your machine at that moment. It does not update by itself.
6. Sharing the agent with your team
Claude Code Desktop is built to run on each person’s machine.
- Commit the plugin and the settings to a Git repository.
- A colleague installs Claude Code, clones the repository and runs the two install commands.
If you need one central agent, for example behind a company login, build your own agent and deploy it, as in the earlier sessions. That takes more code, and everyone reaches it through one interface.
7. Extending the agent: pipelines
You can add more abilities without changing the agent. For GitHub Actions pipelines (a Terraform plan and apply, for example):
- Add the official GitHub MCP server. It needs a credential. Keep it out of the project files.
- Add a skill that says what to do with it: summarise the failed runs and the likely cause.
- To send an email, add an email MCP server. The MCP server gives access, and the skill says what to do with it, for example “if a run failed, send a mail”.
- An RCA skill with your template makes the agent write incident reports in your format. Without a skill the agent still works, but in its own way.
8. Spec-driven development
You can also stop writing the skills and the MCP server yourself.
- Write the spec in plain English: the goal, what users will ask, the requirements and the tools available. You do not need a perfect format. Ask Claude: “Create a spec so the agent can monitor GitHub pipelines and help the teams.” It drafts one.
- Finalise the spec. Read every line. Tell Claude what to remove or add until it matches your real requirement. This is the important step.
- Give Claude the spec and ask it to build what is required:
Check this spec and build the MCP servers and skills it needs.
Claude created the files in a separate staging folder, so it did not disturb the working plugin. It added pipeline skills and a configuration for the GitHub server, with a place for the credential.
- Review the result and adjust, again in plain English.
With this style the review moves from the code to the spec and the final result. You still check what Claude produced before you use it.
In the instructor’s view, it suits application development best. For infrastructure and platform work it helps less, because of the many moving parts.
9. Which kind of model
| Kind | Best for |
|---|---|
| Traditional ML models | Classification and regression, such as loan approval. Not for chat or reasoning |
| Chat models | Fast conversation, such as a customer chatbot |
| Reasoning models | Agents: finding the right tool, running several, and deciding what to do next |
The agent loop needs a model that is good at tool use and multi-step thinking. A chat model may work for a scheduled monitoring agent, but with weaker results. Choose by the use case.
Summary
Key takeaways
- Install from the agent folder with two commands (add the marketplace, install the plugin), then open a new session on that folder.
- Permissions (allow, ask, deny) keep the agent on your MCP tools and make risky actions ask you.
- Add abilities with MCP servers and skills. The code is only in the MCP servers.
- A health page skill publishes a shareable Artifact snapshot.
- Share by Git. Deploy your own agent when everyone must reach one.
- In spec-driven development you write and finalise the spec, and Claude builds the skills and servers.
Quick revision
| Term | Meaning |
|---|---|
--scope project |
The plugin works only in this folder |
| allow, ask, deny | Runs, asks first, never runs |
| Artifact | A shareable page that Claude publishes |
| Staging folder | Where Claude puts generated files for you to review |
| Spec-driven development | Write the spec, let the agent build from it |
