agentleFS
nodealchemynodealchemy/powernode-platform/.claude/skills/bootstrap/SKILL.md

bootstrap

Skill4 starsChanged 18 days agoMITView on GitHub

Bootstrap dev environment - migrations, seeds, services, smoke tests

70 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use surprise-me, ppt-generation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • stophobiaSkill

    surprise-me

    Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for "something interesting".

    Also in 3 projects that use this

  • HK-hubSkill

    ppt-generation

    Use this skill when the user requests to generate, create, or make presentations (PPT/PPTX). Creates visually rich slides by generating images for each slide and composing them into a PowerPoint file.

    Also in 3 projects that use this

  • stophobiaSkill

    github-deep-research

    Conduct multi-round deep research on any GitHub Repo. Use when users request comprehensive analysis, timeline reconstruction, competitive analysis, or in-depth investigation of GitHub. Produces structured markdown reports with executive summaries, chronological timelines, metrics analysis, and Mermaid diagrams. Triggers on Github repository URL or open source projects.

    Also in 3 projects that use this

  • HK-hubSkill

    consulting-analysis

    Use this skill when the user requests to generate, create, or write professional research reports including but not limited to market analysis, consumer insights, brand analysis, financial analysis, industry research, competitive intelligence, investment due diligence, or any consulting-grade analytical report. This skill operates in two phases — (1) generating a structured analysis framework with chapter skeleton, data query requirements, and analysis logic, and (2) after data collection by other skills, producing the final consulting-grade report with structured narratives, embedded charts, and strategic insights.

    Also in 3 projects that use this

  • MicrosoftSkill

    podcast-generation

    Generate AI-powered podcast-style audio narratives using Azure OpenAI's GPT Realtime Mini model via WebSocket. Use when building text-to-speech features, audio narrative generation, podcast creation from content, or integrating with Azure OpenAI Realtime API for real audio output. Covers full-stack implementation from React frontend to Python FastAPI backend with WebSocket streaming.

    Also in 3 projects that use this

  • VercelSkill

    vercel-deploy

    Deploy applications and websites to Vercel with a claimable preview. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment". No authentication required - returns preview URL and claimable deployment link.

    Also in 4 projects that use this

  • +1 more from HK-hub

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 62 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

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

    line 17
  2. Very specific:

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

    line 21
  3. Distinctive:

    Read the error message carefully

    line 35
  4. Distinctive:

    Read the seed file and the related model

    line 37
  5. Distinctive:

    Wait 5 seconds, then check status:

    line 59
  6. Distinctive:

    Run these health checks:

    line 67

“Common” is measured: kept by at least 6 in 10 of the 62 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

Discover the units first. On a module-composed node (dev-cell, ops-hub) they are generated as powernode-<moduleID>-<service>.service, and no @default unit exists: a guessed name fails systemctl silently, which looks exactly like a successful restart. Fall back to the installer's @default name only when discovery finds nothing, which is the plain installer-shape host. Same shape as the deploy skill.

RAILS=$(systemctl list-units 'powernode-*-rails.service' --no-pager --no-legend --plain | awk '{print $1}' | head -1)
SIDEKIQ=$(systemctl list-units 'powernode-*-sidekiq.service' --no-pager --no-legend --plain | awk '{print $1}' | head -1)
sudo systemctl restart "${RAILS:-powernode-backend@default}"
sudo systemctl restart "${SIDEKIQ:-powernode-worker@default}"
systemctl is-active "${RAILS:-powernode-backend@default}" "${SIDEKIQ:-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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.