agentleFS
carlokopcarlokop/skills/npm-test/SKILL.md

npm-test

Skill0 starsChanged 53 days agoMITView on GitHub

Draait npm run test, lint en build vanaf repo-root; lost fouten op en herhaalt tot alles groen is; commit bij wijzigingen. Gebruik wanneer de gebruiker vraagt om npm test skill, npm errors te fixen, of test/lint/build te draaien.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Na elke fix: start de hele cyclus opnieuw (niet alleen de gefaalde stap).

    line 43

≈ “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

npm test skill

Valideert de monorepo vanaf repo-root (/home/carlo/Development/docker/CRM). Los elke fout op vóór de volgende stap. Na een fix: hele cyclus opnieuw vanaf stap 1.

Wanneer activeren

  • Gebruiker vraagt om npm test skill, npm errors te fixen, of test/lint/build
  • Na grote wijzigingen vóór PR of commit
  • CI-fouten lokaal reproduceren

Commando's (repo-root)

ScriptDoet
npm run testVitest in node/ + react/
npm run linttypecheck (incl. tests) + token-lint in react/
npm run buildtsc/Vite build in node/ + react/ (alleen src/)

Workflow (verplicht)

Cyclus (herhaal tot groen):
1. npm run test     → fout? fix → terug naar 1
2. npm run lint     → fout? fix → terug naar 1
3. npm run build    → fout? fix → terug naar 1
4. Geen fouten:
   - Wijzigingen? → git add . && git commit -m "fix npm errors"
   - Klaar

Regels

  1. Volgorde: altijd test → lint → build. Niet overslaan.
  2. Bij elke fout: analyseer output, fix root cause (code, types, deps, config). Geen --no-verify, skipped tests of @ts-ignore zonder expliciete gebruikersvraag.
  3. Na elke fix: start de hele cyclus opnieuw (niet alleen de gefaalde stap).
  4. Commit: alleen als er bestanden gewijzigd zijn én alle drie stappen groen zijn. Exact bericht:

    git add .
    git commit -m "fix npm errors"
  5. Geen commit als alles al groen was zonder wijzigingen.
  6. Geen push tenzij de gebruiker dat apart vraagt.

Fout classificeren

TypeActie
TypeScript / lintFix in bron; draai cyclus opnieuw
Test failureFix code of test; geen tests verwijderen
Build failureFix compile/bundle; check tokens in react build
Missing dependencynpm install in node/ of react/; draai cyclus opnieuw
Omgevingsprobleem (Node-versie, ontbrekende env)Rapporteer aan gebruiker; niet negeren

Eindrapport

## npm test skill

| Stap | Resultaat |
|------|-----------|
| test | {ok / gefixt — node N, react M tests} |
| lint | {ok / gefixt} |
| build | {ok / gefixt} |

**Cycli:** {n}
**Commit:** {hash of "geen wijzigingen"}

Gerelateerd

  • .cursor/rules/platform/testing.mdc
  • Root scripts: package.json

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.