AgentSkillsCN

verification-standards

制定项目级的验证协议、部署流程与自动化脚本。

SKILL.md
--- frontmatter
name: verification-standards
description: Project-wide verification protocols, deployment procedures, and automation scripts.

Verification Standards

MANDATORY: Apply these protocols before any PR, deployment, or final task completion.


🏁 Final Checklist Protocol

Trigger: When the user says "son kontrolleri yap", "final checks", "çalıştır tất cả test", or similar.

Task StageCommandPurpose
Manual Auditpython .agent/scripts/checklist.py .Priority-based project audit
Pre-Deploypython .agent/scripts/checklist.py . --url <URL>Full Suite + Performance + E2E

Priority Execution Order:

  1. Security → 2. Lint → 3. Schema → 4. Tests → 5. UX → 6. Seo → 7. Lighthouse/E2E

Rules:

  • Completion: A task is NOT finished until checklist.py returns success.
  • Reporting: If it fails, fix the Critical blockers first (Security/Lint).

🛠️ Available Automation Scripts

ScriptSkillWhen to Use
security_scan.pyvulnerability-scannerAlways on deploy
dependency_analyzer.pyvulnerability-scannerWeekly / Deploy
lint_runner.pylint-and-validateEvery code change
test_runner.pytesting-patternsAfter logic change
schema_validator.pydatabase-designAfter DB change
ux_audit.pyfrontend-designAfter UI change
accessibility_checker.pyfrontend-designAfter UI change
seo_checker.pyseo-fundamentalsAfter page change
bundle_analyzer.pyperformance-profilingBefore deploy
mobile_audit.pymobile-designAfter mobile change
lighthouse_audit.pyperformance-profilingBefore deploy
playwright_runner.pywebapp-testingBefore deploy

🚀 5-Phase Deployment Strategy

  1. Phase 1: Validation → Run lint_runner.py and security_scan.py.
  2. Phase 2: Staging → Deploy to internal branch/test set.
  3. Phase 3: Automated Testing → Run playwright_runner.py and test_runner.py.
  4. Phase 4: Optimization Audit → Run lighthouse_audit.py and bundle_analyzer.py.
  5. Phase 5: Production Release → Final merge and smoke test.