init-agent
Skill2 starsChanged 8 months agoUnlicenseView on GitHub
Generates qa_agent.md — a job description for the AI with QA team culture, principles, and anti-patterns. Use when setting up AI for a project, onboarding new AI agents, or standardizing testing approaches. Do not use for editing existing qa_agent.md — edit manually.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Blazity/ai-workflowtheir own version, first seen Nov 15, 2026
- strobelpierre/init-agenttheir own version, first seen Nov 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Blazity/ai-workflow★ 18same name
- strobelpierre/init-agent★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository70 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/00-project-context.mdcCursor rule
- .cursor/rules/01b-component-gen-next.mdcCursor rule
- .cursor/rules/01-component-gen.mdcCursor rule
- .cursor/rules/02-component-tests.mdcCursor rule
- .cursor/rules/03b-vue-doctor.mdcCursor rule
- .cursor/rules/03-react-doctor.mdcCursor rule
- .cursor/rules/04-ui-tweak.mdcCursor rule
- .cursor/rules/05-refactor.mdcCursor rule
- .cursor/rules/06-frontend-code-review.mdcCursor rule
- .cursor/rules/07-fe-repo-scout.mdcCursor rule
- .cursor/rules/08-be-repo-scout.mdcCursor rule
- .cursor/rules/09-web-vitals.mdcCursor rule
- .cursor/rules/10-browser-check.mdcCursor rule
- .cursor/rules/11-api-bind.mdcCursor rule
- .cursor/rules/12-e2e-tests.mdcCursor rule
- .cursor/rules/13-api-mocks.mdcCursor rule
- agents-checkerSkill
- api-bindSkill
- api-mocksSkill
- be-repo-scoutSkill
- browser-checkSkill
- component-gen-nextSkill
- component-genSkill
- component-testsSkill
- curate-lessonsSkill
- e2e-testsSkill
- fe-repo-scoutSkill
- fix-markdownSkill
- frontend-code-reviewSkill
- init-agentSkill
- init-projectSkill
- init-skillSkill
- prSkill
- react-doctorSkill
- refactorSkill
- setup-configsSkill
- skill-auditSkill
- spec-auditSkill
- ui-tweakSkill
- update-ai-setupSkill
- vue-doctorSkill
- web-vitalsSkill
- agents-checkerSkill
- api-bindSkill
- api-mocksSkill
- be-repo-scoutSkill
- browser-checkSkill
- component-gen-nextSkill
- component-genSkill
- component-testsSkill
- curate-lessonsSkill
- e2e-testsSkill
- fe-repo-scoutSkill
- fix-markdownSkill
- frontend-code-reviewSkill
- init-projectSkill
- init-skillSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Structured Output Priority: All analysis goes into the artifact (MD/HTML), not into chat.
- Distinctive: line 42
Iterative steps: Do not output progress for each file.
- Distinctive: line 51
Read → analyze → report, no "The file shows..."
- Distinctive: line 57
Ask the user or determine from the project:
- Very specific: line 84
Read references/qa-profiles.md and select principles by profile from Step 1:
- Distinctive: line 86
Always include Universal principles (5 principles)
- Very specific: line 87
Add principles for the specific profile (API/UI/Performance/Security)
- Distinctive: line 94
Always include Universal Anti-Patterns (8 entries)
- Distinctive: line 95
Add profile-specific ones (if applicable)
- Very specific: line 214
Before saving the generated qa_agent.md:
- Very specific: line 222
Gardener Protocol: Call .claude/protocols/gardener.md.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/init-agent — qa_agent.md Generator
SILENT MODE: Execute all phases silently. Do not output intermediate analysis or conversational filler. Only the final qa_agent.md artifact and SKILL COMPLETE block go to chat.
<purpose>
Creating a "job description" for the AI: mindset, anti-patterns, quality gates.
Focus: broad-profile QA engineers (API, UI, Mobile, Performance).
</purpose>Before Starting
Read .claude/qa_agent.md.
When to Use
- Setting up AI for a specific QA team's culture
- Standardizing testing approaches
- Onboarding new AI agents into a project
Execution Algorithm
Verbosity Protocol
Structured Output Priority: All analysis goes into the artifact (MD/HTML), not into chat.
Chat output (constraints):
- Brief Summary: max 5 lines (what was found, how many, result)
- Findings table: max 15 lines (top by severity)
- Full report:
📊 Full report: {path}+ open file
Iterative steps: Do not output progress for each file. Checkpoint only on:
- Phase transition (Phase N → Phase N+1)
- Blocker detected
- Completion (SKILL COMPLETE)
Tools first:
- Grep → table → report, no "Now I will grep..."
- Read → analyze → report, no "The file shows..."
Post-Check: Inline before SKILL COMPLETE (5-7 line checklist), not a separate file.
Step 1: Determine QA Profile
Ask the user or determine from the project:
What type of testing predominates?
1. API Testing — REST/GraphQL, contract testing
2. UI/E2E Testing — Web (Playwright/Selenium), Mobile (Appium)
3. Performance Testing — load testing, stress testing
4. Security Testing — OWASP, pentesting
5. Mixed — combination of multiple typesStep 1 Error Handling
references/qa-profiles.md not found → Use built-in principles from the "Step 4: Quality Gates" section and proceed to Step 4 directly.
Profile is ambiguous (user answered vaguely) → Clarify with one question:
Name 1-2 task types that take > 70% of the team's time:
REST API tests / UI automation / Load testing / Pentestingqa_agent.md already exists → Warn: "File already exists. Overwrite? (yes / no)". Do not overwrite without confirmation.
Step 2: Select Core Principles
Read references/qa-profiles.md and select principles by profile from Step 1:
- Always include Universal principles (5 principles)
- Add principles for the specific profile (API/UI/Performance/Security)
- For Mixed profile — combine principles from all relevant categories
Step 3: Collect Anti-Patterns
From references/qa-profiles.md select relevant anti-patterns:
- Always include Universal Anti-Patterns (8 entries)
- Add profile-specific ones (if applicable)
- Build a unified table for the "Anti-Patterns (BANNED)" section
Step 4: Define Quality Gates
## Quality Gates
### Before Commit
- [ ] Code compiles without errors
- [ ] Tests pass locally
- [ ] No hardcoded values (IDs, emails, phone numbers)
- [ ] Cleanup works
### Before PR
- [ ] Tests are isolated (can run in any order)
- [ ] Naming convention followed
- [ ] No commented-out code
- [ ] Critical scenarios covered
### Before Release
- [ ] All tests green in CI
- [ ] No flaky tests
- [ ] Performance baseline not degradedStep 5: Generate qa_agent.md
# QA Agent: [Profile]
## Core Mindset
[3-5 principles from Step 2]
## Anti-Patterns (BANNED)
[Table from Step 3]
## Quality Gates
[Checklists from Step 4]
## Test Design
### Structure (AAA)
```[language]
// Arrange — setup
// Act — action
// Assert — verificationNaming Convention
`[actor] can [action] when [condition]`
`[actor] cannot [action] when [condition]`Data Management
Unique Data Generation
[Example for the chosen language]
Cleanup Pattern
[try-finally example for the chosen language]
Cross-Skill Protocol
/spec-audit→ verify requirements/testcases→ write test cases/api-tests→ automate
Do not jump straight to code!
## Output
Save to `.claude/qa_agent.md`
## Example Dialog
User: /init-agent
AI: What QA engineer profile?
- API Testing
- UI/E2E Testing
- Performance Testing
- Security Testing
- Mixed (universal)
User: 5
AI: Generating qa_agent.md for universal QA...
[Shows file with principles from all categories]
Save to .claude/qa_agent.md? (y/n)
## Anti-Patterns
| Anti-Pattern | Why It Breaks | Fix |
|---|---|---|
| Generic mindset principles (e.g., "be thorough") | Vague, not actionable; AI doesn't know what "thorough" means for this team | Use specific examples: "Verify every required field in validation responses" |
| Anti-patterns missing from qa_agent.md | AI doesn't know the team's specific pain points | Always include ≥5 BANNED patterns (use `qa-profiles.md` as reference) |
| Hardcoded `/testcases` → `/api-tests` workflow without `/spec-audit` | Tests built without verifying spec first; catch bugs late | Always include `/spec-audit` as first step |
| `[xxx]` placeholders left unfilled | Template cruft confuses AI during execution | Remove all `[Profile]`, `[Language]` references before saving |
| Quality Gates missing Commit + PR + Release sections | Incomplete checklist coverage; CI fails later | All 3 gates required per init-agent standard |
## Quality Gate (Self-Review)
Before saving the generated `qa_agent.md`:
- [ ] **Core Principles:** 3-5 principles selected and filled in?
- [ ] **Anti-Patterns:** Table contains at least 5 entries?
- [ ] **Quality Gates:** All 3 sections (commit/PR/release) present?
- [ ] **No placeholders:** No remaining `[xxx]` in the text?
- [ ] **Cross-Skill Protocol:** Section present with `/spec-audit` → `/testcases` → `/api-tests`?
**Gardener Protocol**: Call `.claude/protocols/gardener.md`. If you identified missing rules
or inefficiencies during this run, output a brief proposal table. Otherwise: `🌱 Gardener: No updates needed.`
## Related Files
- Template: `.claude/skills/init-agent/references/qa-agent-template.md`
- QA profiles: `.claude/skills/init-agent/references/qa-profiles.md`
- Full guide: `docs/ai-files-handbook.md`Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

