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

@documentation-robotics/cli

Latest version: v0.8.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: tinkermonkey
1 Stars
2 Forks
15 Versions
1.1K Downloads
TypeScript Repo language

Scan summary

@documentation-robotics/cli was last scanned on 24 Nov 2026 at version 0.8.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 15 versions; the latest 4 were published within 5 days (20–24 Nov 2026).
  • Findings: No rules fired in version 0.8.0.
  • Downloads: 1,056 downloads.

Versions

15 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.8.0 LATEST 24 Nov 2026 No rules fired
0.7.1 22 Nov 2026 No rules fired
0.7.0 20 Nov 2026 No rules fired
0.6.0 20 Nov 2026 Not shown
0.5.0 17 Nov 2026 Not shown

No rules fired in 0.8.0

Findings

Findings for v0.8.0. 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.8.0; other versions have their own rules, not their own score.

README

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

Documentation Robotics CLI

A command-line tool for managing comprehensive architecture models that span from business requirements through technical implementation.

npm version License: MIT

What is Documentation Robotics?

Documentation Robotics helps you build and maintain a federated architecture model across 13 interconnected layers:

  1. Motivation - Goals, requirements, stakeholders
  2. Business - Business processes and services
  3. Product - Personas, capabilities, features, workflows, milestones
  4. Security - Authentication, authorization, threats
  5. Application - Application services and components
  6. Technology - Infrastructure and platforms
  7. API - REST APIs and operations
  8. Data Model - Entities and relationships
  9. Data Store - Database schemas
  10. UX - User interface components
  11. Navigation - Application routing
  12. APM - Observability and monitoring
  13. Testing - Test strategies and cases

Key Benefits:

  • Trace dependencies from business goals to implementation
  • Export to industry standards (ArchiMate, OpenAPI, JSON Schema)
  • Visualize your architecture in an interactive web interface
  • Chat with AI (Claude Code or GitHub Copilot) about your architecture model
  • Validate model integrity automatically

Installation

Global Installation (Recommended)
npm install -g @documentation-robotics/cli
Local Installation (Project-Specific)
npm install @documentation-robotics/cli
Verify Installation
dr --version
dr --help
System Requirements
Feature Requirement Notes
Basic CLI Node.js 18+ All commands work
Visualization Node.js 18+ Interactive web interface
Chat Claude Code CLI or GitHub Copilot AI-powered architecture discussions

Quick Start

1. Create Your First Model
# Initialize a new model
dr init --name "My Architecture" --author "Your Name"

# Add some elements (format: dr add <layer> <type> <name>)
dr add motivation goal customer-satisfaction \
  --name "Ensure customer satisfaction"

dr add business service order-management \
  --name "Order Management Service"

dr add api endpoint create-order \
  --name "Create Order" \
  --properties '{"method":"POST","path":"/api/orders"}'
2. View Your Model
# Show model summary
dr info

# List elements in a layer
dr list api

# Search for elements
dr search order

# Show element details
dr show api-endpoint-create-order
3. Visualize Your Architecture
# Open the viewer at this project (starts the DR process for your farm if it isn't running)
dr visualize

# Opens in your browser at http://127.0.0.1:8080/#/p/<project>/c/<checkout>/
# - Explore layers and relationships
# - Search and filter elements
# - Chat with Claude about your model
4. Export Your Model
# Export to ArchiMate (enterprise architecture standard)
dr export archimate --output model.xml

# Export API layer to OpenAPI spec
dr export openapi --layers api --output api-spec.yaml

# Export to Markdown documentation
dr export markdown --output docs/architecture.md

Common Commands

Model Management
dr init                     # Initialize new model
dr info                     # Show model information
dr validate                 # Validate model integrity
dr upgrade                  # Check for spec upgrades
Model Farms

A farm (farm.yaml) groups several projects' models so they can be synced and validated together with cross-model references.

