Skip to content

Instantly share code, notes, and snippets.

@nickbasile
nickbasile / SKILL.md
Created August 25, 2026 13:40
/nicks-rules-for-coding - my personal rules for better agentic coding output
name nicks-rules-for-coding
version 2.2.0
description Nick's personal coding rules for architecture, Laravel, testing, databases, APIs, Inertia.js, React, Tailwind, HTML/JSX, and accessibility. Use when writing or reviewing code in any of these stacks to match Nick's preferences.
metadata
author tags
Nick Basile
architecture, laravel, inertia, react, tailwind, conventions, accessibility, testing, database, api

Nick's Rules for Coding

@nickbasile
nickbasile / SKILL.md
Created August 24, 2026 12:08
/explain-changes skill

name: explain-changes version: 1.0.0 description: Explain completed coding work so the user genuinely understands it. Writes a summary of changes and a manual testing checklist to a solo scratchpad, includes a mermaid diagram of database updates, then runs a 5-question comprehension quiz with grading and a retest on missed areas. Use when asked to "explain what you did", "walk me through the changes", or "help me understand this work". allowed-tools:

  • Read
  • Grep
  • Glob
  • Bash
  • AskUserQuestion
@nickbasile
nickbasile / Dockerfile
Created December 11, 2023 15:54
Docker set up
FROM serversideup/php:beta-8.2-fpm-nginx as base
### Development
FROM base as development
### Deploy
FROM base as deploy
LABEL maintainer="<project-owner>"
COPY --chown=www-data:www-data . /var/www/html
@nickbasile
nickbasile / Component.vue
Last active July 30, 2021 02:40
How to use a namespaced action in a Vue.js component
<template>
<div>
<button @click="increment">Increment</button>
</div>
</template>
<script>
import { mapActions } from 'vuex'
export default{
methods: {