Skip to content
how-to-write-rulebooks logo

How To Write Rulebooks

how-to-write-rulebooks

A practical, step-by-step guide that standardizes how to author, structure and publish rulebooks in Stakpak. It covers metadata creation, goal articulation, workflow design, reference inclusion and best-practice guidelines.

SKILL.md

Full skill instructions

Goals

  • Make it easy for anyone to write and share Rulebooks

  • Standardize how operational knowledge is captured and reused

  • Enable Stakpak to help users create high quality Rulebooks

Workflow

When generating a new Rule Book, always follow this process:

Step 1: Start with Metadata

URI: <category>/<name>
Description: The description will help Stakpak know what this Rulebook is about, its scope, and when to use it, keep this short and to the point
Tags: create at least three tags to help Stakpak find this Rulebook in the future with keyword search

Step 2: Write the Goals

Explain the outcome the user will achieve by following this Rule Book. The goal should be written as a clear, outcome oriented sentence:

Bad: "This Rule Book is about Kubernetes."

Good: "This Rule Book helps you deploy and scale applications on Kubernetes with production grade configuration."

Step 3: Write the Workflow

Provide a numbered, step by step guide that explains how to accomplish the goal, maximize re-usability by avoiding hard coded values.

Each step should include:

Action: Imperative instruction (e.g., "Install the CLI tool").

Reasoning: Why this step is required (optional but recommended).

Examples: Code samples, commands, or configuration snippets where applicable.

Guidelines:

  • Use short, direct sentences

  • Keep steps atomic (one action per step)

  • Include necessary context but avoid unnecessary details and hard-coded literals

Step 4: Add References

Conclude the Rule Book with a "References" section.
This section should contain:

  • Links to official documentation or standards

  • Related Rulebooks

  • External resources for deeper learning

Best Practices for Writing a Rule Book

  • Use a clear structure, and concise text

  • Only include new information and insights learned throughout the session, for example good patterns you see, and information you learn by doing web research. This information should complement LLM agents, so repeating knowledge the agent already processes is redundant and reduces the quality of this Rulebook

  • You can add a prerequisites with conditions and initial requirements in the description (e.g. only run if there is Terraform code)

  • You can ask the agent in the Rulebook to follow certain standards and guidelines

    • Principle of least privilege

    • OWASP Guidelines (with reference to which guidelines exactly)

    • AWS Well Architected Framework

    • Or even your internal company guidelines found in other Rulebooks (with reference)

Using the stakpak CLI to manage Rulebook

# Get rulebook(s) (URI is optional - if not provided, lists all rulebooks)
stakpak rb get [URI]

# Apply/​create a rulebook from a markdown file
stakpak rb apply <FILE_PATH>

# Delete a rulebook
stakpak rb delete <URI>

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. 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".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View