convez.ai
MCP ServerDesenvolvimento WebIntermediário
pathrule

Pathrule Patterns

pathrule/patterns

Contexto path-scoped e memória para agentes de IA de codificação

Ver no GitHub
InicialPluginScore · de 0 a 100

MCP server que fornece pacotes de conhecimento pré-scoped por caminho (path-scoped) para agentes de IA codificadores. Inclui 43 padrões curados com regras, memórias e skills prontos para frameworks como Next.js, React, Vue, Flutter e outros, funcionando nativamente com Claude Code, Cursor e qualquer cliente MCP.

Instalação

$npx convez-ai pathrule/patterns

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
2
Forks
0
Acompanhando
0
Saúde
42%
Último commit
há 1 mês
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Alinhar agentes de IA com convenções e regras do projeto automaticamente
  • Acelerar desenvolvimento em frameworks como Next.js, Nuxt, SvelteKit e Flutter
  • Manter consistência de padrões entre diferentes partes da aplicação

Veredito

Ferramenta sólida e bem estruturada que resolve um problema real: contexto inteligente para agentes de IA em projetos reais. O catálogo de 43 padrões é maduro e covers os principais frameworks web e mobile. Gratuito e open-source, é recurso prático para times que usam Claude Code ou Cursor.

README

A tradução para o português deste README ainda está na fila.


A Pattern is not a single skill. It is a small, opinionated bundle of memories, rules, and skills, each pre-scoped to the path it belongs to (for example, a "Server Components by default" rule scoped to /app). Add a Pattern and your AI assistant gets the right conventions in the right place, then it evolves with your project.

Everything here is free and Apache-2.0. Pathrule only ever charges for the hosted product, never for this content.

Catalog

43 patterns across 8 categories. Each links to its full page; Bundle shows the mix of Rules, Memories, and Skills, composed to fit the topic rather than a fixed template.

Framework

PatternWhat it gives youBundleToken
AstroShip content-first sites that send almost no JavaScript by default.3R · 3M · 1S::pathrule:package:astro
Expo (React Native)Ship Expo apps with file-based routing, EAS Build, and safe OTA updates.3R · 3M · 1S::pathrule:package:expo-react-native
FlutterBuild Flutter apps that stay fast and leak-free with disciplined widgets and clear state boundaries.2R · 3M · 1S::pathrule:package:flutter
Next.js App RouterBattle-tested conventions for a Next.js App Router codebase, scoped to the paths they belong to.4R · 2M · 1S::pathrule:package:nextjs-app-router
NuxtShip Nuxt 4 apps with correct data fetching, server routes, and SSR-safe code.5R · 2M · 1S::pathrule:package:nuxt
React Router 7Build full-stack React apps with framework mode loaders, actions, and generated route types.3R · 2M · 1S::pathrule:package:react-router
SvelteKitKeep server secrets, load data, and mutations correct across SvelteKit 2 and Svelte 5.2R · 4M · 1S::pathrule:package:sveltekit

Frontend

PatternWhat it gives youBundleToken
Forms with React Hook Form + ZodSchema-first, type-safe forms with shared client and server validation.3R · 1M · 1S::pathrule:package:forms-rhf-zod
React + TypeScriptPragmatic React and TypeScript conventions: typed props, accessible UI, and predictable hooks.2R · 3M · 1S::pathrule:package:react-typescript
TypeScript StrictMake the compiler do the work: no any, no escape hatches, types that model reality.4R · 1M · 1S::pathrule:package:typescript-strict
shadcn/uiOwn your component code and theme it with CSS variables instead of installing a black-box UI library.2R · 3M · 1S::pathrule:package:shadcn-ui
Tailwind CSSKeep Tailwind v4 utility code clean, token-driven, and free of arbitrary-value sprawl.2R · 3M · 1S::pathrule:package:tailwind-css
TanStack QueryTreat the server as the source of truth and let the cache do the work.2R · 3M · 1S::pathrule:package:tanstack-query
Web AccessibilityShip interfaces that work for keyboard, screen reader, and low-vision users by default.3R · 2M · 1S::pathrule:package:web-accessibility

Backend

PatternWhat it gives youBundleToken
Auth (Sessions, JWT, OAuth)Build authentication that resists XSS, CSRF, and token replay by default.4R · 1M · 1S::pathrule:package:auth-sessions-jwt-oauth
Background Jobs & QueuesMake every queued job safe to run twice so retries heal instead of corrupt.2R · 3M · 1S::pathrule:package:background-jobs-queues
Drizzle ORMKeep your TypeScript schema, migrations, and typed queries honest with Drizzle.2R · 3M · 1S::pathrule:package:drizzle-orm
Node + TypeScript API (Hono)Build type-safe Hono APIs with chained routes, schema validation, and a typed RPC client.3R · 3M · 1S::pathrule:package:node-ts-api-hono
PostgreSQL Schema & MigrationsDesign normalized PostgreSQL schemas and ship lock-safe, forward-only migrations.3R · 2M · 1S::pathrule:package:postgres-schema
REST / HTTP API DesignDesign HTTP APIs that stay predictable, safe to retry, and easy to evolve.2R · 3M · 1S::pathrule:package:rest-api-design
Supabase + RLSRow Level Security done right: deny by default, user JWT only, and a clean migration workflow.3R · 3M · 1S::pathrule:package:supabase-rls
FastAPI (Python)Build type-safe async Python APIs with Pydantic validation and dependency injection.4R · 2M · 1S::pathrule:package:fastapi
Go API (Gin / Echo)Build idiomatic Go HTTP services with honest errors, context propagation, and validated input.3R · 2M · 1S::pathrule:package:go-api
Redis CachingCache with Redis so reads get faster without serving stale or inconsistent data.2R · 3M · 1S::pathrule:package:redis-caching

