Automation · PowerShell · HTML

Automation Toolkit for Justine Longla T blogs.

A living collection of DevSecOps automation scripts used by Justine Longla T. — keeping blogs, docs, and project sites fast, safe, reproducible, and effortless to maintain.

Built with PowerShell & static HTML Designed for repeatable content workflows Safe to rerun, friendly for future contributors
Add new posts with one command Validate metadata & tags before release Ship safely with guardrails like Safe-Rebase & git-suture

Core tools

Day-to-day commands for posts, projects, and validation.
Content

tools\Add-Post.ps1

Adds a new post skeleton in posts\YEAR\MM\slug\index.html, wired to the unified layout and card grid. Prompts for title, date, tags, and a short summary.

pwsh .\tools\Add-Post.ps1
PowerShell Front matter Card layout aware
Content

tools\Find-Post.ps1

Quick search by slug; opens the exact post folder so you never edit the wrong copy. Great for jumping straight into Visual Studio Code for a given post.

pwsh .\tools\Find-Post.ps1 new-devops-insights
PowerShell Search & navigate
Quality

tools\check-slugs.ps1

Scans all posts and projects to make sure slugs are unique and match the [a-z0-9-] pattern used by the site router.

pwsh .\tools\check-slugs.ps1
Slug hygiene Static site safety
Quality

tools\check-missing-tags.ps1

Finds posts missing tags: and suggests labels based on the content path and existing taxonomy. Keeps your tag pages and filters honest.

pwsh .\tools\check-missing-tags.ps1
Metadata Tags Consistency
Quality

tools\fix-missing-tags.ps1

Applies the suggested tags, updates local backups, and keeps metadata consistent across posts, projects, and deep dives.

pwsh .\tools\fix-missing-tags.ps1
Metadata repair Idempotent
Build & preview

scripts\build-serve.ps1

Rebuilds the static site and starts a local preview server. Uses the same layout and card grid you see in production, so you can review changes before pushing.

pwsh .\scripts\build-serve.ps1
Build Local preview
Release & Deploy

scripts\Cut-Release.ps1

Creates a tagged release for the blog/docs repo, updates the changelog, and prepares the branch for deployment. Ideal when you’re ready to promote a batch of articles.

pwsh .\scripts\Cut-Release.ps1 -Version v1.2.0
Versioning Changelog
Release & Deploy

scripts\Deploy-Vercel.ps1

Thin wrapper around the Vercel CLI that wires in the correct team, project, and environment flags so you can safely deploy from PowerShell without remembering every parameter.

pwsh .\scripts\Deploy-Vercel.ps1 -Environment production
Vercel CI/CD bridge
Safety

tools\Safe-Rebase.ps1

Guard-rail rebase: checks for a clean working tree, creates a backup branch, and only proceeds if everything is safe. Designed for human-friendly, low-stress history rewrites.

pwsh .\tools\Safe-Rebase.ps1 main
Git safety Backups
Safety

tools\git-suture.ps1

Stitches together mismatched changes after a risky operation (rebase, force push, manual file surgery). Helps you recover a known-good “reference state” without panic.

pwsh .\tools\git-suture.ps1
Recovery Point-in-time restore

Learn more

Where these patterns show up in real projects.

This toolkit doesn’t live in isolation — it supports the DevOps stories and deep dives on the rest of the site. When you want to see these scripts “in the wild”, start here:

Case study

Reproducible Static Blog Guardrails

How the blog evolved from “static pages” into a deterministic engineering system: build output contracts, curated index pinning, and a canonical CSS layer to stop cascade drift.

read /posts/2026/02/reproducible-static-blog-guardrails/
Deterministic builds Guardrails Build contract CSS canonical layer Curated pinning