You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create contributor user stories and tailored onboarding documentation #4
The persona work centers on two constructed profiles — Raj and Conway — grounded by ongoing contributor feedback from office hours, ongoing project engagement, and the onboarding process. Both are documented in a working persona profile; the observed feedback is synthesized below.
Raj — contributor persona
A typical first-time stdlib contributor. College CS student, likely based in India. Uses AI to build frontend web apps for school projects; wants to contribute to stdlib to strengthen a GSoC application and build a resume toward internships at large tech companies.
Constraints: Windows laptop, VS Code, no high-end hardware; limited Git/CI/CD experience; first open-source project; English not first language; not comfortable raising novel ideas independently.
Knowledge gaps: Unfamiliar with stdlib's QA infrastructure; has never written software consumed by others; limited real-world JS engine intuition; "best practice" is abstract rather than visceral.
Failure mode: Copies an older package as template, faithfully follows its stale patterns, doesn't recognize outdated conventions. Needs mentorship-style guidance ("here's exactly what to do, in this order, and why") rather than "follow the conventions."
Design center: The contributor-facing documentation, contributor-setup tooling, and first-timer tutorial are designed around Raj. His profile represents the widest platform variation (Windows), the most toolchain setup, and the broadest documentation surface area — making him the right anchor for onboarding design.
Conway — agentic user persona
An agentic bot given a dataset and tasked with analyzing it and producing a standalone interactive web dashboard. Tight token/cost budget; extensively trained on NumPy/SciPy/pandas but blind to stdlib-specific conventions and package naming.
Constraints: Vague human objective; tight per-call token budget; no tolerance for exploration at scale in a monorepo.
Needs: Terse machine-readable function reference; ecosystem crosswalks ("stdlib's @stdlib/math/base/special/abs is the equivalent of NumPy's np.abs"); discoverable step-by-step use-case recipes.
Failure mode: Can't find the right function, wastes tokens exploring the repo blindly, times out or bills the user into cutting the task short.
Design center: Conway drives the agent-friendliness constraints that apply to all documentation artifacts — file size limits, structured headings, stable URLs, llms.txt discoverability. Raj's AI assistant is a Conway-class consumer of contributor-facing docs.
Observed contributor feedback
The constructed personas are grounded by ongoing feedback from real contributors — gathered through office hours, ongoing project engagement, and the onboarding process. This feedback complements the personas by confirming some predicted gaps and surfacing ones the profiles didn't anticipate.
Discoverability
stdlib's make recipes are richly capable but difficult to discover. As a contributor put it: "every time we find out about them we're like, 'I would have done that if I knew it existed.'" Contributors reinvent solutions stdlib already provides (e.g., make list-pkgs-namespace-readmes) because the tooling doesn't surface itself. This finding directly motivated the internal-tooling documentation work in Issue #6 and shapes the documentation plan's emphasis on reducing the distance between "the command exists" and "the contributor knows it exists."
CI as the default feedback loop
Contributors routinely use CI as their iterative development loop — push, wait 15–45 minutes for the matrix to run, read the failure, fix, push again. This isn't a failure on the contributor's part; CI works, and it catches real problems. But it's slow and expensive for the kind of single-package iteration that makes up most first-timer work. The local filtered loop (make lint-javascript-src SOURCES_FILTER=..., make test TESTS_FILTER=..., make examples EXAMPLES_FILTER=...) already exists and gives the same feedback in seconds — contributors just don't know it's there. This pattern shows up across multiple contributors and experience levels; it's a documentation gap, not a competence gap. Making the local loop discoverable and the three-command sequence prominent is one of the highest-leverage moves in the plan.
Why observed feedback matters alongside constructed personas
Raj predicts gaps from designed constraints (Windows, ESL, first OSS project). Real contributor feedback confirms some of those predictions and surfaces ones his profile didn't anticipate — notably, that the gap isn't "the tools don't exist" but "the tools aren't findable," and that CI usage as a feedback loop is a symptom of that discoverability gap, not a separate problem.
Contributor archetypes and complexity tiers
The six contributor archetypes identified in the issue comments map onto stdlib's package complexity tiers. These tiers are useful guidelines for what a contributor needs to know and what documentation needs to provide, though the actual difficulty of any given contribution depends on the mathematical and architectural content of the specific package:
+ C compiler, node-gyp, JS↔native parity, Windows portability
⚠️ Generally after tier 0/1 experience
The sixth archetype from the issue — "add a new JavaScript/C package which may include a native add-on" — maps to tier 2-C above. BLAS/LAPACK ports (tier 3) require Fortran reading ability and numerical expertise in column-major layouts; that track is excluded from first-timer scope.
Note that these tiers track what tools you need on PATH and what conventions apply, not how hard the work is. A pure-JS implementation of a complex special function (tier 1) can be substantially harder than adding a C implementation to a simple existing package (tier 2-C) where the JS is already written and serves as the correctness oracle.
The observed first-timer ramp
Based on maintainer observation, first-time contributors typically progress through:
Tier 0/1 JS contribution — gets them through the QA/CI gauntlet once
Add a C implementation to an existing JS package — C is what they know from school; the existing JS is the correctness oracle; no JS design uncertainty
Author a full tier-2 package with both JS and C from scratch — significantly harder; JS design and C implementation are uncertain at once
Tier 2-WASM / Tier 3 — specialist tracks, out of scope for most GSoC contributors
Documentation and onboarding tooling should generally route first-PR contributors toward steps 1–2, though individual contributors may move faster or slower depending on their background and the specific package content.
Deferred personas
We've identified five additional personas that we haven't yet fleshed out or prioritized in the documentation planning matrix. Raj and Conway are the load-bearing personas for the work currently in progress; these are on the radar for development as bandwidth allows.
Human end-user persona — Conway represents the agentic user; a human end-user persona is referenced in the documentation planning but not yet profiled. A recurring insight from I-Corps ecosystem discovery interviews and contributor community engagement: the majority of stdlib contributors are not users and are unlikely to become users. The documentation gaps facing users — use-case recipes, integration guides, troubleshoot guides, ecosystem crosswalks — are distinct from contributor gaps and will require their own persona to prioritize.
Maintainer/reviewer persona — the person reviewing Raj's PR; their workflow (compare against reference packages, tier-aware PR review) is documented but unattached to a named persona.
No-admin-rights contributor — contributors on school- or lab-managed laptops without Docker or WSL2 access have no documented path; the implicit fallback is GitHub Codespaces but no writeup exists.
Raj's AI assistant as its own persona — already treated as a distinct documentation audience in the strategy docs; promoting it to a named persona would let agent-friendliness constraints carry a person rather than floating as a design constraint.
GSoC mentor/org admin — the other side of Raj's GSoC application; their needs (low-overhead PR review, progression signals, org admin reporting) shape what documentation and tooling need to provide.
Part (b): Plan for onboarding documentation
We grounded the documentation plan in two complementary frameworks, with a third applied as an evaluation lens:
Diátaxis — four types (Tutorial, How-to, Reference, Explanation) on two axes (practical/theoretical × acquisition/application)
The Seven-Action Documentation Model — what a contributor needs to be able to do (Appraise, Understand, Explore, Practice, Remember, Develop, Troubleshoot)
Google's Optimizing for Generative AI Features — applied when evaluating existing documentation against AI discoverability; surfaces what matters for AI-powered search and agentic contexts and identifies what doesn't require special effort
The cross-framework synthesis lives in working notes, with detailed gap tables and authoring priorities in the documentation-planning matrix.
Design discipline: affordances and documentation
Not every onboarding gap is best closed by writing more prose — but good documentation is the substrate that makes everything else work, including the AI-assisted helpers we're building toward. The plan distinguishes between affordances (tooling that acts), documentation (prose that gives the contributor a mental model — the "why," not just the "what"), and hybrids (tooling that acts and documents at the moment of use). The right mix shifts by archetype and tier:
Archetype
Affordance carries
Documentation carries
Ratio
Typo fix (tier 0)
pre-commit hook, lint target, PR template
what lint catches and why we run it locally
~80/20 affordance
Bug fix (tier 0–1)
make test TESTS_FILTER, REPL, the doctor
testing conventions, edge-case taxonomy
~60/40
Scalar math kernel (tier 2)
a similar merged kernel as the reference, REPL help
numerical-method conventions, JS quirks
~50/50
JS + C package (tier 2-C)
a similar JS + C package as the reference, make doctor toolchain check
C-addon conventions, V8 reality, "Write it like C"
~30/70 documentation
The framing comes from the Zen of stdlib: "Automate where it scales; stop where it obscures." Automation is appropriate for the mechanical and repetitive — running make install, configuring core.autocrlf, installing hooks, lint and test execution. It stops where automating would hide a difference the contributor needs to understand: which shell they're in, where their toolchain lives, why a Makefile branch assumes a real bash.
Understanding over automation
stdlib leans documentation-heavy by design — a deliberate choice rooted in the Zen of stdlib rather than an arbitrary constraint. Packages share a skeleton but differ in architecture — the numerical method, the API shape, the relationship between JS and native implementations vary by domain. A scaffolding tool or wizard that generates a "correct" starting point for one package type will lead a contributor astray when their package diverges — and a contributor who trusts generated-as-correct code is worse off than one who starts from a reference package they can read and adapt, because they'll get stuck debugging code they didn't write and don't understand. No map is better than a bad map.
This is why the project has steered away from automating scaffolding — package templates that hide reference-package choice, decision-flow wizards, "create a new BLAS port for me" tooling. Scaffolders automate decision-making that should be the contributor's. They produce contributors who can move a file into place without understanding why it goes there.
The codebase as canonical source
stdlib itself is the ultimate source of truth for conventions. When a contributor asks how something should be done, the answer is often "look at how @stdlib/math/base/special/abs handles this" or "your closest reference is @stdlib/ndarray/concat." The pointed-to package isn't an example of the convention — it is the convention, in instantiated form. Reference packages serve as both affordance (a complete, working, copy-able pattern) and documentation (conventions encoded in how the package is shaped). The work that matters most isn't building scaffolders — it's making the codebase legible by helping contributors find the right reference package for their tier and domain.
AI affordances are contributor affordances
Good contributor documentation and AI affordances are not separate tracks — they reinforce each other through the same mechanism. stdlib's conventions actively diverge from what general-purpose AI models treat as conventional JavaScript wisdom: ES5 compatibility means common modern JS idioms don't apply, stdlib dogfoods its own @stdlib/* packages over Node.js built-ins, whitespace conventions are pedagogical rather than mechanical. An AI assistant without stdlib-specific context will confidently generate wrong code — arrow functions, async/await, Array.from(), node:path — because the correct stdlib answer often contradicts general-purpose training data.
This makes Explanation-quadrant content (design rationale, the "why" behind conventions) the highest-leverage investment across all audiences. When that rationale exists as documentation, customized AI agents can pair correction with explanation: not just "use a typed array here" but "use a typed array here because stdlib avoids megamorphic call sites that defeat V8's inline caches — see the Zen of stdlib." That pairing makes practices comprehensible rather than arbitrary for Raj, which means he's more likely to internalize them and apply them independently on future PRs. The investment in Explanation content isn't just filling a Diátaxis gap — it's the category of content that only stdlib can produce (what Google's AI guide calls "non-commodity content with unique expert perspective"), and it's required for AI affordances to work correctly in a codebase whose conventions diverge from mainstream defaults.
We're also researching how other prominent open-source projects are adapting to increased use of AI and LLMs — both in contributor workflows and in end-user-facing documentation — to adopt best practices rather than reinvent them.
Why contributor documentation first
The timeline drove the prioritization. The Google Summer of Code application period kicked off soon after the I-Corps intensive program ended, bringing a cohort of first-time contributors whose profile matches Raj. PR review is the single most rate-limiting activity for maintainers — a PR review feedback analysis that classified maintainer comments across stdlib's PR history confirmed that the largest categories of review feedback (style/lint at ~32%, JSDoc formatting, missing tests and benchmarks) are either CI-checkable or documentation-addressable, not inherently human-only. The primary lever for reducing that load is better contributor documentation — setup guides, the internal-tooling documentation track in Issue #6, platform-specific paths, AGENTS.md files — that helps contributors catch mistakes locally before opening a PR. When contributors can run the filtered local loop instead of relying on CI for feedback, the number of push-wait-fix cycles drops and maintainer review starts from cleaner code.
Blog posts and end-user documentation (Layer 4 below) are downstream — they matter, but reducing contributor-side friction while GSoC contributors were actively onboarding had to come first.
Platform divergences and the contributor-setup path
Raj's path spans the most platform variation, and our research into stdlib's Make-based build system revealed that the divergences are sharper and more consequential than the existing documentation acknowledges.
Windows: two viable paths
We evaluated five possible Windows configurations and currently recommend two: the VS Code Dev Container (a Debian image with Node 22, GNU Make, and bash pre-configured) and WSL2 with Ubuntu. Three paths are currently not recommended — MSYS2/Git Bash (path-mangling silently rewrites filter arguments), native Windows GNU Make (no bash, can't apply stdlib's shell flags), and Cygwin (a third codepath no CI exercises). The existing contributor documentation gives MSYS2 a real section; our research suggests that's counterproductive because time spent debugging MSYS2 path-mangling is time that pushes a first-timer toward giving up on the contribution.
We've documented eight specific pitfalls with citations to stdlib source lines — from MSYS2 path translation silently rewriting *_FILTER regex arguments, to CRLF line endings breaking shellcheck and git hooks, to the missing OPEN command on WINNT. Each pitfall is avoided by the two recommended paths, which give the contributor a real Linux shell, filesystem, and coreutils.
The five-tool minimum
stdlib's development guide lists many optional dependencies (Julia, R, Python, gcc/g++, gfortran, CMake, pandoc, and others). For first-loop work, only five are needed: Git, GNU Make, GNU bash, Node.js, and npm. Surfacing this distinction explicitly — showing that the long prerequisites list is mostly optional and that per-package dependencies can be installed later via make install-deps-* — is itself a setup affordance.
The Node.js two-floor problem
stdlib's package.json declares a consumer floor of >= 0.10, but the devcontainer pins Node 22 and make lint/make test fail on anything below the dev floor with SyntaxError before doing real work. A contributor landing between the two floors — their code runs but their development tooling doesn't — needs to be told which bucket they're in. This is the kind of diagnosis that a make doctor command earns its keep on.
The setup-tour: a phased approach
These findings motivate a phased contributor-setup approach we've explored as design research:
Phase
What ships
Role
Independence
make doctor
Pure affordance — inspects the contributor's machine, reports state, mutates nothing
Paste-able diagnostic for help threads; names which bucket the contributor is in (platform, Node floor, hooks status)
Ships value alone
make setup-tour
Hybrid — runs the doctor's checks, narrates them, walks the contributor through setup steps
The integrating form; tooling + documentation at the moment of use
Requires Phase 1
LLM affordance (? key, --explain)
Optional relief valve — answers "stuck?" questions using the doctor's report as context
Gracefully degrades to the scripted setup-tour when unavailable
Requires Phase 2; never load-bearing
Each phase ships independently. If later phases never happen, the doctor alone moves the contributor experience. The design is grounded in the Zen: the tour explains what's where rather than hiding it — a contributor who completes it understands their toolchain, not just that it works. We've built a working prototype of the doctor; the setup-tour has a stub exercised in --quick mode. Both remain exploratory — not yet discussed with maintainers.
Current state of contributor-facing docs
stdlib's docs/contributing/ and docs/style-guides/ are better developed than they appear from the outside — approximately 16 contributing docs (~4,800 lines) plus 11 language style guides. Coverage is strongest on How-to (development.md, packages.md, devcontainer setup) and Reference (style guides, git/bash cheatsheets, doctest conventions):
Diátaxis
Status
Gap
Tutorial
❌ Absent
No guided "write your first stdlib package" end-to-end experience
Explanation
⚠️ Sparse
javascript_quirks.md is 49 lines; design rationale is largely oral tradition
How-to
✅ Substantial
Solid coverage; Windows contributor path is the main gap
The plan organizes onboarding documentation into four layers, corresponding to where a contributor or user is in their journey:
Layer 1 — First contact
Target audience and goal
Raj before his first PR. Goal: get from "I cloned the repo" to "my PR passed CI." Affordance/documentation ratio: ~80/20 — the tooling should be sharp enough that prose is the safety net; documentation teaches conventions as the affordances run.
Priority artifacts
End-to-end tutorial for a first stdlib contribution (tier 0/1 pure-JS package or bug fix) — the single highest-priority missing document. The tutorial narrates the local loop while the contributor runs it; it's the hybrid form for Layer 1.
Platform-specific setup paths — our research shows these should be opinionated, not encyclopedic. For Windows: two recommended paths (Dev Container, WSL2), three currently not recommended, eight documented pitfalls with source-line citations. For macOS: GNU Make via Homebrew (gmake), since stock macOS Make 3.81 predates .SHELLFLAGS and silently runs with non-strict shell defaults. For Linux: minimal — distro package manager is sufficient.
The three-command local loop (make lint-javascript-src SOURCES_FILTER=..., make test TESTS_FILTER=..., make examples EXAMPLES_FILTER=...) as a standalone how-to — the dominant affordance at Layer 1; every path converges on it. We've drafted a per-target compatibility matrix documenting which targets work on which platform configuration.
make doctor + make setup-tour (exploratory) — the phased setup CLI described above.
Best practices for AI-assisted contribution — Raj uses AI in his school projects and will use it when contributing to stdlib. Without guidance, AI amplifies his profile's failure mode: it copies stale package patterns, generates plausible-but-wrong code, and doesn't know stdlib's conventions. Because stdlib's conventions diverge from mainstream JS defaults (see "AI affordances are contributor affordances" above), general-purpose AI tools will steer him wrong without stdlib-specific context. This artifact would provide guidance on working with AI effectively: what to prompt for, what to verify, how AGENTS.md and reference packages give the AI the right context, and where human judgment is still required.
Layer 2 — Progression
Target audience and goal
Raj after one successful tier-0/1 contribution. Goal: add a C implementation or author a full tier-2 package without missing the parity and portability requirements. Affordance/documentation ratio: ~30/70 documentation — the choices at this tier are consequential, and the documentation lives mostly in which reference to look at, not in prose that re-articulates what the reference already shows.
The codebase-as-source principle is most visible at this layer: the central affordance isn't a scaffolder — it's the tier-aware reference-package guide that helps the contributor find the closest merged package to model their work on, then read that package as documentation.
Priority artifacts
Tier-aware reference-package guide — the central affordance for this layer. "Here is how to find the right analog for your package type" + "here is why this one is the right analog for your case." Today, reference-package selection lives in maintainer heads and PR review; codifying it closes the gap between "the convention exists" and "the contributor knows how to find it."
C native add-on how-to — what binding.gyp needs, how JS/native parity is verified, what CI catches that local dev misses. Platform divergences resurface here: the Dev Container gives a working gcc/g++ out of the box, but the linking and cross-compilation requirements for native add-ons need documentation the toolchain alone can't carry.
Examples by package type — drafted, covering 6 stdlib package types with real recipe walkthroughs that bridge from the walkthrough to reading the reference package itself.
Layer 3 — Context and rationale
Target audience and goal
All tiers. Raj (understanding why conventions exist), Raj's AI assistant (explaining rationale at the point of need), and Conway (understanding stdlib's design philosophy to generate idiomatic code). Goal: build the taste and judgment that reduces maintainer review burden, and give AI consumers the design context they need to use stdlib correctly. This is the layer where documentation generates affordance — the same content serves the contributor directly and powers the AI tools that assist them.
This layer is also where the "non-commodity content" investment concentrates. stdlib's design rationale — why ES5, why no ESLint whitespace rule, why typed arrays — is content only stdlib can produce, and it's the content that matters most for both AI discoverability (per Google's AI guide) and AI correctness (per stdlib's divergence from mainstream JS conventions).
Priority artifacts
JavaScript compiler optimization reference — we're creating Raj-targeted material on how JS engine optimization (V8 hidden classes, monomorphic call sites, typed-array fast paths) drives stdlib's code conventions. This is grounded in the Zen of stdlib, which codifies the project's design philosophy as a set of aphorisms. The goal is targeted reference material and/or an agent that explains conventions when contributors or AI assistants encounter them and need to understand the "why."
Whitespace aesthetics as a fuzzy agentic linter — stdlib's whitespace conventions are intentionally pedagogical (no ESLint rule enforces them) and currently taught piecemeal through PR review. We're exploring an agentic linter that understands the why behind the conventions — not just pattern-matching violations but explaining the aesthetic rationale. The linter would learn from merged stdlib code, not from an external rule catalog — when the codebase shifts, the linter shifts with it.
Benchmark-authoring guidance — translating maintainer PR-review feedback (from stdlib-js/stdlib#9807) into developer guidance: the single-knob principle, facet vs. parameter conventions, when tensor size should be held invariant vs. swept, with a reference pair — a good benchmark (ndarray/concat) and a flagged counter-example (ndarray/base/to-flippedlr).
Convention changelog — scored reverse-chronological record of stdlib convention changes; planned under the codebase navigation initiative.
Agent-friendly AGENTS.md files in each major subsystem — PR drafted, not yet submitted.
Layer 4 — End-user documentation
Target audience and goal
Human users and Conway-class agents using stdlib in their own projects — not contributing to stdlib. Key insight: the majority of stdlib contributors are not users, and improving contributor docs does not improve user docs. This layer requires its own persona work (see "Deferred personas" above).
Priority artifacts
Use-case recipes showing how stdlib packages compose for real tasks — docs/user-guides/recipes/ has the infrastructure (one existing recipe); needs systematic coverage of common workflows (random data generation → array manipulation → statistics → visualization).
Integration guides (bundling, Deno, CDN, tree-shaking, selective import) — the root README.md covers these topics, but no standalone guides exist under docs/.
Ecosystem crosswalk (stdlib ↔ NumPy/SciPy) — raw mapping data is planned under Phase 2b of the codebase navigation initiative; human authorship needed for the evaluative framing.
Troubleshoot guides ("I'm getting NaN", "my results differ from NumPy") — entirely absent.
Appraise narrative — migration guides in docs/migration-guides/ have comparison data for 9 libraries (with benchmarks for some); need evaluative framing ("when and why to choose stdlib").
Personas and an onboarding documentation plan are defined and operating as the spine for ongoing contributor-experience work.
Personas
Three named personas — two constructed (Raj, typical first-time contributor; Conway, agentic user) and one observed (built from real contributor feedback that motivated the make-discoverability initiative). Each persona has constraints, knowledge gaps, failure modes, and a tier-0→tier-3 complexity ramp. The observed persona's promotion from "onboarding informant" to full persona distinguishes empirical findings from designed generalization.
Onboarding documentation plan
Four layers, ordered by Raj's path through the contributor experience:
Layer 1 — First contact: intro tutorial, Windows fast path, AI-assisted contribution best practices, the local-loop how-to, and a make doctor-style setup CLI (exploratory).
The affordances-and-documentation design discipline — when to automate, when to document, when to do both — grounded in the Zen of stdlib.
The codebase-as-source constraint — stdlib's merged code is the convention specification, so documentation strategy favors discovery affordances over scaffolders.
The CI-as-feedback-loop empirical finding — contributors push to CI for single-package feedback the local filtered loop gives in seconds; a documentation gap, not a competence gap.
Status
Personas, plan, and analytical framework are in place and now guide forward documentation work across all four layers; specific artifacts are tracked in the Y1Q3 plan.
NSF report alignment
Material from this deliverable maps to the following sections of the NSF Y1 project report:
Accomplishments → Major Activities — persona development; the four-layer plan; mapping Athan's six contributor archetypes onto the tier-0→tier-3 ramp.
Accomplishments → Specific Objectives — the Layer 1–4 plan operationalizes the three Community Building objectives (reduce PR review burden, improve make discoverability, decrease CI reliance).
Accomplishments → Significant Results — the affordances-and-documentation design discipline; the codebase-as-source constraint; the CI-as-feedback-loop empirical finding; the formal personas themselves.
Accomplishments → What do you plan to do during the next reporting period — Layer 1–4 forward execution plan.
Impacts → Impact on development of human resources — the onboarding plan and persona framing are direct contributor-pipeline infrastructure.
Impacts → Impact on information resources / infrastructure — the design discipline and codebase-as-source constraint set the long-term direction for documentation infrastructure.
Activity
kgryte commentedon Sep 15, 2025
Possible contributor archetypes:
kgryte commentedon Jun 2, 2026
@batpigandme Would you be willing to summarize (a) the personas and (b) outline a plan for onboarding documentation?
batpigandme commentedon Jun 3, 2026
Part (a): Contributor personas
The persona work centers on two constructed profiles — Raj and Conway — grounded by ongoing contributor feedback from office hours, ongoing project engagement, and the onboarding process. Both are documented in a working persona profile; the observed feedback is synthesized below.
Raj — contributor persona
A typical first-time stdlib contributor. College CS student, likely based in India. Uses AI to build frontend web apps for school projects; wants to contribute to stdlib to strengthen a GSoC application and build a resume toward internships at large tech companies.
Constraints: Windows laptop, VS Code, no high-end hardware; limited Git/CI/CD experience; first open-source project; English not first language; not comfortable raising novel ideas independently.
Knowledge gaps: Unfamiliar with stdlib's QA infrastructure; has never written software consumed by others; limited real-world JS engine intuition; "best practice" is abstract rather than visceral.
Failure mode: Copies an older package as template, faithfully follows its stale patterns, doesn't recognize outdated conventions. Needs mentorship-style guidance ("here's exactly what to do, in this order, and why") rather than "follow the conventions."
Design center: The contributor-facing documentation, contributor-setup tooling, and first-timer tutorial are designed around Raj. His profile represents the widest platform variation (Windows), the most toolchain setup, and the broadest documentation surface area — making him the right anchor for onboarding design.
Conway — agentic user persona
An agentic bot given a dataset and tasked with analyzing it and producing a standalone interactive web dashboard. Tight token/cost budget; extensively trained on NumPy/SciPy/pandas but blind to stdlib-specific conventions and package naming.
Constraints: Vague human objective; tight per-call token budget; no tolerance for exploration at scale in a monorepo.
Needs: Terse machine-readable function reference; ecosystem crosswalks ("stdlib's
@stdlib/math/base/special/absis the equivalent of NumPy'snp.abs"); discoverable step-by-step use-case recipes.Failure mode: Can't find the right function, wastes tokens exploring the repo blindly, times out or bills the user into cutting the task short.
Design center: Conway drives the agent-friendliness constraints that apply to all documentation artifacts — file size limits, structured headings, stable URLs,
llms.txtdiscoverability. Raj's AI assistant is a Conway-class consumer of contributor-facing docs.Observed contributor feedback
The constructed personas are grounded by ongoing feedback from real contributors — gathered through office hours, ongoing project engagement, and the onboarding process. This feedback complements the personas by confirming some predicted gaps and surfacing ones the profiles didn't anticipate.
Discoverability
stdlib's make recipes are richly capable but difficult to discover. As a contributor put it: "every time we find out about them we're like, 'I would have done that if I knew it existed.'" Contributors reinvent solutions stdlib already provides (e.g.,
make list-pkgs-namespace-readmes) because the tooling doesn't surface itself. This finding directly motivated the internal-tooling documentation work in Issue #6 and shapes the documentation plan's emphasis on reducing the distance between "the command exists" and "the contributor knows it exists."CI as the default feedback loop
Contributors routinely use CI as their iterative development loop — push, wait 15–45 minutes for the matrix to run, read the failure, fix, push again. This isn't a failure on the contributor's part; CI works, and it catches real problems. But it's slow and expensive for the kind of single-package iteration that makes up most first-timer work. The local filtered loop (
make lint-javascript-src SOURCES_FILTER=...,make test TESTS_FILTER=...,make examples EXAMPLES_FILTER=...) already exists and gives the same feedback in seconds — contributors just don't know it's there. This pattern shows up across multiple contributors and experience levels; it's a documentation gap, not a competence gap. Making the local loop discoverable and the three-command sequence prominent is one of the highest-leverage moves in the plan.Why observed feedback matters alongside constructed personas
Raj predicts gaps from designed constraints (Windows, ESL, first OSS project). Real contributor feedback confirms some of those predictions and surfaces ones his profile didn't anticipate — notably, that the gap isn't "the tools don't exist" but "the tools aren't findable," and that CI usage as a feedback loop is a symptom of that discoverability gap, not a separate problem.
Contributor archetypes and complexity tiers
The six contributor archetypes identified in the issue comments map onto stdlib's package complexity tiers. These tiers are useful guidelines for what a contributor needs to know and what documentation needs to provide, though the actual difficulty of any given contribution depends on the mathematical and architectural content of the specific package:
node-gyp, JS↔native parity, Windows portabilityThe sixth archetype from the issue — "add a new JavaScript/C package which may include a native add-on" — maps to tier 2-C above. BLAS/LAPACK ports (tier 3) require Fortran reading ability and numerical expertise in column-major layouts; that track is excluded from first-timer scope.
Note that these tiers track what tools you need on PATH and what conventions apply, not how hard the work is. A pure-JS implementation of a complex special function (tier 1) can be substantially harder than adding a C implementation to a simple existing package (tier 2-C) where the JS is already written and serves as the correctness oracle.
The observed first-timer ramp
Based on maintainer observation, first-time contributors typically progress through:
Documentation and onboarding tooling should generally route first-PR contributors toward steps 1–2, though individual contributors may move faster or slower depending on their background and the specific package content.
Deferred personas
We've identified five additional personas that we haven't yet fleshed out or prioritized in the documentation planning matrix. Raj and Conway are the load-bearing personas for the work currently in progress; these are on the radar for development as bandwidth allows.
Part (b): Plan for onboarding documentation
We grounded the documentation plan in two complementary frameworks, with a third applied as an evaluation lens:
The cross-framework synthesis lives in working notes, with detailed gap tables and authoring priorities in the documentation-planning matrix.
Design discipline: affordances and documentation
Not every onboarding gap is best closed by writing more prose — but good documentation is the substrate that makes everything else work, including the AI-assisted helpers we're building toward. The plan distinguishes between affordances (tooling that acts), documentation (prose that gives the contributor a mental model — the "why," not just the "what"), and hybrids (tooling that acts and documents at the moment of use). The right mix shifts by archetype and tier:
make test TESTS_FILTER, REPL, the doctormake doctortoolchain checkThe framing comes from the Zen of stdlib: "Automate where it scales; stop where it obscures." Automation is appropriate for the mechanical and repetitive — running
make install, configuringcore.autocrlf, installing hooks, lint and test execution. It stops where automating would hide a difference the contributor needs to understand: which shell they're in, where their toolchain lives, why a Makefile branch assumes a real bash.Understanding over automation
stdlib leans documentation-heavy by design — a deliberate choice rooted in the Zen of stdlib rather than an arbitrary constraint. Packages share a skeleton but differ in architecture — the numerical method, the API shape, the relationship between JS and native implementations vary by domain. A scaffolding tool or wizard that generates a "correct" starting point for one package type will lead a contributor astray when their package diverges — and a contributor who trusts generated-as-correct code is worse off than one who starts from a reference package they can read and adapt, because they'll get stuck debugging code they didn't write and don't understand. No map is better than a bad map.
This is why the project has steered away from automating scaffolding — package templates that hide reference-package choice, decision-flow wizards, "create a new BLAS port for me" tooling. Scaffolders automate decision-making that should be the contributor's. They produce contributors who can move a file into place without understanding why it goes there.
The codebase as canonical source
stdlib itself is the ultimate source of truth for conventions. When a contributor asks how something should be done, the answer is often "look at how
@stdlib/math/base/special/abshandles this" or "your closest reference is@stdlib/ndarray/concat." The pointed-to package isn't an example of the convention — it is the convention, in instantiated form. Reference packages serve as both affordance (a complete, working, copy-able pattern) and documentation (conventions encoded in how the package is shaped). The work that matters most isn't building scaffolders — it's making the codebase legible by helping contributors find the right reference package for their tier and domain.AI affordances are contributor affordances
Good contributor documentation and AI affordances are not separate tracks — they reinforce each other through the same mechanism. stdlib's conventions actively diverge from what general-purpose AI models treat as conventional JavaScript wisdom: ES5 compatibility means common modern JS idioms don't apply, stdlib dogfoods its own
@stdlib/*packages over Node.js built-ins, whitespace conventions are pedagogical rather than mechanical. An AI assistant without stdlib-specific context will confidently generate wrong code — arrow functions,async/await,Array.from(),node:path— because the correct stdlib answer often contradicts general-purpose training data.This makes Explanation-quadrant content (design rationale, the "why" behind conventions) the highest-leverage investment across all audiences. When that rationale exists as documentation, customized AI agents can pair correction with explanation: not just "use a typed array here" but "use a typed array here because stdlib avoids megamorphic call sites that defeat V8's inline caches — see the Zen of stdlib." That pairing makes practices comprehensible rather than arbitrary for Raj, which means he's more likely to internalize them and apply them independently on future PRs. The investment in Explanation content isn't just filling a Diátaxis gap — it's the category of content that only stdlib can produce (what Google's AI guide calls "non-commodity content with unique expert perspective"), and it's required for AI affordances to work correctly in a codebase whose conventions diverge from mainstream defaults.
We're also researching how other prominent open-source projects are adapting to increased use of AI and LLMs — both in contributor workflows and in end-user-facing documentation — to adopt best practices rather than reinvent them.
Why contributor documentation first
The timeline drove the prioritization. The Google Summer of Code application period kicked off soon after the I-Corps intensive program ended, bringing a cohort of first-time contributors whose profile matches Raj. PR review is the single most rate-limiting activity for maintainers — a PR review feedback analysis that classified maintainer comments across stdlib's PR history confirmed that the largest categories of review feedback (style/lint at ~32%, JSDoc formatting, missing tests and benchmarks) are either CI-checkable or documentation-addressable, not inherently human-only. The primary lever for reducing that load is better contributor documentation — setup guides, the internal-tooling documentation track in Issue #6, platform-specific paths, AGENTS.md files — that helps contributors catch mistakes locally before opening a PR. When contributors can run the filtered local loop instead of relying on CI for feedback, the number of push-wait-fix cycles drops and maintainer review starts from cleaner code.
Blog posts and end-user documentation (Layer 4 below) are downstream — they matter, but reducing contributor-side friction while GSoC contributors were actively onboarding had to come first.
Platform divergences and the contributor-setup path
Raj's path spans the most platform variation, and our research into stdlib's Make-based build system revealed that the divergences are sharper and more consequential than the existing documentation acknowledges.
Windows: two viable paths
We evaluated five possible Windows configurations and currently recommend two: the VS Code Dev Container (a Debian image with Node 22, GNU Make, and bash pre-configured) and WSL2 with Ubuntu. Three paths are currently not recommended — MSYS2/Git Bash (path-mangling silently rewrites filter arguments), native Windows GNU Make (no bash, can't apply stdlib's shell flags), and Cygwin (a third codepath no CI exercises). The existing contributor documentation gives MSYS2 a real section; our research suggests that's counterproductive because time spent debugging MSYS2 path-mangling is time that pushes a first-timer toward giving up on the contribution.
We've documented eight specific pitfalls with citations to stdlib source lines — from MSYS2 path translation silently rewriting
*_FILTERregex arguments, to CRLF line endings breaking shellcheck and git hooks, to the missingOPENcommand onWINNT. Each pitfall is avoided by the two recommended paths, which give the contributor a real Linux shell, filesystem, and coreutils.The five-tool minimum
stdlib's development guide lists many optional dependencies (Julia, R, Python, gcc/g++, gfortran, CMake, pandoc, and others). For first-loop work, only five are needed: Git, GNU Make, GNU bash, Node.js, and npm. Surfacing this distinction explicitly — showing that the long prerequisites list is mostly optional and that per-package dependencies can be installed later via
make install-deps-*— is itself a setup affordance.The Node.js two-floor problem
stdlib's
package.jsondeclares a consumer floor of>= 0.10, but the devcontainer pins Node 22 andmake lint/make testfail on anything below the dev floor withSyntaxErrorbefore doing real work. A contributor landing between the two floors — their code runs but their development tooling doesn't — needs to be told which bucket they're in. This is the kind of diagnosis that amake doctorcommand earns its keep on.The setup-tour: a phased approach
These findings motivate a phased contributor-setup approach we've explored as design research:
make doctormake setup-tour?key,--explain)Each phase ships independently. If later phases never happen, the doctor alone moves the contributor experience. The design is grounded in the Zen: the tour explains what's where rather than hiding it — a contributor who completes it understands their toolchain, not just that it works. We've built a working prototype of the doctor; the setup-tour has a stub exercised in
--quickmode. Both remain exploratory — not yet discussed with maintainers.Current state of contributor-facing docs
stdlib's
docs/contributing/anddocs/style-guides/are better developed than they appear from the outside — approximately 16 contributing docs (~4,800 lines) plus 11 language style guides. Coverage is strongest on How-to (development.md,packages.md, devcontainer setup) and Reference (style guides, git/bash cheatsheets, doctest conventions):javascript_quirks.mdis 49 lines; design rationale is largely oral traditionDocumentation plan
The plan organizes onboarding documentation into four layers, corresponding to where a contributor or user is in their journey:
Layer 1 — First contact
Target audience and goal
Raj before his first PR.
Goal: get from "I cloned the repo" to "my PR passed CI." Affordance/documentation ratio: ~80/20 — the tooling should be sharp enough that prose is the safety net; documentation teaches conventions as the affordances run.
Priority artifacts
gmake), since stock macOS Make 3.81 predates.SHELLFLAGSand silently runs with non-strict shell defaults. For Linux: minimal — distro package manager is sufficient.make lint-javascript-src SOURCES_FILTER=...,make test TESTS_FILTER=...,make examples EXAMPLES_FILTER=...) as a standalone how-to — the dominant affordance at Layer 1; every path converges on it. We've drafted a per-target compatibility matrix documenting which targets work on which platform configuration.make doctor+make setup-tour(exploratory) — the phased setup CLI described above.Layer 2 — Progression
Target audience and goal
Raj after one successful tier-0/1 contribution.
Goal: add a C implementation or author a full tier-2 package without missing the parity and portability requirements. Affordance/documentation ratio: ~30/70 documentation — the choices at this tier are consequential, and the documentation lives mostly in which reference to look at, not in prose that re-articulates what the reference already shows.
The codebase-as-source principle is most visible at this layer: the central affordance isn't a scaffolder — it's the tier-aware reference-package guide that helps the contributor find the closest merged package to model their work on, then read that package as documentation.
Priority artifacts
binding.gypneeds, how JS/native parity is verified, what CI catches that local dev misses. Platform divergences resurface here: the Dev Container gives a workinggcc/g++out of the box, but the linking and cross-compilation requirements for native add-ons need documentation the toolchain alone can't carry.Layer 3 — Context and rationale
Target audience and goal
All tiers. Raj (understanding why conventions exist), Raj's AI assistant (explaining rationale at the point of need), and Conway (understanding stdlib's design philosophy to generate idiomatic code).
Goal: build the taste and judgment that reduces maintainer review burden, and give AI consumers the design context they need to use stdlib correctly. This is the layer where documentation generates affordance — the same content serves the contributor directly and powers the AI tools that assist them.
This layer is also where the "non-commodity content" investment concentrates. stdlib's design rationale — why ES5, why no ESLint whitespace rule, why typed arrays — is content only stdlib can produce, and it's the content that matters most for both AI discoverability (per Google's AI guide) and AI correctness (per stdlib's divergence from mainstream JS conventions).
Priority artifacts
ndarray/concat) and a flagged counter-example (ndarray/base/to-flippedlr).Layer 4 — End-user documentation
Target audience and goal
Human users and Conway-class agents using stdlib in their own projects — not contributing to stdlib.
Key insight: the majority of stdlib contributors are not users, and improving contributor docs does not improve user docs. This layer requires its own persona work (see "Deferred personas" above).
Priority artifacts
docs/user-guides/recipes/has the infrastructure (one existing recipe); needs systematic coverage of common workflows (random data generation → array manipulation → statistics → visualization).README.mdcovers these topics, but no standalone guides exist underdocs/.docs/migration-guides/have comparison data for 9 libraries (with benchmarks for some); need evaluative framing ("when and why to choose stdlib").batpigandme commentedon Jun 3, 2026
Summary
Personas and an onboarding documentation plan are defined and operating as the spine for ongoing contributor-experience work.
Personas
Three named personas — two constructed (Raj, typical first-time contributor; Conway, agentic user) and one observed (built from real contributor feedback that motivated the make-discoverability initiative). Each persona has constraints, knowledge gaps, failure modes, and a tier-0→tier-3 complexity ramp. The observed persona's promotion from "onboarding informant" to full persona distinguishes empirical findings from designed generalization.
Onboarding documentation plan
Four layers, ordered by Raj's path through the contributor experience:
make doctor-style setup CLI (exploratory).Key analytical outputs
Each developed empirically, not a priori:
Status
Personas, plan, and analytical framework are in place and now guide forward documentation work across all four layers; specific artifacts are tracked in the Y1Q3 plan.
NSF report alignment
Material from this deliverable maps to the following sections of the NSF Y1 project report:
makediscoverability, decrease CI reliance).