Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@askrjs/cli

Latest version: v0.5.3

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: smiggleworth
1 Stars
1 Forks
13 Versions
537 Downloads
TypeScript Repo language

Scan summary

@askrjs/cli was last scanned on 28 Nov 2026 at version 0.5.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 13 versions; the latest 2 were published on 28 Nov 2026.
  • Findings: No rules fired in version 0.5.3.
  • Downloads: 537 downloads.

Versions

13 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.3 LATEST 28 Nov 2026 No rules fired
0.5.2 28 Nov 2026 No rules fired
0.5.1 2 Nov 2026 No rules fired
0.5.0 14 Oct 2026 Not shown
0.4.0 29 Sep 2026 Not shown

No rules fired in 0.5.3

Findings

Findings for v0.5.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.5.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

# @askrjs/cli

CI npm version

Unified CLI for the Askr platform.

@askrjs/cli bundles project scaffolding and static-site generation commands for Askr apps. It also installs the agent skills that teach AI assistants how to build idiomatic Askr code. Use it when you want a new project, repeatable SSG builds, prompt-to-app blueprints, route generators, or project-local skills/ guidance.

Install

npm install -g @askrjs/cli

Quick Start

npm install -g @askrjs/cli
askr create startkit my-app
cd my-app
npm run dev

Prompt-first scaffolding is also supported:

askr create --prompt "Agent workflow console with approvals and analytics"

The CLI uses deterministic weighted keyword matching to select a template, prints the matched terms and selection reason, writes .askr/blueprint.json and .askr/builder-brief.md, and installs bundled Askr skills into skills/ unless you opt out with --no-skills. Full-stack terms have weight 6, SSR and SSG terms weight 4, SPA and startkit terms weight 3, and startkit has a one-point default. An explicit positional template overrides prompt-based template selection, while the prompt can still supply an inferred app name.

Commands

  • askr create [template] <name> [--prompt <text>] [--no-install] [--no-skills]
  • askr add page <name> [--branch app|public]
  • askr add action <name> --route <path>
  • askr add database postgres|sqlite [--cwd <dir>] [--force]
  • askr analyze [--cwd <dir>] [--workspace <pattern>]... [--json] [--check]
  • askr doctor [--cwd <dir>] [--workspace <pattern>]... [--json]
  • askr repair [--cwd <dir>] [--workspace <pattern>]... [--json]
  • askr check [--cwd <dir>] [--workspace <pattern>]... [--json]
  • askr database validate|generate [--database <name>] [--json]
  • askr database migration create|status|plan|apply|resolve ...
  • askr docs check|snapshot [--root <dir>] [--json]
  • askr skills list
  • askr skills install [--cwd <dir>] [--force]
  • askr skills sync [--cwd <dir>]
  • askr ssg --config <path> --output <dir> [--incremental]
  • askr openapi [--entry ./src/api.ts] [--output ./openapi.yml] [--check]
  • askr outdated [packages...] [--workspace <glob>] [--tag <tag>] [--json]
  • askr update [packages...] [--workspace <glob>] [--tag <tag>] [--json]
  • askr upgrade [packages...] [--workspace <glob>] [--tag <tag>] [--json]

The installed command is askr. Subcommands are intentionally not published as compatibility binaries.

Static analysis

askr analyze discovers the containing npm or pnpm workspace, builds a TypeScript compiler program for every selected workspace, and checks current Askr state, lifecycle, data, control-flow, routing, boot, SSR/SSG, action, and configuration contracts.

askr analyze
askr analyze --workspace "@scope/web"
askr analyze --check
askr analyze --json --check

All diagnostics include a stable rule ID and workspace-relative source location. The analyzer distinguishes canonical Askr imports from unrelated same-named functions and only recommends <For> for state-backed reactive JSX collections, so static transforms with .map() remain valid. Source discovery honors project and nested .gitignore files; use askr.analyze.exclude in the workspace-root manifest for additional analyzer-only patterns.

By default it transactionally applies only mechanical route-parameter and plain-JSON JSX configuration fixes. --check is read-only for CI. Semantic rewrites, including .map() to <For>, conditional primitives, and key changes, are always report-only. See the analyze command reference for rules and configuration.

Project recovery loop

Every generated project uses the same guardrail loop:

askr doctor
askr repair
askr check

doctor performs a read-only environment, package-manager, framework, skills, and static-analysis inspection. repair transactionally applies only safe mechanical fixes and reports remaining semantic work. check requires clean analysis before running the project's declared lint, typecheck, test, and build scripts in order. When database/index.ts exists, check first delegates database validation to the project's installed @askrjs/orm tooling. Generated projects expose that final gate as npm run check.

Database tooling

