agentleFS
idavidov13idavidov13/agentic-playwright/.agents/skills/config/SKILL.md

config

Skill268 starsChanged 11 days agoMITView on GitHub

Use when adding an environment variable, a config property, an environment file or a utility-service URL, or when a test, fixture or helper needs APP_URL, API_URL, APP_EMAIL, APP_PASSWORD or UTILITY_URL. Not for endpoint paths and routes (see `enums`) or the `!` versus `??` typing of a read (see `type-safety`).

  • Reads credentials

24 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use uninstall and resume.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    uninstall

    Uninstall a community skill that was installed via the hub. Confirms before deleting files, refuses to touch first-party plugin skills, and logs every action. Use when the user wants to fully remove a community skill ("uninstall [skill]", "remove this skill") rather than just disable it.

    Also in 3 projects that use this

  • genomewalkerSkill

    resume

    Resume a thread by loading its ~800-token context capsule

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every env var the scaffold reads is declared in env/.env.example with a safe placeholder (no real domain, token or password).

    line 20
  2. Very specific:

    Only env/.env.example is tracked.

    line 22
  3. Very specific:

    Add the key to env/.env.example under its comment group, then to the local env/.env.<name> file.

    line 28
  4. Very specific:

    Read it where it is used, !

    line 30
  5. Very specific:

    Run with ENVIRONMENT=<name> npx playwright test <file>.

    line 31

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “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

Configuration

Critical

  • URLs, credentials and other environment-driven values come from process.env.*, backed by env/.env.${ENVIRONMENT} (default env/.env.dev), never from a literal in code.

    // CORRECT
    baseUrl: process.env.API_URL,
    // WRONG
    baseUrl: 'https://api.example.com',
  • Endpoint paths, routes and storage-state paths are enums (enums), never config properties or env vars.
  • Every env var the scaffold reads is declared in env/.env.example with a safe placeholder (no real domain, token or password); the one exception is ACCESS_TOKEN, minted at runtime by the auth setup (helpers).
  • A config property exists only for a URL or infrastructure setting worth a documented surface: app values in config/app.ts, utility services in config/util/util.ts, each with a JSDoc line naming its env var; credentials stay env-only.
  • Only env/.env.example is tracked; a real env file is never committed.
  • ENVIRONMENT and CI are shell variables, never written to an env file.

Procedure

  1. Classify the value: URL or infrastructure setting → env var (plus a config property); credential → env var only; path or message → enums; timeout, retries, workers → playwright.config.ts.
  2. Add the key to env/.env.example under its comment group, then to the local env/.env.<name> file.
  3. For a URL or infrastructure setting, add the property to config/app.ts or config/util/util.ts with its JSDoc line.
  4. Read it where it is used, ! or ?? fallback per type-safety.
  5. Run with ENVIRONMENT=<name> npx playwright test <file>; a missing env file loads nothing and leaves every value undefined, so confirm the value before blaming the test.

References

  • None. The live instances are env/.env.example, config/app.ts (appConfig), config/util/util.ts (utilityConfig) and the dotenv block at the top of playwright.config.ts.

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.