Skip to content

Instantly share code, notes, and snippets.

View leandroluk's full-sized avatar
🏠
Working from home

Leandro Santiago Gomes leandroluk

🏠
Working from home
View GitHub Profile
@leandroluk
leandroluk / qa.md
Created September 28, 2026 13:34
agents/qa.md para usar com a skill graph-spec-design
name qa
description QA do projeto. Use para revisar implementações do DEV contra as specs do PO, rodar testes, apontar bugs, regressões e desvios de critérios de aceite. Não implementa fixes, apenas reporta.
tools Read, Glob, Grep, Bash, Skill, TodoWrite
model haiku

Você é o QA do projeto condominium-management-system.

Regra obrigatória

@leandroluk
leandroluk / dev.md
Created September 28, 2026 13:34
agents/dev.md para usar com a skill graph-spec-design
name dev
description Desenvolvedor do projeto. Use para implementar features/tasks definidas pelo PO, corrigir bugs e fazer refactors, seguindo as specs em .specs/features. É o único dos três agentes com permissão para editar código de produção.
tools Read, Glob, Grep, Write, Edit, Bash, Skill, TodoWrite
model sonnet

Você é o Desenvolvedor (DEV) do projeto condominium-management-system.

Regra obrigatória

@leandroluk
leandroluk / po.md
Created September 28, 2026 13:33
agents/po.md para usar com a skill graph-spec-design
name po
description Product Owner do projeto. Use para transformar pedidos vagos em specs claras, priorizar o roadmap, quebrar features em tasks e manter .specs/ (PROJECT.md, ROADMAP.md, STATE.md, features/) atualizado. Não escreve código de produção.
tools Read, Glob, Grep, Write, Edit, Skill, TodoWrite
model haiku

Você é o Product Owner (PO) do projeto condominium-management-system.

Regra obrigatória

@leandroluk
leandroluk / extend-all.mixin.ts
Last active May 14, 2026 16:41
A mixin to extend multiple classes while maintaining typing.
/* eslint-disable @typescript-eslint/no-explicit-any */
/**
* Utility type to convert a union of types into an intersection of types.
* Ex: UnionToIntersection<{a: 1} | {b: 2}> = {a: 1, b: 2}
*/
type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
/**
* Generic type to represent a constructor class.
@leandroluk
leandroluk / extensions.json
Created August 13, 2025 16:13
.vscode/extensions.json
{
"recommendations": [
// A Vite-native testing framework. It's fast!
"vitest.explorer",
// Icons for Visual Studio Code
"vscode-icons-team.vscode-icons",
// Integrates ESLint JavaScript into VS Code.
"dbaeumer.vscode-eslint",
// Supercharge Git within VS Code — Visualize code authorship at a glance via Git blame annotations and CodeLens,
// seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful
@leandroluk
leandroluk / Search.ts
Last active September 5, 2026 16:15
Agnostic search structure to create search pattern resources
type TrueType<T> = Exclude<T, undefined | null>;
type Item = Record<string, unknown>
type StringMatch = 'eq' | 'like';
type NumberMatch = 'eq' | 'gt' | 'gte' | 'lt' | 'lte';
type BooleanMatch = 'eq';
type DateMatch = 'eq' | 'gt' | 'gte' | 'lt' | 'lte';
type Range = 'in' | 'nin';
/**

How to start a new backend Python project

  1. Commit chore: configuring vscode
    • create file .gitignore:
      # Extra folders
      .tmp
      
      # Distribution / packaging
      .Python
      

How to start a new backend NodeJS + Typecript project

  1. Commit chore: configuring vscode

    • create an repository on the git.

    • create file .gitignore:

      node_modules
@leandroluk
leandroluk / neo4j - docker-compose.yml
Last active June 26, 2025 16:42
Docker Compose with Neo4j container and APOC plugins installed
version: '3'
services:
neo4j:
container_name: neo4j
image: neo4j
ports:
- 7473:7473
- 7474:7474
- 7687:7687