dev-security-patterns SKILL.md skillA

dev-security-patterns from joaoguirunas/team-os is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add joaoguirunas/team-os/dev-security-patterns@v1.2

Pins v1.2 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
joaoguirunas/team-os
Path
.claude/skills/dev-security-patterns/SKILL.md
Versions recorded
3
Latest version
v1.2, committed Oct 7, 2026
First version recorded
Apr 23, 2026
Size
11,471 bytes
Repository stars
5
License
MIT

Padrões de segurança para software complexo — autenticação, autorização, RLS, OWASP top 10, validação de input, secrets management e a varredura das armadilhas de código gerado por IA (segredo no cliente, RLS aberta, auth por user_metadata, prompt injection).

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Security Patterns — Software Complexo

## JWT — Autenticação

```typescript
// Geração
const accessToken = jwt.sign(
  { userId: user.id, role: user.role },
  process.env.JWT_SECRET!,
  { expiresIn: '15m' }   // curto
)
const refreshToken = jwt.sign(
  { userId: user.id },
  process.env.JWT_REFRESH_SECRET!,
  { expiresIn: '7d' }
)

// Validação em middleware
const verifyToken = (req, res, next) => {
  const token = req.headers.authorization?.split(' ')[1]
  if (!token) return res.status(401).json({ error: { code: 'UNAUTHORIZED', requestId: req.requestId } })
  try {
    req.user = jwt.verify(token, process.env.JWT_SECRET!)
    next()
  } catch {
    return res.status(401).json({ error: { code: 'UNAUTHORIZED', requestId: req.requestId } })
  }
}
```

**Regras:** Access token 15min. Refresh token 7 dias com rotação. Nunca localStorage — usar httpOnly cookie. Secret mínimo 256 bits.

## Autorização — RBAC

```typescript
const requireRole = (...roles: string[]) => (req, res, next) => {
  if (!roles.includes(req.user.role)) {
    return res.status(403).json({ error: { code: 'FORBIDDEN', requestId: req.requestId } })
  }
  next()
}

// Uso
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add joaoguirunas/team-os/dev-security-patterns@sha256:35c03207436ec826

The line at the top of this page pins the label v1.2, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_z5ekqq62ea6yxjio.svg)](https://markdownregistry.com/a/art_z5ekqq62ea6yxjio)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Apr 23, 2026 and Oct 7, 2026, about one every 83 days.

versioncommittedcommitsizeaudit
v1.2 latest2026-10-07 6d31566 11,471 BA view · diff
v1.12026-09-26 8a9bf22 5,050 BA view · diff
v1.12026-04-23 b70017d 5,048 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (11471 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

joaoguirunas/team-os · 5 stars · license MIT · pushed 2026-10-14 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_z5ekqq62ea6yxjio
GET https://markdownregistry.com/api/v1/resolve?ref=joaoguirunas/team-os/dev-security-patterns
GET https://markdownregistry.com/api/v1/blob/35c03207436ec8267fce23ff3f8290e0c141c6878098c036f86a7946797ca2d8

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from joaoguirunas/team-os

accessibility SKILL.md skill
joaoguirunas/team-os · .claude/skills/accessibility/SKILL.md · Auditar e melhorar acessibilidade web seguindo WCAG 2.2 — inclui padrões específicos para Next.js/Tailwind. Use ao…
v1.2 · audit A · 5 stars
ai-ml-data-science SKILL.md skill
joaoguirunas/team-os · .claude/skills/ai-ml-data-science/SKILL.md · Workflows de ML e ciência de dados — EDA, feature engineering, modelagem, avaliação e handoff para produção. Use ao…
v1.0 · audit A · 5 stars
ai-ml-timeseries SKILL.md skill
joaoguirunas/team-os · .claude/skills/ai-ml-timeseries/SKILL.md · Previsão de séries temporais — LightGBM, Transformers, validação temporal, feature engineering e deploy em produção…
v1.0 · audit A · 5 stars
brand-platform SKILL.md skill
joaoguirunas/team-os · .claude/skills/brand-platform/SKILL.md · Método da plataforma de marca e da arquitetura de marca — público prioritário, território…
v1.0 · audit A · 5 stars
brand-research SKILL.md skill
joaoguirunas/team-os · .claude/skills/brand-research/SKILL.md · Método de pesquisa para reposicionamento — auditoria da marca como ela é hoje (promessa por canal, ativos, coerência…
v1.0 · audit A · 5 stars
brand-rollout SKILL.md skill
joaoguirunas/team-os · .claude/skills/brand-rollout/SKILL.md · Método de implantação de um reposicionamento — pré-condições (voz e visual com PASS, baseline travada, confirmação do…
v1.0 · audit A · 5 stars
brand-tracking SKILL.md skill
joaoguirunas/team-os · .claude/skills/brand-tracking/SKILL.md · Método de medição de marca — scorecard com funil (awareness, consideração, preferência, recomendação), atributos de…
v1.0 · audit A · 5 stars
brand-verbal-identity SKILL.md skill
joaoguirunas/team-os · .claude/skills/brand-verbal-identity/SKILL.md · Método da identidade verbal — dimensões de tom em escala, tabela dizemos/não dizemos por dimensão e contexto, framework…
v1.0 · audit A · 5 stars
brand-visual-system SKILL.md skill
joaoguirunas/team-os · .claude/skills/brand-visual-system/SKILL.md · Método da identidade visual — direções com moodboard e racional, sistema de cor com papéis e contraste medido…
v1.0 · audit A · 5 stars
data-analytics-engineering SKILL.md skill
joaoguirunas/team-os · .claude/skills/data-analytics-engineering/SKILL.md · Analytics engineering para métricas confiáveis e prontidão de BI. Use ao construir modelos dbt, definir métricas ou…
v1.0 · audit A · 5 stars
data-lake-platform SKILL.md skill
joaoguirunas/team-os · .claude/skills/data-lake-platform/SKILL.md · Padrões de data lake e lakehouse — ingestão, CDC, Iceberg/Delta/Hudi, Trino/DuckDB, orquestração e governança…
v1.0 · audit A · 5 stars
data-sql-optimization SKILL.md skill
joaoguirunas/team-os · .claude/skills/data-sql-optimization/SKILL.md · Otimização de SQL para sistemas OLTP — análise de EXPLAIN, indexação, schema design, migrations, alta disponibilidade…
v1.0 · audit A · 5 stars

Every file in joaoguirunas/team-os

Browse by kind, by grade A, or by owner.