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.
In this repository6 other files it gives its agents.
- refactorSkill
- security-auditSkill
- tester-agentSkill
- tester-planSkill
- tester-run-testsSkill
- tester-write-testsSkill
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
- Distinctive: line 43
Na elke fix: start de hele cyclus opnieuw (niet alleen de gefaalde stap).
≈ “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.
Files
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)
| Script | Doet |
npm run test | Vitest in node/ + react/ |
npm run lint | typecheck (incl. tests) + token-lint in react/ |
npm run build | tsc/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"
- KlaarRegels
- Volgorde: altijd test → lint → build. Niet overslaan.
- Bij elke fout: analyseer output, fix root cause (code, types, deps, config). Geen
--no-verify, skipped tests of@ts-ignorezonder expliciete gebruikersvraag. - Na elke fix: start de hele cyclus opnieuw (niet alleen de gefaalde stap).
Commit: alleen als er bestanden gewijzigd zijn én alle drie stappen groen zijn. Exact bericht:
git add . git commit -m "fix npm errors"- Geen commit als alles al groen was zonder wijzigingen.
- Geen push tenzij de gebruiker dat apart vraagt.
Fout classificeren
| Type | Actie |
| TypeScript / lint | Fix in bron; draai cyclus opnieuw |
| Test failure | Fix code of test; geen tests verwijderen |
| Build failure | Fix compile/bundle; check tokens in react build |
| Missing dependency | npm 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
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
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.

