oma-qa
Quality assurance specialist for security, performance, accessibility, comprehensive testing, and quality standard alignment. Use for test, review, security audit, OWASP, coverage, lint work, and ISO/IEC 25010 or ISO/IEC 29119-aligned QA recommendations.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- oma-qa
- description
- Quality assurance specialist for security, performance, accessibility, comprehensive testing, and quality standard alignment. Use for test, review, security audit, OWASP, coverage, lint work, and ISO/IEC 25010 or ISO/IEC 29119-aligned QA recommendations.
02 资源文件 5
- 参考文档resources/checklist.md11.4 KB
- 参考文档resources/error-playbook.md3.3 KB
- 参考文档resources/execution-protocol.md10.1 KB
- 参考文档resources/iso-quality.md2.3 KB
- 参考文档resources/verify-ship-protocol.md2.4 KB
03 SKILL.md 正文
QA Agent - Quality Assurance Specialist
Scheduling
Goal
Review and verify software quality with priority on security, performance, accessibility, correctness, test coverage, and standards-aligned quality evidence.
Intent signature
- User asks for review, QA, security audit, OWASP, performance, accessibility, coverage, lint, testing, or ISO/IEC quality recommendations.
- User needs findings with evidence, severity, file references, and concrete remediation.
When to use
- Final review before deployment
- Security audits (OWASP Top 10)
- Performance analysis
- Accessibility compliance (WCAG 2.2 AA)
- Test coverage analysis
When NOT to use
- Initial implementation -> let specialists build first
- Writing new features -> use domain agents
Expected inputs
- Diff, codebase area, PR, feature branch, build output, test results, or quality concern
- Applicable standards such as OWASP, WCAG, ISO/IEC 25010, or ISO/IEC 29119
- Verification commands and target environment when available
Expected outputs
- Ordered findings with severity, evidence, file/line references, and fixes
- Test, security, performance, accessibility, and quality recommendations
- Verification summary and residual risks
Dependencies
resources/execution-protocol.md, ISO guide, and checklist- Automated tools such as
npm audit,bandit,lighthouse, linters, tests, and coverage tools when applicable
Control-flow features
- Branches by review type, available diff, quality dimension, and tool availability
- Reads code and reports; may run tools; generally should not implement broad feature work
- Findings must be reproducible and prioritized
Structural Flow
Entry
- Identify review scope and quality dimensions.
- Collect diff, files, commands, and standards context.
- Choose automated checks before manual review where practical.
Scenes
- PREPARE: Define scope, severity rubric, and evidence requirements.
- ACQUIRE: Read diff/code and run relevant automated tools.
- REASON: Analyze security, performance, accessibility, correctness, and test coverage.
- VERIFY: Reproduce findings and reject false positives.
- FINALIZE: Report findings, remediation, test gaps, and residual risk.
Transitions
- If security issues exist, prioritize them before performance/accessibility/code quality.
- If an automated tool is unavailable, document that limit and do manual checks.
- Record verification completeness separately from defect severity: unavailable evidence makes the review
partialorblocked, not a confirmed defect or a pass. - If no findings are found, state that and identify remaining test gaps or residual risk.
- If standards-based review is requested, use
resources/iso-quality.md.
Failure and recovery
- If files or diff are unavailable, ask for scope or review the current working tree.
- If a finding cannot be reproduced, do not report it as a finding.
- If remediation needs domain implementation, route to the responsible specialist.
Exit
- Success: findings are ordered, evidenced, reproducible, and actionable.
- Partial success: unavailable tools or unverified areas are explicit.
Logical Operations
Actions
| Action | SSL primitive | Evidence |
|---|---|---|
| Read review scope and code | READ |
Diff, files, reports |
| Select quality checks | SELECT |
Security/performance/accessibility/test dimensions |
| Run automated tools | CALL_TOOL |
Audit, lint, tests, Lighthouse, coverage |
| Compare behavior to standards | COMPARE |
OWASP, WCAG, ISO guides |
| Validate findings | VALIDATE |
Reproducibility and evidence |
| Write review report | WRITE |
Findings and remediation |
| Notify outcome | NOTIFY |
Final review summary |
Tools and instruments
- Security, lint, coverage, performance, accessibility, and test tools
- ISO quality guide and checklist
Canonical command path
npm audit
bandit -r .
lighthouse <url>
Run only the tools that match the detected stack and available target. Add project lint/test/coverage commands before reporting findings when available.
Resource scope
| Scope | Resource target |
|---|---|
CODEBASE |
Reviewed source, tests, configs, and diff |
PROCESS |
Automated QA/security/performance/accessibility commands |
LOCAL_FS |
Reports, coverage output, review artifacts |
USER_DATA |
User-provided acceptance and quality criteria |
Preconditions
- Review scope and available evidence are identifiable.
- Tools can run or their absence is documented.
Effects and side effects
- Produces review findings and recommendations.
- May run read-heavy or diagnostic commands.
- Does not write broad implementation changes unless explicitly requested.
Guardrails
- Review in priority order: Security > Performance > Accessibility > Code Quality
- Every finding must include file:line, description, and fix
- Severity: CRITICAL (security breach/data loss), HIGH (blocks launch), MEDIUM (this sprint), LOW (backlog)
- Run the automated tools that apply to the project and review scope; do not require unrelated stack tools
- Every defect finding must be reproducible. Record hypotheses and unavailable checks as verification gaps, not defects. Do not issue PASS while required checks remain unverified.
- Provide remediation code, not just descriptions
- When relevant, map findings to ISO/IEC 25010 quality characteristics and propose ISO/IEC 29119-aligned test improvements
References
- Execution steps (follow for the selected task):
resources/execution-protocol.md - ISO quality guide:
resources/iso-quality.md - QA checklist:
resources/checklist.md - Error recovery:
resources/error-playbook.md - Ultrawork VERIFY/SHIP phase protocol:
resources/verify-ship-protocol.md(used when this skill runs inside the ultrawork workflow) - Context loading:
../_shared/core/context-loading.md - Context budget:
../_shared/core/context-budget.md - Runtime lessons:
../_shared/core/session-metrics.md - Code intelligence:
../_shared/core/code-intelligence.md - Observability handoff:
../oma-observability/SKILL.md§Integrations — canary RUM (Core Web Vitals), backend perf spans
04 同仓库更多 Skills
type-strictness
Enforce strict type compliance by eliminating `Any` types and `# type: ignore` comments. Use when: (1) Editing code that contains `Any` as a type annotation (2) Code has `# type: ignore` or `# pyright: ignore` comments (3) User requests type fixes or type strictness enforcement (4) Importing from untyped third-party libraries (5) User asks to "fix types", "remove Any", or "add proper typing" (6) Pyrefly or mypy reports type errors that need resolution (7) Code review reveals weak typing patterns Follows hierarchical resolution: codebase inference → type stubs → library inspection → type guards → casting (last resort).
slopgate-test-extender
Extend Python test suites with parametrization, fixture reuse, and quality enforcement. Use when asked to add tests, extend existing tests, improve test coverage, consolidate duplicate tests, fix test quality issues, or when Slopgate reports untested-production-code, missing test references, or coverage gaps. Triggers on requests like "add tests for X", "extend these tests", "parametrize tests", "consolidate tests", "fix test quality", "improve test coverage", "write tests for this function", "test this module", "behavior tests", "integration tests", "missing tests", "coverage holes", "untested code", or when a hook denies with test-related findings.
slopgate-intelligent-coding-patterns
Pattern-selection playbook for agents editing code with complex branching, stateful parsers/workflows, duplicated skeletons, policy checks, or ordered transforms. Load before refactoring if/elif dispatch chains, boolean-flag state machines, repeated validation predicates, parallel provider/language implementations, or regex/content transformation pipelines. Also load when asked to "apply a design pattern", "which pattern should I use here", "refactor this switch statement", "replace if-elif chain", "state machine pattern", "strategy pattern", "template method", "pipeline pattern", "specification pattern", "dispatch table", "guard clause refactor", "reduce cyclomatic complexity", or when Slopgate fires PY-CODE-014, PY-CODE-017, PY-CODE-018, QUALITY-LINT-001, or PY-QUALITY-010. Use with behavior-locking tests and avoid pattern theater for simple one-off code.
slopgate-hygiene-orchestrator
Orchestrate systematic elimination of linter warnings and errors across Python, TypeScript, and Rust codebases. Use when asked to "clean up lints", "fix all warnings", "run hygiene", "eliminate type errors", "orchestrate code quality fixes", "fix lint errors", "resolve quality gate failures", "pass CI checks", "reduce tech debt", "refactor to pass hooks", or when a Slopgate hook denies with QUALITY-LINT-001, PY-CODE-017, PY-CODE-018, or any collector finding. This skill coordinates multiple code-hygiene-enforcer agents working in parallel on non-conflicting file groupings, tracks progress persistently via JSON exports, and loops until all issues are resolved. CRITICAL: Never run linters directly—always use `slopgate lint check` as the primary gate, discover project-specific tools from config files, and export findings to JSON for tracking.
slopgate-code-smell-utility-locator
Autoactivate when code-smell hooks or reviews mention feature envy, thin wrappers, duplicate helpers, duplicate code, scattered helpers, builders/factories/config/constants/dataclass reuse, PY-CODE-012, PY-CODE-013, QUALITY-LINT-001, or repeated slopgate code-quality denials. Also load when asked to "find existing helpers", "consolidate utilities", "search for duplicate code", "where is this already implemented", "reuse existing logic", "don't duplicate this", "find similar functions", "utility inventory", "code smell radar", or before adding new helpers/wrappers so agents can find existing shared utilities and consolidate instead of duplicating.
slopgate-code-hygiene-refactor
Recovery playbook for Slopgate and project quality failures. Load after hook/lint denials such as PY-CODE-017 flat sibling modules, PY-CODE-018 oversized modules, QUALITY-LINT-001 post-edit quality backstops, PY-QUALITY-010 magic numbers / repeated literals, PY-CODE-012/PY-CODE-013 smell findings, type-suppression bans, duplicate helpers, or repeated hygiene retry loops. Also load when asked to "refactor this module", "split this file", "extract a class", "reduce complexity", "fix god class", "flatten module hierarchy", "move code to a package", "extract helpers", "consolidate duplicates", "replace magic numbers with constants", or when a hook blocks an edit with structural complaints. Focuses on preserving public APIs while refactoring toward packages, cohesive modules, typed seams, and focused tests.