Skip to content

Custom agents

In agentic review mode, the Claude Agent SDK can dispatch to specialised subagents that focus on one concern (security, migrations, comment quality, etc.). QualOps ships four custom agent prompts you can copy into your own project under .qualops/agents/<name>.md and reference from .qualopsrc.json.

  • Comment rewriter — flags missing JSDoc, outdated comments, and unhelpful documentation
  • Migration checker — reviews database migrations for safety and reversibility
  • RxJS migration — identifies deprecated RxJS patterns and suggests modern alternatives
  • Angular Signals — finds Angular code that could migrate to the Signals reactivity model

Each page shows the full agent prompt as well as the metadata (description, tools, model) the Claude Agent SDK reads when loading the agent.

In .qualopsrc.json, point an agentic job at one of these:

{
"jobs": {
"rxjs-audit": {
"mode": "agentic",
"agentic": {
"maxTurns": 15,
"enabledSubagents": ["rxjs-migration"],
"systemPrompt": "Focus on RxJS 7+ migration in the changed files only."
}
}
}
}

The agent file must live at .qualops/agents/rxjs-migration.md for the runtime to find it. The original markdown for each example above is at examples/agents/ in the repository — copy as-is or adapt.