agentsclimarketplace

Quality assurance

Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/quality-assurance

Standards for maintaining code hygiene, automated checks, and testing integrity.From its SKILL.md

Install
npx -y skills add ComeOnOliver/skillshub --skill quality-assurance

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

3.1 KB, 671 tokens by cl100k_base, as published. Nobody here has run it

Quality Assurance - High-Density Standards

Standards for maintaining code hygiene, automated checks, and testing integrity.

Priority: P1 (MAINTENANCE)

Standards for maintaining code quality, automated checks, and testing integrity.

πŸ” Code Quality & Linting

  • Zero Tolerance: Treat all linter warnings/infos as fatal errors in CI.
  • Automated Formatting: Enforce strict formatting on every commit using hooks.
  • Type Safety: Never use any or dynamic unless absolutely necessary. Use specific interfaces/types for all data boundaries.
  • Dead Code: Proactively remove unused imports, variables, and deprecated methods.

πŸ§ͺ Testing & TDD

  • F-I-R-S-T: Test must be Fast, Independent, Repeatable, Self-Validating, and Timely.
  • TDD (Red-Green-Refactor): See our dedicated TDD Skill for strict cycle enforcement.
  • Edge Cases: Always test null/empty states, boundary limits, and error conditions.
  • Mock Dependencies: Isolate code by mocking external systems (APIs, DBs) to ensure deterministic results.

πŸ”Ί The Test Pyramid

  • Unit Tests (70%): Fast, isolated, test individual functions/classes. (TDD focus).
  • Integration Tests (20%): Test interactions between modules (e.g., Service + DB).
  • E2E Tests (10%): Slow, realistic, test user flows from UI to Backend.

🎯 Risk-Based Testing

  • Prioritize Critical Paths: Login, Payments, Data Integrity must have the highest coverage.
  • Impact Analysis: Ask "What happens if this fails?" If the answer is "Data Loss", test it thoroughly.

πŸ›  Refactoring & Code Reviews

  • Code Smells: Proactively refactor duplicated code, long methods (>20 lines), and "god classes".
  • Incremental Changes: Perform small, behavior-preserving transformations (Extract Method, Rename Variable).
  • Quality Gate: Use peer reviews to share knowledge and catch logic errors before merging.
  • Constructive Feedback: Critique the code, not the author. Explain the "why" behind suggestions.

πŸ›  Automation & Hooks

  • Pre-commit Hooks: Validate linting, formatting, and unit tests before every push.
  • Documentation: Keep public APIs documented. Use triple-slash/JSDoc.
  • Strict Dependencies: Lock versions in pubspec.lock / package-lock.json / pnpm-lock.yaml.

🚫 Anti-Patterns

  • Broken Window: **No Ignoring Warnings**: Leaving "small" lint errors leads to codebase rot.
  • Testing Implementation: **No Testing Internals**: Changes to private methods shouldn't break tests.
  • Manual QA Dependency: **No "Test-Last"**: Verification must be automated and continuous, not a final manual gate.
  • Magic Strings: **No Hardcoded IDs**: Use constants or generated keys for accessibility/test IDs.

πŸ“š References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.