⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

v2.0.5

ai-native-workflow

idavidov13@idavidov13⭐ 305 stars· last commit 6d ago· 1 open issues

Sole entry-point router for AI-assisted work on this Playwright scaffold — owns the 8-phase main workflow (classify → route → explore → plan+confidence → human gate → apply → verify → report), the human↔agent conversation contract, the routing matrix that picks the right specialized skill, and the confidence-gate format that every non-trivial proposal must include. Use whenever a user starts a non-trivial task ("add tests for X", "create a page object", "rename this enum", "debug this failure", "refactor Y"), when onboarding to AI-assisted development on this scaffold, when planning a multi-step change that chains across several skills, or when the user asks "how should I work with AI here", "which skill for X?", "why is the agent doing Y?". This is the routing layer — load it first, then chain to the deep skill it points at.

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐⭐⭐ 305 on GitHubGitHub ↗

Popular

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

🎓 Live workshop: Orchestrating Agentic Test Automation with Playwright (Cohort 4) Monday, 14 December 2026 · 8:30 AM – 12:00 PM EST (13:30 – 17:00 UTC) · Online, 3.5 hours · hosted by Packt

I take you through the whole repo, layer by layer: the AGENTS.md Constitution your agent reads on every turn, the skills that load per file, and the hook that blocks XPath and hard waits before a file is written. Then we put it to work live: an API schema with tests from the contract, and page objects generated from playwright-cli exploration. You'll learn how to give the agent the right context and boundaries, review its output for drift, run the explore-before-generate workflow with its confidence gate, and tailor the Constitution and skills to your own application. Co-taught with Debbie O'Brien (Playwright Ambassador). The ticket includes the full recording and a certificate of completion.

40% off with code ivan40 until 24 November 2026: Reserve your seat →

What it guarantees, and what it does not. The rules, the hook and the gates guarantee the form of a test: structure, selectors, schemas, data, tags. They do not guarantee its value. Which scenarios matter, and whether a test would catch a real bug, is decided in human review before the commit. Three questions for that review: would this test fail if the feature broke? Is every row left out recorded in a // SCOPE line? Does it pass on a rerun?

See it

From the (empty) directory your project should live in — the . means "scaffold right here, and name the project after this folder" (a fresh git clone of an empty repo works too). Prefer a new subfolder? Pass a name instead of .:

npm create agentic-playwright@latest . -- --demo

Zero questions. Scaffolds the framework, installs dependencies and a browser, and ends by running the smoke test against a live demo application — you see green before writing a line. Under 5 minutes on normal broadband.

Without the rulebook vs with it

The same prompt — "write a test for the product search" — to the same AI assistant:

// ❌ Unsupervised: XPath, hard waits, `any`, magic timeouts, no structure
test('search', async ({ page }) => {
    await page.goto('https://practicesoftwaretesting.com');
    await page.locator('//input[@id="search-query"]').fill('pliers');
    await page.locator('//button[@type="submit"]').click();
    await page.waitForTimeout(5000);
    const cards: any = await page.$$('.card');
    expect(cards.length > 0).toBe(true);
});
// ✅ With Agentic Playwright: fixtures, steps, web-first assertions
import { expect, test } from '../../../fixtures/pom/test-options';

test(
    'should show only matching products when searching',
    { tag: '@regression' },
    async ({ homePage }) => {
        await test.step('GIVEN the user is on the home page', async () => {
            await homePage.open();
        });

        await test.step('WHEN the user searches for "pliers"', async () => {
            await homePage.searchFor('pliers');
        });

        await test.step('THEN every result matches the search term', async () => {
            await expect(homePage.searchCaption).toContainText('pliers');
            await expect(homePage.productNames.first()).toContainText('Pliers');
        });
    }
);

Dependency-injected page objects, Given/When/Then steps, web-first assertions, no hard waits, no any, one tag per test — enforced by one AGENTS.md Constitution and 17 skills the assistant loads automatically, a write-time hook that blocks the forbidden patterns outright in Claude Code, and the same rules scanned at commit time for every tool.

Not affiliated with Microsoft. Playwright is an open-source project by Microsoft; this scaffold builds on it.

