agentleFS
idavidov13idavidov13/agentic-playwright/.agents/skills/ai-native-workflow/SKILL.md

ai-native-workflow

Skill268 starsChanged 10 days agoMITView on GitHub

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).

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Confidence below 5 means exploration is incomplete: Do not emit the Phase 4 proposal.

    line 10
  2. Very specific:

    Verify: Run npm run lint and npx playwright test <affected files>.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

    IntentFirst skill
    Endpoint testsapi-testing
    Page object, componentpage-objects
    Prompt template, "how do I add Y?"common-tasks
    Failing or flaky testdebugging
    Enum member or static value changerefactor-values
    Factorydata-strategy
    Helper, helper fixturehelpers or fixtures
    Env var, config, utility URLconfig
    Enum, endpoint path, messageenums
    Zod schema, anytype-safety
    Spec file, tag, structuretest-standards
    PR review of a branchpr-reviewer
    Skill authoringskill-creator
    How to work with AI herethis 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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.