bootstrap

A workflow for preparing and checking a Ruby on Rails development environment. It covers database migrations, seed data, running services, and smoke tests.

In plain words
What is it for?
Use it to find pending migrations, audit and run seed files, fix seed errors, restart the backend and worker services, and verify their status.
Why use it?
A project may fail before development because its database schema, sample data, or background services are not ready. This workflow checks those parts and limits repeated seed-fix attempts.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nodealchemy/powernode-platform/bootstrap
Any agent
npx skills add nodealchemy/powernode-platform --skill bootstrap
Clone the repo
git clone --depth 1 https://github.com/nodealchemy/powernode-platform

Made for: Claude Code, Codex.

Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 447 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00014 $0.00447
Opus 5 $0.00007 $0.00224
Sonnet 5 $0.00003 $0.00089
Haiku 4.5 $0.00001 $0.00045

Measured yesterday against content hash 7420032a30bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

bootstrap scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo systemctl restart powernode-backend@default

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/api/v1/health
.claude/skills/bootstrap/SKILL.md · 73 lines

What it actually says

Bootstrap Dev Environment

Validate and fix the development environment end-to-end. Follow this process exactly:

Step 1: Check Pending Migrations

cd server && bundle exec rails db:migrate:status

If any migrations are down, run bundle exec rails db:migrate.

Step 2: Audit Seed Files

Use Grep and Read to scan server/db/seeds/ files for:

  • class_name: references that don't match actual models in server/app/models/
  • Missing foreign_key: paired with class_name:
  • Hardcoded UUIDs that may conflict

Report any issues found before proceeding.

Step 3: Run Seeds

cd server && bundle exec rails db:seed 2>&1

If seeds fail:

  1. Read the error message carefully
  2. Identify the failing seed file and line
  3. Read the seed file and the related model
  4. Fix the seed file (association name, missing record, validation error)
  5. Re-run bundle exec rails db:seed
  6. Max 3 attempts — if still failing, stop and report the error

Step 4: Restart Services

sudo systemctl restart powernode-backend@default
sudo systemctl restart powernode-worker@default

Wait 5 seconds, then check status:

sudo scripts/systemd/powernode-installer.sh status

Step 5: Smoke Test

Run these health checks:

curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/api/v1/health
curl -s -o /dev/null -w "%{http_code}" http://localhost:4567/

Expected: 200 for both. Report any failures.

Step 6: Summary

Report:

  • Migrations applied (if any)
  • Seed issues found and fixed (if any)
  • Service status
  • Smoke test results
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 73 lines · 14 tokens per session scan B 7420032a30bc

Subscribe to this mod's changes

bootstrap is a skill published in the GitHub repository nodealchemy/powernode-platform (2 stars, last pushed 4d ago), licensed MIT. It adds 14 tokens to every session and 447 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

good-first-issue-batch

File a batch of contributor-ready GitHub issues from the seeds backlog, re-verifying every candidate against HEAD first so no dead issue reaches a contributor. Activate for prompts like "file some good first issues", "open a batch of GFIs", "publish backlog issues to GitHub", "find contributor-ready work", or after an…

jayminwest/warren · 80 tokens

seeds-issue-audit

Audit and triage open Seeds (sd) issues — find which can be closed, auto-close high-confidence completed ones, and report borderline cases. Activate for prompts like "audit open issues", "which seeds issues can be closed", "clean up the issue tracker", "triage the seeds backlog".

jayminwest/warren · 67 tokens

os-eco-dep-sync

Bump warren onto the latest published @os-eco/ versions across package.json + bun.lock and the Dockerfile CLI pins, then run the gates and open a PR. Use when checking if warren is on the newest burrow/plot/canopy/seeds/mulch/sapling.

jayminwest/warren · 69 tokens

release

Prepare, cut, and verify a warren release — tracker audits, version bump, CHANGELOG curation, ROADMAP update, push, then watch the pipeline through to published artifacts.

jayminwest/warren · 39 tokens

warren-dogfood-pipeline

Full prioritize → dispatch → shepherd → track pipeline against the live warren instance. Audits the seeds backlog around a focus theme, dispatches the surviving issues to warren agents one at a time, babysits the resulting PRs to merge (update-branch, conflict-repair runs, auto-merge), and closes the loop in the…

jayminwest/warren · 116 tokens

canvas

Display HTML content on connected Mayros nodes (Mac app, iOS, Android).

ApiliumCode/mayros · 0 tokens