[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77RWQRMGW1X95GES4V2WF2Q":3,"skill-same:01M77RWQRMGW1X95GES4V2WF2Q":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M77RWQRMGW1X95GES4V2WF2Q","post-dev-verification",null,"Post-development full-stack verification skill. Automatically triggered after Agent completes a development task. Executes production-level validation (unit + integration + E2E) with real-execution-first philosophy. Use when: (1) Development task is complete and needs verification, (2) User says \"run tests\", \"verify\", \"validate\", \"quality check\", (3) User says \"交付\", \"验证\", \"跑测试\", \"质量检查\", \"验收\", (4) Before creating PRs or merging code, (5) After implementing features, bug fixes, or refactoring, (6) User asks \"does this work?\", \"can we ship this?\", \"is this ready?\". Covers: test design (MFT\u002FINV\u002FDIR taxonomy), quality metrics (4 layers, 15 metrics), feedback-driven fix loop, anti-pattern detection, visible\u002Fhidden test separation, reusable test script generation.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fpost-dev-verification\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: post-dev-verification\ndescription: >-\n  Post-development full-stack verification skill. Automatically triggered after Agent completes a development task.\n  Executes production-level validation (unit + integration + E2E) with real-execution-first philosophy.\n  Use when: (1) Development task is complete and needs verification, (2) User says \"run tests\", \"verify\",\n  \"validate\", \"quality check\", (3) User says \"交付\", \"验证\", \"跑测试\", \"质量检查\", \"验收\",\n  (4) Before creating PRs or merging code, (5) After implementing features, bug fixes, or refactoring,\n  (6) User asks \"does this work?\", \"can we ship this?\", \"is this ready?\".\n  Covers: test design (MFT\u002FINV\u002FDIR taxonomy), quality metrics (4 layers, 15 metrics), feedback-driven fix loop,\n  anti-pattern detection, visible\u002Fhidden test separation, reusable test script generation.\nmetadata:\n  requires: \"docker (optional), npm\u002Fpip\u002Fmvn\u002Fgo (auto-detected), database client (optional)\"\n  capabilities: \"read_project_files, run_tests, start_stop_services, network_access\"\n  safety_isolation: \"Always run in a test\u002Fsandbox environment. Never use production credentials or production data.\"\n  safety_credentials: \"Uses only test accounts, test API keys, and environment-variable-sourced tokens. Never prompts for production secrets.\"\n  safety_side_effects: \"Starts\u002Fstops services, runs DB migrations, seeds test data, deletes test artifacts. All scoped to test environment.\"\n  safety_recommendation: \"Run Phase 0 (environment analysis) first to review what will be accessed before proceeding to execution phases.\"\n---\n\n# Post-Development Verification\n\nAutomated full-stack quality verification after development. **Real execution by default** -- mock is the last resort. **Deliverability is judged by external calls** (HTTP requests, CLI invocations, browser interactions), not by internal function calls passing in isolation.\n\n## Core Philosophy: Real Execution First\n\nDefault realism level is **L2**: internal services run for real, only uncontrollable external dependencies (third-party APIs, paid services) may be mocked.\n\n**Downgrade signals** (auto-detected from user intent):\n- \"快速验证\" \u002F \"只测逻辑\" \u002F \"mock就行\" -> L0\n- Pure function \u002F utility library with no I\u002FO -> L0\n- Local environment cannot start service -> L1 (report reason)\n- \"生产级别\" \u002F \"全面测试\" \u002F \"验收测试\" -> L3\n\n**Realism level definitions:**\n| Level | Description | Mock Ratio |\n|-------|-------------|------------|\n| L0 | All dependencies mocked | 100% |\n| L1 | Core service real, databases mocked | \u003C=50% |\n| L2 | Internal services real, external deps mocked | \u003C=30% |\n| L3 | All services real (sandbox\u002Ftest accounts) | 0% |\n\n## Workflow\n\nExecute phases sequentially. Each phase produces required artifacts for the next.\n\n```\nPhase 0: Environment Awareness\n  v\nPhase 1: Test Design (with anti-pattern scan)\n  v\nPhase 2: Execution & Evaluation\n  v\nPhase 3: Feedback & Fix Loop (if gates fail)\n  v\nPhase 4: Validation & Output\n```\n\n---\n\n## Safety Requirements\n\nThis skill starts services, runs migrations, and makes network calls. Before execution:\n\n1. **Run in isolation** -- use a test\u002Fsandbox environment, never production systems\n2. **Use test credentials only** -- test accounts, test API keys, environment-variable tokens; never supply production secrets\n3. **Phase 0 first** -- review the Environment Report before allowing execution phases (Phase 2+) to understand what will be accessed\n4. **Scoped side effects** -- all service starts, DB migrations, test data seeding, and cleanup are limited to the test environment\n5. **User control** -- the user can downgrade realism level (e.g., \"快速验证\" for L0) to reduce scope at any time\n\n---\n\n## Phase 0: Environment Awareness\n\nGather project context and determine feasibility before designing tests.\n\n### 0.1 Project Analysis\n\nIdentify:\n- **Language & Framework**: from config files (package.json, pyproject.toml, go.mod, etc.)\n- **Project type**: monorepo \u002F microservice \u002F full-stack \u002F library \u002F CLI tool\n- **Monorepo scope** (if applicable): identify which packages\u002Fservices are affected by the current change\n- **Test runner**: detect existing test framework (pytest, vitest, jest, go test, etc.)\n- **Coverage tool**: detect coverage support (pytest-cov, vitest --coverage, nyc, etc.)\n- **Build\u002Fstart commands**: from scripts, Docker configs, Makefiles\n\n### 0.2 Dependency Mapping\n\nFor each dependency service, classify:\n- **Controllable** (self-hosted, has test env) -> must run real at L2+\n- **Uncontrollable** (third-party, paid, no sandbox) -> acceptable to mock\n\n### 0.3 Realism Level Decision\n\n1. Check user intent signals -> override default if found\n2. Check test target type -> pure functions auto-downgrade to L0\n3. Assess local environment feasibility -> downgrade if services can't start\n4. Record decision with rationale in the environment report\n\n### 0.4 Environment Feasibility Check\n\nVerify:\n- Required tools installed (runtime, package manager, Docker if needed)\n- Dependency services available (databases, caches, message queues)\n- Target service can start locally\n- **Environment consistency**: Docker\u002Fconfig matches production; environment variables and config files are complete; dependency service versions align with deployment target\n\nOutput: **Environment Report** -- language, framework, test runner, realism level, service availability, any blockers, consistency gaps.\n\n---\n\n## Phase 1: Test Design\n\nDesign test scenarios systematically using the test taxonomy. **Do NOT write test code before completing analysis.**\n\n### 1.1 Pre-Analysis (Anti Leap-to-Code)\n\nBefore writing any test code, complete:\n- **Code structure analysis**: control flow, function signatures, module dependencies\n- **Dependency analysis**: external services, databases, API contracts involved\n- **Constraint analysis**: business rules, data invariants, input\u002Foutput contracts\n\n>  If test code references modules\u002Fimports not in the actual codebase -> hallucinated dependency. Remove and use actual project references.\n\n### 1.2 Scenario Identification\n\nMap each requirement to test scenarios:\n- Functional scenarios (one per acceptance criterion minimum)\n- Integration scenarios (cross-module, data flow, API contract)\n- Error\u002Fexception scenarios (all error handling branches)\n- **End-to-end business flows** (complete user journeys that traverse multiple steps\u002Fservices -- e.g., \"register -> verify email -> login -> place order -> pay -> receive confirmation\"; \"admin creates user -> assigns role -> user logs in with correct permissions\"). Each identified critical business flow MUST have at least one E2E test validated through external calls.\n\n**Anti-pattern check**: If >80% of scenarios are happy path -> **Happy Path Obsession detected**. Add error, boundary, and exception scenarios until >=30% target error scenarios.\n\n### 1.3 Apply Test Taxonomy\n\nFor each scenario, apply the appropriate taxonomy category. Load detailed guidance from `references\u002Ftest-taxonomy.md` when needed.\n\n| Category | Purpose | Example |\n|----------|---------|---------|\n| **MFT** (Minimum Functionality) | Verify each decision branch\u002Fleaf node works | Each code path returns correct result |\n| **INV** (Invariance) | Same logical request -> same result, different phrasings | \"show data\" = \"display info\" = \"list records\" |\n| **DIR** (Directional Expectation) | Vary one input -> predict output direction | Larger input -> larger output (monotonic) |\n\n**Coverage rule**: Each of the 3 categories MUST have >=1 test. Taxonomy coverage = 100% is a **hard gate**.\n\n### 1.4 Boundary Value Coverage\n\nFor every input parameter, identify and cover:\n- **Numeric**: min-1, min, min+1, typical, max-1, max, max+1\n- **String\u002FCollection**: empty, single item, typical, max, exceeds max, special chars, Unicode\n- **Optional**: not provided (default), explicit null\u002Fundefined, explicit empty\n\n### 1.5 Real vs Mock Classification\n\nClassify each scenario based on realism level:\n- L2+: Internal service interactions -> **must run real**\n- Any level: Uncontrollable external deps -> **acceptable to mock** (use realistic stubs)\n- Track: test realism ratio = real tests \u002F total tests >= 70% (hard gate at L2)\n\n### 1.6 Visible\u002FHidden Test Separation\n\nAfter designing all scenarios:\n- Select **30-40%** as **hidden tests** (prioritize edge cases, adversarial inputs, error scenarios)\n- Hidden tests are NOT exposed during fix loop -- reserved for Phase 4 validation\n- Record the split in the test plan\n\n### 1.7 Anti-Pattern Scan\n\nRun the pre-execution checklist. Load detailed guidance from `references\u002Fanti-patterns.md` when needed.\n\n| Anti-Pattern | Check | Action |\n|-------------|-------|--------|\n| Happy Path Obsession | >80% scenarios are normal flow | Add error\u002Fboundary tests |\n| Weak Assertions | `assert(result != null)`, `assert(status == 200)` without body | Replace with specific value checks |\n| Leap-to-Code | Test code written before structure analysis | Redo analysis first |\n| Hallucinated Dependencies | References non-existent modules\u002Fimports | Replace with actual references |\n| Missing Traceability | Generic test names (`test_1`, `test_func`) | Rename to describe specific behavior |\n\n**Rule**: Each test name MUST describe the specific behavior being tested (e.g., `test_submit_empty_form_returns_422`). Each test MUST link to the requirement it validates.\n\n**Fix all detected anti-patterns before proceeding to Phase 2.**\n\n### Phase 1 Output\n\n- Test plan with all scenarios (tagged: MFT\u002FINV\u002FDIR, real\u002Fmock, visible\u002Fhidden)\n- Boundary value coverage matrix\n- Anti-pattern scan results (all clear)\n\n---\n\n## Phase 2: Execution & Evaluation\n\n### 2.1 Environment Preparation\n\nStart services in dependency order with health checks:\n```\nfor each service in dependency_order:\n    start service\n    wait_for_health_check (port\u002Fping\u002Freadiness endpoint)\n    if health_check fails:\n        report blocker, downgrade realism level\n```\n\nPrepare test data using project's existing seed\u002Fmigration mechanisms when available.\n\n**System boot validation** -- before running any tests, verify the system itself is deliverable:\n- The target service starts successfully from a clean state (no cached artifacts)\n- All health\u002Freadiness endpoints return healthy\n- Startup logs contain no ERROR-level entries (WARNs are logged for review)\n- Required configuration and environment variables are complete\n- If any boot validation fails -> this is a delivery blocker, report immediately\n\n### 2.2 Test Execution\n\nRun tests with coverage enabled. **The test suite MUST include an E2E layer validated through external calls** (HTTP requests to running services, CLI invocations, or browser interactions -- not internal function imports). Load execution templates from `references\u002Freal-e2e-templates.md` when designing this layer.\n\n- Detect and use the project's native test runner and coverage tool\n- Execute all visible tests (hidden tests reserved)\n- **E2E layer**: exercise all identified critical business flows through external interfaces. If the project exposes an HTTP API, at minimum send real HTTP requests to each endpoint. If CLI, invoke real commands. If UI, drive real browser interactions.\n- Capture: pass\u002Ffail per test, assertion output, error messages, coverage data\n\n### 2.3 Metrics Collection\n\nCompute all 4 layers of metrics. Load detailed definitions from `references\u002Fmetrics.md` when needed.\n\n**Design Quality** (computed after test design, before execution):\n| Metric | Formula | Threshold |\n|--------|---------|-----------|\n| Scenario Coverage | covered requirements \u002F total requirements | MUST = 100% |\n| Taxonomy Coverage | categories with >=1 test \u002F 3 | MUST = 100% |\n| Boundary Value Coverage | covered boundary points \u002F total identified | SHOULD >= 90% |\n| Data Feature Coverage | covered data dimensions \u002F total identified | SHOULD >= 85% |\n\n**Execution Quality** (computed after test run):\n| Metric | Formula | Threshold |\n|--------|---------|-----------|\n| Pass Rate | passed tests \u002F total tests | SHOULD >= 95% |\n| Code Coverage | statements covered \u002F total statements | SHOULD >= 80% |\n| Assertion Density | total assertions \u002F total tests | SHOULD >= 2.0 |\n| Weak Assertion Ratio | weak assertions \u002F total assertions | SHOULD \u003C= 10% |\n| Test Realism Ratio | real tests \u002F total tests | MUST >= 70% |\n\n**Delivery Quality** (computed from test results):\n| Metric | Formula | Threshold |\n|--------|---------|-----------|\n| Expectation Match Rate | fully matching tests \u002F total tests (core: MUST 100%) | Core: MUST=100%, Overall: SHOULD>=95% |\n| Boundary Handling Rate | passing boundary tests \u002F total boundary tests | SHOULD >= 90% |\n| Regression Safety | still-passing tests \u002F previously-passing tests | MUST = 100% |\n| Business Flow Coverage | E2E-verified business flows \u002F total identified business flows | MUST = 100% |\n\n**Iteration Efficiency** (computed during fix loop):\n| Metric | Formula | Threshold |\n|--------|---------|-----------|\n| Fix Convergence Rate | newly passing \u002F previous failures | \u003C20% for 2 rounds -> STOP |\n| Fix Introduction Rate | newly failing \u002F total fix attempts | >30% -> STOP |\n\n---\n\n## Phase 3: Feedback & Fix Loop\n\nTriggered when **hard gate metrics** are not met.\n\n### 3.1 Generate Feedback Report\n\nStructure the report as JSON. Load schema from `references\u002Ffeedback-schema.md` when needed.\n\nKey sections:\n- **round**: current iteration number\n- **project_context**: language, framework, test runner, realism level\n- **metrics**: all 4 layers with pass\u002Ffail per metric\n- **gate_result**: `\"pass\"` | `\"fix_and_retry\"` | `\"stop_and_report\"`\n- **failures_grouped**: cluster by root cause, each with affected tests + fix direction\n- **fix_history**: timeline of each round's metrics before\u002Fafter, fix description, newly passing\u002Ffailing\n- **hidden_tests**: total count, run status, results (null during fix loop, populated in Phase 4)\n- **anti_patterns_detected**: names of anti-patterns found in current test suite\n- **next_action**: what the Agent should do next\n\n### 3.2 Fix Prioritization\n\nAddress the **largest failure cluster first** (most affected tests) -- highest probability of improving overall pass rate.\n\n### 3.3 Convergence Control -- Triple Exit Conditions\n\n| Condition | Threshold | Action |\n|-----------|-----------|--------|\n| Max iterations | 5 rounds | Stop, report current state |\n| No convergence | \u003C20% convergence rate for 2 consecutive rounds | Stop, suggest fundamental issue |\n| Regression | >30% fix introduction rate in any round | Stop, suggest wrong fix approach |\n\n### 3.4 Fix Loop Cycle\n\n```\nwhile round \u003C= 5 AND not converged_stop AND not regression_stop:\n    read feedback report -> identify largest failure cluster\n    apply targeted fix to code\u002Ftests\n    re-run full test suite (or failed-only if convergence is high)\n    compute new metrics\n    generate new feedback report\n    check exit conditions\n    record iteration in fix history\n```\n\n### Phase 3 Output\n\n- Fix history timeline (round, metrics before\u002Fafter, fix description, newly passing\u002Ffailing)\n- Final feedback report with gate_result\n\n---\n\n## Phase 4: Validation & Output\n\n### 4.1 Hidden Test Validation\n\nRun ALL hidden tests (not exposed during fix loop):\n- If hidden tests pass -> validates that fixes are genuine, not overfitted\n- If hidden tests fail -> report failures, do NOT re-enter fix loop\n\n### 4.2 Quality Report\n\nGenerate final quality report:\n- **Verdict**: `\"PASS\"` (all hard gates met) or `\"FAIL\"` (hard gates not met) with specific reasons\n- All 4 layers of metrics with pass\u002Ffail status\n- Fix history timeline\n- Hidden test validation results\n- Anti-pattern scan summary\n- Recommendations for improvement\n\n### 4.3 Reusable Test Scripts\n\nOutput test scripts that can run independently in CI\u002FCD:\n- Follow project's native test format and directory conventions\n- Include run instructions: prerequisites, service startup, how to run, expected output\n- Include environment documentation: services needed, config required, ports\n\n---\n\n## Quality Gate Quick Reference\n\n### Hard Gates (MUST pass -- blocks delivery)\n\n| Metric | Threshold |\n|--------|-----------|\n| Scenario Coverage | = 100% |\n| Taxonomy Coverage | = 100% |\n| Test Realism Ratio | >= 70% |\n| Expectation Match (core) | = 100% |\n| Regression Safety | = 100% |\n| Business Flow Coverage | = 100% |\n\n### Soft Targets (SHOULD pass -- reported, does not block unless configured)\n\n| Metric | Threshold |\n|--------|-----------|\n| Boundary Value Coverage | >= 90% |\n| Data Feature Coverage | >= 85% |\n| Pass Rate | >= 95% |\n| Code Coverage | >= 80% |\n| Assertion Density | >= 2.0 |\n| Weak Assertion Ratio | \u003C= 10% |\n| Boundary Handling Rate | >= 90% |\n\n---\n\n## References\n\nLoad these files as needed during the workflow:\n\n- **`references\u002Fmetrics.md`** -- Complete definitions for all 14 metrics: calculation formulas, threshold rationale, and what it means when a metric is not met. Load when computing or interpreting metrics.\n\n- **`references\u002Ftest-taxonomy.md`** -- Detailed guidance for MFT\u002FINV\u002FDIR test categories with pseudocode examples, plus systematic boundary value analysis methods. Load during Phase 1 test design.\n\n- **`references\u002Ffeedback-schema.md`** -- Full JSON Schema for feedback reports with a populated example. Load when generating feedback reports in Phase 3.\n\n- **`references\u002Fanti-patterns.md`** -- Detailed detection methods and fix strategies for all 5 anti-patterns: Happy Path Obsession, Weak Assertions, Leap-to-Code, Hallucinated Dependencies, Missing Traceability. Load during Phase 1 anti-pattern scan or Phase 3 feedback.\n\n- **`references\u002Freal-e2e-templates.md`** -- Environment preparation scripts and real E2E test templates for HTTP API, CLI tools, and Browser automation. Load during Phase 2 environment preparation and test execution.\n","# Post-Development Verification\n\nAutomated full-stack quality verification after development. **Real execution by default** -- mock is the last resort. **Deliverability is judged by external calls** (HTTP requests, CLI invocations, browser interactions), not by internal function calls passing in isolation.\n\n## Core Philosophy: Real Execution First\n\nDefault realism level is **L2**: internal services run for real, only uncontrollable external dependencies (third-party APIs, paid services) may be mocked.\n\n**Downgrade signals** (auto-detected from user intent):\n- \"快速验证\" \u002F \"只测逻辑\" \u002F \"mock就行\" -> L0\n- Pure function \u002F utility library with no I\u002FO -> L0\n- Local environment cannot start service -> L1 (report reason)\n- \"生产级别\" \u002F \"全面测试\" \u002F \"验收测试\" -> L3\n\n**Realism level definitions:**\n| Level | Description | Mock Ratio |\n|-------|-------------|------------|\n| L0 | All dependencies mocked | 100% |\n| L1 | Core service real, databases mocked | \u003C=50% |\n| L2 | Internal services real, external deps mocked | \u003C=30% |\n| L3 | All services real (sandbox\u002Ftest accounts) | 0% |\n\n## Workflow\n\nExecute phases sequentially. Each phase produces required artifacts for the next.\n\n```\nPhase 0: Environment Awareness\n  v\nPhase 1: Test Design (with anti-pattern scan)\n  v\nPhase 2: Execution & Evaluation\n  v\nPhase 3: Feedback & Fix Loop (if gates fail)\n  v\nPhase 4: Validation & Output\n```\n\n---\n\n## Safety Requirements\n\nThis skill starts services, runs migrations, and makes network calls. Before execution:\n\n1. **Run in isolation** -- use a test\u002Fsandbox environment, never production systems\n2. **Use test credentials only** -- test accounts, test API keys, environment-variable tokens; never supply production secrets\n3. **Phase 0 first** -- review the Environment Report before allowing execution phases (Phase 2+) to understand what will be accessed\n4. **Scoped side effects** -- all service starts, DB migrations, test data seeding, and cleanup are limited to the test environment\n5. **User control** -- the user can downgrade realism level (e.g., \"快速验证\" for L0) to reduce scope at any time\n\n---\n\n## Phase 0: Environment Awareness\n\nGather project context and determine feasibility before designing tests.\n\n### 0.1 Project Analysis\n\nIdentify:\n- **Language & Framework**: from config files (package.json, pyproject.toml, go.mod, etc.)\n- **Project type**: monorepo \u002F microservice \u002F full-stack \u002F library \u002F CLI tool\n- **Monorepo scope** (if applicable): identify which packages\u002Fservices are affected by the current change\n- **Test runner**: detect existing test framework (pytest, vitest, jest, go test, etc.)\n- **Coverage tool**: detect coverage support (pytest-cov, vitest --coverage, nyc, etc.)\n- **Build\u002Fstart commands**: from scripts, Docker configs, Makefiles\n\n### 0.2 Dependency Mapping\n\nFor each dependency service, classify:\n- **Controllable** (self-hosted, has test env) -> must run real at L2+\n- **Uncontrollable** (third-party, paid, no sandbox) -> acceptable to mock\n\n### 0.3 Realism Level Decision\n\n1. Check user intent signals -> override default if found\n2. Check test target type -> pure functions auto-downgrade to L0\n3. Assess local environment feasibility -> downgrade if services can't start\n4. Record decision with rationale in the environment report\n\n### 0.4 Environment Feasibility Check\n\nVerify:\n- Required tools installed (runtime, package manager, Docker if needed)\n- Dependency services available (databases, caches, message queues)\n- Target service can start locally\n- **Environment consistency**: Docker\u002Fconfig matches production; environment variables and config files are complete; dependency service versions align with deployment target\n\nOutput: **Environment Report** -- language, framework, test runner, realism level, service availability, any blockers, consistency gaps.\n\n---\n\n## Phase 1: Test Design\n\nDesign test scenarios systematically using the test taxonomy. **Do NOT write test code before completing analysis.**\n\n### 1.1 Pre-Analysis (Anti Leap-to-Code)\n\nBefore writing any test code, complete:\n- **Code structure analysis**: control flow, function signatures, module dependencies\n- **Dependency analysis**: external services, databases, API contracts involved\n- **Constraint analysis**: business rules, data invariants, input\u002Foutput contracts\n\n>  If test code references modules\u002Fimports not in the actual codebase -> hallucinated dependency. Remove and use actual project references.\n\n### 1.2 Scenario Identification\n\nMap each requirement to test scenarios:\n- Functional scenarios (one per acceptance criterion minimum)\n- Integration scenarios (cross-module, data flow, API contract)\n- Error\u002Fexception scenarios (all error handling branches)\n- **End-to-end business flows** (complete user journeys that traverse multiple steps\u002Fservices -- e.g., \"register -> verify email -> login -> place order -> pay -> receive confirmation\"; \"admin creates user -> assigns role -> user logs in with correct permissions\"). Each identified critical business flow MUST have at least one E2E test validated through external calls.\n\n**Anti-pattern check**: If >80% of scenarios are happy path -> **Happy Path Obsession detected**. Add error, boundary, and exception scenarios until >=30% target error scenarios.\n\n### 1.3 Apply Test Taxonomy\n\nFor each scenario, apply the appropriate taxonomy category. Load detailed guidance from `references\u002Ftest-taxonomy.md` when needed.\n\n| Category | Purpose | Example |\n|----------|---------|---------|\n| **MFT** (Minimum Functionality) | Verify each decision branch\u002Fleaf node works | Each code path returns correct result |\n| **INV** (Invariance) | Same logical request -> same result, different phrasings | \"show data\" = \"display info\" = \"list records\" |\n| **DIR** (Directional Expectation) | Vary one input -> predict output direction | Larger input -> larger output (monotonic) |\n\n**Coverage rule**: Each of the 3 categories MUST have >=1 test. Taxonomy coverage = 100% is a **hard gate**.\n\n### 1.4 Boundary Value Coverage\n\nFor every input parameter, identify and cover:\n- **Numeric**: min-1, min, min+1, typical, max-1, max, max+1\n- **String\u002FCollection**: empty, single item, typical, max, exceeds max, special chars, Unicode\n- **Optional**: not provided (default), explicit null\u002Fundefined, explicit empty\n\n### 1.5 Real vs Mock Classification\n\nClassify each scenario based on realism level:\n- L2+: Internal service interactions -> **must run real**\n- Any level: Uncontrollable external deps -> **acceptable to mock** (use realistic stubs)\n- Track: test realism ratio = real tests \u002F total tests >= 70% (hard gate at L2)\n\n### 1.6 Visible\u002FHidden Test Separation\n\nAfter designing all scenarios:\n- Select **30-40%** as **hidden tests** (prioritize edge cases, adversarial inputs, error scenarios)\n- Hidden tests are NOT exposed during fix loop -- reserved for Phase 4 validation\n- Record the split in the test plan\n\n### 1.7 Anti-Pattern Scan\n\nRun the pre-execution checklist. Load detailed guidance from `references\u002Fanti-patterns.md` when needed.\n\n| Anti-Pattern | Check | Action |\n|-------------|-------|--------|\n| Happy Path Obsession | >80% scenarios are normal flow | Add error\u002Fboundary tests |\n| Weak Assertions | `assert(result != null)`, `assert(status == 200)` without body | Replace with specific value checks |\n| Leap-to-Code | Test code written before structure analysis | Redo analysis first |\n| Hallucinated Dependencies | References non-existent modules\u002Fimports | Replace with actual references |\n| Missing Traceability | Generic test names (`test_1`, `test_func`) | Rename to describe specific behavior |\n\n**Rule**: Each test name MUST describe the specific behavior being tested (e.g., `test_submit_empty_form_returns_422`). Each test MUST link to the requirement it validates.\n\n**Fix all detected anti-patterns before proceeding to Phase 2.**\n\n### Phase 1 Output\n\n- Test plan with all scenarios (tagged: MFT\u002FINV\u002FDIR, real\u002Fmock, visible\u002Fhidden)\n- Boundary value coverage matrix\n- Anti-pattern scan results (all clear)\n\n---\n\n## Phase 2: Execution & Evaluation\n\n### 2.1 Environment Preparation\n\nStart services in dependency order with health checks:\n```\nfor each service in dependency_order:\n    start service\n    wait_for_health_check (port\u002Fping\u002Freadiness endpoint)\n    if health_check fails:\n        report blocker, downgrade realism level\n```\n\nPrepare test data using project's existing seed\u002Fmigration mechanisms when available.\n\n**System boot validation** -- before running any tests, verify the system itself is deliverable:\n- The target service starts successfully from a clean state (no cached artifacts)\n- All health\u002Freadiness endpoints return healthy\n- Startup logs contain no ERROR-level entries (WARNs are logged for review)\n- Required configuration and environment variables are complete\n- If any boot validation fails -> this is a delivery blocker, report immediately\n\n### 2.2 Test Execution\n\nRun tests with coverage enabled. **The test suite MUST include an E2E layer validated through external calls** (HTTP requests to running services, CLI invocations, or browser interactions -- not internal function imports). Load execution templates from `references\u002Freal-e2e-templates.md` when designing this layer.\n\n- Detect and use the project's native test runner and coverage tool\n- Execute all visible tests (hidden tests reserved)\n- **E2E layer**: exercise all identified critical business flows through external interfaces. If the project exposes an HTTP API, at minimum send real HTTP requests to each endpoint. If CLI, invoke real commands. If UI, drive real browser interactions.\n- Capture: pass\u002Ffail per test, assertion output, error messages, coverage data\n\n### 2.3 Metrics Collection\n\nCompute all 4 layers of metrics. Load detailed definitions from `references\u002Fmetrics.md` when needed.\n\n**Design Quality** (computed after test design, before execution):\n| Metric | Formula | Threshold |\n|--------|---------|-----------|\n| Scenario Coverage | covered requirements \u002F total requirements | MUST = 100% |\n| Taxonomy Coverage | categories with >=1 test \u002F 3 | MUST = 100% |\n| Boundary Value Coverage | covered boundary points \u002F total identified | SHOULD >= 90% |\n| Data Feature Coverage | covered data dimensions \u002F total identified | SHOULD >= 85% |\n\n**Execution Quality** (computed after test run):\n| Metric | Formula | Threshold |\n|--------|---------|-----------|\n| Pass Rate | passed tests \u002F total tests | SHOULD >= 95% |\n| Code Coverage | statements covered \u002F total statements | SHOULD >= 80% |\n| Assertion Density | total assertions \u002F total tests | SHOULD >= 2.0 |\n| Weak Assertion Ratio | weak assertions \u002F total assertions | SHOULD \u003C= 10% |\n| Test Realism Ratio | real tests \u002F total tests | MUST >= 70% |\n\n**Delivery Quality** (computed from test results):\n| Metric | Formula | Threshold |\n|--------|---------|-----------|\n| Expectation Match Rate | fully matching tests \u002F total tests (core: MUST 100%) | Core: MUST=100%, Overall: SHOULD>=95% |\n| Boundary Handling Rate | passing boundary tests \u002F total boundary tests | SHOULD >= 90% |\n| Regression Safety | still-passing tests \u002F previously-passing tests | MUST = 100% |\n| Business Flow Coverage | E2E-verified business flows \u002F total identified business flows | MUST = 100% |\n\n**Iteration Efficiency** (computed during fix loop):\n| Metric | Formula | Threshold |\n|--------|---------|-----------|\n| Fix Convergence Rate | newly passing \u002F previous failures | \u003C20% for 2 rounds -> STOP |\n| Fix Introduction Rate | newly failing \u002F total fix attempts | >30% -> STOP |\n\n---\n\n## Phase 3: Feedback & Fix Loop\n\nTriggered when **hard gate metrics** are not met.\n\n### 3.1 Generate Feedback Report\n\nStructure the report as JSON. Load schema from `references\u002Ffeedback-schema.md` when needed.\n\nKey sections:\n- **round**: current iteration number\n- **project_context**: language, framework, test runner, realism level\n- **metrics**: all 4 layers with pass\u002Ffail per metric\n- **gate_result**: `\"pass\"` | `\"fix_and_retry\"` | `\"stop_and_report\"`\n- **failures_grouped**: cluster by root cause, each with affected tests + fix direction\n- **fix_history**: timeline of each round's metrics before\u002Fafter, fix description, newly passing\u002Ffailing\n- **hidden_tests**: total count, run status, results (null during fix loop, populated in Phase 4)\n- **anti_patterns_detected**: names of anti-patterns found in current test suite\n- **next_action**: what the Agent should do next\n\n### 3.2 Fix Prioritization\n\nAddress the **largest failure cluster first** (most affected tests) -- highest probability of improving overall pass rate.\n\n### 3.3 Convergence Control -- Triple Exit Conditions\n\n| Condition | Threshold | Action |\n|-----------|-----------|--------|\n| Max iterations | 5 rounds | Stop, report current state |\n| No convergence | \u003C20% convergence rate for 2 consecutive rounds | Stop, suggest fundamental issue |\n| Regression | >30% fix introduction rate in any round | Stop, suggest wrong fix approach |\n\n### 3.4 Fix Loop Cycle\n\n```\nwhile round \u003C= 5 AND not converged_stop AND not regression_stop:\n    read feedback report -> identify largest failure cluster\n    apply targeted fix to code\u002Ftests\n    re-run full test suite (or failed-only if convergence is high)\n    compute new metrics\n    generate new feedback report\n    check exit conditions\n    record iteration in fix history\n```\n\n### Phase 3 Output\n\n- Fix history timeline (round, metrics before\u002Fafter, fix description, newly passing\u002Ffailing)\n- Final feedback report with gate_result\n\n---\n\n## Phase 4: Validation & Output\n\n### 4.1 Hidden Test Validation\n\nRun ALL hidden tests (not exposed during fix loop):\n- If hidden tests pass -> validates that fixes are genuine, not overfitted\n- If hidden tests fail -> report failures, do NOT re-enter fix loop\n\n### 4.2 Quality Report\n\nGenerate final quality report:\n- **Verdict**: `\"PASS\"` (all hard gates met) or `\"FAIL\"` (hard gates not met) with specific reasons\n- All 4 layers of metrics with pass\u002Ffail status\n- Fix history timeline\n- Hidden test validation results\n- Anti-pattern scan summary\n- Recommendations for improvement\n\n### 4.3 Reusable Test Scripts\n\nOutput test scripts that can run independently in CI\u002FCD:\n- Follow project's native test format and directory conventions\n- Include run instructions: prerequisites, service startup, how to run, expected output\n- Include environment documentation: services needed, config required, ports\n\n---\n\n## Quality Gate Quick Reference\n\n### Hard Gates (MUST pass -- blocks delivery)\n\n| Metric | Threshold |\n|--------|-----------|\n| Scenario Coverage | = 100% |\n| Taxonomy Coverage | = 100% |\n| Test Realism Ratio | >= 70% |\n| Expectation Match (core) | = 100% |\n| Regression Safety | = 100% |\n| Business Flow Coverage | = 100% |\n\n### Soft Targets (SHOULD pass -- reported, does not block unless configured)\n\n| Metric | Threshold |\n|--------|-----------|\n| Boundary Value Coverage | >= 90% |\n| Data Feature Coverage | >= 85% |\n| Pass Rate | >= 95% |\n| Code Coverage | >= 80% |\n| Assertion Density | >= 2.0 |\n| Weak Assertion Ratio | \u003C= 10% |\n| Boundary Handling Rate | >= 90% |\n\n---\n\n## References\n\nLoad these files as needed during the workflow:\n\n- **`references\u002Fmetrics.md`** -- Complete definitions for all 14 metrics: calculation formulas, threshold rationale, and what it means when a metric is not met. Load when computing or interpreting metrics.\n\n- **`references\u002Ftest-taxonomy.md`** -- Detailed guidance for MFT\u002FINV\u002FDIR test categories with pseudocode examples, plus systematic boundary value analysis methods. Load during Phase 1 test design.\n\n- **`references\u002Ffeedback-schema.md`** -- Full JSON Schema for feedback reports with a populated example. Load when generating feedback reports in Phase 3.\n\n- **`references\u002Fanti-patterns.md`** -- Detailed detection methods and fix strategies for all 5 anti-patterns: Happy Path Obsession, Weak Assertions, Leap-to-Code, Hallucinated Dependencies, Missing Traceability. Load during Phase 1 anti-pattern scan or Phase 3 feedback.\n\n- **`references\u002Freal-e2e-templates.md`** -- Environment preparation scripts and real E2E test templates for HTTP API, CLI tools, and Browser automation. Load during Phase 2 environment preparation and test execution.\n",{"name":5,"metadata":24,"description":7},{"requires":25,"capabilities":26,"safety_isolation":27,"safety_credentials":28,"safety_side_effects":29,"safety_recommendation":30},"docker (optional), npm\u002Fpip\u002Fmvn\u002Fgo (auto-detected), database client (optional)","read_project_files, run_tests, start_stop_services, network_access","Always run in a test\u002Fsandbox environment. Never use production credentials or production data.","Uses only test accounts, test API keys, and environment-variable-sourced tokens. Never prompts for production secrets.","Starts\u002Fstops services, runs DB migrations, seeds test data, deletes test artifacts. All scoped to test environment.","Run Phase 0 (environment analysis) first to review what will be accessed before proceeding to execution phases.","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fp\u002Fpost-dev-verification",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill post-dev-verification",{"tool":46,"command":47},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill post-dev-verification",{"tool":49,"command":50},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill post-dev-verification","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fpost-dev-verification\u002FSKILL.md",true,[],[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]