Index of every page on this site: llms.txt
All skills
superdesigndev avatar

/dev-local

@efd91dc
by Superdesignsuperdesigndev/treg8.8k stars
870
Run it yourself

One-command local dev stack for tools-registry. Use when asked to "start the dev server", "run treg locally", "test login locally", "bring the stack up", or before any manual/browser test against localhost.

Use this Skill: https://skilld.dev/gh/superdesigndev/treg/dev-local

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈54 tokens for metadata: the name and description. ≈541 when used: this file.

Description uses 2.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈218 characters, or 2.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

dev-local — the local treg stack in one command

scripts/dev-local.sh runs the FastAPI server in a tmux session with dev-safe settings, and gives you a sandboxed CLI that never touches ~/.treg/config.json.

Service Command (managed by the script) Port
treg server uv run python -m treg --reload + TREG_EMAIL_DEV_MODE=true, own sqlite treg-dev.db 18790
Dashboard Vite npm run dev in frontend/, hot updates loaded by the Python entry 5173

No infra deps (sqlite). Prerequisites: Node 22.12+, npm, tmux, uv (the script runs uv sync if .venv is missing).

Subcommands

scripts/dev-local.sh up          # start (idempotent) — prints URLs when healthy
scripts/dev-local.sh down        # stop the session
scripts/dev-local.sh status      # windows + port check
scripts/dev-local.sh logs        # last 200 lines of the server window
scripts/dev-local.sh restart     # respawn the server window
scripts/dev-local.sh attach      # attach to tmux
scripts/dev-local.sh cli <args>  # working-tree treg CLI, sandboxed HOME, pre-pointed at localhost
scripts/dev-local.sh reset       # down + wipe treg-dev.db and the CLI sandbox

cli is the key trick for login testing: scripts/dev-local.sh cli login runs the repo's CLI against localhost with HOME=scripts/.dev-home, so the real ~/.treg/config.json (usually pointing at production) is never overwritten. Email OTP dev mode is on — codes appear in the login page / API response, no mail sender needed.

TREG_DEV_DB=/absolute/path/to/dev.db selects a separate database without resetting the default.

For a LAN preview, build with bash scripts/build-dashboard.sh, then use TREG_FRONTEND_DEV=false scripts/dev-local.sh restart (or up if stopped). This serves compiled assets on port 18790; the default hot-update mode requires a browser on the same machine.

Troubleshooting

  • Port 18790 in use, no session → something else owns it: lsof -i :18790.
  • Server window died → scripts/dev-local.sh logs for the traceback, then restart.
  • Stale dev state / want a fresh DB → scripts/dev-local.sh reset then up.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a set of commands to manage a local development environment for the tools-registry project. It uses a local shell script to orchestrate a FastAPI server and a sandboxed CLI, incorporating security best practices like environment isolation to protect production configurations.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at efd91dc. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
metadata
{
  "internal": true
}

README badge

README badge for superdesigndev/treg/dev-local