Skip to content
Back to skills

Re Extract

ASecurity

Re-extract the legacy Confluence RouterOS documentation export into SQLite. Use only for rebuilding historical pre-migration DBs; the default pipeline (make extract-full) fetches the live manual.mikrotik.com Docusaurus docs instead.

  • 50 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 4, 2026
ai-agentssqlgitdatabasedocumentation

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add tikoci/rosetta --skill re-extract --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Re Extract?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Re Extract
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tikoci-re-extract/badge)](https://www.skillsdirectory.com/skills/tikoci-re-extract)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: re-extract
description: "Re-extract the legacy Confluence RouterOS documentation export into SQLite. Use only for rebuilding historical pre-migration DBs; the default pipeline (make extract-full) fetches the live manual.mikrotik.com Docusaurus docs instead."
argument-hint: "Path to legacy HTML export directory (optional)"
---
# Re-extract Legacy Documentation Pipeline

## When to Use
- A legacy Confluence HTML export is available
- Database needs rebuilding from scratch
- Schema changes require fresh extraction
- New RouterOS versions available in restraml GitHub Pages

Do **not** use this skill as the migration path for <https://manual.mikrotik.com>. MikroTik's new Docusaurus manual and CLI Reference require extractor and MCP/TUI result-shape redesign; read `DESIGN.md` and `briefings/B-0012-docusaurus-manual-migration.md` first.

## Procedure

1. **Verify prerequisites**
   - Bun is installed: `bun --version`
   - Dependencies installed: `bun install`
   - Legacy HTML export exists in `box/documents-export-*/ROS/`
   - For commands: internet access to `https://tikoci.github.io/restraml/` (or provide a local docs path explicitly)

2. **Clean existing database**
   ```sh
   make clean
   ```

3. **Run the legacy pipeline**

   `make extract` / `make extract-full` are the Docusaurus pipeline and never read
   `box/` — the legacy path is its own sequence:
   ```sh
   make extract-legacy-confluence   # extract-html + extract-properties from box/latest/ROS
   make extract-commands            # single version (fast), or:
   make extract-all-versions        # all tracked RouterOS versions (slower)
   make link
   ```

   Pipeline order:
   - `extract-html` — HTML → pages + callouts tables
   - `extract-properties` — Property tables from HTML → properties table
   - `extract-commands` or `extract-all-versions` — inspect.json → commands + ros_versions + command_versions
   - `link` — command ↔ page mapping

   Do not run this against a DB built by `extract-docusaurus` — pick one prose source per build.

4. **Verify results**
   ```sh
   make search query="firewall filter"
   ```
   Expected counts (March 2026 export, all versions):
   - ~317 pages, ~4860 properties, ~1034 callouts
   - ~40K commands (primary version), ~1.67M command_versions
   - 46 ros_versions, ~92% dir link coverage

5. **Validate with type check and lint**
   ```sh
   bun run typecheck && make lint
   ```

## Troubleshooting
- If HTML directory changed, update `HTML_DIR` in the root Makefile
- If using offline/local data, pass explicit source paths to `extract-commands.ts` or `extract-all-versions.ts`
- Each extractor is idempotent — safe to re-run individually
- FK deletion order matters: callouts → properties → pages

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.