W8Workabilityscope: coreweight: 1fix: manual
W8: npm test script exists (JS/Node projects)
Why this rule exists (Empirical Evidence)
For Node.js projects, the absence of 'scripts.test' in package.json means there is no canonical test entry point. AI agents attempting 'npm test' get 'missing script: test'. Observed: agent-lint shipped without this for its entire history; fixed when explicitly audited.
Anti-pattern (Triggers W8)
# Anti-pattern triggering W8 (npm test script exists (JS/Node projects)) # Rule or repository configuration violates this check without verification.
Compliant pattern (Passes W8)
# Compliant harness passing W8 (npm test script exists (JS/Node projects)) # Concrete, verifiable repository configuration backed by anthropic-265.
Verify locally or online
npm install -g agentlint-ai && agentlint check --check W8