Skip to main content

Prometheus Context Bootstrap

skills/prometheus-context-bootstrap/SKILL.md: installs compact, layered Prometheus agent context into a project with Node-only, copy-mode behavior. Use when initializing or refreshing AGENTS.md, CLAUDE.md, path-scoped Rust or TypeScript rules, and project-local Rust skill routing on Windows, macOS, or Linux. Do not use it for global skill installation or for replacing operator-owned project prose.

Compatibility declared in frontmatter: Node.js LTS (>=22); no shell, Python, symlinks, or executable bit required.

lib/context-bootstrap/bootstrap.mjs​

The implementation module backing this skill. It is invoked via:

node scripts/prometheus-context-bootstrap.mjs --path "../My Project" --dry-run
node scripts/prometheus-context-bootstrap.mjs --path "../My Project"
node scripts/prometheus-context-bootstrap.mjs --path "../My Project" --check

Per package.json, these are wired as npm run context:bootstrap and npm run context:check.

Update a project with existing instructions​

From the Mini checkout, point at the existing project. Audit summarizes instruction coverage and the proposed file changes. Preview displays the local diff and its digest.

node scripts/prometheus-context-bootstrap.mjs --path "../My Project" --audit
node scripts/prometheus-context-bootstrap.mjs --path "../My Project" --preview

Read the diff for files such as AGENTS.md and CLAUDE.md. If it preserves the project's local instructions, apply that preview. Replace the placeholder with its actual digest.

node scripts/prometheus-context-bootstrap.mjs --path "../My Project" --apply <PLAN_SHA256>
node scripts/prometheus-context-bootstrap.mjs --path "../My Project" --preview

A stale digest requires a fresh preview. After a successful update, the second preview should have no further instruction changes. Keep private diffs local. Bootstrap leaves repository staging and any global pack installation to the operator.

UI routing and existing teams​

Bootstrap now installs the portable UI catalog into project .agents/skills and .claude/skills, merges UI routing pointers and preserves a project .agents/UI_UX_PROTOCOL.md override. It also adopts resolvable existing teams through creator's install-project: an explicit selection wins, a sole team is selected, and ambiguous teams require an explicit choice. It does not invent a new team.

Select ambiguous teams with creator --team <id> before rerunning bootstrap. Existing native files, permissions and ownership are preserved; missing definitions and discovery instructions are installed. No native agents are launched. All code uses relevant team roles; only UI work loads UI guidance. With delegation unavailable, use sequential role instructions and report that limit.

See UI/UX routing and adoption for commands, Zed instruction precedence, recovery, optional-services behavior and the full-pack anti-shadowing constraint. Use the full pack's bootstrap on full-pack machines; mini belongs in The Boss's internal data directory there.

Relationship to this repo's own rules layer​

This pack's own CLAUDE.md/AGENTS.md are themselves generated by rules/build.mjs from rules/src/ — the same layered-rules architecture (Prometheus Rules Architecture v4) that prometheus-context-bootstrap installs into other projects. See Windows Constraints for how that architecture is applied to this repository itself.

See also​