All skills

Sails.js framework patterns for The Boring JavaScript Stack - actions, helpers, routes, policies, hooks, configuration, security, middleware, file uploads, deployment, and more. Use this skill when building, reviewing, or debugging any server-side code in a Sails.js application.

Use this Skill: https://skilld.dev/gh/sailscastshq/boring-stack/sails

This session only. Nothing lands on disk.

SKILL.md

≈72 tokens always: the name and description. ≈608 when used: this file. ≈35k more on demand in 19 files.

Sails.js

Sails.js is the MVC backend framework in The Boring JavaScript Stack. It provides convention-over-configuration server-side architecture with actions, helpers, models, policies, hooks, and a powerful routing system. The Boring Stack defaults to the actions2 format for all controllers and helpers.

Sails is built on Express and uses the Waterline ORM for database access. It pairs with Inertia.js to render React, Vue, or Svelte frontends without building a separate API.

Rules

Getting Started

  • getting-started - App anatomy, project structure, file conventions, .sailsrc, globals, bootstrap

Core Concepts

  • actions - Actions2 format, inputs, exits, response types, and action patterns
  • helpers - Reusable helpers with inputs, exits, sync/async, error handling
  • routes - Route configuration, dynamic parameters, wildcards, route targets
  • policies - Request guards, policy configuration, authentication patterns
  • hooks - App-level hooks, lifecycle, shared data, custom hook patterns

Request Pipeline

  • request-lifecycle - How requests flow through hooks, middleware, policies, actions, and responses
  • middleware - HTTP middleware pipeline, config/http.js, Express middleware, custom middleware

Configuration & Infrastructure

  • configuration - Config files, environment variables, custom settings, datastores
  • responses - Custom response types, the Inertia response flow, error responses
  • security - CORS, CSRF, sessions, cookies, security best practices
  • deployment - Production config, Redis sessions, environment setup, scaling

Framework Reference

  • sails-object - The global sails object: sails.config, sails.helpers, sails.models, sails.log, sails.inertia
  • file-uploads - File upload patterns with sails.uploadOne, Skipper, cloud storage
  • shell-scripts - Background tasks, data migrations, maintenance scripts
  • blueprints - Auto-generated REST API, blueprint configuration, when to use
  • generators - Scaffolding with sails generate, custom generators, the page generator

Source: SKILL.md on GitHub

1 alert17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides comprehensive documentation and coding patterns for the Sails.js framework as used in The Boring JavaScript Stack. It includes detailed guides on application anatomy, security best practices, and production deployment. No malicious patterns or security vulnerabilities were detected.

  • Socket17d

    2 alerts: gptSecurity

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    13/20 files flagged

Signed by skilld at bf19e10. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 8 months ago
Other metadata
metadata
{
  "author": "sailscastshq",
  "version": "2.1.0",
  "tags": "sails, sailsjs, backend, mvc, actions, helpers, routes, policies, hooks, middleware, deployment, boring-stack"
}

README badge

README badge for sailscastshq/boring-stack/sails