Skip to content
Back to skills

Qa Agent

ASecurity

QA code agent — scans projects and captures session learnings into a searchable best-practices ChromaDB. Builds knowledge of libraries, tools, patterns, what worked/failed. Run on any project; query anytime.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 16, 2026
ai-agentsjavascriptpythongojavaawsbackend

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 21, 2026

npx -y skills add G-Eskayo/marvin --skill qa-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Qa Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Qa Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/g-eskayo-qa-agent/badge)](https://www.skillsdirectory.com/skills/g-eskayo-qa-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: qa-agent
description: QA code agent — scans projects and captures session learnings into a searchable best-practices ChromaDB. Builds knowledge of libraries, tools, patterns, what worked/failed. Run on any project; query anytime.
tags: [intent:qa, intent:review, intent:knowledge, intent:scan, type:agent]
calls: [self-improve]
---

# QA Code Agent

Builds and queries a searchable knowledge base of best practices, library patterns,
tools, and session learnings. Storage: ChromaDB `qa-knowledge` collection at
`~/.claude/chroma/`.

## Triggers
- "qa", "scan project", "code quality", "best practices for X"
- "what worked", "what failed", "patterns in this codebase"
- Starting a new project (query first for relevant prior practices)
- End of a significant code session (auto-capture learnings)

---

## Commands

### 1 — Scan a project (auto-extract patterns)
```
~/.agents/venv/bin/python ~/.agents/skills/qa-agent/scripts/qa_scan.py /path/to/project
```
Extracts: stack, dependencies, imports, TODO/FIXME/HACK markers, config files.
Each finding stored as a ChromaDB entry with metadata.

### 2 — Query the knowledge base
```
~/.agents/venv/bin/python ~/.agents/skills/qa-agent/scripts/qa_query.py "chromadb best practices"
~/.agents/venv/bin/python ~/.agents/skills/qa-agent/scripts/qa_query.py "python async" --n 10
~/.agents/venv/bin/python ~/.agents/skills/qa-agent/scripts/qa_query.py "what failed" --category failed
```

### 3 — Capture a pattern manually
```
~/.agents/venv/bin/python ~/.agents/skills/qa-agent/scripts/qa_capture.py \
  --content "Always use PersistentClient for ChromaDB — EphemeralClient loses data on restart" \
  --category anti-pattern \
  --library chromadb \
  --tags "chromadb,persistence" \
  --domain python-agents \
  --outcome "prevents silent KB data loss on restart"
```

### 4 — Lateral (cross-domain) query
```
# Find patterns from domains OTHER than aws-cloud that are relevant to "idempotent deduplication"
~/.agents/venv/bin/python ~/.agents/skills/qa-agent/scripts/qa_query.py \
  "idempotent deduplication" --lateral aws-cloud
```
Lateral mode excludes the specified domain and surfaces transferable patterns from other domains. This is the D4 cross-domain synthesis retrieval path.

---

## Sub-agent usage
Other skills query the KB inline to enrich their output:

```python
import subprocess, json
from pathlib import Path
result = subprocess.run(
    [str(Path.home() / ".agents/venv/bin/python"),
     str(Path.home() / ".agents/skills/qa-agent/scripts/qa_query.py"),
     "topic", "--json"],
    capture_output=True, text=True, check=True
)
entries = json.loads(result.stdout)
```

---

## Data schema
ChromaDB collection: `qa-knowledge`

| Field | Values |
|---|---|
| document | Natural language description of the pattern/practice |
| category | `pattern` · `anti-pattern` · `library` · `tool` · `worked` · `failed` · `config` |
| source | `project-scan` · `manual` · `session` |
| project | project name or path |
| language | `python` · `javascript` · `all` · etc. |
| library | library name if applicable |
| tags | comma-separated keywords |
| confidence | `high` · `medium` · `low` |
| domain | `python-agents` · `aws-cloud` · `bench-harness` · `data-pipeline` · `web-backend` · `devtools` · `ml-ops` · `all` |
| outcome | free text — what happened when this was applied |
| created_at | ISO timestamp |

`domain` and `outcome` are the handles for cross-domain synthesis (D4). Use `--lateral <domain>` in queries to retrieve patterns from other domains ranked by relevance — the creative retrieval path.

---

## Behaviour rules
- Always query the KB before starting a non-trivial task on an unfamiliar library.
- After scanning a project, print a summary: N entries added, top libraries found.
- Dedup: entries are skipped if their exact content already exists in the KB (SHA-256 hash match). Near-identical paraphrases are not deduplicated yet; see #1314.
- Never store secrets, tokens, or personal data in the KB.

Files in this skill

  • SKILL.md3.8 KB
  • scripts/qa_capture.py7.7 KB
  • scripts/qa_query.py3.8 KB
  • scripts/qa_scan.py33.8 KB
  • scripts/qa_session_capture.py5.8 KB
  • scripts/tests/test_qa.py8.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.