Agent skill

Local Project Runtime

by penwyp in penwyp/ClaudePreference

Diagnose and stabilize local project setup after clone or checkout.

MITAuto-check: notesDevelopment

Install Local Project Runtime

skills CLI
$ npx skills add penwyp/ClaudePreference --skill local-project-runtime -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install penwyp/ClaudePreference local-project-runtime --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/penwyp/ClaudePreference.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/local-project-runtime .claude/skills/local-project-runtime && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
local-project-runtime
GitHub stars
136
Token cost
~1.1k tokens
SKILL.md length
517 words
Files
6 (incl. scripts, references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Diagnose and stabilize local project setup after clone or checkout.

  • Works in 7 steps: Inspect first → Reproduce narrowly → Fix architecture, not symptoms → …
  • A repo needs repeatable build/start/test/lifecycle workflows
  • SKILL.md covers Core Workflow and Bundled Resources
  • Runs JavaScript scripts from its folder; calls node

What it does

Local Project Runtime is an agent skill from penwyp/ClaudePreference. Diagnose and stabilize local project setup after clone or checkout. Use when a repo needs repeatable build/start/test/lifecycle workflows, Docker Compose management, port selection, or build caching.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/build-cache.md` and `references/diagnostics.md`).

It sits in Development, covering Containers and Monorepo tooling. It works with Docker. The repository describes itself as: A comprehensive collection of development workflow commands for Claude Code. The licence is MIT.

When your agent uses it

  • A repo needs repeatable build/start/test/lifecycle workflows
  • Docker Compose management

Example prompts

  • “/local-project-runtime”

Requirements

  • Node.js
  • Docker

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Inspect first
  2. Reproduce narrowly
  3. Fix architecture, not symptoms
  4. Add or repair a lifecycle manager
  5. Add build acceleration where justified
  6. Add port and health decisions
  7. Verify end to end

What it can do on your machine

Read from SKILL.md and the folder at commit a5eea54. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Local Project Runtime loads about 1.1k tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 517 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:42
    - Keep host port in `deploy/local/.env`; generate it from `.env.example` or defaults.
  • NoteMentions a .env fileSKILL.md:44
    rol.sh` already exists and `deploy/local/.env` or `.env.example` already contains a host port, keep that port and do not

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from penwyp/ClaudePreference at commit a5eea54, republished under its MIT licence (© penwyp). 517 words, ~1,063 tokens.

Download SKILL.mdSave it as .claude/skills/local-project-runtime/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
local-project-runtime
description
Diagnose and stabilize local project setup after clone or checkout. Use when a repo needs repeatable build/start/test/lifecycle workflows, Docker Compose management, port selection, or build caching.

Local Project Runtime

Use this skill to turn an unknown repository into a locally manageable project with predictable build, start, test, logs, health, and cleanup commands.

Core Workflow

  1. Inspect first:

    • Read root docs and manifests: README*, AGENTS.md, package.json, lockfiles, Dockerfile, Compose files, Makefile, task runner configs, CI workflows.
    • Identify the package manager, runtime, service entrypoint, frontend directories, backend directories, DB/external dependencies, default ports, and health endpoints.
    • Check current worktree state before editing.
  2. Reproduce narrowly:

    • Run the smallest relevant command for the reported failure.
    • Capture the exact failing phase: dependency install, typecheck/compile, frontend bundle, Docker image build, container boot, health probe, migration, or test runner.
    • Prefer targeted checks before repo-wide verification.
  3. Fix architecture, not symptoms:

    • Keep build/start/test contracts in one local runtime surface, normally deploy/local/.
    • Avoid one-off shell notes that cannot be rerun.
    • Make generated scripts explicit, idempotent, and safe when services are absent.
  4. Add or repair a lifecycle manager:

    • Required commands: init, deps, build, test, image, start, apply, restart, stop, status, logs, ps, clean, doctor.
    • start creates services and waits for health.
    • apply rebuilds the image and force-recreates the service.
    • restart restarts an existing container; if none exists, it must start instead of doing an empty restart.
    • status must show Compose state and HTTP health.
    • clean must stop services and remove local runtime data only.
  5. Add build acceleration where justified:

    • For Node/monorepos, add a local build wrapper that hashes frontend inputs and skips frontend production bundling when unchanged.
    • Preserve correctness by hashing lockfiles, frontend source/config/public assets, and shared packages imported by the frontend.
    • For Docker, split frontend build into its own layer before backend/application COPY . . so backend-only changes reuse frontend layers.
    • Update .dockerignore to exclude local build artifacts and caches.
  6. Add port and health decisions:

    • Keep host port in deploy/local/.env; generate it from .env.example or defaults.
    • For a new lifecycle manager, do not default to port 3000. Allocate a random free host port from [30-300] * 100 while excluding 3000, effectively 3100, 3200, ... 30000.
    • If deploy/local/runtime/control.sh already exists and deploy/local/.env or .env.example already contains a host port, keep that port and do not allocate a new one.
    • If the configured host port is occupied and the project service is not already running, auto-select another free port from the same [30-300] * 100 pool and update public URL.
    • Probe health with a bounded retry loop and print recent service logs on failure.
    • Use concrete URLs in handoff.
  7. Verify end to end:

    • Syntax-check generated scripts.
    • Validate Compose config.
    • Run first build and a second build to prove cache behavior if caching was added.
    • Start or apply the service and verify HTTP health.
    • Run relevant tests or report why tests were not run.
Show full SKILL.md (72 more words)Show less

Bundled Resources

  • For lifecycle script semantics and command contracts, read references/lifecycle-manager.md.
  • For frontend compile speed, task caching, Docker layer caching, and invalidation rules, read references/build-cache.md.
  • For build/start/test failure triage patterns, read references/diagnostics.md.
  • For Node/PNPM/NPM/Yarn projects, run or adapt:
sh
node skills/local-project-runtime/scripts/scaffold-node-runtime.mjs --help

The scaffold script is a starting point, not a substitute for repo inspection. Review generated files before final handoff and adjust commands, ports, health paths, service names, and Dockerfile behavior to match the project.

© penwyp, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in skills/local-project-runtime of penwyp/ClaudePreference.

  • SKILL.md
  • agents/openai.yaml
  • references/build-cache.md
  • references/diagnostics.md
  • references/lifecycle-manager.md
  • scripts/scaffold-node-runtime.mjs

Open the folder on GitHubat commit a5eea54

Compare with similar skills

Local Project Runtime next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Local Project Runtime compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Local Project Runtime this skillpenwyp/ClaudePreference136—~1.1kAutomated safety check: NotesMIT
Lineth QuickstartLFDT-Lineth/lineth-monorepo126—~1kAutomated safety check: NotesAGPL-3.0
Build Px4 macOSPX4/PX4-Autopilot13k—~1.1kAutomated safety check: PassBSD-3-Clause
CI Act Runchewiebug/GCViewer4.6k—~2.4kAutomated safety check: NotesCustom licence
Megatron-LM Container and Dependency SetupNVIDIA/Megatron-LM18k—~2.6kAutomated safety check: PassApache-2.0
Running TestsNangoHQ/nango13k—~876Automated safety check: PassCustom licence

Similar skills

  • Lineth Quickstart

    LFDT-Lineth/lineth-monorepo

    Operating manual for the Lineth Stack quickstart — the Docker-Compose dev/demo stack at docs/getting-started/lineth-stack in the lineth-monorepo that boots a local Linea/Lineth L2 with Sepolia or…

    126 GitHub stars~1k tokensUpdated today
    DevelopmentAuto-check: notes
  • Build Px4 macOS

    PX4/PX4-Autopilot

    Build PX4 board firmware on macOS in the px4-dev Docker container, including git worktrees, and stage commit-labeled artifacts without flashing hardware.

    13k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • CI Act Run

    chewiebug/GCViewer

    Run the full build-and-deploy.yaml workflow locally via act + Docker.

    4.6k GitHub stars~2.4k tokensUpdated 3 mo ago
    DevelopmentAuto-check: notes
  • Official

    Walks an agent through working inside the Megatron-LM CI container and changing dependencies with uv, so lock files resolve the same locally and in CI.

    18k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Running Tests

    NangoHQ/nango

    A skill your agent uses when running tests in the Nango monorepo - knows unit vs integration configs, vitest commands, Docker setup, and common test patterns

    13k GitHub stars~876 tokensUpdated today
    Testing & QAAuto-check passed
  • Curate Whats New

    docker/docs

    Official

    Curate noteworthy Docker launches from documentation pull requests merged during a requested period.

    4.7k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed

More from penwyp/ClaudePreference

  • Image Converter

    penwyp/ClaudePreference

    Convert images between common formats on macOS, especially SVG/PNG/ICO/ICNS/JPEG/WebP/PDF, using installed local tools such as ImageMagick, rsvg-convert, sips, qlmanage, and iconutil.

    136 GitHub stars~955 tokensUpdated 4 mo ago
    Auto-check passed
  • Explain

    penwyp/ClaudePreference

    Analyze a code snippet, file path, symbol name, or the current conversation context against the local repository and explain what it does in the project.

    136 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Refactor Design Report

    penwyp/ClaudePreference

    Produce a professional, code-grounded refactor or implementation design report from identified technical problems, product gaps, review findings, architecture concerns, or frontend-backend contract…

    136 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Doc Code Review Report

    penwyp/ClaudePreference

    Review text input or documents against the local codebase and produce a structured review report with findings and refactor suggestions.

    136 GitHub stars~1.5k tokensUpdated 4 mo ago
    Auto-check passed
  • Browser Flow Fallbacks

    penwyp/ClaudePreference

    Diagnose flaky browser automation flows (login, OAuth, signup, multi-step forms).

    136 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Develop Review Gate

    penwyp/ClaudePreference

    适用于这类请求:直接在当前 checkout 完成开发、固定做两轮自我 review/refactor、先把最终 review 结果给人类确认、确认后再继续改动、提交或进入下一步。用户可能会说:"先开发再自审两轮"、"先 review 两次再给我确认"、"不要开 worktree,直接改"、"先输出 review 结论不要继续"、"做完先停在 gate"。

    136 GitHub stars~846 tokensUpdated 4 mo ago
    Auto-check passed

Works with

Questions about Local Project Runtime

What does Local Project Runtime do?

Diagnose and stabilize local project setup after clone or checkout. Local Project Runtime is an agent skill from penwyp/ClaudePreference. Diagnose and stabilize local project setup after clone or checkout.

When should I use Local Project Runtime?

Local Project Runtime fits situations like: A repo needs repeatable build/start/test/lifecycle workflows; Docker Compose management.

How do I install Local Project Runtime in Claude Code?

Run `npx skills add penwyp/ClaudePreference --skill local-project-runtime -a claude-code`. Or copy the skill folder (skills/local-project-runtime in penwyp/ClaudePreference) into .claude/skills/local-project-runtime in your project. Claude Code loads it when a task matches its description.

How do I install Local Project Runtime in Codex?

Run `npx skills add penwyp/ClaudePreference --skill local-project-runtime -a codex`. Or copy the skill folder (skills/local-project-runtime in penwyp/ClaudePreference) into .agents/skills/local-project-runtime in your project. Codex loads it when a task matches its description.

Can I use Local Project Runtime in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add penwyp/ClaudePreference --skill local-project-runtime -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/local-project-runtime, .gemini/skills/local-project-runtime, .github/skills/local-project-runtime and .opencode/skills/local-project-runtime in your project.

What does Local Project Runtime need to run?

Going by SKILL.md and its folder, Local Project Runtime needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node). Our summary lists: Node.js; Docker.

Does Local Project Runtime access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Local Project Runtime safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Local Project Runtime use?

Local Project Runtime is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Local Project Runtime use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.

What are the alternatives to Local Project Runtime?

Skills that share tags, products or a category with Local Project Runtime: Lineth Quickstart (LFDT-Lineth/lineth-monorepo, 126 stars), Build Px4 macOS (PX4/PX4-Autopilot, 13k stars), CI Act Run (chewiebug/GCViewer, 4.6k stars) and Megatron-LM Container and Dependency Setup (NVIDIA/Megatron-LM, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Local Project Runtime?

penwyp (a GitHub user) maintains it in penwyp/ClaudePreference, which has 136 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on May 27, 2026.

Source: penwyp/ClaudePreference on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.