askr database ... is a lazy front end. The CLI resolves @askrjs/orm/tooling from the target project and delegates the complete command, so schema generation and migration semantics always match the project's installed ORM version. See the database command reference.

See the project guardrails reference for command and JSON contracts.

Static sitemap generation

askr ssg writes sitemap.xml from the concrete routes generated during the build. Set the canonical deploy URL in the TypeScript config:

export const staticConfig = {
  registry,
  outputDir: "./dist",
  siteUrl: "https://example.com",
  sitemap: {
    defaults: { changeFrequency: "weekly" },
    routes: {
      "/404": false,
      "/docs": { priority: 0.8, lastModified: "2026-07-18" },
    },
  },
};

SitemapConfig and SsgOutputReportConfig are available from @askrjs/cli/ssg for projects that want an explicit annotation.

Successful and incrementally skipped concrete routes are included by default. Failed routes and wildcard templates are excluded. Route settings support a canonical URL override, lastModified, changeFrequency, priority, and hreflang alternates. Use resolve(route) for data-driven metadata or return false to exclude a route. Set sitemap: false for an intentional opt-out.

The CLI validates real calendar dates, bounds asynchronous metadata resolution, and enforces the sitemap protocol limits of 50,000 URLs and 50 MB per file. Larger sites receive deterministic sitemap chunks plus a sitemap index. It also creates or updates robots.txt while preserving unrelated directives and tracks owned files so stale chunks and previous output paths are removed. Full and incremental builds publish route output, metadata, assets and sitemap artifacts as one complete tree through a sibling staging directory. If a process exits between publication renames, the next build restores the old output or finishes cleanup of the completed output before copying it. A recovery conflict stops the build and names the record and original backup for inspection. See the SSG recovery boundary for details. OpenAPI client generation uses the same publication recovery. Project creation checks that its destination is still missing or empty under the publication lock, so a concurrent create cannot replace an already published project.

OpenAPI artifacts

askr openapi loads a TypeScript module whose default export exposes toOpenApiDocument(), then writes deterministic YAML atomically. It defaults to ./src/api.ts and ./openapi.yml:

askr openapi
askr openapi --check

Use --entry or --output to override either path. Check mode performs no writes and exits unsuccessfully when the artifact is missing or differs by even one byte, making it suitable for CI drift checks.

The first shipped generator is askr add page, which scaffolds a page file and registers it in route-first SPA branches (src/pages/app/_routes.tsx or src/pages/public/_routes.tsx).

Dependency updates

The dependency commands are Askr-owned and discover the containing npm or pnpm workspace from nested directories, include the root manifest and declared workspaces, and reports safe, breaking, local, manual, and failed decisions without running an install.

askr outdated
askr update
askr upgrade
askr upgrade --force
askr update vite "@types/*"
askr update --workspace "@scope/app" --tag next --json

askr update writes safe range changes. askr upgrade jointly selects the newest peer-compatible published versions up to each package's configured dist-tag, including breaking changes. Required peers must be present; optional peers may be absent. askr upgrade --force writes the dist-tag targets directly and skips peer checks. Positional selection is strict: unselected dependencies constrain the solution but are never rewritten.

The updater preserves exact, caret, tilde, and x-range styles. It can widen one bounded interval, and it updates only the highest clause of a simple OR union. Complex ranges, npm aliases, and other ambiguous specifications are reported as manual. Workspace, file, link, Git, URL, tracking-tag, and wildcard declarations are not rewritten.

Only package.json dependency values are changed. The command never writes a lockfile, installs packages, runs lifecycle scripts, or edits overrides, resolutions, catalogs, or packageManager metadata. See the update command reference for policy and output details.

Writes save original copies before replacement and reject manifests changed since planning. If restoring a failed replacement also fails, the error names the preserved recovery copy and target to restore before retrying. See the reference for recovery after process termination.

Agent skills

Install the bundled Askr skills into a project:

askr skills install

New projects created with askr create already receive the bundled skills by default. Use --no-skills when you need a minimal scaffold.

Use sync to update an existing project. It overwrites bundled askr-* skill folders and removes obsolete askr-* folders, while preserving unrelated custom skills.

askr skills sync

The bundled skills include guidance for route-first project structure, API integration, auth/access, agent workflows, realtime/event-sourced UX, eventual consistency, observability, accessibility, file/artifact flows, the Askr mental model, and agent execution discipline.

Templates

Supported templates for create:

  • spa
  • ssr
  • ssg
  • full-stack
  • startkit

Templates are stored in templates/.

Docs

  • CLI docs

The 0.5 SSG surface keeps those two configuration types. See the complete export decisions and migration guide for supporting-type replacements.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @askrjs/cli

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229