Skip to content
PluginStats

@lushly-dev/afd-testing weekly downloads statistics

By lushly-dev (4 listings) · npm · MCP servers

Testing utilities for Agent-First Development

View on npm Fresh · Dec 5, 2026

@lushly-dev/afd-testing has 6,557 recorded weekly downloads on npm, a decrease of 74.1% over the past 30 days, ranking #1431 of 3,247 tracked listings.

Weekly downloads
6,557
Official API · Dec 5, 2026
7-day growth
-28.0%
-2.6K weekly downloads
30-day growth
-74.1%
-18.8K weekly downloads
90-day growth
-55.6%
-8.2K weekly downloads
Rank
#1431
▼ 154 in 7 days

About @lushly-dev/afd-testing

@lushly-dev/afd-testing

Testing utilities for Agent-First Development.

Installation

npm install @lushly-dev/afd-testing zod --save-dev
# or
pnpm add @lushly-dev/afd-testing zod -D

zod (^4.6.6) is a peer dependency, shared with @lushly-dev/afd-server; an application that already depends on it needs no second install.

Overview

This package provides utilities for testing AFD commands:

  • Validators: Validate command results and definitions
  • Surface Validation: Cross-command semantic quality analysis (similarity, schema overlap, naming, injection detection)
  • Test Helpers: Easy command testing with validation
  • Assertions: Custom assertions for command results
  • Mock Server: In-memory MCP server for testing
  • JTBD Scenario Runner: Jobs-to-be-Done scenario testing with YAML files
  • Fixtures: Pre-seeded test data with inheritance and overrides
  • Step References: Dynamic references between scenario steps
  • Scenario Commands: List, evaluate, coverage, create, and suggest scenarios
  • MCP Agent Integration: Expose commands as MCP tools with agent hints
Subprocess Scenario Execution

ScenarioExecutor can run each step through the installed afd CLI. The server URL and transport are passed to each afd call without changing the developer's saved CLI connection:

import { ScenarioExecutor } from '@lushly-dev/afd-testing';

const executor = new ScenarioExecutor({
  cliPath: '/path/to/afd',
  serverUrl: 'http://localhost:3100/mcp',
  transport: 'http',
});

The wrapper uses the public CLI contract: positional JSON input plus --format json. Malformed CLI output is reported as a scenario parse error.

Surface Validation (Semantic Quality)

Cross-command analysis that detects semantic collisions, naming ambiguities, schema overlaps, and prompt injection risks. Designed for command sets of 50+ where agents struggle to pick the right tool.

Basic Usage
import { validateCommandSurface } from '@lushly-dev/afd-testing';

const result = validateCommandSurface(commands, {
  similarityThreshold: 0.7,
  schemaOverlapThreshold: 0.8,
  strict: false,
});

console.log(result.valid);          // true if no errors (or no errors+warnings in strict mode)
console.log(result.summary);        // { commandCount, errorCount, warningCount, infoCount, ... }
console.log(result.findings);       // SurfaceFinding[] with rule, severity, message, suggestion
Input Types

validateCommandSurface() accepts both ZodCommandDefinition[] (from @lushly-dev/afd-server) and CommandDefinition[] (from @lushly-dev/afd-core). Input is auto-detected via duck-typing.