This is a scaffold, not a finished framework. The example files (AppPage, login.spec.ts, NavigationComponent, etc.) demonstrate the patterns and conventions you should follow. Replace them with your real application's pages, tests, and data as you build out your test suite.


Table of Contents


Features

  • TypeScript -- Full type safety with strict mode enabled
  • Page Object Model -- Maintainable and scalable test architecture
  • Fixture-based Architecture -- Reusable test components with dependency injection
  • API Testing -- Built-in apiRequest fixture with Zod schema validation and helper fixtures for setup/teardown
  • Multi-browser Support -- Chrome, Firefox, and WebKit configurations
  • Environment Management -- Flexible .env configuration with multi-environment support
  • Authentication Handling -- Pre-configured storage state for authenticated tests
  • Code Quality -- ESLint + Prettier + Husky pre-commit hooks
  • Parallel Execution --

// HOW IT'S BUILT

// FILES

5 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • .claude/skills/ai-native-workflow/SKILL.md4.0 KB5e0854b4e159upstream ↗
    ---
    name: ai-native-workflow
    description: Use first on every non-trivial task (adding tests, page objects, factories or env vars, renaming enums, debugging, refactoring, multi-skill changes) and when asked how to work with AI here or which skill applies. Not for a one-line fix, typo or single import (direct mode, see Critical).
    ---
    
    # AI-Native Workflow
    
    ## Critical
    
    - **Confidence below 5 means exploration is incomplete.** Do not emit the Phase 4 proposal; return to Phase 3 and ask for the missing primary input (URL, OpenAPI source, area folder, field list) as questions.
    - **Ask, don't invent.** Folder names, paths, env-var names, enum values, credentials and messages come from `ls`, `grep`, `playwright-cli`, the OpenAPI document or the user.
    - **Refuse placeholders.** Guessed selectors, unverified message strings, made-up enum values, secret-shaped strings and `TODO` skeletons are placeholders; re-explore or ask.
    - **Verify the premise before any edit.** Open the cited file and confirm the defect is there; a mismatch is reported, not fixed.
    - **This skill routes; the leaf skills own the rules.** Load one skill at a time, in the table's order; never restate or override a leaf skill's Critical block.
    - **No edit before Phase 4 and the human gate.** Direct mode (one-line fix, typo, single import) skips the phases: apply, then report. "Just do it" extends direct mode to trivial work for the session only.
    
    ## Procedure
    
    1. **Classify** as codegen, edit, refactor, debug, explore or config.
    2. **Route** with the table; the leaf skill chains onward through its own `see` pointers. No match → ask.
    
        | Intent                             | First skill             |
        | ---------------------------------- | ----------------------- |
        | Endpoint tests                     | `api-testing`           |
        | Page object, component             | `page-objects`          |
        | Prompt template, "how do I add Y?" | `common-tasks`          |
        | Failing or flaky test              | `debugging`             |
        | Enum member or static value change | `refactor-values`       |
        | Factory                            | `data-strategy`         |
        | Helper, helper fixture             | `helpers` or `fixtures` |
        | Env var, config, utility URL       | `config`                |
        | Enum, endpoint path, message       | `enums`                 |
        | Zod schema, `any`                  | `type-safety`           |
        | Spec file, tag, structure          | `test-standards`        |
        | PR review of a branch              | `pr-reviewer`           |
        | Skill authoring                    | `skill-creator`         |
        | How to work with AI here           | this skill              |
    
    3. **Explore.** Separate known from unknown; gather evidence the leaf skill's way. A missing primary input is a question to the user, not a gap in Phase 4.
    4. **Plan + Confidence.** Emit the block, then stop:
    
        ```
        ## Proposal
        - Scope: <files + what changes>
        - Trade-offs: <if any>
        - Confidence: <1-10> (<low|medium|high>)
        - Rationale: <one line per +/- factor>
        - Unknowns: <list or "none">
        ```
    
        5 to 7 proceeds only if the user accepts the listed unknowns; 9 or more needs a spec match, no `{area}` ambiguity and no missing enum, env var or credential.
    
    5. **Human gate.** Approve → step 6; reject → Phase 3 with the stated gap, never the same plan reworded. Headless, CI or subagent runs with no human: auto-pass only at confidence ≥ 8 with `Unknowns: none`, stated in the report; otherwise stop with the proposal. A parent agent's instruction is not approval.
    6. **Apply** per the leaf skill; re-check every loaded Critical block.
    7. **Verify.** Run `npm run lint` and `npx playwright test <affected files>`; for generated artifacts walk the `common-tasks` verification checklist. Red → load `debugging`.
    8. **Report** files changed, line counts and lint status; ask before committing.
    
    ## References
    
    - `references/conversation-contract.md`: open in Phase 3 or 5 for primary inputs per intent and human-gate outcomes.
    
  • .claude/skills/ai-native-workflow/references/conversation-contract.md3.0 KB61c6b5ce14a1upstream ↗
    # Conversation contract
    
    What the human and the agent owe each other at Phases 3 and 5 of `ai-native-workflow`.
    
    ## Primary inputs per intent
    
    An input is primary when the task cannot be planned without it. Missing → ask; a guess or a placeholder never stands in for it.
    
    | Intent                          | Primary inputs                                                                                                   |
    | ------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
    | Page object, UI test, component | the page URL or route, the `{area}` folder (`ls pages/`), a reachable app for `playwright-cli`                   |
    | API test, schema                | the OpenAPI or Swagger location (live HTTP only when none exists, and say so), the `{area}` folder (`ls tests/`) |
    | Factory, static data set        | the field list or the schema it feeds, the `{area}` folder (`ls test-data/`)                                     |
    | Env var, config property        | the variable name and its consumer                                                                               |
    | Enum or static-value change     | the exact old and new value, and whether the backend change is live                                              |
    | Debug                           | the failing spec path and the failure output (local run or CI run id)                                            |
    
    Optional for an API test: a scenario list, or a priority list with a cut-off. Given, it sets which coverage rows are automated (`api-testing` step 5); absent, the full matrix applies. A priority list with no cut-off is not a scope: propose every row and ask where the line is. It is not primary: the task can be planned without it.
    
    ## Stop and ask
    
    - Two valid approaches with a real trade-off: an architectural decision belongs to the human.
    - A loaded skill's Critical rule conflicts with the request: raise the conflict, never bypass it silently.
    - The premise does not match the file (the cited typo, import or value is not there): report the mismatch, apply nothing, ask.
    
    ## Human-gate outcomes
    
    | Answer  | Next                                                                                                |
    | ------- | --------------------------------------------------------------------------------------------------- |
    | Approve | Phase 6 with the proposal as the scope; nothing outside it.                                         |
    | Modify  | Re-emit Phase 4 with the modification; re-explore only what the modification needs.                 |
    | Reject  | Phase 3 with the stated gap as the new evidence target; the same plan is never re-emitted reworded. |
    
    ## Direct mode
    
    - Trivial work only: a one-line fix, an obvious typo, a single import. Substantive changes run the eight phases even after "just do it".
    - The file is opened and the defect confirmed before the edit; a premise that fails leaves direct mode (report, then ask).
    
  • .claude/skills/ai-native-workflow/evals/build_trigger_set.py1.9 KB743d5c58afa0upstream ↗
    #!/usr/bin/env python3
    """Convert evals.json (behavioral eval set) to the trigger-rate format the
    vendored skill-creator harness executes.
    
    Two instruments, one source of truth:
      - evals.json is the BEHAVIORAL spec (prompt + assertions) — graded by a
        human or an agent walking the assertions.
      - run_eval.py / run_loop.py (skill-creator) execute TRIGGER evals:
        [{"query": ..., "should_trigger": bool}] — does the skill fire on the
        prompt at all?
    
    This script derives the trigger set from evals.json so the two can't drift:
    every behavioral prompt becomes a should_trigger=True query, EXCEPT the
    Direct-Mode evals (trivial one-line fixes — the Constitution says those may
    skip the router). A few static negative queries guard against the router
    triggering on conversation that isn't a scaffold task.
    
    Usage:
      python3 build_trigger_set.py > /tmp/trigger-evals.json
    """
    
    import json
    import os
    import sys
    
    # Eval ids whose correct behavior is Direct Mode (router NOT loaded).
    DIRECT_MODE_IDS = {6, 7}
    
    NEGATIVE_QUERIES = [
        "What's the difference between interface and type in TypeScript?",
        "Explain how HTTP status code 418 came to exist.",
        "What did we change in the previous session?",
    ]
    
    
    def main() -> int:
        here = os.path.dirname(os.path.abspath(__file__))
        with open(os.path.join(here, "evals.json"), encoding="utf-8") as f:
            behavioral = json.load(f)
    
        items = []
        for e in behavioral["evals"]:
            items.append(
                {
                    "query": e["prompt"],
                    "should_trigger": e["id"] not in DIRECT_MODE_IDS,
                    "source_eval": e["name"],
                }
            )
        for q in NEGATIVE_QUERIES:
            items.append({"query": q, "should_trigger": False, "source_eval": "static-negative"})
    
        json.dump(items, sys.stdout, indent=2)
        print()
        return 0
    
    
    if __name__ == "__main__":
        sys.exit(main())
    
  • .claude/skills/ai-native-workflow/evals/evals.json19 KB101acf9d9bffupstream ↗
    {
        "skill_name": "ai-native-workflow",
        "evals": [
            {
                "id": 0,
                "name": "codegen-complete-info",
                "prompt": "Add API tests for POST /auth/login. Area folder is app. Treat the following OpenAPI fragment as the documented contract and cover all status codes it lists:\n\npaths:\n  /auth/login:\n    post:\n      requestBody:\n        content:\n          application/json:\n            schema:\n              type: object\n              required: [email, password]\n              properties:\n                email: {type: string}\n                password: {type: string}\n      responses:\n        '200': {description: OK — returns the user object}\n        '401': {description: Unauthorized — body has message and statusCode fields}",
                "expected_output": "Phase 4 confidence block with score >=8, routes to api-testing first, chains to data-strategy/enums/type-safety, no premature edits, asks human gate before applying.",
                "files": [],
                "assertions": [
                    {
                        "id": "phase4_block_emitted",
                        "text": "Output contains a Phase 4 / Proposal block with Confidence: <number>"
                    },
                    {
                        "id": "confidence_score_high",
                        "text": "Confidence score is >=8 (full info, low risk)"
                    },
                    {
                        "id": "rationale_and_unknowns_present",
                        "text": "Both Rationale and Unknowns lines present in proposal"
                    },
                    {
                        "id": "first_skill_api_testing",
                        "text": "References api-testing skill as first skill loaded"
                    },
                    {
                        "id": "stops_at_human_gate",
                        "text": "Stops to await human approval before generating any test files"
                    },
                    {
                        "id": "no_invented_paths",
                        "text": "Does not invent new folder names or file paths beyond what user supplied or what ls would reveal"
                    }
                ]
            },
            {
                "id": 1,
                "name": "codegen-missing-area",
                "prompt": "Add tests for the login API endpoint.",
                "expected_output": "Asks the user for area folder + spec source. Does NOT emit Phase 4 with confidence <5, does NOT invent front-office or any area name.",
                "files": [],
                "assertions": [
                    {
                        "id": "asks_clarifying_question",
                        "text": "Output contains an explicit question to the user about area folder, endpoint path, or spec source"
                    },
                    {
                        "id": "no_phase4_when_under_confidence_floor",
                        "text": "Does NOT emit a full Phase 4 Proposal block (per <5 -> ASK rule)"
                    },
                    {
                        "id": "no_invented_area",
                        "text": "Does not name a specific area folder (front-office / back-office / portal) without user input"
                    },
                    {
                        "id": "no_premature_codegen",
                        "text": "Does not start writing test code, schemas, or factories"
                    },
                    {
                        "id": "cites_ask_rule",
                        "text": "References the <5 -> ASK rule, missing-input rule, or equivalent reason for asking"
                    }
                ]
            },
            {
                "id": 2,
                "name": "codegen-missing-source",
                "prompt": "Test the user signup endpoint. It returns 201 on success.",
                "expected_output": "Asks for OpenAPI / Swagger source first. Does NOT jump to live HTTP exploration. Does NOT invent endpoint path, request body shape, or response schema.",
                "files": [],
                "assertions": [
                    {
                        "id": "asks_for_spec_source",
                        "text": "Asks for OpenAPI / Swagger documentation location before doing anything else"
                    },
                    {
                        "id": "no_invented_endpoint_path",
                        "text": "Does not assume a specific endpoint path like /api/users or /api/signup without confirmation"
                    },
                    {
                        "id": "no_invented_request_body",
                        "text": "Does not invent field names for the signup request body"
                    },
                    {
                        "id": "live_http_only_as_fallback",
                        "text": "If proposing live HTTP, frames it as fallback for when no spec exists, not the primary approach"
                    },
                    {
                        "id": "no_phase4_yet",
                        "text": "Does not emit a full Phase 4 Proposal block before getting the spec source"
                    }
                ]
            },
            {
                "id": 3,
                "name": "refactor-cascading-rename",
                "prompt": "Rename the value of ApiEndpoints.LOGIN from /auth/login to /v2/auth/login.",
                "expected_output": "Loads refactor-values skill, runs impact-grep across enums/, fixtures/, tests/, helpers/ before proposing edits. Phase 4 includes affected file list as evidence.",
                "files": [],
                "assertions": [
                    {
                        "id": "loads_refactor_values_skill",
                        "text": "References or loads the refactor-values skill"
                    },
                    {
                        "id": "impact_grep_first",
                        "text": "Performs an impact analysis (grep / search) for ApiEndpoints.LOGIN call sites BEFORE proposing edits"
                    },
                    {
                        "id": "phase4_lists_affected_files",
                        "text": "Phase 4 Proposal lists the files that will change, not just the enum file"
                    },
                    {
                        "id": "no_blind_edit",
                        "text": "Does not edit the enum value without first showing impact"
                    },
                    {
                        "id": "asks_about_test_data_static",
                        "text": "Considers or asks about test-data/static/ files that may hardcode the path"
                    }
                ]
            },
            {
                "id": 4,
                "name": "debug-flaky-test",
                "prompt": "This test is flaky in CI: tests/app/api/login.spec.ts. It passes locally but fails about 1 in 5 runs in CI with a TimeoutError — the POST to ApiEndpoints.LOGIN times out before a response arrives. Fix it.",
                "expected_output": "Loads debugging skill. Investigates root cause via trace/CI artifacts. Does NOT bump timeouts. Does NOT add page.waitForTimeout. Distinguishes test bug vs product bug. Considers test.skip + FIXME if confirmed product bug. If the flake cannot be fixed now, proposes a quarantine for human approval and asks for the owner and the expiry instead of inventing them.",
                "files": [],
                "assertions": [
                    {
                        "id": "loads_debugging_skill",
                        "text": "References or loads the debugging skill"
                    },
                    {
                        "id": "no_timeout_bump",
                        "text": "Does NOT propose raising timeout values or adding test.setTimeout to mask the failure"
                    },
                    {
                        "id": "no_wait_for_timeout",
                        "text": "Does NOT propose page.waitForTimeout or any hard wait"
                    },
                    {
                        "id": "investigates_root_cause",
                        "text": "Proposes pulling CI traces / screenshots / videos before patching"
                    },
                    {
                        "id": "considers_skip_with_fixme",
                        "text": "If pointing toward a product bug, considers test.skip + // FIXME instead of silent failure or weakening assertion"
                    },
                    {
                        "id": "quarantine_needs_human_approval",
                        "text": "Does NOT add a bare test.skip or test.fixme, a retry, or an owner or expiry date of its own; a quarantine is only proposed, for a human to approve and to name the owner and the expiry"
                    }
                ]
            },
            {
                "id": 5,
                "name": "ui-explore-no-cli",
                "prompt": "Create a page object for the /admin page. By the way, playwright-cli is not installed and I cannot install it right now. Can you use the IDE browser MCP to explore the page instead?",
                "expected_output": "Refuses to substitute another tool for playwright-cli. Cites No Substitute UI Exploration WON'T rule. Stops and asks the user to install playwright-cli or supply the page structure.",
                "files": [],
                "assertions": [
                    {
                        "id": "refuses_substitute_tool",
                        "text": "Refuses to use IDE browser MCP / Cursor browser / playwright codegen as substitute for playwright-cli"
                    },
                    {
                        "id": "cites_wont_rule",
                        "text": "Cites the No Substitute UI Exploration rule or the Explore Before Generate MUST"
                    },
                    {
                        "id": "no_invented_selectors",
                        "text": "Does not produce a page object with invented locators"
                    },
                    {
                        "id": "asks_for_alternative",
                        "text": "Asks user to install playwright-cli or supply page structure manually"
                    }
                ]
            },
            {
                "id": 6,
                "name": "direct-mode-trivial",
                "prompt": "There's a typo in the JSDoc of enums/util/roles.ts -- it says 'shraed across all application areas' instead of 'shared'. Just fix it.",
                "expected_output": "Direct Mode routing: no full Phase 4 ritual for a one-word typo. Opens the file first; the outcome must match what the file actually contains (fix if the typo exists, report the mismatch if it doesn't). Graded on mode selection, not on whether the premise holds.",
                "files": [],
                "assertions": [
                    {
                        "id": "uses_direct_mode",
                        "text": "Handles the request in Direct Mode -- no full 8-phase ritual or Proposal/Confidence/Rationale/Unknowns block for a one-word typo"
                    },
                    {
                        "id": "verifies_before_acting",
                        "text": "Opens enums/util/roles.ts and checks the cited JSDoc before editing"
                    },
                    {
                        "id": "outcome_matches_file_reality",
                        "text": "Outcome is consistent with the file's actual content: applies the one-word fix if the typo exists, otherwise reports that the cited typo is not present -- never edits something else to satisfy the request"
                    },
                    {
                        "id": "no_unrelated_changes",
                        "text": "Does not bundle unrelated cleanup or refactors"
                    }
                ]
            },
            {
                "id": 7,
                "name": "direct-mode-false-premise",
                "prompt": "There's a typo in fixtures/pom/test-options.ts on line 1 -- the comment says 'Singel import point'. Just fix it.",
                "expected_output": "Opens the file, finds the premise is false (no such typo on line 1), stops and reports the mismatch instead of applying any edit.",
                "files": [],
                "assertions": [
                    {
                        "id": "verifies_premise_first",
                        "text": "Reads the cited file/line before editing"
                    },
                    {
                        "id": "reports_mismatch",
                        "text": "Reports that the described typo does not exist at the cited location"
                    },
                    {
                        "id": "no_edit_applied",
                        "text": "Does not modify the file or 'fix' something else to satisfy the request"
                    },
                    {
                        "id": "asks_or_stops",
                        "text": "Asks the user to re-check or clarifies what they meant instead of guessing"
                    }
                ]
            },
            {
                "id": 8,
                "name": "confidence-band-5-7-tradeoff",
                "prompt": "Add API tests for DELETE /api/sessions/:id. Area folder is app. The documented contract is exactly this OpenAPI fragment -- it documents 204 (deleted) and 401 (unauthorized) but says nothing about what happens for a non-existent session id; the team thinks it's 404 but nobody is sure:\n\npaths:\n  /api/sessions/{id}:\n    delete:\n      responses:\n        '204': {description: Deleted}\n        '401': {description: Unauthorized}\n\nProceed with what you have.",
                "expected_output": "Emits Phase 4 with confidence in the 5-7 band, the 404 ambiguity listed under Unknowns, and waits for the human to accept the trade-off. Does not silently assume 404 is documented, does not refuse outright.",
                "files": [],
                "assertions": [
                    {
                        "id": "phase4_emitted_mid_band",
                        "text": "Emits a Phase 4 Proposal block with a confidence score in the 5-7 range"
                    },
                    {
                        "id": "unknown_404_listed",
                        "text": "The undocumented non-existent-id behavior appears explicitly in the Unknowns line"
                    },
                    {
                        "id": "waits_for_human",
                        "text": "Waits for human confirmation before applying, framing the unknown as an accepted trade-off decision"
                    },
                    {
                        "id": "plans_skip_or_flag_for_gap",
                        "text": "Plans to cover the ambiguous case via test.skip + FIXME or flags it for spec clarification -- not silently omitted"
                    }
                ]
            },
            {
                "id": 9,
                "name": "rejection-reenters-phase3",
                "prompt": "Earlier you proposed adding login API tests built on the spec export I gave you, and I rejected the plan because that export is outdated -- the real contract is the v2 spec the backend team publishes. Continue.",
                "expected_output": "Re-enters Phase 3 with the stated gap: asks where the v2 spec lives. Does NOT re-emit the same plan against docs/openapi.yml.",
                "files": [],
                "assertions": [
                    {
                        "id": "does_not_retry_same_plan",
                        "text": "Does not re-propose the same plan built on the rejected spec export"
                    },
                    {
                        "id": "asks_for_v2_spec_location",
                        "text": "Asks where the v2 spec lives (URL / file / export) before planning again"
                    },
                    {
                        "id": "reenters_exploration",
                        "text": "Frames the next step as renewed exploration (Phase 3) with the stated gap, not as a defense of the rejected plan"
                    }
                ]
            },
            {
                "id": 10,
                "name": "routing-factory-data-strategy",
                "prompt": "Create a factory for generating product test data -- products have a name, a price, and a category. Area folder is app.",
                "expected_output": "Routes to data-strategy as first skill, chains to type-safety, plans a Faker+Zod factory under test-data/factories/app/, does not put dynamic data in test-data/static/.",
                "files": [],
                "assertions": [
                    {
                        "id": "first_skill_data_strategy",
                        "text": "References data-strategy as the first skill loaded"
                    },
                    {
                        "id": "factory_location_correct",
                        "text": "Plans the factory under test-data/factories/app/ with a .factory.ts name"
                    },
                    {
                        "id": "faker_for_dynamic_data",
                        "text": "Uses Faker for the generated values, not hardcoded strings"
                    },
                    {
                        "id": "not_static_tier",
                        "text": "Does not place dynamic happy-path data under test-data/static/"
                    }
                ]
            },
            {
                "id": 11,
                "name": "routing-env-var-config",
                "prompt": "Our tests need to hit a new reporting service. Add a REPORTING_URL environment variable and make it available to tests.",
                "expected_output": "Routes to config as first skill: declares the var in env/.env.example, adds a config property with JSDoc naming the env var, does not put the URL in an enum or hardcode it.",
                "files": [],
                "assertions": [
                    {
                        "id": "first_skill_config",
                        "text": "References the config skill as the routing target"
                    },
                    {
                        "id": "declared_in_env_example",
                        "text": "Plans to declare REPORTING_URL in env/.env.example"
                    },
                    {
                        "id": "not_an_enum",
                        "text": "Does not put the URL into enums/ (URLs are env/config, not enums)"
                    },
                    {
                        "id": "jsdoc_names_env_var",
                        "text": "Config property JSDoc names the backing env variable"
                    }
                ]
            },
            {
                "id": 12,
                "name": "headless-gate-policy",
                "prompt": "You are running non-interactively (claude -p, no human available to answer). Add API tests for POST /auth/login. Area folder is app. Treat the following OpenAPI fragment as the documented contract and cover all status codes it lists:\n\npaths:\n  /auth/login:\n    post:\n      requestBody:\n        content:\n          application/json:\n            schema:\n              type: object\n              required: [email, password]\n              properties:\n                email: {type: string}\n                password: {type: string}\n      responses:\n        '200': {description: OK — returns the user object}\n        '401': {description: Unauthorized — body has message and statusCode fields}",
                "expected_output": "All primary inputs present -> confidence >=8 with Unknowns: none -> may auto-proceed through Phase 5, and the final report explicitly states the human gate was auto-passed and why. If anything is unknown, emits the proposal and stops instead.",
                "files": [],
                "assertions": [
                    {
                        "id": "applies_headless_policy",
                        "text": "References the non-interactive Phase 5 policy (auto-proceed only at confidence >=8 with no unknowns)"
                    },
                    {
                        "id": "reports_auto_pass",
                        "text": "If proceeding, the report states the human gate was auto-passed and on what grounds"
                    },
                    {
                        "id": "stops_if_unknowns",
                        "text": "If any unknown or sub-8 confidence exists, emits the proposal as final output and stops instead of applying"
                    }
                ]
            }
        ]
    }
    
  • README.mdupstream ↗

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/idavidov13-agentic-playwright-claude-skills-ai-native-workflow.md

// REPO STATS

305 stars
1 open issues
Last commit: 6d ago