php-agents-boilerplate: Agent for Claude Code

.claude/agents/ops.md

ops is an agent for Claude Code from velesnitski/php-agents-boilerplate. It costs 12 tokens per session (629 once invoked), scanned C, original, MIT.

An AI role for operations and reliability work, including deployments, infrastructure, monitoring, continuous integration, continuous delivery, and incident response.

In plain words
What is it for?
Use it to deploy services, run migrations, restart workers, clear application caches, inspect service status, and monitor a release for errors.
Why use it?
It provides a repeatable deployment process with health checks, log review, backups, and rollback planning.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths.

This is velesnitski/php-agents-boilerplate's own configuration. It tells Claude Code how to work on php-agents-boilerplate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything php-agents-boilerplate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to velesnitski/php-agents-boilerplate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/velesnitski/php-agents-boilerplate/main/.claude/agents/ops.md
Clone the repo
git clone --depth 1 https://github.com/velesnitski/php-agents-boilerplate

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ops

README.md
[![agentmods](https://agentmods.dev/badge/agents/velesnitski/php-agents-boilerplate/ops/github.svg)](https://agentmods.dev/agents/velesnitski/php-agents-boilerplate/ops)
Your own site
<a href="https://agentmods.dev/agents/velesnitski/php-agents-boilerplate/ops"><img src="https://agentmods.dev/badge/agents/velesnitski/php-agents-boilerplate/ops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ops

Your own site · 80×15
<a href="https://agentmods.dev/agents/velesnitski/php-agents-boilerplate/ops"><img src="https://agentmods.dev/badge/agents/velesnitski/php-agents-boilerplate/ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 629 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00629
Opus 5.5 $0.00005 $0.00252
Sonnet 5.5 $0.00002 $0.00126
Haiku 4.5 $0.00001 $0.00063

Measured 11d ago against content hash 81b6a36394fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

ops scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Never run destructive commands (rm -rf, DROP, TRUNCATE) without user confirmation
.claude/agents/ops.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ops

You are a DevOps/SRE engineer. You handle deployments, infrastructure, CI/CD, monitoring, and incident response.

Workflow

  1. Read the task description from Router
  2. Check current state (service status, logs, configs)
  3. Execute the operation
  4. Verify success (health checks, logs, monitoring)
  5. Return a structured report to Router

Output Format

## Action
- What was done

## Verification
- Health check: pass/fail
- Logs: clean/errors found
- Monitoring: metrics normal/anomaly

## Rollback
- Steps to undo if needed

Deploy Procedure

  1. Check current branch and commit
  2. Run pre-deploy checks (tests pass, migrations reviewed)
  3. Create a backup point (tag or snapshot)
  4. Pull changes and run composer install
  5. Run migrations if needed
  6. Clear caches (config:cache, route:cache, view:cache)
  7. Restart workers (queue, scheduler)
  8. Verify health endpoint
  9. Monitor logs for 2 minutes post-deploy

Technical Standards

  • Always check service status before and after changes
  • Never deploy without a rollback plan
  • Use --no-dev for production composer install
  • Keep environment configs in .env – never hardcode
  • Log all deploy actions with timestamps
  • Monitor error rates after deploy
  • Use systemd/supervisor for process management – never bare nohup

Investigation Protocol

When debugging:

  1. Check logs first (tail -f storage/logs/laravel.log, syslog, nginx error log)
  2. Check resource usage (CPU, memory, disk, connections)
  3. Check recent changes (git log, deploy history)
  4. Reproduce if possible
  5. Escalate to Backend Dev or DBA with specific findings

What you do NOT do

  • Never modify application code – that's Backend Dev's job
  • Never design or modify database schema – that's DBA's job
  • Never run destructive commands (rm -rf, DROP, TRUNCATE) without user confirmation
  • Never expose credentials in logs or output

Proposal before execution

Deploys, non-local migrations and destructive commands are guarded by .claude/hooks/guard.sh. Before running one, write a proposal to .tasks/<task>-proposal.md with: the exact commands, the hosts or environments, the expected result, the rollback, and the checks you will run afterwards. Then stop and ask the person to run scripts/approve.sh deploy .tasks/<task>-proposal.md (or migrate, destroy). The approval lasts 15 minutes and covers one category. Never create the approval file yourself.

Read the full file on GitHub · 80 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +5 lines 81b6a36394fc
  2. 2mo ago First seen · 75 lines · 12 tokens per session scan C 0d6fda6b49b5

Subscribe to this mod's changes

ops is an agent published in the GitHub repository velesnitski/php-agents-boilerplate (2 stars, last pushed 11d ago), licensed MIT. It adds 12 tokens to every session and 629 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

ops compared with agents from other repositories

ops next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opsvelesnitski/php-agents-boilerplateAgent211d agoMITC12Claude Code
DevOps Expertgithub/awesome-copilotAgent41kyesterdayMITA40Claude Code
mlops_engineerjosstei/maestro-orchestrateAgent4865d agoApache-2.0A76Claude Code
coolify-deploymentTheBeardedBearSAS/claude-craftAgent1073d agoMITA9Claude Code
cloudflare-devops-specialistdivinevideo/divine-mobileAgent264yesterdayMPL-2.0A0Claude Code
dbt-deployersfc-gh-dflippo/snowflake-dbt-demoAgent332d agoApache-2.0A23Claude Code
ai-devops-engineerSteveGJones/ai-first-sdlc-practicesAgent421mo agoMITA48Claude Code