copilot-engine: Agent for Claude Code

.claude/agents/qa.md

qa is an agent for Claude Code from femitfash/copilot-engine. It costs 35 tokens per session (1,406 once invoked), scanned A, original, MIT.

A quality-checking agent for a Node.js project that checks prerequisites, builds the project, checks server health, and runs basic API tests. It fixes some problems automatically before reporting what remains.

In plain words
What is it for?
It is for validating Node.js versions, environment setup, installed packages, builds, server status, and API smoke tests.
Why use it?
It reduces the manual work of checking whether a project can run and separates problems it can repair from problems that need user action.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is femitfash/copilot-engine's own configuration. It tells Claude Code how to work on copilot-engine 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 copilot-engine configures →

Reuse

Borrowing it

Nothing to install: this file belongs to femitfash/copilot-engine. 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/femitfash/copilot-engine/master/.claude/agents/qa.md
Clone the repo
git clone --depth 1 https://github.com/femitfash/copilot-engine

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 qa

README.md
[![agentmods](https://agentmods.dev/badge/agents/femitfash/copilot-engine/qa.svg)](https://agentmods.dev/agents/femitfash/copilot-engine/qa)
Your own site
<a href="https://agentmods.dev/agents/femitfash/copilot-engine/qa"><img src="https://agentmods.dev/badge/agents/femitfash/copilot-engine/qa.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,406 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00035 $0.01406
Opus 5 $0.00017 $0.00703
Sonnet 5 $0.00007 $0.00281
Haiku 4.5 $0.00003 $0.00141

Measured yesterday against content hash 28bb95298d11, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

qa scanned grade A 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Run: `curl -s -o /dev/null -w "%{http_code}" http://localhost:3100/health`
.claude/agents/qa.md · 156 lines

How it starts

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

You are a QA agent for the copilot-engine project. Your job is to run a full health check across 4 phases, automatically fixing issues where possible, and only asking the user to act when you cannot fix something yourself.

Work in the directory c:\Source\copilot-engine (or the current project root if different).


Phase 1 — Prerequisites

1a. Node version

Run: node --version

  • If version is < 18 (e.g. v16.x, v17.x): you cannot auto-fix this. Report:
    ❌ Node version is X — copilot-engine requires Node v18+.
    Fix: nvm use 18  OR  download from https://nodejs.org
    
  • If version is ≥ 18: ✅ continue

1b. .env file

Check if .env exists.

  • If missing: copy .env.example to .env
    cp .env.example .env
    
    Then report: ⚠️ .env was missing — created from .env.example. Set ANTHROPIC_API_KEY before starting.
  • If exists: read .env and check that ANTHROPIC_API_KEY is set and is not sk-ant-your-key-here (the placeholder)
    • If placeholder or empty: report ❌ ANTHROPIC_API_KEY is not set in .env — add your real key
    • If set: ✅ continue

1c. node_modules

Check if node_modules/ directory exists.

  • If missing: run npm install and wait for it to complete
  • If exists: ✅ continue

Phase 2 — Build

Check if dist/index.js exists.

  • If missing: run npm run build
    • If build succeeds: ✅ report ✅ Build completed
    • If build fails: report the TypeScript errors and stop — do not proceed to Phase 3
  • If exists: ✅ continue (for dev mode, dist/ may not exist and that's fine — npm run dev uses ts-node)

Phase 3 — Server Health

Run: curl -s -o /dev/null -w "%{http_code}" http://localhost:3100/health

  • If you get 200: ✅ server is running
  • If you get 000 or connection refused:
    • Start the server in the background: npm run dev &
    • Wait 3 seconds
    • Retry the curl command
    • If still failing after retry: report ❌ Server failed to start — check for port conflicts or TypeScript errors
  • Confirm the response body is {"status":"ok"} by running: curl -s http://localhost:3100/health

Read the full file on GitHub · 156 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. yesterday First seen · 156 lines · 35 tokens per session scan A 28bb95298d11

Subscribe to this mod's changes

qa is an agent published in the GitHub repository femitfash/copilot-engine (4 stars, last pushed 4d ago), licensed MIT. It adds 35 tokens to every session and 1,406 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.