local-project-runtime
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "local-project-runtime" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-727c1fc00917d01b8c2d0db454012ba03ff5447e665eab8a9475fbecd48ae585. Verify the upstream source and version against https://github.com/penwyp/ClaudePreference before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Diagnose and stabilize local project setup after cloning or checkout. Intended for repositories that require repeatable build/start/test/lifecycle workflows, Docker Compose management, port selection, or build cache handling.
Introduction source: third_party · penwyp · 0.0.1 Reference
SkillPi interpretation
- Tasks
- 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.
- Testing
- Not tested
Browse files
Frontmatter
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
-
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.
- Read root docs and manifests:
-
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.
-
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.
- Keep build/start/test contracts in one local runtime surface, normally
-
Add or repair a lifecycle manager:
- Required commands:
init,deps,build,test,image,start,apply,restart,stop,status,logs,ps,clean,doctor. startcreates services and waits for health.applyrebuilds the image and force-recreates the service.restartrestarts an existing container; if none exists, it must start instead of doing an empty restart.statusmust show Compose state and HTTP health.cleanmust stop services and remove local runtime data only.
- Required commands:
-
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
.dockerignoreto exclude local build artifacts and caches.
-
Add port and health decisions:
- Keep host port in
deploy/local/.env; generate it from.env.exampleor defaults. - For a new lifecycle manager, do not default to port 3000. Allocate a random free host port from
[30-300] * 100while excluding3000, effectively3100, 3200, ... 30000. - If
deploy/local/runtime/control.shalready exists anddeploy/local/.envor.env.examplealready 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] * 100pool and update public URL. - Probe health with a bounded retry loop and print recent service logs on failure.
- Use concrete URLs in handoff.
- Keep host port in
-
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.
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:
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.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决本地项目克隆后构建/启动/测试等高频刚需场景
- 提供可重复的生命周期工作流管理,显著提升开发效率
Highlights
- 触发词精准完整,覆盖多种项目类型和场景变体
- 边界清晰,不易与其他 Skill 重叠
Highlights
- Phase/步骤清晰,包含完整的端到端验证流程
- frontmatter 完整,文档结构规范易读
Highlights
- 工具来源明确,参数设计合理
- 覆盖主要异常场景(端口占用、健康探测失败)
- 不可逆操作有安全限制(clean 仅移除本地数据)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.