Validation Rules
RuleSeverityDescription
similar-descriptionsWarningCommand pairs with highly similar descriptions (cosine similarity)
schema-overlapWarningCommand pairs sharing a high percentage of input fields
naming-conventionErrorCommand names not matching kebab-case domain-action pattern
naming-collisionErrorCommand names that collide when separators are normalized
missing-categoryInfoCommands without a category field
description-injectionErrorDescriptions containing prompt injection patterns
description-qualityWarningDescriptions that are too short or missing action verbs
orphaned-categoryInfoCategories containing only one command
schema-complexityWarning/InfoInput schemas too complex for agents (unions, nesting, constraints)
unresolved-prerequisiteErrorrequires entry references a command not in the surface
circular-prerequisiteErrorCircular dependency cycle in the requires graph
missing-output-schemaInfoCommand does not declare an output schema
missing-contextInfoCommand has no contexts array (when server has configured contexts)
Options
interface SurfaceValidationOptions {
  similarityThreshold?: number;        // Default: 0.7 (70% similarity triggers warning)
  schemaOverlapThreshold?: number;     // Default: 0.8 (80% field overlap triggers warning)
  detectInjection?: boolean;           // Default: true
  checkDescriptionQuality?: boolean;   // Default: true
  minDescriptionLength?: number;       // Default: 20
  enforceNaming?: boolean;             // Default: true
  namingPattern?: RegExp;              // Default: /^[a-z][a-z0-9]*-[a-z][a-z0-9-]*$/
  skipCategories?: string[];           // Categories to exclude from analysis
  strict?: boolean;                    // Treat warnings as errors
  suppressions?: string[];             // Suppress specific findings
  additionalInjectionPatterns?: InjectionPattern[]; // Added to the built-in patterns
  checkSchemaComplexity?: boolean;    // Default: true
  schemaComplexityThreshold?: number; // Default: 13 (warning threshold)
}
Suppressions

Suppress findings at the rule level or for specific command pairs:

const result = validateCommandSurface(commands, {
  suppressions: [
    'missing-category',                        // Suppress all missing-category findings
    'schema-complexity:auth-sign-in',           // Suppress for a single command
    'similar-descriptions:user-get:user-fetch', // Suppress only this pair (order-independent)
  ],
});
CLI Integration
# Run surface validation against a connected MCP server
afd validate --surface

# With custom threshold
afd validate --surface --similarity-threshold 0.8

# Skip categories and suppress rules
afd validate --surface --skip-category internal --suppress missing-category

# Strict mode (warnings = errors)
afd validate --surface --strict --verbose
```…

Description from the npm listing.

  • afd
  • testing
  • mcp
  • validation
  • commands

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@lushly-dev/afd-testing weekly downloads on npm, last 90 days: 6,557 weekly downloads as of Dec 5, 2026, -55.6% over 90 days.@lushly-dev/afd-testingWeekly downloads on npm · Last 90 days6,557downloads / week-55.6% over 90 days05K10K15K20K25K30KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@lushly-dev/afd-testing weekly downloads on npm, last 90 days: 6,557 weekly downloads as of Dec 5, 2026, -55.6% over 90 days.

7/30/90-day growth

@lushly-dev/afd-testing weekly downloads growth on npm: -28.0% over 7 days, -74.1% over 30 days, -55.6% over 90 days.@lushly-dev/afd-testingWeekly downloads growth on npm6,557downloads / week now7-day growth-2,556 weekly downloads-28.0%30-day growth-18,794 weekly downloads-74.1%90-day growth-8,216 weekly downloads-55.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@lushly-dev/afd-testing weekly downloads growth on npm: -28.0% over 7 days, -74.1% over 30 days, -55.6% over 90 days.

Ranking history

@lushly-dev/afd-testing npm ranking history: currently #1431 (by weekly downloads).@lushly-dev/afd-testingnpm ranking · by weekly downloads · Last 90 days#1431current rank#600#800#1000#1200#1400#1600#1800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 43 observations · Updated Dec 5, 2026pluginstats.com
@lushly-dev/afd-testing npm ranking history: currently #1431 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 72, #11 (overall #1,431)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 17, #15 (overall #335)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for @lushly-dev/afd-testing
Date (UTC)Weekly downloadsChange vs. previous
6,557-254
6,811+840
5,971+21
5,950+584
5,366+1.9K
3,511-210
3,721-5.4K
9,113-1.3K
10,412-986
11,398-839
12,237-337
12,574-677
13,251+762
12,489—

Similar npm MCP servers plugins

All 20 @lushly-dev/afd-testing alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@lushly-dev/afd-testing. First seen Oct 16, 2026; last successful collection Dec 5, 2026. See the methodology.