dr farm init                              # Create a farm in the current directory
dr farm add my-service                    # Register ./my-service; scaffolds my-service-model
dr farm add my-service --codebase ../my-service   # Sibling checkout outside the farm root
dr farm add my-service --new-model        # Scaffold even if the codebase has its own model
dr farm add my-service --model ../models/my-service   # Register an existing model explicitly
dr farm status                            # Pending changes per project
dr farm validate                          # Validate with farm-aware references
dr farm sync [--auto-commit]              # Map codebase changes into staged changesets
dr farm remove my-service [--delete-model]

A codebase that already carries a model (documentation-robotics/model/manifest.yaml, or model/manifest.yaml, or manifest.yaml at the codebase path) is adopted in place by dr farm add rather than shadowed by an empty duplicate: farm.yaml points at it, even outside the farm root, and the other farm commands read and write it there. --delete-model never deletes an adopted model, and sync --auto-commit leaves committing a model in another git repository to that repository (reported as git_committed: false with a warning). See docs/FARM_AUTOMATION.md for flags, JSON output and CI recipes.

Working with Elements
dr add <layer> <type> <id>       # Add element
dr update <element-id>           # Update element
dr delete <element-id>           # Delete element
dr show <element-id>             # Show element details
dr list <layer>                  # List layer elements
dr search <query>                # Search elements

Element ID Format: {layer}.{ElementType}.{kebab-case-name}

Examples:

  • motivation.goal.customer-satisfaction
  • business.service.order-management
  • api.endpoint.create-order
  • data-model.entity.user-profile

Important: In CLI commands, element types use lowercase (e.g., goal, service, endpoint), while element names use kebab-case (e.g., customer-satisfaction). In generated element IDs, the type segment matches the CLI format (e.g., motivation.goal.customer-satisfaction).

How a name becomes an ID: dr add, the MCP model_add tool and code extraction (codebase_extract) derive the last part of an ID from the element's name by one rule, so the same name gives the same ID in each. An ID is derived once, when the element is created; later versions of the rule never rename an element.

Name ID ends in Rule
Customer Management customer-management Spaces and underscores are word breaks
GraphLayoutSnapshot graph-layout-snapshot camelCase is split
Tier1Status tier1-status A digit ends a word when a capitalised word follows (3D stays 3d)
Node.js node-js Dots, slashes and braces are word breaks
GET / get-root A route on the root path
3D Object Effect n-3d-object-effect An ID starts with a letter, so a leading digit gets the prefix n-
a name over 100 characters cut at a word, plus a hash Long names (test titles) are cut and end with a hash of the whole name

See Element Type Reference for comprehensive documentation of all element types by layer.

Source File Tracking

Link architecture elements to their implementation source code:

# Add element with source reference
dr add api endpoint create-user \
  --name "Create User Endpoint" \
  --source-file "src/api/endpoints/users.ts" \
  --source-symbol "createUser" \
  --source-provenance "extracted"

# Update element to add source reference
dr update api-endpoint-create-user \
  --source-file "src/api/endpoints/users.ts" \
  --source-symbol "createUser" \
  --source-provenance "extracted" \
  --source-repo-remote "https://github.com/example/repo.git" \
  --source-repo-commit "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b"

# Show element with source reference details
dr show api-endpoint-create-user

# Search elements by source file
dr search --source-file "src/api/endpoints/users.ts"

# Clear source reference from element
dr update api-endpoint-create-user --clear-source-reference

Source Reference Options:

Option Required Description Example
--source-file When using source options Path to source file (relative to repo root) src/api/routes.ts
--source-symbol Optional Symbol name (function, class, variable) createUser
--source-provenance When using source options How reference was created: extracted, manual, inferred, generated extracted
--source-repo-remote Requires --source-repo-commit Git remote URL https://github.com/example/repo.git
--source-repo-commit Requires --source-repo-remote Full 40-character commit SHA a1b2c3d4...

Examples:

# Source reference with minimal information
dr add security policy auth-validate \
  --name "Auth Validation" \
  --source-file "src/security/auth.ts" \
  --source-provenance "manual"

# Source reference with symbol and repository context
dr add data-model entity user-entity \
  --name "User Entity" \
  --source-file "src/models/user.ts" \
  --source-symbol "User" \
  --source-provenance "extracted" \
  --source-repo-remote "https://github.com/myorg/myapp.git" \
  --source-repo-commit "5a7b3c9d1e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b"