Billing

PatternWhat it gives youBundleToken
Stripe BillingSafe Stripe integration: verified webhooks, idempotent handlers, and the right API for the job.4R · 4M · 1S::pathrule:package:stripe-billing
Subscriptions & Usage BillingShip metered subscriptions on Stripe Billing without dropping usage or double-charging customers.3R · 2M · 1S::pathrule:package:subscriptions-usage-billing

Infra

PatternWhat it gives youBundleToken
Docker & ContainersShip small, secure, cache-friendly container images by default.2R · 2M · 1S::pathrule:package:docker-containers
GitHub Actions CI/CDBuild hardened, fast, OIDC-deployed GitHub Actions pipelines that AI agents keep secure by default.3R · 1M · 1S::pathrule:package:github-actions-cicd
ObservabilityEmit correlated logs, metrics, and traces that make incidents debuggable.2R · 2M · 1S::pathrule:package:observability
Secrets & Environment ManagementKeep secrets out of git, inject them at runtime, and rotate them automatically.3R · 2M · 1S::pathrule:package:secrets-env-management
Terraform / IaCShip Terraform with locked remote state, pinned versions, and a plan-gated CI pipeline.3R · 3M · 1S::pathrule:package:terraform-iac
Vercel DeploymentShip to Vercel with safe previews, scoped env vars, and instant rollbacks.2R · 3M · 1S::pathrule:package:vercel-deploy

Workflow

PatternWhat it gives youBundleToken
Code ReviewShip small pull requests that reviewers can approve fast with confidence.3R · 1M · 1S::pathrule:package:code-review
Git & Conventional CommitsKeep history readable and releases automatic with small commits and Conventional Commits.2R · 1M · 1S::pathrule:package:git-conventional-commits
Monorepo (pnpm + Turborepo)Keep a pnpm and Turborepo monorepo fast, cacheable, and boundary-clean.3R · 2M · 1S::pathrule:package:monorepo-pnpm-turborepo
Testing (Vitest + Playwright)Unit test behavior with Vitest, drive real user flows with Playwright, and keep both green in CI.3R · 2M · 1S::pathrule:package:testing-vitest-playwright
Modern Python Tooling (uv + Ruff)Set up Python projects the 2026 way: one fast tool for envs and deps, one for lint and format.2R · 2M · 1S::pathrule:package:python-tooling

AI

PatternWhat it gives youBundleToken
AI SDK (Vercel AI SDK)Build streaming, tool-calling LLM features with one typed API across every provider.3R · 2M · 1S::pathrule:package:ai-sdk
RAG & EmbeddingsGround LLM answers in your own data with retrieval that returns the right chunks, not just similar ones.2R · 3M · 1S::pathrule:package:rag-embeddings
MCP Server AuthoringBuild Model Context Protocol servers whose tools an LLM can actually call correctly and safely.3R · 1M · 1S::pathrule:package:mcp-server-authoring
LLM Evaluations & TestingCatch hallucinations and quality regressions before users do, with evals on every prompt change.1R · 2M · 2S::pathrule:package:llm-evals

Security

PatternWhat it gives youBundleToken
Software Supply Chain SecurityStop a poisoned dependency from running in your build, CI, and production.4R · 1M · 1S::pathrule:package:supply-chain-security
Web Security (OWASP)Build web apps that deny by default, distrust every input, and ship secure headers.3R · 2M · 1S::pathrule:package:web-security

What is a Pattern

Each Pattern declares its pieces with a kind (memory | rule | skill), the target nodePath, and the full content body:

  • Memories capture decisions and conventions ("how we do X here").
  • Rules are constraints your agent should respect (with scope, priority, and advisory or strict enforcement).
  • Skills are reusable checklists or procedures.

The bundle for each pattern is composed from its actual subject: rule-heavy for constraint and security topics, memory-heavy for conventions and architecture, skill-heavy for review and checklist topics. No two need to look alike.

Using a Pattern

Browse the catalog at pathrule.io/patterns.

  • One-click import: paste a reference token into your AI assistant and Pathrule places each piece at the right path in your workspace.
    ::pathrule:package:nextjs-app-router
    
  • Manual copy: copy the full bundle from a Pattern page and paste the pieces where you want them.

Using the package programmatically

import { getAllPatterns, getPattern, serializePatternBundle } from "@pathrule/patterns";

const pattern = getPattern("nextjs-app-router");
if (pattern) {
  console.log(serializePatternBundle(pattern));
}

The package is a pure, dependency-free, serializable data module. It carries no React, DOM, or cloud imports, so it can be rendered on the web, bundled into a local snapshot, or synced to a backend without change.

Contributing

Patterns are curated and first-party for now, so we keep quality and provenance high. Community contribution will open later with a review process. Until then, please use issues to suggest a Pattern or report a fix.

License

Apache-2.0. See NOTICE.

Ver o original no GitHub

Bom para

Relacionados