# Search for all elements in a source file
dr search --source-file "src/services/auth.ts"

# Search by file with additional filters
dr search --source-file "src/api/endpoints.ts" --layer "06-api" --type "endpoint"

Provenance Types:

  • extracted: Automatically detected from source code via parsing/analysis tools
  • manual: Manually linked by a person reviewing source code
  • inferred: Determined through pattern matching and heuristics
  • generated: Created automatically from code generation or model transformation
Relationships & Dependencies
# Add relationships between elements
dr relationship add motivation.goal.customer-satisfaction \
                        business.service.customer-support \
                        --predicate "supports"

# List relationships for an element
dr relationship list business.service.order-management

# Trace dependencies (see which elements depend on this one)
dr trace api.endpoint.create-order

# Project dependencies to another layer
dr project api.endpoint.create-order business
Visualization & Export
dr visualize                             # Interactive web UI
dr export <format>                       # Export model
  # Formats: archimate, openapi, jsonschema, plantuml, markdown, graphml
AI-Powered Features
dr chat                                  # Auto-detect or use saved preference
dr chat claude-code                      # Use Claude Code, save as preference
dr chat github-copilot                   # Use GitHub Copilot, save as preference

Note: Chat requires either Claude Code CLI or GitHub Copilot CLI to be installed and authenticated. The CLI will auto-detect available clients and prompt you to choose if both are installed. You can also explicitly specify which client to use.

MCP Server

dr mcp connects an MCP-aware AI client to the Model Context Protocol interface of your DR process, exposing the architecture model (list/show/search/add/update/delete/validate/export/trace elements, changesets, chat) as tools the client can call directly.

# The stdio bridge (run by your MCP client, not typically by hand)
dr mcp

# Find or start the DR process and print its MCP endpoint and token file
dr mcp --http

One process for every project: MCP is served by the DR process for your farm (dr serve), the same process that serves the viewer. dr mcp over stdio is a bridge: it finds that process from its server record, starts it detached when none runs (or replaces one older than this CLI when nothing is using it), and forwards the client's messages to its /mcp endpoint with the process's token. The client's configuration holds no token.

Which checkout: each MCP session serves its own checkout, resolved through the farm's project registry: DR_MCP_ROOT_PATH when set, else the first of the client's MCP roots inside a registered project's checkout, else the first root (whose repository is then registered in the farm). Tool calls can still pass rootPath. Every tool result names the project and checkout it ran in. Nothing changes a process's working directory, so sessions in different checkouts never see each other's model.

Configuring an MCP client: in Claude Code, install the dr plugin (see MCP_SERVER.md). Other clients point at the dr binary:

{
  "mcpServers": {
    "dr": {
      "command": "dr",
      "args": ["mcp"]
    }
  }
}

HTTP: dr mcp --http (or --transport http) prints http://127.0.0.1:<port>/mcp and the 0600 file holding the process's token, then exits; the process keeps serving. Send the token as Authorization: Bearer <token>. The port and token change when the process restarts, which is why the stdio bridge is the default. --port and --host no longer apply (dr serve --port sets the port when it starts the process), and --regenerate-key only rotates the old standalone key, which nothing uses now.

In process: DR_MCP_IN_PROCESS=1 dr mcp serves the tools in the dr mcp process itself, for one session, without the DR process or the farm's registry, for a client that must not start a background process.

Configuration

Model Structure

Model data and changesets are stored in the documentation-robotics/ directory:

your-project/
├── documentation-robotics/
│   ├── model/
│   │   ├── manifest.yaml                    # Model metadata
│   │   ├── 01_motivation/
│   │   │   ├── goals.yaml
│   │   │   └── ...
│   │   ├── 02_business/
│   │   │   ├── services.yaml
│   │   │   └── ...
│   │   └── ...
│   └── changesets/
│       ├── feature-x/
│       │   ├── metadata.yaml   # Changeset metadata
│       │   └── changes.yaml    # Staged changes
│       └── ...

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 @documentation-robotics/cli

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229